Scippy

UG

Ubiquity Generator framework

ScipParaObjProp Class Reference

C++ wrapper for propagators. More...

#include <scipParaObjProp.h>

+ Inheritance diagram for ScipParaObjProp:

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
 
ScipParaSolversolver
 
int ntotaltightened
 
int ntotaltightenedint
 

Detailed Description

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().

  • Instructions for implementing a propagator
  • List of available propagators
  • Corresponding C interface

Definition at line 67 of file scipParaObjProp.h.

Constructor & Destructor Documentation

◆ ScipParaObjProp()

ScipParaObjProp ( UG::ParaComm comm,
ScipParaSolver inSolver 
)

default constructor

Definition at line 76 of file scipParaObjProp.h.

◆ ~ScipParaObjProp()

virtual ~ScipParaObjProp ( )
virtual

destructor

Definition at line 96 of file scipParaObjProp.h.

Member Function Documentation

◆ addBoundChange()

void addBoundChange ( SCIP *  scip,
SCIP_BOUNDTYPE  boundType,
int  index,
SCIP_Real  bound 
)

◆ applyBoundChanges()

SCIP_RETCODE applyBoundChanges ( SCIP *  scip,
int &  ntightened,
int &  ntightenedint,
SCIP_RESULT *  result 
)

execution method of propagator

See also
SCIP_DECL_PROPEXEC(x) in type_prop.h

Definition at line 111 of file scipParaObjProp.h.

References BoundChange::bound, BoundChange::boundType, and BoundChange::index.

◆ getNtightened()

int getNtightened ( )

Definition at line 289 of file scipParaObjProp.h.

Referenced by ScipParaSolver::getNTightened().

◆ getNtightenedInt()

int getNtightenedInt ( )

Definition at line 290 of file scipParaObjProp.h.

Referenced by ScipParaSolver::getNTightenedInt().

◆ SCIP_DECL_PROPEXEC()

virtual SCIP_DECL_PROPEXEC ( scip_exec  )
virtual

execution method of propagator

See also
SCIP_DECL_PROPEXEC(x) in type_prop.h

Definition at line 216 of file scipParaObjProp.h.

References BbParaSolver::getPendingIncumbentValue().

◆ SCIP_DECL_PROPPRESOL()

virtual SCIP_DECL_PROPPRESOL ( scip_presol  )
virtual

presolving method of propagator

See also
SCIP_DECL_PROPPRESOL(x) in type_prop.h

Definition at line 182 of file scipParaObjProp.h.

References BbParaSolver::getPendingIncumbentValue().

◆ tryToTightenBound()

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.

Member Data Documentation

◆ boundChanges

std::list<BoundChange *> boundChanges
private

Definition at line 70 of file scipParaObjProp.h.

◆ ntotaltightened

int ntotaltightened
private

Definition at line 72 of file scipParaObjProp.h.

◆ ntotaltightenedint

int ntotaltightenedint
private

Definition at line 73 of file scipParaObjProp.h.

◆ solver

ScipParaSolver* solver
private

Definition at line 71 of file scipParaObjProp.h.