Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

methods to initiate and conduct NLP Diving

Functions

SCIP_RETCODE SCIPstartDiveNLP (SCIP *scip)
 
SCIP_RETCODE SCIPendDiveNLP (SCIP *scip)
 
SCIP_RETCODE SCIPchgVarObjDiveNLP (SCIP *scip, SCIP_VAR *var, SCIP_Real coef)
 
SCIP_RETCODE SCIPchgVarBoundsDiveNLP (SCIP *scip, SCIP_VAR *var, SCIP_Real lb, SCIP_Real ub)
 
SCIP_RETCODE SCIPchgVarsBoundsDiveNLP (SCIP *scip, int nvars, SCIP_VAR **vars, SCIP_Real *lbs, SCIP_Real *ubs)
 

Function Documentation

◆ SCIPstartDiveNLP()

SCIP_RETCODE SCIPstartDiveNLP ( SCIP scip)

initiates NLP diving

Makes functions SCIPchgVarObjDiveNLP(), SCIPchgVarBoundsDiveNLP() and SCIPchgVarsBoundsDiveNLP() available. Further, SCIPsolveNLP() can be used to solve the diving NLP.

Returns
SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
Precondition
This method can be called if SCIP is in one of the following stages:
Parameters
scipSCIP data structure

Definition at line 802 of file scip_nlp.c.

References FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPblkmem(), SCIPcheckStage(), SCIPerrorMessage, SCIPnlpStartDive(), and TRUE.

Referenced by getFixingValue().

◆ SCIPendDiveNLP()

SCIP_RETCODE SCIPendDiveNLP ( SCIP scip)

ends NLP diving

Resets changes made by SCIPchgVarObjDiveNLP(), SCIPchgVarBoundsDiveNLP(), and SCIPchgVarsBoundsDiveNLP().

Returns
SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
Precondition
This method can be called if SCIP is in one of the following stages:
Parameters
scipSCIP data structure

Definition at line 830 of file scip_nlp.c.

References FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPblkmem(), SCIPcheckStage(), SCIPerrorMessage, SCIPnlpEndDive(), and TRUE.

Referenced by SCIPapplyUndercover().

◆ SCIPchgVarObjDiveNLP()

SCIP_RETCODE SCIPchgVarObjDiveNLP ( SCIP scip,
SCIP_VAR var,
SCIP_Real  coef 
)

changes linear objective coefficient of a variable in diving NLP

Returns
SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
Precondition
This method can be called if SCIP is in one of the following stages:
Parameters
scipSCIP data structure
varvariable which coefficient to change
coefnew value for coefficient

Definition at line 856 of file scip_nlp.c.

References FALSE, NULL, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPblkmem(), SCIPcheckStage(), SCIPerrorMessage, SCIPnlpChgVarObjDive(), and TRUE.

◆ SCIPchgVarBoundsDiveNLP()

SCIP_RETCODE SCIPchgVarBoundsDiveNLP ( SCIP scip,
SCIP_VAR var,
SCIP_Real  lb,
SCIP_Real  ub 
)

changes bounds of a variable in diving NLP

Returns
SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
Precondition
This method can be called if SCIP is in one of the following stages:
Parameters
scipSCIP data structure
varvariable which bounds to change
lbnew lower bound
ubnew upper bound

Definition at line 886 of file scip_nlp.c.

References FALSE, NULL, SCIP_Var::scip, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPcheckStage(), SCIPerrorMessage, SCIPnlpChgVarBoundsDive(), and TRUE.

Referenced by getFixingValue().

◆ SCIPchgVarsBoundsDiveNLP()

SCIP_RETCODE SCIPchgVarsBoundsDiveNLP ( SCIP scip,
int  nvars,
SCIP_VAR **  vars,
SCIP_Real lbs,
SCIP_Real ubs 
)

changes bounds of a set of variables in diving NLP

Returns
SCIP_OKAY is returned if everything worked. Otherwise a suitable error code is passed. See SCIP_RETCODE for a complete list of error codes.
Precondition
This method can be called if SCIP is in one of the following stages:
Parameters
scipSCIP data structure
nvarsnumber of variables which bounds to changes
varsvariables which bounds to change
lbsnew lower bounds
ubsnew upper bounds

Definition at line 917 of file scip_nlp.c.

References FALSE, NULL, SCIP_CALL, SCIP_INVALIDCALL, SCIP_OKAY, SCIPcheckStage(), SCIPerrorMessage, SCIPnlpChgVarsBoundsDive(), and TRUE.