atmost

(function from pyomo.core.expr.logical_expr)

pyomo.core.expr.logical_expr.atmost(n, *args)[source]

Creates a new AtMostExpression

Require at most n arguments to be True, to make the expression True

Usage: atmost(2, m.Y1, m.Y2, m.Y3, …)