约束

Classes

AbstractScalarConstraint(*args, **kwds)

AbstractSimpleConstraint(*args, **kwargs)

Constraint(*args, **kwds)

此建模组件使用规则函数定义约束表达式。

ConstraintData([expr, component])

此类定义了单个代数约束的数据。

ConstraintList(*args, **kwds)

表示约束列表的约束组件。

IndexedConstraint(*args, **kwds)

ScalarConstraint(*args, **kwds)

ScalarConstraint 是表示单个非索引约束的实现。

SimpleConstraint(*args, **kwargs)

TemplateConstraintData(template_info, ...)

Functions

simple_constraint_rule(rule)

这是一个装饰器,将None/True/False返回值转换为Constraint.Skip/Constraint.Feasible/Constraint.Infeasible。

simple_constraintlist_rule(rule)

这是一个装饰器,它将None/True/False返回值转换为ConstraintList.End/Constraint.Feasible/Constraint.Infeasible。