37#ifndef __PARA_INITIATOR_H__
38#define __PARA_INITIATOR_H__
52#include "ugs/ugsDef.h"
53#include "ugs/ugsParaCommMpi.h"
83 std::cout <<
"The following solver is parallelized by UG version "
85 <<
" [GitHash: " <<
getGitHash() <<
"]" << std::endl;
178 const std::string& message
185 const std::string& filename
194 const std::string& filename
202 char *afterCheckpointingSolutionFileName
241 virtual bool readUgsIncumbentSolution(
242 UGS::UgsParaCommMpi *ugsComm,
249 virtual void writeUgsIncumbentSolution(
250 UGS::UgsParaCommMpi *ugsComm
Base class of communicator object.
virtual void writeParaInstance(const std::string &filename)=0
write ParaInstance
ParaComm * paraComm
communicator used
virtual std::string getStatus()=0
get solving status string
virtual int reInit(int nRestartedRacing)=0
reinitizalie initiator TODO: this function should be in inherited class
ParaInitiator(ParaComm *inComm, ParaTimer *inTimer)
constructor
ParaComm * getParaComm()
get communicator being used
virtual void sendSolverInitializationMessage()=0
send solver initialization message
virtual double readSolutionFromCheckpointFile(char *afterCheckpointingSolutionFileName)=0
read solution from checkpoint file
virtual int init(ParaParamSet *params, int argc, char **argv)=0
initialize initiator
virtual void printSolverVersion(std::ostream *os)=0
print solver version
virtual void writeCheckpointSolution(const std::string &filename)=0
write checkpoint solution
virtual void writeSolution(const std::string &message)=0
write solution
virtual void generateRacingRampUpParameterSets(int nParamSets, ParaRacingRampUpParamSet **racingRampUpParamSets)=0
generate racing ramp-up parameter sets TODO: this function may be in inherited class
char * prefixWarm
prefix of warm start files
ParaTimer * timer
timer used
virtual ~ParaInitiator()
destructor
const char * getPrefixWarm()
get prefix of warm start (restart) files
bool isWarmStarted()
check if the execution is warm started (restarted) or not
virtual void writeSolverParameters(std::ostream *os)=0
write solver runtime parameters
virtual ParaInstance * getParaInstance()=0
get instance object
virtual double getEpsilon()=0
get epsilon specified
virtual void outputFinalSolverStatistics(std::ostream *os, double time)=0
output final solver statistics
class ParaRacingRampUpParamSet (parameter set for racing ramp-up)
ParaInitiator * ParaInitiatorPtr
const char * getGitHash()
Base class of communicator for UG Framework.
Base class for a container which has difference between instance and subproblem.
Base class for initial statistics collecting class.
Base class for instance data.
Parameter set for UG framework.
Base class for racing ramp-up parameter set.
returns the current git hash of UG