[英]Scipy. Import Error: cannot import name multivariate_normal
[英]Python : how to fix this error with _ub in scipy. optimize syntax error
您對linprog
呼叫應使用(...)
而不是[...]
。 具體來說,更改為:
my_result = linprog(c, A_ub=A, b_ub=b, bounds=[x1_bounds,x2_bounds,x3_bounds,x4_bounds])
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.