簡體   English   中英

Python:如何使用scipy中的_ub修復此錯誤。 優化語法錯誤

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM