PamplParseResult struct
#include <gtopt/pampl_parser.hpp>
Result of parsing a PAMPL file or string.
Contains both parsed user constraints and parameter declarations.
declared_vars carries any top-level var <ident>; declarations the file contains. PAMPL recognises them as AMPL-style free variable declarations; each name is also matched against the parsed constraints by naming convention: var slack_<NAME>; populates UserConstraint::slack_name on the matching constraint, so the declaration travels through to the LP-side slack column label without the caller needing a separate slack-name CLI.
Public variables
- std::vector<UserConstraint> constraints
- std::vector<std::string> declared_vars
- std::vector<UserParam> params