Scippy

SCIP

Solving Constraint Integer Programs

AMPLProblemHandler::SuffixHandler< T > Class Template Reference

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 930 of file reader_nl.cpp.

Public Member Functions

 SuffixHandler (AMPLProblemHandler &amplph_, fmt::StringRef name, mp::suf::Kind kind)
 constructor More...
 
void SetValue (int index, T value)
 

Constructor & Destructor Documentation

◆ SuffixHandler()

template<typename T >
AMPLProblemHandler::SuffixHandler< T >::SuffixHandler ( AMPLProblemHandler amplph_,
fmt::StringRef  name,
mp::suf::Kind  kind 
)
inline

constructor

Parameters
amplph_problem handler
namename of suffix
kindwhether suffix applies to var, cons, etc

Definition at line 954 of file reader_nl.cpp.

References NULL, SCIP_VERBLEVEL_HIGH, and SCIPverbMessage().

Member Function Documentation

◆ SetValue()

template<typename T >
void AMPLProblemHandler::SuffixHandler< T >::SetValue ( int  index,
value 
)
inline