chelsea
chelsea

Reputation: 1

Python : how to fix this error with _ub in scipy. optimize syntax error

enter image description here

I don't know how to deal with this

Upvotes: 0

Views: 93

Answers (1)

Brenden Petersen
Brenden Petersen

Reputation: 2022

Your call to linprog should use (...) instead of [...]. Specifically, change to:

my_result = linprog(c, A_ub=A, b_ub=b, bounds=[x1_bounds,x2_bounds,x3_bounds,x4_bounds])

Upvotes: 1

Related Questions