Model.getGenConstrs ()


Model.getGenConstrs ()

getGenConstrs( )

检索模型中所有一般约束的列表。

返回值:

模型中的所有一般约束。

使用示例:

gencons = model. getgenconsts () for gc in gencons: print(model.getGenConstr(gc))