AMPLProblemHandler::LinearExprHandler Class Reference
Detailed Description
handles linear part of a common expression sets up a sum expression, if the linear part isn't empty
Definition at line 665 of file reader_nl.cpp.
Public Member Functions | |
LinearExprHandler (AMPLProblemHandler &lph_, int index, int num_linear_terms) | |
constructor More... | |
void | AddTerm (int var_index, double coef) |
receives notification of a term in the linear expression More... | |
Constructor & Destructor Documentation
◆ LinearExprHandler()
|
inline |
constructor
- Parameters
-
amplph_ problem handler index index of common expression num_linear_terms number of terms to expect
Definition at line 673 of file reader_nl.cpp.
References NULL, SCIP_CALL_THROW, and SCIPcreateExprSum().
Member Function Documentation
◆ AddTerm()
|
inline |
receives notification of a term in the linear expression
- Parameters
-
var_index AMPL index of variable coef variable coefficient
Definition at line 690 of file reader_nl.cpp.
References NULL, SCIP_CALL_THROW, SCIPappendExprSumExpr(), SCIPcreateExprVar(), and SCIPreleaseExpr().