methods for the creation and interaction with rows of the NLP relaxation
SCIP_Real SCIPnlrowGetConstant | ( | SCIP_NLROW * | nlrow | ) |
gets constant
nlrow | NLP row |
Definition at line 3235 of file nlp.c.
References SCIP_NlRow::constant, and NULL.
Referenced by nlrowaggrCreate(), and SCIPcreateNlpiProb().
int SCIPnlrowGetNLinearVars | ( | SCIP_NLROW * | nlrow | ) |
gets number of variables of linear part
nlrow | NLP row |
Definition at line 3245 of file nlp.c.
References SCIP_NlRow::nlinvars, and NULL.
Referenced by applyHeur(), computeGradient(), generateCut(), nlrowaggrCreate(), and SCIPcreateNlpiProb().
SCIP_VAR** SCIPnlrowGetLinearVars | ( | SCIP_NLROW * | nlrow | ) |
gets array with variables of linear part
nlrow | NLP row |
Definition at line 3255 of file nlp.c.
References SCIP_NlRow::linvars, and NULL.
Referenced by computeGradient(), generateCut(), nlrowaggrCreate(), and SCIPcreateNlpiProb().
SCIP_Real* SCIPnlrowGetLinearCoefs | ( | SCIP_NLROW * | nlrow | ) |
gets array with coefficients in linear part
nlrow | NLP row |
Definition at line 3265 of file nlp.c.
References SCIP_NlRow::lincoefs, and NULL.
Referenced by computeGradient(), generateCut(), nlrowaggrCreate(), and SCIPcreateNlpiProb().
int SCIPnlrowGetNQuadVars | ( | SCIP_NLROW * | nlrow | ) |
gets number of quadratic variables in quadratic part
nlrow | NLP row |
Definition at line 3275 of file nlp.c.
References SCIP_NlRow::nquadvars, and NULL.
Referenced by computeGradient(), createMIP(), createTcliqueGraph(), findAndStoreEcAggregations(), isCandidate(), nlrowaggrCreate(), SCIPaddQuadVarsToNlRow(), searchEcAggr(), and searchEcAggrWithCliques().
SCIP_VAR** SCIPnlrowGetQuadVars | ( | SCIP_NLROW * | nlrow | ) |
gets quadratic variables in quadratic part
nlrow | NLP row |
Definition at line 3285 of file nlp.c.
References NULL, and SCIP_NlRow::quadvars.
Referenced by computeGradient(), computeInteriorPoint(), createMIP(), createTcliqueGraph(), generateCut(), isCandidate(), nlrowaggrCreate(), processNlRow(), SCIPcreateNlpiProb(), and searchEcAggr().
int SCIPnlrowSearchQuadVar | ( | SCIP_NLROW * | nlrow, |
SCIP_VAR * | var | ||
) |
gives position of variable in quadvars array of row, or -1 if not found
nlrow | nonlinear row |
var | variable to search for |
Definition at line 3295 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().
int SCIPnlrowGetNQuadElems | ( | SCIP_NLROW * | nlrow | ) |
gets number of quadratic elements in quadratic part
nlrow | NLP row |
Definition at line 3322 of file nlp.c.
References SCIP_NlRow::nquadelems, and NULL.
Referenced by applyHeur(), computeGradient(), computeInteriorPoint(), createMIP(), createTcliqueGraph(), generateCut(), isCandidate(), isNlobbtApplicable(), nlrowaggrCreate(), processNlRow(), SCIPaddQuadElementsToNlRow(), SCIPcreateNlpiProb(), searchEcAggr(), searchEcAggrWithCliques(), storeAggrFromMIP(), storeNonlinearConvexNlrows(), and updateMIP().
SCIP_QUADELEM* SCIPnlrowGetQuadElems | ( | SCIP_NLROW * | nlrow | ) |
gets quadratic elements in quadratic part
nlrow | NLP row |
Definition at line 3332 of file nlp.c.
References NULL, and SCIP_NlRow::quadelems.
Referenced by computeGradient(), computeInteriorPoint(), createMIP(), createTcliqueGraph(), generateCut(), isCandidate(), nlrowaggrCreate(), processNlRow(), SCIPcreateNlpiProb(), searchEcAggrWithCliques(), storeAggrFromMIP(), and updateMIP().
void SCIPnlrowGetQuadData | ( | SCIP_NLROW * | nlrow, |
int * | nquadvars, | ||
SCIP_VAR *** | quadvars, | ||
int * | nquadelems, | ||
SCIP_QUADELEM ** | quadelems | ||
) |
gets array with coefficients in linear part
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 3342 of file nlp.c.
References SCIP_NlRow::nquadelems, SCIP_NlRow::nquadvars, NULL, SCIP_NlRow::quadelems, and SCIP_NlRow::quadvars.
SCIP_EXPRTREE* SCIPnlrowGetExprtree | ( | SCIP_NLROW * | nlrow | ) |
gets expression tree
nlrow | NLP row |
Definition at line 3363 of file nlp.c.
References SCIP_NlRow::exprtree, and NULL.
Referenced by applyHeur(), computeGradient(), generateCut(), isCandidate(), isNlobbtApplicable(), processNlRow(), SCIPcreateNlpiProb(), and storeNonlinearConvexNlrows().
SCIP_Real SCIPnlrowGetLhs | ( | SCIP_NLROW * | nlrow | ) |
returns the left hand side of a nonlinear row
nlrow | NLP row |
Definition at line 3373 of file nlp.c.
References SCIP_NlRow::lhs, and NULL.
Referenced by computeMaxViolation(), findAndStoreEcAggregations(), findPointPosition(), generateCut(), isCandidate(), isNlobbtApplicable(), nlrowaggrCreate(), processNlRow(), SCIP_DECL_SEPAEXECLP(), SCIPcreateNlpiProb(), separateCuts(), and storeNonlinearConvexNlrows().
SCIP_Real SCIPnlrowGetRhs | ( | SCIP_NLROW * | nlrow | ) |
returns the right hand side of a nonlinear row
nlrow | NLP row |
Definition at line 3383 of file nlp.c.
References NULL, and SCIP_NlRow::rhs.
Referenced by computeMaxViolation(), findAndStoreEcAggregations(), findPointPosition(), generateCut(), improvePoint(), isCandidate(), isNlobbtApplicable(), nlrowaggrCreate(), processNlRow(), SCIP_DECL_SEPAEXECLP(), SCIPcreateNlpiProb(), separateCuts(), and storeNonlinearConvexNlrows().
SCIP_EXPRCURV SCIPnlrowGetCurvature | ( | SCIP_NLROW * | nlrow | ) |
returns the curvature of a nonlinear row
nlrow | NLP row |
Definition at line 3393 of file nlp.c.
References SCIP_NlRow::curvature, and NULL.
Referenced by computeMaxViolation(), isNlobbtApplicable(), SCIPcreateNlpiProb(), and storeNonlinearConvexNlrows().
void SCIPnlrowSetCurvature | ( | SCIP_NLROW * | nlrow, |
SCIP_EXPRCURV | curvature | ||
) |
sets the curvature of a nonlinear row
nlrow | NLP row |
curvature | curvature of NLP row |
Definition at line 3402 of file nlp.c.
References SCIP_NlRow::curvature, and NULL.
Referenced by SCIPaddQuadElementsToNlRow(), SCIPaddQuadElementToNlRow(), and SCIPsetNlRowExprtree().
const char* SCIPnlrowGetName | ( | SCIP_NLROW * | nlrow | ) |
returns the name of a nonlinear row
nlrow | NLP row |
Definition at line 3412 of file nlp.c.
References SCIP_NlRow::name, and NULL.
Referenced by findPointPosition(), generateCut(), processNlRow(), SCIPcreateNlpiProb(), and separateCuts().
int SCIPnlrowGetNLPPos | ( | SCIP_NLROW * | nlrow | ) |
gets position of a nonlinear row in current NLP, or -1 if not in NLP
nlrow | NLP row |
Definition at line 3422 of file nlp.c.
References SCIP_NlRow::nlpindex, and NULL.
SCIP_Bool SCIPnlrowIsInNLP | ( | SCIP_NLROW * | nlrow | ) |
returns TRUE iff row is member of current NLP
nlrow | NLP row |
Definition at line 3432 of file nlp.c.
References SCIP_NlRow::nlpindex, and NULL.
Referenced by computeCut(), isCandidate(), and isPossibleToComputeCut().
SCIP_Real SCIPnlrowGetDualsol | ( | SCIP_NLROW * | nlrow | ) |
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
nlrow | NLP row |
Definition at line 3444 of file nlp.c.
References SCIP_NlRow::dualsol, SCIP_NlRow::nlpiindex, and NULL.
Referenced by SCIPapplyHeurDualval().
SCIP_RETCODE SCIPcreateNlRow | ( | SCIP * | scip, |
SCIP_NLROW ** | nlrow, | ||
const char * | name, | ||
SCIP_Real | constant, | ||
int | nlinvars, | ||
SCIP_VAR ** | linvars, | ||
SCIP_Real * | lincoefs, | ||
int | nquadvars, | ||
SCIP_VAR ** | quadvars, | ||
int | nquadelems, | ||
SCIP_QUADELEM * | quadelems, | ||
SCIP_EXPRTREE * | expression, | ||
SCIP_Real | lhs, | ||
SCIP_Real | rhs, | ||
SCIP_EXPRCURV | curvature | ||
) |
creates and captures an NLP row
scip | SCIP data structure |
nlrow | buffer to store pointer to nonlinear row |
name | name of nonlinear row |
constant | constant |
nlinvars | number of linear variables |
linvars | linear variables, or NULL if nlinvars == 0 |
lincoefs | linear coefficients, or NULL if nlinvars == 0 |
nquadvars | number variables in quadratic terms |
quadvars | variables in quadratic terms, or NULL if nquadvars == 0 |
nquadelems | number of elements in quadratic term |
quadelems | elements (i.e., monomials) in quadratic term, or NULL if nquadelems == 0 |
expression | nonlinear expression, or NULL |
lhs | left hand side |
rhs | right hand side |
curvature | curvature of the nonlinear row |
Definition at line 31793 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowCreate(), Scip::set, and TRUE.
Referenced by addKnapsackConstraints(), addLinearConstraints(), addLogicOrConstraints(), addSetppcConstraints(), addVarboundConstraints(), createNlRow(), and SCIP_DECL_CONSINITSOL().
SCIP_RETCODE SCIPcreateEmptyNlRow | ( | SCIP * | scip, |
SCIP_NLROW ** | nlrow, | ||
const char * | name, | ||
SCIP_Real | lhs, | ||
SCIP_Real | rhs | ||
) |
creates and captures an NLP nonlinear row without any coefficients
scip | SCIP data structure |
nlrow | pointer to nonlinear row |
name | name of nonlinear row |
lhs | left hand side |
rhs | right hand side |
Definition at line 31829 of file scip.c.
References checkStage(), FALSE, Scip::mem, NULL, SCIP_Mem::probmem, SCIP_CALL, SCIP_EXPRCURV_UNKNOWN, SCIP_OKAY, SCIPnlrowCreate(), Scip::set, and TRUE.
SCIP_RETCODE SCIPcreateNlRowFromRow | ( | SCIP * | scip, |
SCIP_NLROW ** | nlrow, | ||
SCIP_ROW * | row | ||
) |
creates and captures an NLP row from a linear row
scip | SCIP data structure |
nlrow | pointer to nonlinear row |
row | the linear row to copy |
Definition at line 31855 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowCreateFromRow(), Scip::set, and TRUE.
SCIP_RETCODE SCIPcaptureNlRow | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow | ||
) |
increases usage counter of NLP nonlinear row
scip | SCIP data structure |
nlrow | nonlinear row to capture |
Definition at line 31878 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnlrowCapture(), and TRUE.
SCIP_RETCODE SCIPreleaseNlRow | ( | SCIP * | scip, |
SCIP_NLROW ** | nlrow | ||
) |
decreases usage counter of NLP nonlinear row, and frees memory if necessary
scip | SCIP data structure |
nlrow | pointer to nonlinear row |
Definition at line 31901 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowRelease(), Scip::set, and TRUE.
Referenced by addBilinearTerm(), addKnapsackConstraints(), addLinearCoef(), addLinearConstraints(), addLogicOrConstraints(), addQuadVarTerm(), addSetppcConstraints(), addVarboundConstraints(), chgLinearCoefPos(), consdataAddExprtrees(), consdataFree(), consdataSetExprtrees(), createNlRow(), delLinearCoefPos(), delQuadVarTermPos(), mergeAndCleanQuadVarTerms(), presolveDisaggregate(), presolveRemoveFixedVariables(), releaseHashmapNLPRows(), removeBilinearTermsPos(), replaceQuadVarTermPos(), SCIP_DECL_CONSDELETE(), SCIP_DECL_CONSEXITSOL(), and SCIP_DECL_CONSINITSOL().
SCIP_RETCODE SCIPchgNlRowLhs | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real | lhs | ||
) |
changes left hand side of NLP nonlinear row
scip | SCIP data structure |
nlrow | NLP nonlinear row |
lhs | new left hand side |
Definition at line 31923 of file scip.c.
References checkStage(), FALSE, Scip::nlp, SCIP_CALL, SCIP_OKAY, SCIPnlrowChgLhs(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPchgNlRowRhs | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real | rhs | ||
) |
changes right hand side of NLP nonlinear row
scip | SCIP data structure |
nlrow | NLP nonlinear row |
rhs | new right hand side |
Definition at line 31946 of file scip.c.
References checkStage(), FALSE, Scip::nlp, SCIP_CALL, SCIP_OKAY, SCIPnlrowChgRhs(), Scip::set, Scip::stat, and TRUE.
Referenced by createNlRow().
SCIP_RETCODE SCIPchgNlRowConstant | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real | constant | ||
) |
changes constant of NLP nonlinear row
scip | SCIP data structure |
nlrow | NLP row |
constant | new value for constant |
Definition at line 31969 of file scip.c.
References checkStage(), FALSE, Scip::nlp, SCIP_CALL, SCIP_OKAY, SCIPnlrowChgConstant(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPaddLinearCoefToNlRow | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_VAR * | var, | ||
SCIP_Real | val | ||
) |
adds variable with a linear coefficient to the nonlinear row
scip | SCIP data structure |
nlrow | NLP row |
var | problem variable |
val | value of coefficient in linear part of row |
Definition at line 31992 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::nlp, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowAddLinearCoef(), Scip::set, Scip::stat, and TRUE.
Referenced by createNlRow().
SCIP_RETCODE SCIPaddLinearCoefsToNlRow | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
int | nvars, | ||
SCIP_VAR ** | vars, | ||
SCIP_Real * | vals | ||
) |
adds variables with linear coefficients to the row
scip | SCIP data structure |
nlrow | NLP row |
nvars | number of variables to add to the row |
vars | problem variables to add |
vals | values of coefficients in linear part of row |
Definition at line 32016 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::nlp, NULL, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowAddLinearCoef(), Scip::set, Scip::stat, and TRUE.
Referenced by createNlRow().
SCIP_RETCODE SCIPchgNlRowLinearCoef | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_VAR * | var, | ||
SCIP_Real | coef | ||
) |
changes linear coefficient of a variables in a row
Setting the coefficient to 0.0 means that it is removed from the row the variable does not need to exists before.
scip | SCIP data structure |
nlrow | NLP row |
var | variable |
coef | new value of coefficient |
Definition at line 32053 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::nlp, NULL, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowChgLinearCoef(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPaddQuadVarToNlRow | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_VAR * | var | ||
) |
adds quadratic variable to the nonlinear row
After adding a quadratic variable, it can be used to add quadratic elements.
scip | SCIP data structure |
nlrow | NLP row |
var | problem variable |
Definition at line 32081 of file scip.c.
References checkStage(), FALSE, Scip::mem, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowAddQuadVar(), Scip::set, and TRUE.
Referenced by createNlRow().
SCIP_RETCODE SCIPaddQuadVarsToNlRow | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
int | nvars, | ||
SCIP_VAR ** | vars | ||
) |
adds quadratic variables to the nonlinear row
After adding quadratic variables, they can be used to add quadratic elements.
scip | SCIP data structure |
nlrow | NLP row |
nvars | number of problem variables |
vars | problem variables |
Definition at line 32106 of file scip.c.
References checkStage(), FALSE, Scip::mem, NULL, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowAddQuadVar(), SCIPnlrowEnsureQuadVarsSize(), SCIPnlrowGetNQuadVars(), Scip::set, and TRUE.
SCIP_RETCODE SCIPaddQuadElementToNlRow | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_QUADELEM | quadelem | ||
) |
add a quadratic element to the nonlinear row
Variable indices of the quadratic element need to be relative to quadratic variables array of row.
scip | SCIP data structure |
nlrow | NLP row |
quadelem | quadratic element |
Definition at line 32140 of file scip.c.
References checkStage(), SCIP_QuadElement::coef, FALSE, Scip::mem, Scip::nlp, SCIP_Mem::probmem, SCIP_CALL, SCIP_EXPRCURV_UNKNOWN, SCIP_OKAY, SCIPnlrowAddQuadElement(), SCIPnlrowSetCurvature(), Scip::set, Scip::stat, and TRUE.
Referenced by createNlRow().
SCIP_RETCODE SCIPaddQuadElementsToNlRow | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
int | nquadelems, | ||
SCIP_QUADELEM * | quadelems | ||
) |
adds quadratic elements to the nonlinear row
Variable indices of the quadratic elements need to be relative to quadratic variables array of row.
scip | SCIP data structure |
nlrow | NLP row |
nquadelems | number of quadratic elements |
quadelems | quadratic elements |
Definition at line 32169 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::nlp, NULL, SCIP_Mem::probmem, SCIP_CALL, SCIP_EXPRCURV_UNKNOWN, SCIP_OKAY, SCIPnlrowAddQuadElement(), SCIPnlrowEnsureQuadElementsSize(), SCIPnlrowGetNQuadElems(), SCIPnlrowSetCurvature(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPchgNlRowQuadElement | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_QUADELEM | quadelement | ||
) |
changes coefficient in quadratic part of a row
Setting the coefficient in the quadelement to 0.0 means that it is removed from the row the element does not need to exists before.
scip | SCIP data structure |
nlrow | NLP row |
quadelement | new quadratic element, or update for existing one |
Definition at line 32207 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::nlp, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowChgQuadElem(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPsetNlRowExprtree | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_EXPRTREE * | exprtree | ||
) |
sets or deletes expression tree in the nonlinear row
scip | SCIP data structure |
nlrow | NLP row |
exprtree | expression tree, or NULL |
Definition at line 32230 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::nlp, SCIP_Mem::probmem, SCIP_CALL, SCIP_EXPRCURV_UNKNOWN, SCIP_OKAY, SCIPnlrowChgExprtree(), SCIPnlrowSetCurvature(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPsetNlRowExprtreeParam | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
int | paramidx, | ||
SCIP_Real | paramval | ||
) |
sets a parameter of expression tree in the nonlinear row
scip | SCIP data structure |
nlrow | NLP row |
paramidx | index of parameter in expression tree |
paramval | new value of parameter in expression tree |
Definition at line 32256 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::nlp, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowChgExprtreeParam(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPsetNlRowExprtreeParams | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real * | paramvals | ||
) |
sets parameters of expression tree in the nonlinear row
scip | SCIP data structure |
nlrow | NLP row |
paramvals | new values of parameter in expression tree |
Definition at line 32280 of file scip.c.
References checkStage(), FALSE, Scip::mem, Scip::nlp, SCIP_Mem::probmem, SCIP_CALL, SCIP_OKAY, SCIPnlrowChgExprtreeParams(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPrecalcNlRowNLPActivity | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow | ||
) |
recalculates the activity of a nonlinear row in the last NLP solution
scip | SCIP data structure |
nlrow | NLP nonlinear row |
Definition at line 32303 of file scip.c.
References checkStage(), FALSE, Scip::nlp, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPnlrowRecalcNLPActivity(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPgetNlRowNLPActivity | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real * | activity | ||
) |
returns the activity of a nonlinear row in the last NLP solution
scip | SCIP data structure |
nlrow | NLP nonlinear row |
activity | pointer to store activity value |
Definition at line 32330 of file scip.c.
References checkStage(), FALSE, Scip::nlp, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPnlrowGetNLPActivity(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPgetNlRowNLPFeasibility | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real * | feasibility | ||
) |
gives the feasibility of a nonlinear row in the last NLP solution: negative value means infeasibility
scip | SCIP data structure |
nlrow | NLP nonlinear row |
feasibility | pointer to store feasibility value |
Definition at line 32358 of file scip.c.
References checkStage(), FALSE, Scip::nlp, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPerrorMessage, SCIPnlrowGetNLPFeasibility(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPrecalcNlRowPseudoActivity | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow | ||
) |
recalculates the activity of a nonlinear row for the current pseudo solution
scip | SCIP data structure |
nlrow | NLP nonlinear row |
Definition at line 32386 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnlrowRecalcPseudoActivity(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPgetNlRowPseudoActivity | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real * | pseudoactivity | ||
) |
gives the activity of a nonlinear row for the current pseudo solution
scip | SCIP data structure |
nlrow | NLP nonlinear row |
pseudoactivity | pointer to store pseudo activity value |
Definition at line 32407 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnlrowGetPseudoActivity(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPgetNlRowPseudoFeasibility | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real * | pseudofeasibility | ||
) |
gives the feasibility of a nonlinear row for the current pseudo solution: negative value means infeasibility
scip | SCIP data structure |
nlrow | NLP nonlinear row |
pseudofeasibility | pointer to store pseudo feasibility value |
Definition at line 32429 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnlrowGetPseudoFeasibility(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPrecalcNlRowActivity | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow | ||
) |
recalculates the activity of a nonlinear row in the last NLP or pseudo solution
scip | SCIP data structure |
nlrow | NLP nonlinear row |
Definition at line 32451 of file scip.c.
References checkStage(), FALSE, Scip::nlp, NULL, SCIP_CALL, SCIP_OKAY, SCIPnlpHasCurrentNodeNLP(), SCIPnlpHasSolution(), SCIPnlrowRecalcNLPActivity(), SCIPnlrowRecalcPseudoActivity(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPgetNlRowActivity | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real * | activity | ||
) |
gives the activity of a nonlinear row in the last NLP or pseudo solution
scip | SCIP data structure |
nlrow | NLP nonlinear row |
activity | pointer to store activity value |
Definition at line 32479 of file scip.c.
References checkStage(), FALSE, Scip::nlp, NULL, SCIP_CALL, SCIP_OKAY, SCIPnlpHasCurrentNodeNLP(), SCIPnlpHasSolution(), SCIPnlrowGetNLPActivity(), SCIPnlrowGetPseudoActivity(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPgetNlRowFeasibility | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real * | feasibility | ||
) |
gives the feasibility of a nonlinear row in the last NLP or pseudo solution
scip | SCIP data structure |
nlrow | NLP nonlinear row |
feasibility | pointer to store feasibility value |
Definition at line 32508 of file scip.c.
References checkStage(), FALSE, Scip::nlp, NULL, SCIP_CALL, SCIP_OKAY, SCIPnlpHasCurrentNodeNLP(), SCIPnlpHasSolution(), SCIPnlrowGetNLPFeasibility(), SCIPnlrowGetPseudoFeasibility(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPgetNlRowSolActivity | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_SOL * | sol, | ||
SCIP_Real * | activity | ||
) |
gives the activity of a nonlinear row for the given primal solution or NLP solution or pseudo solution
scip | SCIP data structure |
nlrow | NLP nonlinear row |
sol | primal CIP solution, or NULL for NLP solution of pseudo solution |
activity | pointer to store activity value |
Definition at line 32537 of file scip.c.
References checkStage(), FALSE, Scip::nlp, NULL, SCIP_CALL, SCIP_OKAY, SCIPnlpHasCurrentNodeNLP(), SCIPnlpHasSolution(), SCIPnlrowGetNLPActivity(), SCIPnlrowGetPseudoActivity(), SCIPnlrowGetSolActivity(), Scip::set, Scip::stat, and TRUE.
Referenced by computeMaxViolation(), findPointPosition(), generateCut(), improvePoint(), SCIP_DECL_SEPAEXECLP(), and separateCuts().
SCIP_RETCODE SCIPgetNlRowSolFeasibility | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_SOL * | sol, | ||
SCIP_Real * | feasibility | ||
) |
gives the feasibility of a nonlinear row for the given primal solution
scip | SCIP data structure |
nlrow | NLP nonlinear row |
sol | primal CIP solution |
feasibility | pointer to store feasibility value |
Definition at line 32571 of file scip.c.
References checkStage(), FALSE, Scip::nlp, NULL, SCIP_CALL, SCIP_OKAY, SCIPnlpHasCurrentNodeNLP(), SCIPnlpHasSolution(), SCIPnlrowGetNLPFeasibility(), SCIPnlrowGetPseudoFeasibility(), SCIPnlrowGetSolFeasibility(), Scip::set, Scip::stat, and TRUE.
Referenced by getMinFeas(), and improvePoint().
SCIP_RETCODE SCIPgetNlRowActivityBounds | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
SCIP_Real * | minactivity, | ||
SCIP_Real * | maxactivity | ||
) |
gives the minimal and maximal activity of a nonlinear row w.r.t. the variable's bounds
scip | SCIP data structure |
nlrow | NLP row |
minactivity | buffer to store minimal activity, or NULL |
maxactivity | buffer to store maximal activity, or NULL |
Definition at line 32606 of file scip.c.
References checkStage(), FALSE, SCIP_CALL, SCIP_OKAY, SCIPnlrowGetActivityBounds(), Scip::set, Scip::stat, and TRUE.
SCIP_RETCODE SCIPprintNlRow | ( | SCIP * | scip, |
SCIP_NLROW * | nlrow, | ||
FILE * | file | ||
) |
output nonlinear row to file stream
scip | SCIP data structure |
nlrow | NLP row |
file | output file (or NULL for standard output) |
Definition at line 32630 of file scip.c.
References checkStage(), FALSE, Scip::messagehdlr, NULL, SCIP_CALL, SCIP_OKAY, SCIPnlrowPrint(), and TRUE.
Referenced by createNlRow(), findPointPosition(), and separateCuts().