Scippy

UG

Ubiquity Generator framework

ScipParaDiffSubproblemTh Class Reference

#include <scipParaDiffSubproblemTh.h>

Inheritance diagram for ScipParaDiffSubproblemTh:
ScipParaDiffSubproblem BbParaDiffSubproblem ParaDiffSubproblem

Public Member Functions

 ScipParaDiffSubproblemTh ()
 
 ScipParaDiffSubproblemTh (SCIP *inScip, ScipParaSolver *inScipParaSolver, int inNNewBranchVars, SCIP_VAR **inNewBranchVars, SCIP_Real *inNewBranchBounds, SCIP_BOUNDTYPE *inNewBoundTypes, int nAddedConss, SCIP_CONS **addedConss)
 
 ScipParaDiffSubproblemTh (ScipParaDiffSubproblem *paraDiffSubproblem)
 
 ~ScipParaDiffSubproblemTh ()
 
ScipParaDiffSubproblemThclone (UG::ParaComm *comm)
 
int bcast (UG::ParaComm *comm, int root)
 
int send (UG::ParaComm *comm, int dest)
 
int receive (UG::ParaComm *comm, int source)
 
- Public Member Functions inherited from ScipParaDiffSubproblem
 ScipParaDiffSubproblem ()
 
 ScipParaDiffSubproblem (SCIP *scip, ScipParaSolver *scipParaSolver, int nNewBranchVars, SCIP_VAR **newBranchVars, SCIP_Real *newBranchBounds, SCIP_BOUNDTYPE *newBoundTypes, int nAddedConss, SCIP_CONS **addedConss)
 
 ScipParaDiffSubproblem (ScipParaDiffSubproblem *diffSubproblem)
 
virtual ~ScipParaDiffSubproblem ()
 
int getNBoundChanges ()
 
int getIndex (int i)
 
SCIP_Real getBranchBound (int i)
 
SCIP_BOUNDTYPE getBoundType (int i)
 
ScipParaDiffSubproblemBranchLinearConsgetBranchLinearConss ()
 
ScipParaDiffSubproblemBranchSetppcConsgetBranchSetppcConss ()
 
int getNBranchConsLinearConss ()
 
SCIP_Real getBranchConsLinearLhs (int i)
 
SCIP_Real getBranchConsLinearRhs (int i)
 
int getBranchConsNLinearCoefs (int i)
 
SCIP_Real getBranchConsLinearCoefs (int i, int j)
 
int getBranchConsLinearIdxCoefsVars (int i, int j)
 
int getBranchConsLinearConsNames ()
 
char * getBranchConsLinearConsNames (int i)
 
int getNBranchConsSetppcConss ()
 
int getBranchConsSetppcNVars (int i)
 
int getBranchConsSetppcType (int i)
 
int getBranchConsSetppcVars (int i, int j)
 
int getBranchConsSetppcConsNames ()
 
char * getBranchConsSetppcConsNames (int i)
 
int getNLinearConss ()
 
SCIP_Real getLinearLhs (int i)
 
SCIP_Real getLinearRhs (int i)
 
int getNLinearCoefs (int i)
 
SCIP_Real getLinearCoefs (int i, int j)
 
int getIdxLinearCoefsVars (int i, int j)
 
int getNBendersLinearConss ()
 
SCIP_Real getBendersLinearLhs (int i)
 
SCIP_Real getBendersLinearRhs (int i)
 
int getNBendersLinearCoefs (int i)
 
SCIP_Real getBendersLinearCoefs (int i, int j)
 
int getIdxBendersLinearCoefsVars (int i, int j)
 
int getNBoundDisjunctions ()
 
int getNTotalVarsBoundDisjunctions ()
 
int getNVarsBoundDisjunction (int i)
 
SCIP_Bool getFlagBoundDisjunctionInitial (int i)
 
SCIP_Bool getFlagBoundDisjunctionSeparate (int i)
 
SCIP_Bool getFlagBoundDisjunctionEnforce (int i)
 
SCIP_Bool getFlagBoundDisjunctionCheck (int i)
 
SCIP_Bool getFlagBoundDisjunctionPropagate (int i)
 
SCIP_Bool getFlagBoundDisjunctionLocal (int i)
 
SCIP_Bool getFlagBoundDisjunctionModifiable (int i)
 
