#include <scipParaRacingRampUpParamSetMpi.h>
Public Member Functions | |
ScipParaRacingRampUpParamSetMpi () | |
ScipParaRacingRampUpParamSetMpi (int inTerminationCriteria, int inNNodesLeft, double inTimeLimit, int inScipRacingParamSeed, int inPermuteProbSeed, int inGenerateBranchOrderSeed, ScipDiffParamSet *inScipDiffParamSet) | |
~ScipParaRacingRampUpParamSetMpi () | |
int | send (UG::ParaComm *comm, int dest) |
int | receive (UG::ParaComm *comm, int source) |
Public Member Functions inherited from ScipParaRacingRampUpParamSet | |
ScipParaRacingRampUpParamSet () | |
ScipParaRacingRampUpParamSet (int inTerminationCriteria, int inNNodesLeft, double inTimeLimit, int inScipRacingParamSeed, int inPermuteProbSeed, int inGenerateBranchOrderSeed, ScipDiffParamSet *inScipDiffParamSet) | |
virtual | ~ScipParaRacingRampUpParamSet () |
int | getPermuteProbSeed () |
int | getGenerateBranchOrderSeed () |
ScipDiffParamSet * | getScipDiffParamSet () |
int | getScipRacingParamSeed () |
void | write (gzstream::ogzstream &out) |
bool | read (UG::ParaComm *comm, gzstream::igzstream &in) |
const std::string | toString () |
int | getStrategy () |
Public Member Functions inherited from BbParaRacingRampUpParamSet | |
BbParaRacingRampUpParamSet () | |
default constructor More... | |
BbParaRacingRampUpParamSet (int inTerminationCriteria, int inNNodesLeft, double inTimeLimit) | |
constructor More... | |
virtual | ~BbParaRacingRampUpParamSet () |
destructor More... | |
int | getTerminationCriteria () |
get termination criteria More... | |
int | getStopRacingNNodesLeft () |
get stop racing number of nodes left More... | |
double | getStopRacingTimeLimit () |
get stop racing time limimt More... | |
virtual void | setWinnerRank (int rank) |
set winner rank TODO: this function and also getWinnerRank should be removed More... | |
virtual int | send (ParaComm *comm, int destination)=0 |
send BbParaRacingRampUpParamSet More... | |
virtual int | receive (ParaComm *comm, int source)=0 |
receive BbParaRacingRampUpParamSet More... | |
virtual void | write (gzstream::ogzstream &out)=0 |
write to checkpoint file More... | |
virtual bool | read (ParaComm *comm, gzstream::igzstream &in)=0 |
read from checkpoint file More... | |
virtual const std::string | toString ()=0 |
stringfy BbParaRacingRampUpParamSet More... | |
virtual int | getStrategy ()=0 |
get strategy More... | |
Public Member Functions inherited from ParaRacingRampUpParamSet | |
ParaRacingRampUpParamSet () | |
default constructor More... | |
ParaRacingRampUpParamSet (int inTerminationCriteria) | |
constructor More... | |
virtual | ~ParaRacingRampUpParamSet () |
destructor More... | |
int | getTerminationCriteria () |
get termination criteria More... | |
virtual void | setWinnerRank (int rank) |
set winner rank TODO: this function and also getWinnerRank should be removed More... | |
virtual int | send (ParaComm *comm, int destination)=0 |
send ParaRacingRampUpParamSet More... | |
virtual int | receive (ParaComm *comm, int source)=0 |
receive ParaRacingRampUpParamSet More... | |
virtual void | write (gzstream::ogzstream &out)=0 |
write to checkpoint file More... | |
virtual bool | read (ParaComm *comm, gzstream::igzstream &in)=0 |
read from checkpoint file More... | |
virtual const std::string | toString ()=0 |
stringfy ParaRacingRampUpParamSet More... | |
virtual int | getStrategy ()=0 |
get strategy More... | |
Private Member Functions | |
MPI_Datatype | createDatatype () |
Additional Inherited Members | |
Protected Attributes inherited from ScipParaRacingRampUpParamSet | |
int | scipRacingParamSeed |
int | permuteProbSeed |
int | generateBranchOrderSeed |
int | scipDiffParamSetInfo |
ScipDiffParamSet * | scipDiffParamSet |
Protected Attributes inherited from BbParaRacingRampUpParamSet | |
int | nNodesLeft |
stop racing number of nodes left More... | |
double | timeLimit |
stop racing time limit More... | |
Protected Attributes inherited from ParaRacingRampUpParamSet | |
int | terminationCriteria |
termination criteria of racing ramp-up : 0: number of nodes left, 1: time limit meaning must be defined in a derived class More... | |
The difference between instance and subproblem: this is base class
Definition at line 49 of file scipParaRacingRampUpParamSetMpi.h.
default constructor
Definition at line 57 of file scipParaRacingRampUpParamSetMpi.h.
ScipParaRacingRampUpParamSetMpi | ( | int | inTerminationCriteria, |
int | inNNodesLeft, | ||
double | inTimeLimit, | ||
int | inScipRacingParamSeed, | ||
int | inPermuteProbSeed, | ||
int | inGenerateBranchOrderSeed, | ||
ScipDiffParamSet * | inScipDiffParamSet | ||
) |
Constructor
Definition at line 63 of file scipParaRacingRampUpParamSetMpi.h.
destructor
Definition at line 77 of file scipParaRacingRampUpParamSetMpi.h.
|
private |
create ScipParaRacingRampUpParamSet datatype
create Datatype
Definition at line 47 of file scipParaRacingRampUpParamSetMpi.cpp.
References ScipParaRacingRampUpParamSet::generateBranchOrderSeed, MPI_CALL, BbParaRacingRampUpParamSet::nNodesLeft, ScipParaRacingRampUpParamSet::permuteProbSeed, ScipParaRacingRampUpParamSet::scipDiffParamSetInfo, ScipParaRacingRampUpParamSet::scipRacingParamSeed, ParaRacingRampUpParamSet::terminationCriteria, and BbParaRacingRampUpParamSet::timeLimit.
Referenced by ScipParaRacingRampUpParamSetMpi::receive(), and ScipParaRacingRampUpParamSetMpi::send().
|
virtual |
Implements BbParaRacingRampUpParamSet.
Definition at line 135 of file scipParaRacingRampUpParamSetMpi.cpp.
References comm, ScipParaRacingRampUpParamSetMpi::createDatatype(), DEF_PARA_COMM, DEF_SCIP_PARA_COMM, MPI_CALL, PARA_COMM_CALL, ScipDiffParamSet::receive(), ScipParaRacingRampUpParamSet::scipDiffParamSet, ScipParaRacingRampUpParamSet::scipDiffParamSetInfo, UG::TagRacingRampUpParamSet, and ParaRacingRampUpParamSet::terminationCriteria.
|
virtual |
Implements BbParaRacingRampUpParamSet.
Definition at line 106 of file scipParaRacingRampUpParamSetMpi.cpp.
References comm, ScipParaRacingRampUpParamSetMpi::createDatatype(), DEF_PARA_COMM, MPI_CALL, PARA_COMM_CALL, ScipParaRacingRampUpParamSet::scipDiffParamSet, ScipParaRacingRampUpParamSet::scipDiffParamSetInfo, ScipDiffParamSet::send(), UG::TagRacingRampUpParamSet, and ParaRacingRampUpParamSet::terminationCriteria.