![](/img/trans.png)
[英]Gurobi addConstr with MVar: Index 0 out of range for attribute 'X'
[英]Gurobi MVar: Accessing Attributes always throws a GurobiError
我正在嘗試使用 Gurobi 的MVar
class。
import gurobipy as gp
m = gp.Model()
v = m.addMVar((10,))
v.lb # raises GurobiError, index out of range...
稱呼
m.update()
在訪問lb
之前。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.