SCIP_Bool getFlagBoundDisjunctionDynamic (int i)
 
SCIP_Bool getFlagBoundDisjunctionRemovable (int i)
 
SCIP_Bool getFlagBoundDisjunctionStickingatnode (int i)
 
int getIdxBoundDisjunctionVars (int i, int j)
 
SCIP_BOUNDTYPE getBoundTypesBoundDisjunction (int i, int j)
 
SCIP_Real getBoundsBoundDisjunction (int i, int j)
 
int getNVarBranchStats ()
 
int getIdxLBranchStatsVars (int i)
 
SCIP_Real getDownpscost (int i)
 
SCIP_Real getUppscost (int i)
 
SCIP_Real getDownvsids (int i)
 
SCIP_Real getUpvsids (int i)
 
SCIP_Real getDownconflen (int i)
 
SCIP_Real getUpconflen (int i)
 
SCIP_Real getDowninfer (int i)
 
SCIP_Real getUpinfer (int i)
 
SCIP_Real getDowncutoff (int i)
 
SCIP_Real getUpcutoff (int i)
 
int getNVarValueVars ()
 
int getNVarValues ()
 
int getIdxVarValueVars (int i)
 
int getNVarValueValues (int i)
 
SCIP_Real getVarValue (int i, int j)
 
SCIP_Real getVarValueDownvsids (int i, int j)
 
SCIP_Real getVarVlaueUpvsids (int i, int j)
 
SCIP_Real getVarValueDownconflen (int i, int j)
 
SCIP_Real getVarValueUpconflen (int i, int j)
 
SCIP_Real getVarValueDowninfer (int i, int j)
 
SCIP_Real getVarValueUpinfer (int i, int j)
 
SCIP_Real getVarValueDowncutoff (int i, int j)
 
SCIP_Real getVarValueUpcutoff (int i, int j)
 
void addBranchLinearConss (SCIP *scip, ScipParaSolver *scipParaSolver, int nLenarConss, int nAddedConss, SCIP_CONS **addedConss)
 
void addBranchSetppcConss (SCIP *scip, ScipParaSolver *scipParaSolver, int nSetpartConss, int nAddedConss, SCIP_CONS **addedConss)
 
void addLocalNodeInfo (SCIP *scip, ScipParaSolver *scipParaSolver)
 
void addBoundDisjunctions (SCIP *scip, ScipParaSolver *scipParaSolver)
 
void addBranchVarStats (SCIP *scip, ScipParaSolver *scipParaSolver)
 
void addVarValueStats (SCIP *scip, ScipParaSolver *scipParaSolver)
 
void addInitialBranchVarStats (int minDepth, int maxDepth, SCIP *scip)
 
int getOffset ()
 
void write (gzstream::ogzstream &out)
 
void read (UG::ParaComm *comm, gzstream::igzstream &in, bool onlyBoundChanges)
 
int getFixedVariables (UG::ParaInstance *instance, UG::BbParaFixedVariable **fixedVars)
 
BbParaDiffSubproblemcreateDiffSubproblem (UG::ParaComm *comm, UG::ParaInitiator *initiator, int n, UG::BbParaFixedVariable *fixedVars)
 
const std::string toString ()
 
const std::string toStringStat ()
 
- Public Member Functions inherited from BbParaDiffSubproblem
 BbParaDiffSubproblem ()
 DO NOT HAVE DATA MEMBER!! More...
 
virtual ~BbParaDiffSubproblem ()
 destractor¥ More...
 
virtual void read (ParaComm *comm, gzstream::igzstream &in, bool onlyBoundChanges)=0
 function to read BbParaDiffSubproblem object from checkpoint file More...
 
virtual int getNBoundChanges ()=0
 get the number of bound changes More...
 
virtual int getFixedVariables (ParaInstance *instance, BbParaFixedVariable **fixedVars)=0
 get the number of fixed variables More...
 
virtual BbParaDiffSubproblemcreateDiffSubproblem (ParaComm *comm, ParaInitiator *initiator, int n, BbParaFixedVariable *fixedVars)=0
 create new BbParaDiffSubproblem object using fixed variables information More...
 
virtual const std::string toStringStat ()
 stringfy statistics of BbParaDiffSubproblem object More...
 
