MinMaxExpr struct
#include <gtopt/constraint_expr.hpp>
max(arg1, arg2, ...) / min(arg1, arg2, ...) term (F7).
Each arg is itself a linear combination. Lowering allocates one auxiliary variable t per occurrence and emits one row per argument (arg_i − t ≤ 0 for max, t − arg_i ≤ 0 for min). The outer row substitutes coefficient * t for coefficient * max/min(args).
Convexity:
max(...) ≤ korc·max(...) + ... ≤ kwithc > 0.min(...) ≥ korc·min(...) + ... ≥ kwithc > 0.- Opposite-direction uses with negative coefficients are equivalent and also accepted. All other combinations are rejected.
Public variables
- std::vector<std::vector<ConstraintTerm>> args
- MinMaxKind kind