C++ wrapper for propagators. More...
#include <scipParaObjProp.h>
Public Member Functions | |
ScipParaObjProp (UG::ParaComm *comm, ScipParaSolver *inSolver) | |
virtual | ~ScipParaObjProp () |
SCIP_RETCODE | applyBoundChanges (SCIP *scip, int &ntightened, int &ntightenedint, SCIP_RESULT *result) |
virtual | SCIP_DECL_PROPPRESOL (scip_presol) |
virtual | SCIP_DECL_PROPEXEC (scip_exec) |
SCIP_RETCODE | tryToTightenBound (SCIP *scip, SCIP_BOUNDTYPE boundType, SCIP_VAR *var, SCIP_Real bound, SCIP_Result *result, int &ntightened, int &ntightenedint) |
void | addBoundChange (SCIP *scip, SCIP_BOUNDTYPE boundType, int index, SCIP_Real bound) |
int | getNtightened () |
int | getNtightenedInt () |
Private Attributes | |
std::list< BoundChange * > | boundChanges |
ScipParaSolver * | solver |
int | ntotaltightened |
int | ntotaltightenedint |
C++ wrapper for propagators.
This class defines the interface for propagators implemented in C++. Note that there is a pure virtual function (this function has to be implemented). This function is: scip_exec().
Definition at line 67 of file scipParaObjProp.h.
ScipParaObjProp | ( | UG::ParaComm * | comm, |
ScipParaSolver * | inSolver | ||
) |
default constructor
Definition at line 76 of file scipParaObjProp.h.
|
virtual |
destructor
Definition at line 96 of file scipParaObjProp.h.
void addBoundChange | ( | SCIP * | scip, |
SCIP_BOUNDTYPE | boundType, | ||
int | index, | ||
SCIP_Real | bound | ||
) |
Definition at line 279 of file scipParaObjProp.h.
References BoundChange::bound, BoundChange::boundType, and BoundChange::index.
Referenced by ScipParaSolver::lbBoundTightened(), and ScipParaSolver::ubBoundTightened().
SCIP_RETCODE applyBoundChanges | ( | SCIP * | scip, |
int & | ntightened, | ||
int & | ntightenedint, | ||
SCIP_RESULT * | result | ||
) |
execution method of propagator
Definition at line 111 of file scipParaObjProp.h.
References BoundChange::bound, BoundChange::boundType, and BoundChange::index.
int getNtightened | ( | ) |
Definition at line 289 of file scipParaObjProp.h.
Referenced by ScipParaSolver::getNTightened().
int getNtightenedInt | ( | ) |
Definition at line 290 of file scipParaObjProp.h.
Referenced by ScipParaSolver::getNTightenedInt().
|
virtual |
execution method of propagator
Definition at line 216 of file scipParaObjProp.h.
References BbParaSolver::getPendingIncumbentValue().
|
virtual |
presolving method of propagator
Definition at line 182 of file scipParaObjProp.h.
References BbParaSolver::getPendingIncumbentValue().
SCIP_RETCODE tryToTightenBound | ( | SCIP * | scip, |
SCIP_BOUNDTYPE | boundType, | ||
SCIP_VAR * | var, | ||
SCIP_Real | bound, | ||
SCIP_Result * | result, | ||
int & | ntightened, | ||
int & | ntightenedint | ||
) |
Definition at line 246 of file scipParaObjProp.h.
|
private |
Definition at line 70 of file scipParaObjProp.h.
|
private |
Definition at line 72 of file scipParaObjProp.h.
|
private |
Definition at line 73 of file scipParaObjProp.h.
|
private |
Definition at line 71 of file scipParaObjProp.h.