gtopt::UserModel struct

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}.

OptName gtopt::UserModel::tag

Output namespacing tag — the captured cols/rows land under output/UserModel/<tag>/<name>_{sol,cost,dual,slack}. When unset the element name is used as the tag (so the capture is always namespaced).

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}.