ConstraintExpr struct
#include <gtopt/constraint_expr.hpp>
Complete parsed constraint expression.
Represents a constraint of one of these forms:
- lhs_terms ≤ rhs
- lhs_terms ≥ rhs
- lhs_terms = rhs
- lower_bound ≤ lhs_terms ≤ upper_bound (RANGE)
plus an optional domain restriction.
Public variables
- ConstraintType constraint_type
- Comparison operator.
- ConstraintDomain domain
- Index domain specification.
- std::optional<double> lower_bound
- Lower bound (RANGE only)
- std::string name
- Constraint name (from UserConstraint::name)
- double rhs
- Right-hand side (non-range constraints)
- std::vector<ConstraintTerm> terms
- Variable and constant terms (LHS)
- std::optional<double> upper_bound
- Upper bound (RANGE only)