Expr_if
(function from pyomo.core.expr.numeric_expr
)
- pyomo.core.expr.numeric_expr.Expr_if(IF_=None, THEN_=None, ELSE_=None, **kwargs)[source]
Function used to construct a conditional numeric expression.
This function accepts either of the following signatures:
Expr_if(IF={expr}, THEN={expr}, ELSE={expr})
Expr_if(IF_={expr}, THEN_={expr}, ELSE_={expr})
(the former is historical, and the latter is required to support Cythonization)