handles linear part of a common expression sets up a sum expression, if the linear part isn't empty
Definition at line 742 of file reader_nl.cpp.
Public Member Functions | |
LinearExprHandler (AMPLProblemHandler &lph_, int index, int num_linear_terms) | |
constructor | |
void | AddTerm (int var_index, double coef) |
receives notification of a term in the linear expression |
|
inline |
constructor
amplph_ | problem handler |
index | index of common expression |
num_linear_terms | number of terms to expect |
Definition at line 750 of file reader_nl.cpp.
References AMPLProblemHandler::AMPLProblemHandler(), NULL, SCIP_CALL_THROW, and SCIPcreateExprSum().
|
inline |
receives notification of a term in the linear expression
var_index | AMPL index of variable |
coef | variable coefficient |
Definition at line 767 of file reader_nl.cpp.
References assert(), NULL, nvars, SCIP_CALL_THROW, SCIPappendExprSumExpr(), SCIPcreateExprVar(), and SCIPreleaseExpr().