Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- example output:
- fun: -2.0
- message: 'Optimization terminated successfully.'
- nit: 6
- slack: array([ 0., 2., 0., 0., 0., 0., 0., 0., 0.])
- status: 0
- success: True
- x: array([ 0., 1., 1., 0., 0., 1., 0., 0., 0.])
- Traceback (most recent call last):
- File "assignment5.py", line 124, in <module>
- main()
- File "assignment5.py", line 109, in main
- print(max_flow(c, s, t))
- File "assignment5.py", line 51, in max_flow
- opt = linprog(c=c, A_eq=Aeq, b_eq=beq, bounds=bounds)
- File "/usr/local/lib/python3.6/site-packages/scipy/optimize/_linprog.py", line 993, in linprog
- bounds=bounds, callback=callback, **options)
- File "/usr/local/lib/python3.6/site-packages/scipy/optimize/_linprog.py", line 710, in _linprog_simplex
- raise ValueError(message)
- 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