Class for initiator. More...
#include <paraInitiator.h>
Public Member Functions | |
| ParaInitiator () | |
| virtual | ~ParaInitiator () |
| virtual bool | isPrintComment ()=0 |
| check if comment messages are printed More... | |
| virtual bool | isWarmStarted ()=0 |
| check if the execution is warm started (restarted) or not More... | |
| virtual const char * | getPrefixWarm ()=0 |
| get prefix of warm start (restart) files More... | |
| virtual ParaComm * | getParaComm ()=0 |
| get communicator being used More... | |
| virtual int | init (ParaParamSet *params, int argc, char **argv) |
| initialize initiator More... | |
| virtual int | reInit (int nRestartedRacing)=0 |
| reinitizalie initiator TODO: this function should be in inherited class More... | |
| virtual ParaInstance * | getParaInstance ()=0 |
| get instance object More... | |
| virtual void | sendSolverInitializationMessage ()=0 |
| send solver initialization message More... | |
| virtual void | generateRacingRampUpParameterSets (int nParamSets, ParaRacingRampUpParamSet **racingRampUpParamSets)=0 |
| generate racing ramp-up parameter sets TODO: this function may be in inherited class More... | |
| virtual double | getEpsilon ()=0 |
| get epsilon specified More... | |
| virtual void | writeSolution (const std::string &message)=0 |
| write solution More... | |
| virtual void | writeParaInstance (const std::string &filename)=0 |
| write ParaInstance More... | |
| virtual void | writeCheckpointSolution (const std::string &filename)=0 |
| write checkpoint solution More... | |
| virtual double | readSolutionFromCheckpointFile (char *afterCheckpointingSolutionFileName)=0 |
| read solution from checkpoint file More... | |
| virtual void | writeSolverParameters (std::ostream *os)=0 |
| write solver runtime parameters More... | |
| virtual void | outputFinalSolverStatistics (std::ostream *os, double time)=0 |
| output final solver statistics More... | |
| virtual std::string | getStatus ()=0 |
| get solving status string More... | |
| virtual void | printSolverVersion (std::ostream *os)=0 |
| print solver version More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, ParaInitiator ¶Initiator) |
| output line initiator More... | |
Class for initiator.
Definition at line 62 of file paraInitiator.h.
| ParaInitiator | ( | ) |
Definition at line 66 of file paraInitiator.h.
|
virtual |
Definition at line 71 of file paraInitiator.h.
|
pure virtual |
generate racing ramp-up parameter sets TODO: this function may be in inherited class
| nParamSets | number of parameter sets to be generated |
| racingRampUpParamSets | array of the racing parameter sets |
Implemented in ScipParaInitiator.
Referenced by BbParaLoadCoordinator::warmStart().
|
pure virtual |
get epsilon specified
Implemented in ScipParaInitiator.
Referenced by BbParaLoadCoordinator::outputTabularSolvingStatus(), ParaLoadCoordinator::ParaLoadCoordinator(), BbParaLoadCoordinator::processRacingRampUpTagCompletionOfCalculation(), BbParaLoadCoordinator::processTagCompletionOfCalculation(), and BbParaLoadCoordinator::processTagSelfSlpitNodeCalcuationState().
|
pure virtual |
|
pure virtual |
get instance object
Implemented in ScipParaInitiator.
Referenced by BbParaLoadCoordinator::BbParaLoadCoordinator(), ParaLoadCoordinator::ParaLoadCoordinator(), BbParaLoadCoordinator::processTagSolution(), BbParaLoadCoordinator::restartRacing(), BbParaLoadCoordinator::run(), BbParaLoadCoordinator::updateCheckpointFiles(), and BbParaLoadCoordinator::warmStart().
|
pure virtual |
get prefix of warm start (restart) files
Implemented in BbParaInitiator.
Referenced by BbParaLoadCoordinator::BbParaLoadCoordinator(), BbParaLoadCoordinator::warmStart(), and BbParaLoadCoordinator::writePreviousStatisticsInformation().
|
pure virtual |
|
virtual |
initialize initiator
| params | UG parameter used |
| argc | the number of command line arguments |
| argv | array of the arguments |
Reimplemented in ScipParaInitiator.
Definition at line 119 of file paraInitiator.h.
References UG::getGitHash(), and UG_VERSION.
|
pure virtual |
check if comment messages are printed
Implemented in BbParaInitiator.
|
pure virtual |
check if the execution is warm started (restarted) or not
Implemented in BbParaInitiator.
|
pure virtual |
output final solver statistics
| os | output stream to write final solver statistics |
| time | computing time |
Implemented in ScipParaInitiator.
Referenced by BbParaLoadCoordinator::~BbParaLoadCoordinator().
|
pure virtual |
print solver version
| os | output file (or NULL for standard output) |
Implemented in ScipParaInitiator.
|
pure virtual |
read solution from checkpoint file
| afterCheckpointingSolutionFileName | name of after checkpointing solution file |
Implemented in ScipParaInitiator.
Referenced by BbParaLoadCoordinator::warmStart().
|
pure virtual |
reinitizalie initiator TODO: this function should be in inherited class
| nRestartedRacing | the number of restarted racing |
Implemented in ScipParaInitiator.
Referenced by BbParaLoadCoordinator::restartRacing().
|
pure virtual |
send solver initialization message
Implemented in ScipParaInitiator.
|
pure virtual |
write checkpoint solution
| filename | output file name |
Implemented in ScipParaInitiator.
Referenced by BbParaLoadCoordinator::processTagSolution(), and BbParaLoadCoordinator::updateCheckpointFiles().
|
pure virtual |
|
pure virtual |
write solution
| message | message head string |
Implemented in ScipParaInitiator.
Referenced by BbParaLoadCoordinator::warmStart(), and BbParaLoadCoordinator::~BbParaLoadCoordinator().
|
pure virtual |
write solver runtime parameters
| os | output stream to write solver parameters |
Implemented in ScipParaInitiator.
|
friend |
output line initiator
Definition at line 79 of file paraInitiator.h.