簡體   English   中英

Gurobi MVar:訪問屬性總是拋出 GurobiError

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

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