|
public methods for NLP management
- Author
- Thorsten Gellermann
-
Stefan Vigerske
Definition in file pub_nlp.h.
Go to the source code of this file.
|
|
SCIP_VAR ** | SCIPexprtreeGetVars (SCIP_EXPRTREE *tree) |
|
SCIP_RETCODE | SCIPexprtreeSetVars (SCIP_EXPRTREE *tree, int nvars, SCIP_VAR **vars) |
|
SCIP_RETCODE | SCIPexprtreeAddVars (SCIP_EXPRTREE *tree, int nvars, SCIP_VAR **vars) |
|
SCIP_RETCODE | SCIPexprtreePrintWithNames (SCIP_EXPRTREE *tree, SCIP_MESSAGEHDLR *messagehdlr, FILE *file) |
|
int | SCIPexprtreeFindVar (SCIP_EXPRTREE *tree, SCIP_VAR *var) |
|
|
SCIP_Real | SCIPnlrowGetConstant (SCIP_NLROW *nlrow) |
|
int | SCIPnlrowGetNLinearVars (SCIP_NLROW *nlrow) |
|
SCIP_VAR ** | SCIPnlrowGetLinearVars (SCIP_NLROW *nlrow) |
|
SCIP_Real * | SCIPnlrowGetLinearCoefs (SCIP_NLROW *nlrow) |
|
int | SCIPnlrowGetNQuadVars (SCIP_NLROW *nlrow) |
|
SCIP_VAR ** | SCIPnlrowGetQuadVars (SCIP_NLROW *nlrow) |
|
int | SCIPnlrowSearchQuadVar (SCIP_NLROW *nlrow, SCIP_VAR *var) |
|
int | SCIPnlrowGetNQuadElems (SCIP_NLROW *nlrow) |
|
SCIP_QUADELEM * | SCIPnlrowGetQuadElems (SCIP_NLROW *nlrow) |
|
void | SCIPnlrowGetQuadData (SCIP_NLROW *nlrow, int *nquadvars, SCIP_VAR ***quadvars, int *nquadelems, SCIP_QUADELEM **quadelems) |
|
SCIP_EXPRTREE * | SCIPnlrowGetExprtree (SCIP_NLROW *nlrow) |
|
SCIP_Real | SCIPnlrowGetLhs (SCIP_NLROW *nlrow) |
|
SCIP_Real | SCIPnlrowGetRhs (SCIP_NLROW *nlrow) |
|
const char * | SCIPnlrowGetName (SCIP_NLROW *nlrow) |
|
int | SCIPnlrowGetNLPPos (SCIP_NLROW *nlrow) |
|
SCIP_Bool | SCIPnlrowIsInNLP (SCIP_NLROW *nlrow) |
|
SCIP_Real | SCIPnlrowGetDualsol (SCIP_NLROW *nlrow) |
|
returns variables of expression tree
- Parameters
-
Definition at line 101 of file nlp.c.
References NULL, and SCIP_ExprTree::vars.
Referenced by addConcaveEstimatorBivariate(), addConcaveEstimatorMultivariate(), addConcaveEstimatorUnivariate(), addIntervalGradientEstimator(), addLinearization(), addUserEstimator(), checkCurvature(), computeViolation(), consdataAddExprtrees(), generate1ConvexIndefiniteUnderestimator(), generate1ConvexIndefiniteUnderestimatorAtBoundary(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternA(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternB(), generateConvexConcaveEstimator(), generateConvexConcaveUnderestimator(), generateCut(), generateEstimatingHyperplane(), generateLinearizationCut(), generateOrthogonal_lx_ly_Underestimator(), generateOrthogonal_lx_uy_Underestimator(), generateOverestimatingHyperplaneCut(), generateUnderestimatorParallelYFacets(), getGradientMaxElement(), getLinearAndQuadraticCoefs(), initSepaData(), isConvexLocal(), nlpAddNlRows(), nlpSetupNlpiIndices(), nlrowCalcActivityBounds(), nlrowExprtreeChanged(), printNonlinearRow(), printRowNl(), processNlRow(), readObjective(), registerBranchingVariables(), registerLargeLPValueVariableForBranching(), removeFixedVariables(), SCIP_DECL_CONSACTIVE(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSENFOPS(), SCIP_DECL_CONSEXITPRE(), SCIP_DECL_CONSGETVARS(), SCIP_DECL_CONSINITLP(), SCIP_DECL_CONSTRANS(), SCIP_DECL_EVENTEXEC(), SCIPcreateConsBivariate(), SCIPevalExprtreeGlobalBounds(), SCIPevalExprtreeLocalBounds(), SCIPevalExprtreeSol(), SCIPgetExprtreeTransformedVars(), SCIPnlpGetVarsNonlinearity(), SCIPnlpHasContinuousNonlinearity(), SCIPnlrowGetSolActivity(), SCIPnlrowRecalcNLPActivity(), SCIPnlrowRecalcPseudoActivity(), and SCIPwritePip().
stores array of variables in expression tree
- Parameters
-
tree | expression tree |
nvars | number of variables |
vars | variables |
Definition at line 111 of file nlp.c.
References SCIP_ExprTree::blkmem, BMScopyMemoryArray, BMSduplicateBlockMemoryArray, BMSfreeBlockMemoryArrayNull, BMSreallocBlockMemoryArray, NULL, SCIP_ExprTree::nvars, SCIP_ALLOC, SCIP_OKAY, and SCIP_ExprTree::vars.
Referenced by createConsFromQuadTerm(), createExprtreeFromMonomial(), createNlRow(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternA(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternB(), initSepaData(), readNonlinearExprs(), readPolynomial(), removeFixedVariables(), SCIP_DECL_CONSCOPY(), SCIP_DECL_CONSPARSE(), SCIP_DECL_CONSTRANS(), and SCIPwritePip().
prints an expression tree using variable names from variables array
- Parameters
-
tree | expression tree |
messagehdlr | message handler |
file | file for printing, or NULL for stdout |
Definition at line 172 of file nlp.c.
References BMSallocMemoryArray, BMSfreeMemoryArray, NULL, SCIP_ExprTree::nvars, SCIP_ALLOC, SCIP_OKAY, SCIPexprtreePrint(), SCIPvarGetName(), and SCIP_ExprTree::vars.
Referenced by checkCurvature(), generate1ConvexIndefiniteUnderestimatorAtBoundary(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternA(), generate1ConvexIndefiniteUnderestimatorInTheInteriorPatternB(), generateConvexConcaveUnderestimator(), generateOrthogonal_lx_ly_Underestimator(), generateOrthogonal_lx_uy_Underestimator(), generateUnderestimatorParallelYFacets(), readPolynomial(), SCIP_DECL_CONSPRINT(), and SCIPnlrowPrint().
gives position of variable in quadvars array of row, or -1 if not found
- Parameters
-
nlrow | nonlinear row |
var | variable to search for |
Definition at line 3285 of file nlp.c.
References SCIP_NlRow::nquadvars, NULL, SCIP_NlRow::quadvars, SCIP_NlRow::quadvarshash, SCIPhashmapExists(), and SCIPhashmapGetImage().
Referenced by createNlRow(), nlpDelVarPos(), nlrowRemoveFixedQuadVars(), nlrowRemoveFixedVar(), and SCIPnlrowAddQuadVar().
gets number of quadratic elements in quadratic part
- Parameters
-
Definition at line 3312 of file nlp.c.
References SCIP_NlRow::nquadelems, and NULL.
Referenced by computeInteriorPoint(), createMIP(), createTcliqueGraph(), isCandidate(), nlrowaggrCreate(), processNlRow(), SCIPaddQuadElementsToNlRow(), searchEcAggr(), searchEcAggrWithCliques(), storeAggrFromMIP(), and updateMIP().
gets array with coefficients in linear part
- Parameters
-
nlrow | NLP row |
nquadvars | buffer to store number of variables in quadratic term, or NULL if not of interest |
quadvars | buffer to store pointer to array of variables in quadratic term, or NULL if not of interest |
nquadelems | buffer to store number of entries in quadratic term, or NULL if not of interest |
quadelems | buffer to store pointer to array of entries in quadratic term, or NULL if not of interest |
Definition at line 3332 of file nlp.c.
References SCIP_NlRow::nquadelems, SCIP_NlRow::nquadvars, NULL, SCIP_NlRow::quadelems, and SCIP_NlRow::quadvars.
const char* SCIPnlrowGetName |
( |
SCIP_NLROW * |
nlrow | ) |
|
|