#include <scipParaInitialStatMpi.h>
Public Member Functions | |
ScipParaInitialStatMpi () | |
ScipParaInitialStatMpi (int inMaxDepth, int inMaxTotalDepth, int inNVarBranchStatsDown, int inNVarBranchStatsUp, int *inIdxLBranchStatsVarsDown, int *inNVarBranchingDown, int *inIdxLBranchStatsVarsUp, int *inNVarBranchingUp, SCIP_Real *inDownpscost, SCIP_Real *inDownvsids, SCIP_Real *inDownconflen, SCIP_Real *inDowninfer, SCIP_Real *inDowncutoff, SCIP_Real *inUppscost, SCIP_Real *inUpvsids, SCIP_Real *inUpconflen, SCIP_Real *inUpinfer, SCIP_Real *inUpcutoff) | |
ScipParaInitialStatMpi (SCIP *scip) | |
virtual | ~ScipParaInitialStatMpi () |
void | send (UG::ParaComm *comm, int dest) |
void | receive (UG::ParaComm *comm, int source) |
Public Member Functions inherited from ScipParaInitialStat | |
ScipParaInitialStat () | |
ScipParaInitialStat (SCIP *scip) | |
virtual | ~ScipParaInitialStat () |
ParaInitialStat * | clone (UG::ParaComm *comm) |
void | accumulateOn (SCIP *scip) |
int | getMaxDepth () |
const std::string | toString () |
Public Member Functions inherited from ParaInitialStat | |
ParaInitialStat () | |
DO NOT HAVE DATA MEMBER!! More... | |
virtual | ~ParaInitialStat () |
destructor More... | |
virtual ParaInitialStat * | clone (ParaComm *comm)=0 |
create clone of this object More... | |
virtual void | send (ParaComm *comm, int dest)=0 |
send function for ParaInitialStat object More... | |
virtual void | receive (ParaComm *comm, int source)=0 |
receive function for ParaInitialStat object More... | |
virtual const std::string | toString ()=0 |
stringfy ParaInitialStat object (for debugging) More... | |
Private Member Functions | |
MPI_Datatype | createDatatype1 () |
MPI_Datatype | createDatatype2 (bool memAllocNecessary) |
Additional Inherited Members | |
Protected Attributes inherited from ScipParaInitialStat | |
int | maxDepth |
int | maxTotalDepth |
int | nVarBranchStatsDown |
int | nVarBranchStatsUp |
int * | idxLBranchStatsVarsDown |
int * | nVarBranchingDown |
int * | idxLBranchStatsVarsUp |
int * | nVarBranchingUp |
SCIP_Real * | downpscost |
SCIP_Real * | downvsids |
SCIP_Real * | downconflen |
SCIP_Real * | downinfer |
SCIP_Real * | downcutoff |
SCIP_Real * | uppscost |
SCIP_Real * | upvsids |
SCIP_Real * | upconflen |
SCIP_Real * | upinfer |
SCIP_Real * | upcutoff |
The initial statistic collecting data class: this is base class
Definition at line 50 of file scipParaInitialStatMpi.h.
default constructor
Definition at line 59 of file scipParaInitialStatMpi.h.
ScipParaInitialStatMpi | ( | int | inMaxDepth, |
int | inMaxTotalDepth, | ||
int | inNVarBranchStatsDown, | ||
int | inNVarBranchStatsUp, | ||
int * | inIdxLBranchStatsVarsDown, | ||
int * | inNVarBranchingDown, | ||
int * | inIdxLBranchStatsVarsUp, | ||
int * | inNVarBranchingUp, | ||
SCIP_Real * | inDownpscost, | ||
SCIP_Real * | inDownvsids, | ||
SCIP_Real * | inDownconflen, | ||
SCIP_Real * | inDowninfer, | ||
SCIP_Real * | inDowncutoff, | ||
SCIP_Real * | inUppscost, | ||
SCIP_Real * | inUpvsids, | ||
SCIP_Real * | inUpconflen, | ||
SCIP_Real * | inUpinfer, | ||
SCIP_Real * | inUpcutoff | ||
) |
constructor for clone
Definition at line 65 of file scipParaInitialStatMpi.h.
References ScipParaInitialStat::downconflen, ScipParaInitialStat::downcutoff, ScipParaInitialStat::downinfer, ScipParaInitialStat::downpscost, ScipParaInitialStat::downvsids, ScipParaInitialStat::idxLBranchStatsVarsDown, ScipParaInitialStat::idxLBranchStatsVarsUp, ScipParaInitialStat::maxDepth, ScipParaInitialStat::maxTotalDepth, ScipParaInitialStat::nVarBranchingDown, ScipParaInitialStat::nVarBranchingUp, ScipParaInitialStat::nVarBranchStatsDown, ScipParaInitialStat::nVarBranchStatsUp, ScipParaInitialStat::upconflen, ScipParaInitialStat::upcutoff, ScipParaInitialStat::upinfer, ScipParaInitialStat::uppscost, and ScipParaInitialStat::upvsids.
ScipParaInitialStatMpi | ( | SCIP * | scip | ) |
constructor to create this object
Definition at line 107 of file scipParaInitialStatMpi.h.
|
virtual |
destractor
Definition at line 114 of file scipParaInitialStatMpi.h.
|
private |
create ScipParaInitialStat datatype1
create ScipDiffSubproblemPreDatatype
Definition at line 44 of file scipParaInitialStatMpi.cpp.
References ScipParaInitialStat::maxDepth, ScipParaInitialStat::maxTotalDepth, MPI_CALL, ScipParaInitialStat::nVarBranchStatsDown, and ScipParaInitialStat::nVarBranchStatsUp.
Referenced by ScipParaInitialStatMpi::receive(), and ScipParaInitialStatMpi::send().
|
private |
create ScipParaInitialStat datatype2
create ScipDiffSubproblemDatatype
Definition at line 95 of file scipParaInitialStatMpi.cpp.
References ScipParaInitialStat::downconflen, ScipParaInitialStat::downcutoff, ScipParaInitialStat::downinfer, ScipParaInitialStat::downpscost, ScipParaInitialStat::downvsids, ScipParaInitialStat::idxLBranchStatsVarsDown, ScipParaInitialStat::idxLBranchStatsVarsUp, MPI_CALL, ScipParaInitialStat::nVarBranchingDown, ScipParaInitialStat::nVarBranchingUp, ScipParaInitialStat::nVarBranchStatsDown, ScipParaInitialStat::nVarBranchStatsUp, ScipParaInitialStat::upconflen, ScipParaInitialStat::upcutoff, ScipParaInitialStat::upinfer, ScipParaInitialStat::uppscost, and ScipParaInitialStat::upvsids.
Referenced by ScipParaInitialStatMpi::receive(), and ScipParaInitialStatMpi::send().
|
virtual |
user should implement receive method
receive solution data from the source rank
Implements ParaInitialStat.
Definition at line 316 of file scipParaInitialStatMpi.cpp.
References comm, ScipParaInitialStatMpi::createDatatype1(), ScipParaInitialStatMpi::createDatatype2(), DEF_PARA_COMM, ScipParaInitialStat::idxLBranchStatsVarsDown, ScipParaInitialStat::idxLBranchStatsVarsUp, ScipParaInitialStat::maxDepth, MPI_CALL, ScipParaInitialStat::nVarBranchStatsDown, ScipParaInitialStat::nVarBranchStatsUp, PARA_COMM_CALL, and ParaSCIP::TagInitialStat.
|
virtual |
user should implement send method
send solution data to the rank
Implements ParaInitialStat.
Definition at line 271 of file scipParaInitialStatMpi.cpp.
References comm, ScipParaInitialStatMpi::createDatatype1(), ScipParaInitialStatMpi::createDatatype2(), DEF_PARA_COMM, ScipParaInitialStat::idxLBranchStatsVarsDown, ScipParaInitialStat::idxLBranchStatsVarsUp, ScipParaInitialStat::maxDepth, MPI_CALL, ScipParaInitialStat::nVarBranchStatsDown, ScipParaInitialStat::nVarBranchStatsUp, PARA_COMM_CALL, and ParaSCIP::TagInitialStat.