Model.getGenConstrs ()


Model.getGenConstrs ()

getGenConstrs( )

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

返回值:

模型中的所有一般约束。

使用示例:

在gencons = model.getGenConstrs() for gc: