Detailed Description
template<typename T>
class AMPLProblemHandler::SuffixHandler< T >
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 853 of file reader_nl.cpp.
Public Member Functions | |
SuffixHandler (AMPLProblemHandler &lph_, fmt::StringRef name, mp::suf::Kind kind) | |
constructor More... | |
void | SetValue (int index, T value) |
Constructor & Destructor Documentation
◆ SuffixHandler()
|
inline |
constructor
- Parameters
-
amplph_ problem handler name name of suffix kind whether suffix applies to var, cons, etc
Definition at line 877 of file reader_nl.cpp.
References NULL, SCIP_VERBLEVEL_HIGH, and SCIPverbMessage().
Member Function Documentation
◆ SetValue()
|
inline |
- Parameters
-
index index of variable, constraint, etc value value of suffix
Definition at line 960 of file reader_nl.cpp.
References SCIP_CALL_THROW, SCIPsetConsChecked(), SCIPsetConsDynamic(), SCIPsetConsEnforced(), SCIPsetConsInitial(), SCIPsetConsPropagated(), SCIPsetConsRemovable(), SCIPsetConsSeparated(), SCIPvarSetInitial(), and SCIPvarSetRemovable().