handling of suffices for variable and constraint flags and SOS constraints
regarding SOS in AMPL, see https://ampl.com/faqs/how-can-i-use-the-solvers-special-ordered-sets-feature/ we pass the .ref suffix as weight to the SOS constraint handlers for a SOS2, the weights determine the order of variables in the set
Definition at line 930 of file reader_nl.cpp.
Public Member Functions | |
| SuffixHandler (AMPLProblemHandler &lph_, fmt::StringRef name, mp::suf::Kind kind) | |
| constructor | |
| void | SetValue (int index, T value) |
|
inline |
constructor
| amplph_ | problem handler |
| name | name of suffix |
| kind | whether suffix applies to var, cons, etc |
Definition at line 954 of file reader_nl.cpp.
References NULL, SCIP_VERBLEVEL_HIGH, and SCIPverbMessage().
|
inline |
| index | index of variable, constraint, etc |
| value | value of suffix |
Definition at line 1053 of file reader_nl.cpp.
References assert(), nvars, SCIP_CALL_THROW, SCIPsetConsChecked(), SCIPsetConsDynamic(), SCIPsetConsEnforced(), SCIPsetConsInitial(), SCIPsetConsPropagated(), SCIPsetConsRemovable(), SCIPsetConsSeparated(), SCIPvarSetInitial(), and SCIPvarSetRemovable().