标签: pyomo
我们可以使用空索引设置param吗?例如:
self.param_A = pyo.Param( self.INDEX_1, # this INDEX_1 is generated elsewhere and could be empty in some cases within=pyo.NonNegativeReals
答案 0 :(得分:0)
是的,可以。变量,约束,表达式等也是如此。