(function from pyomo.core.expr.numeric_expr)
pyomo.core.expr.numeric_expr
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})
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)