Advertisement
Guest User

result

a guest
Mar 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. example output:
  2. fun: -2.0
  3. message: 'Optimization terminated successfully.'
  4. nit: 6
  5. slack: array([ 0., 2., 0., 0., 0., 0., 0., 0., 0.])
  6. status: 0
  7. success: True
  8. x: array([ 0., 1., 1., 0., 0., 1., 0., 0., 0.])
  9. Traceback (most recent call last):
  10. File "assignment5.py", line 124, in <module>
  11. main()
  12. File "assignment5.py", line 109, in main
  13. print(max_flow(c, s, t))
  14. File "assignment5.py", line 51, in max_flow
  15. opt = linprog(c=c, A_eq=Aeq, b_eq=beq, bounds=bounds)
  16. File "/usr/local/lib/python3.6/site-packages/scipy/optimize/_linprog.py", line 993, in linprog
  17. bounds=bounds, callback=callback, **options)
  18. File "/usr/local/lib/python3.6/site-packages/scipy/optimize/_linprog.py", line 710, in _linprog_simplex
  19. raise ValueError(message)
  20. ValueError: Invalid input for linprog with method = 'simplex'. Number of columns in A_eq must be equal to the size of c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement