Definition at line 1743 of file reader_nl.cpp.
Public Member Functions | |
| SCIPNLFeeder (SCIP *scip_, const char *probname_, SCIP_OBJSENSE objsense_, SCIP_Real objscale_, SCIP_Real objoffset_, SCIP_VAR **vars_, int nvars_, SCIP_VAR **fixedvars_, int nfixedvars_, SCIP_CONS **conss_, int nconss_, SCIP_Bool nlbinary_, SCIP_Bool nlcomments_, SCIP_Bool genericnames_) | |
| Constructor. | |
| ~SCIPNLFeeder () | |
| mp::NLHeader | Header () |
| bool | WantNLComments () const |
| NL comments? | |
| int | WantColumnSizes () const |
| int | ObjType (int) const |
| template<class ObjGradWriter> | |
| void | FeedObjGradient (int i, ObjGradWriter &gw) |
| template<class ObjExprWriter> | |
| void | FeedObjExpression (int i, ObjExprWriter &ew) |
| template<class VarBoundsWriter> | |
| void | FeedVarBounds (VarBoundsWriter &vbw) const |
| template<class ConBoundsWriter> | |
| void | FeedConBounds (ConBoundsWriter &cbw) |
| const char * | ConDescription (int i) |
| template<class ConLinearExprWriter> | |
| void | FeedLinearConExpr (int i, ConLinearExprWriter &clw) |
| template<class ConExprWriter> | |
| void | FeedConExpression (int i, ConExprWriter &ew) |
| template<class RowObjNameWriter> | |
| void | FeedRowAndObjNames (RowObjNameWriter &wrt) const |
| template<class ColNameWriter> | |
| void | FeedColNames (ColNameWriter &wrt) const |
|
inline |
Constructor.
| scip_ | SCIP data structure |
| probname_ | problem name |
| objsense_ | objective sense |
| objscale_ | objective scale |
| objoffset_ | objective offset |
| vars_ | active variables |
| nvars_ | number of active variables |
| fixedvars_ | fixed variables |
| nfixedvars_ | number of fixed variables |
| conss_ | constraints |
| nconss_ | number of constraints |
| nlbinary_ | whether to write binary or text nl |
| nlcomments_ | whether to include comments into nl |
| genericnames_ | are generic names used |
Definition at line 2176 of file reader_nl.cpp.
References NULL, SCIP_Bool, SCIP_Real, and SCIPfindConshdlr().
|
inline |
Definition at line 2225 of file reader_nl.cpp.
References NULL, SCIPfreeBlockMemoryArrayNull, and SCIPhashmapFree().
|
inline |
Provide NLHeader.
This method is called first.
NLHeader summarizes the model and provides some technical parameters, such as text/binary NL format.
Definition at line 2243 of file reader_nl.cpp.
|
inline |
NL comments?
Definition at line 2276 of file reader_nl.cpp.
|
inline |
currently we do not want to write size of each column in Jacobian (i.e., number of constraints each variable appears in)
Definition at line 2283 of file reader_nl.cpp.
|
inline |
Definition at line 2288 of file reader_nl.cpp.
References SCIP_OBJSENSE_MAXIMIZE.
|
inline |
Definition at line 2296 of file reader_nl.cpp.
References assert(), i, SCIP_Real, and SCIPvarGetObj().
|
inline |
Definition at line 2316 of file reader_nl.cpp.
|
inline |
Definition at line 2326 of file reader_nl.cpp.
References SCIP_Real, SCIPisInfinity(), SCIPvarGetLbGlobal(), and SCIPvarGetUbGlobal().
|
inline |
Definition at line 2346 of file reader_nl.cpp.
References c, SCIP_CALL_THROW, SCIP_ERROR, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIPerrorMessage, SCIPisInfinity(), SCIPvarGetAggrConstant(), SCIPvarGetMultaggrConstant(), SCIPvarGetName(), SCIPvarGetNegationConstant(), SCIPvarGetStatus(), and var.
|
inline |
Definition at line 2388 of file reader_nl.cpp.
References assert(), i, SCIPconsGetName(), and SCIPvarGetName().
|
inline |
Definition at line 2400 of file reader_nl.cpp.
References assert(), i, SCIP_CALL_THROW, SCIP_ERROR, SCIP_Longint, SCIP_Real, SCIP_VARSTATUS_AGGREGATED, SCIP_VARSTATUS_MULTAGGR, SCIP_VARSTATUS_NEGATED, SCIPconsGetHdlr(), SCIPerrorMessage, SCIPgetNVarsKnapsack(), SCIPgetNVarsLinear(), SCIPgetNVarsLogicor(), SCIPgetNVarsSetppc(), SCIPgetValsLinear(), SCIPgetVarsKnapsack(), SCIPgetVarsLinear(), SCIPgetVarsLogicor(), SCIPgetVarsSetppc(), SCIPgetVarVarbound(), SCIPgetVbdcoefVarbound(), SCIPgetVbdvarVarbound(), SCIPgetWeightsKnapsack(), SCIPvarGetAggrScalar(), SCIPvarGetAggrVar(), SCIPvarGetMultaggrNVars(), SCIPvarGetMultaggrScalars(), SCIPvarGetMultaggrVars(), SCIPvarGetName(), SCIPvarGetNegationVar(), SCIPvarGetStatus(), SCIPvarIsNegated(), and var.
|
inline |
Definition at line 2549 of file reader_nl.cpp.
References assert(), i, NULL, SCIP_EXPRITER_USERDATA::ptrval, SCIP_CALL_THROW, SCIP_EXPRITER_ALLSTAGES, SCIP_EXPRITER_DFS, SCIP_EXPRITER_ENTEREXPR, SCIP_EXPRITER_LEAVEEXPR, SCIP_EXPRITER_VISITEDCHILD, SCIP_EXPRITER_VISITINGCHILD, SCIP_Real, SCIPallocClearBufferArray, SCIPconsGetName(), SCIPcreateExpriter(), SCIPexprGetHdlr(), SCIPexprGetNChildren(), SCIPexprhdlrGetName(), SCIPexpriterGetChildIdxDFS(), SCIPexpriterGetCurrent(), SCIPexpriterGetCurrentUserData(), SCIPexpriterGetExprUserData(), SCIPexpriterGetNext(), SCIPexpriterGetParentDFS(), SCIPexpriterGetStageDFS(), SCIPexpriterInit(), SCIPexpriterIsEnd(), SCIPexpriterSetCurrentUserData(), SCIPexpriterSetStagesDFS(), SCIPexpriterSkipDFS(), SCIPfreeBufferArray, SCIPfreeExpriter(), SCIPgetCoefsExprSum(), SCIPgetConstantExprSum(), SCIPgetExponentExprPow(), SCIPgetExprNonlinear(), SCIPgetValueExprValue(), SCIPgetVarExprVar(), SCIPisExprAbs(), SCIPisExprCos(), SCIPisExprExp(), SCIPisExprLog(), SCIPisExprPower(), SCIPisExprProduct(), SCIPisExprSin(), SCIPisExprSum(), SCIPisExprValue(), SCIPisExprVar(), SCIPvarGetName(), SCIPvarGetNegatedVar(), SCIPvarGetNegationConstant(), SCIPvarIsNegated(), TRUE, and var.
|
inline |
Definition at line 2824 of file reader_nl.cpp.
References c, SCIPconsGetName(), and SCIPvarGetName().
|
inline |
Definition at line 2845 of file reader_nl.cpp.
References SCIPvarGetName().