IfExpr struct
#include <gtopt/constraint_expr.hpp>
Data-only conditional expression (F8).
if <cond> then (<then_branch>) [ else (<else_branch>) ]
The condition is a conjunction (AND) of atomic coordinate comparisons evaluated per (scenario, stage, block) domain instance at LP construction time. The selected branch's terms are substituted into the surrounding row; the unselected branch is dropped for that instance. If no else branch is provided, the condition selects between the then branch and an empty expression.
Public variables
- std::vector<IfCondAtom> cond
- Conjunction (AND) of atoms.
- std::vector<ConstraintTerm> else_branch
- std::vector<ConstraintTerm> then_branch