All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pub_nlp.h File Reference Detailed Descriptionpublic methods for NLP management Definition in file pub_nlp.h. #include <stdio.h> #include "scip/def.h" #include "scip/type_message.h" #include "blockmemshell/memory.h" #include "scip/type_set.h" #include "scip/type_stat.h" #include "scip/type_nlp.h" #include "scip/type_var.h" #include "scip/type_sol.h" #include "nlpi/type_expr.h" #include "nlpi/type_nlpi.h" Go to the source code of this file. Function Documentation
returns variables of expression tree
Definition at line 101 of file nlp.c. References NULL, and SCIP_ExprTree::vars. Referenced by addConcaveEstimatorBivariate(), addConcaveEstimatorMultivariate(), addConcaveEstimatorUnivariate(), addIntervalGradientEstimator(), addLinearization(), 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
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().
adds variables to the expression tree variables array
Definition at line 143 of file nlp.c. References SCIP_ExprTree::blkmem, BMScopyMemoryArray, BMSduplicateBlockMemoryArray, BMSreallocBlockMemoryArray, NULL, SCIP_ExprTree::nvars, SCIP_ALLOC, SCIP_OKAY, and SCIP_ExprTree::vars. Referenced by createNlRow(), and SCIPexprtreeRemoveFixedVars().
prints an expression tree using variable names from variables array
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().
searches the variables array of an expression tree for a variable and returns its position, or -1 if not found Note that this is an O(n) operation!
Definition at line 205 of file nlp.c. References NULL, SCIP_ExprTree::nvars, and SCIP_ExprTree::vars. Referenced by nlpDelVarPos(), and nlrowRemoveFixedVar().
gets constant
Definition at line 3225 of file nlp.c. References SCIP_NlRow::constant, and NULL.
gets number of variables of linear part
Definition at line 3235 of file nlp.c. References SCIP_NlRow::nlinvars, and NULL.
gets array with variables of linear part
Definition at line 3245 of file nlp.c. References SCIP_NlRow::linvars, and NULL.
gets array with coefficients in linear part
Definition at line 3255 of file nlp.c. References SCIP_NlRow::lincoefs, and NULL.
gets number of quadratic variables in quadratic part
Definition at line 3265 of file nlp.c. References SCIP_NlRow::nquadvars, and NULL. Referenced by SCIP_DECL_HEUREXEC(), and SCIPaddQuadVarsToNlRow().
gets quadratic variables in quadratic part
Definition at line 3275 of file nlp.c. References NULL, and SCIP_NlRow::quadvars. Referenced by processNlRow().
gives position of variable in quadvars array of row, or -1 if not found
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
Definition at line 3312 of file nlp.c. References SCIP_NlRow::nquadelems, and NULL. Referenced by processNlRow(), and SCIPaddQuadElementsToNlRow().
gets quadratic elements in quadratic part
Definition at line 3322 of file nlp.c. References NULL, and SCIP_NlRow::quadelems. Referenced by processNlRow().
gets array with coefficients in linear part
Definition at line 3332 of file nlp.c. References SCIP_NlRow::nquadelems, SCIP_NlRow::nquadvars, NULL, SCIP_NlRow::quadelems, and SCIP_NlRow::quadvars.
gets expression tree
Definition at line 3353 of file nlp.c. References SCIP_NlRow::exprtree, and NULL. Referenced by processNlRow(), and SCIP_DECL_HEUREXEC().
returns the left hand side of a nonlinear row
Definition at line 3363 of file nlp.c. References SCIP_NlRow::lhs, and NULL. Referenced by processNlRow().
returns the right hand side of a nonlinear row
Definition at line 3373 of file nlp.c. References NULL, and SCIP_NlRow::rhs. Referenced by processNlRow().
returns the name of a nonlinear row
Definition at line 3383 of file nlp.c. References SCIP_NlRow::name, and NULL. Referenced by processNlRow().
gets position of a nonlinear row in current NLP, or -1 if not in NLP
Definition at line 3393 of file nlp.c. References SCIP_NlRow::nlpindex, and NULL.
returns TRUE iff row is member of current NLP
Definition at line 3403 of file nlp.c. References SCIP_NlRow::nlpindex, and NULL.
gets the dual NLP solution of a nlrow for a ranged constraint, the dual value is positive if the right hand side is active and negative if the left hand side is active
Definition at line 3415 of file nlp.c. References SCIP_NlRow::dualsol, SCIP_NlRow::nlpiindex, and NULL. Referenced by SCIPapplyHeurDualval(). |