virtual void setWinnerParams (BbParaRacingRampUpParamSet *winerParams)
 set winner racing parameters at warm start racing More...
 
virtual BbParaRacingRampUpParamSetgetWinnerParams ()
 get winner racing parameters at warm start racing More...
 
- Public Member Functions inherited from ParaDiffSubproblem
 ParaDiffSubproblem ()
 DO NOT HAVE DATA MEMBER!! More...
 
virtual ~ParaDiffSubproblem ()
 destractor¥ More...
 
virtual ParaDiffSubproblemclone (ParaComm *comm)=0
 create clone of this object More...
 
virtual int bcast (ParaComm *comm, int root)=0
 broadcast function for ParaDiffSubproblem object More...
 
virtual int send (ParaComm *comm, int dest)=0
 send function for ParaDiffSubproblem object More...
 
virtual int receive (ParaComm *comm, int source)=0
 receive function for ParaDiffSubproblem object More...
 
virtual void write (gzstream::ogzstream &out)=0
 function to write ParaDiffSubproblem object to checkpoint file More...
 
virtual const std::string toString ()=0
 stringfy ParaDiffSubproblem object ( for debugging ) More...
 

Additional Inherited Members

- Protected Attributes inherited from ScipParaDiffSubproblem
int localInfoIncluded
 
int nBoundChanges
 
int * indicesAmongSolvers
 
SCIP_Real * branchBounds
 
SCIP_BOUNDTYPE * boundTypes
 
ScipParaDiffSubproblemBranchLinearConsbranchLinearConss
 
ScipParaDiffSubproblemBranchSetppcConsbranchSetppcConss
 
ScipParaDiffSubproblemLinearConslinearConss
 
ScipParaDiffSubproblemLinearConsbendersLinearConss
 
ScipParaDiffSubproblemBoundDisjunctionsboundDisjunctions
 
ScipParaDiffSubproblemVarBranchStatsvarBranchStats
 
ScipParaDiffSubproblemVarValuesvarValues
 

Detailed Description

The difference between instance and subproblem: this is base class

Definition at line 51 of file scipParaDiffSubproblemTh.h.

Constructor & Destructor Documentation

◆ ScipParaDiffSubproblemTh() [1/3]

default constructor

Definition at line 55 of file scipParaDiffSubproblemTh.h.

Referenced by ScipParaDiffSubproblemTh::clone().

◆ ScipParaDiffSubproblemTh() [2/3]

ScipParaDiffSubproblemTh ( SCIP *  inScip,
ScipParaSolver inScipParaSolver,
int  inNNewBranchVars,
SCIP_VAR **  inNewBranchVars,
SCIP_Real *  inNewBranchBounds,
SCIP_BOUNDTYPE *  inNewBoundTypes,
int  nAddedConss,
SCIP_CONS **  addedConss 
)

Constructor

Definition at line 60 of file scipParaDiffSubproblemTh.h.

◆ ScipParaDiffSubproblemTh() [3/3]

Constructor

Definition at line 75 of file scipParaDiffSubproblemTh.h.

◆ ~ScipParaDiffSubproblemTh()

destractor

Definition at line 83 of file scipParaDiffSubproblemTh.h.

Member Function Documentation

◆ bcast()

int bcast ( UG::ParaComm comm,
int  root 
)
virtual

Implements ParaDiffSubproblem.

Definition at line 97 of file scipParaDiffSubproblemTh.h.

References THROW_LOGICAL_ERROR1.

◆ clone()

ScipParaDiffSubproblemTh * clone ( UG::ParaComm comm)
virtual

create clone of this object

Implements ParaDiffSubproblem.

Definition at line 88 of file scipParaDiffSubproblemTh.h.

References ScipParaDiffSubproblemTh::ScipParaDiffSubproblemTh().

◆ receive()

int receive ( UG::ParaComm comm,
int  source 
)
virtual

Implements ParaDiffSubproblem.

Definition at line 113 of file scipParaDiffSubproblemTh.h.

References THROW_LOGICAL_ERROR1.

◆ send()

int send ( UG::ParaComm comm,
int  dest 
)
virtual

Implements ParaDiffSubproblem.

Definition at line 105 of file scipParaDiffSubproblemTh.h.

References THROW_LOGICAL_ERROR1.