AMPLProblemHandler::LinearPartHandler Class Reference
Detailed Description
handles receiving the linear part of an objective or constraint
for objective, set the objective-coefficient of the variable for linear constraints, add to the constraint for nonlinear constraints, add to nlconslin vector; adding to constraint later
Definition at line 1049 of file reader_nl.cpp.
Public Member Functions | |
LinearPartHandler (AMPLProblemHandler &lph_, int constraintIndex_) | |
LinearPartHandler (AMPLProblemHandler &lph_) | |
void | AddTerm (int variableIndex, double coefficient) |
Constructor & Destructor Documentation
◆ LinearPartHandler() [1/2]
|
inlineexplicit |
- Parameters
-
amplph_ problem handler constraintIndex_ constraint index
Definition at line 1057 of file reader_nl.cpp.
◆ LinearPartHandler() [2/2]
|
inlineexplicit |
- Parameters
-
amplph_ problem handler
Definition at line 1069 of file reader_nl.cpp.
Member Function Documentation
◆ AddTerm()
|
inline |
- Parameters
-
variableIndex AMPL index of variable coefficient coefficient of variable
Definition at line 1076 of file reader_nl.cpp.
References SCIP_CALL_THROW, SCIPaddCoefLinear(), and SCIPchgVarObj().