UserModel struct
#include <gtopt/user_model.hpp>
A self-contained AMPL model fragment: user vars + user constraints.
Public static variables
- static LPClassName class_name
Public variables
- OptActive active
- Array<UserConstraint> constraint_array
- OptName description
- Optional free-text provenance.
- Name name
- OptName tag
- Uid uid
- Array<DecisionVariable> variable_array
Variable documentation
Array<UserConstraint> gtopt:: UserModel:: constraint_array
Constraint declarations (LP rows). Reuses the UserConstraint structure verbatim — each entry becomes one internal UserConstraintLP driven through the standard build path (incl. soft slacks + scope routing + aux-col lowering). Captured to output/UserModel/<tag>/<constraint-name>_{dual,slack}.
Array<DecisionVariable> gtopt:: UserModel:: variable_array
Column declarations (free continuous LP vars). Reuses the DecisionVariable structure verbatim — each entry becomes one internal DecisionVariableLP driven through the standard build path (per-block, stage, phase or global per its own scope). Captured to output/UserModel/<tag>/<var-name>_{sol,cost}.