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 1142 of file reader_nl.cpp.
Public Member Functions | |
| LinearPartHandler (AMPLProblemHandler &lph_, int constraintIndex_) | |
| LinearPartHandler (AMPLProblemHandler &lph_) | |
| void | AddTerm (int variableIndex, double coefficient) |
|
inlineexplicit |
| amplph_ | problem handler |
| constraintIndex_ | constraint index |
Definition at line 1150 of file reader_nl.cpp.
References assert().
|
inlineexplicit |
| amplph_ | problem handler |
Definition at line 1162 of file reader_nl.cpp.
|
inline |
| variableIndex | AMPL index of variable |
| coefficient | coefficient of variable |
Definition at line 1169 of file reader_nl.cpp.
References assert(), nvars, SCIP_CALL_THROW, SCIPaddCoefLinear(), and SCIPchgVarObj().