handles linear part of a common expression sets up a sum expression, if the linear part isn't empty
Definition at line 678 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 686 of file reader_nl.cpp.
References i, 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 703 of file reader_nl.cpp.
References assert(), i, NULL, nvars, SCIP_CALL_THROW, SCIPappendExprSumExpr(), SCIPcreateExprVar(), and SCIPreleaseExpr().