299 inline const std::string&
302 inline const std::vector<std::string>&
310 bpar_[key] = atoi(val) ? true :
false; }
313 bpar_[key] = val ? true :
false; }
319 ipar_[key] = atoi(val); }
325 dpar_[key] = atof(val); }
334 sapar_[key].push_back(val); }
349 for (
size_t j = 0; j <
sapar_[i].size(); ++j)
369 sapar_[i].reserve(str_size);
370 for (
size_t j = 0; j < str_size; ++j){
372 sapar_[i].push_back(std::string());
This data structure is to contain the packed form of an encodable knowledge.
AlpsEncoded & readRep(T &value)
Read a single object of type T from repsentation_ .
AlpsEncoded & writeRep(const T &value)
Write a single object of type T in repsentation_ .
This is the class serves as a holder for a set of parameters.
std::vector< std::string > * sapar_
int * ipar_
The integer parameters.
bool * bpar_
The bool parameters.
double * dpar_
The double parameters.
std::string * spar_
The string (actually, std::string) parameters.
virtual void createKeywordList()
Method for creating the list of keyword looked for in the parameter file.
double entry(const dblParams key) const
void unpack(AlpsEncoded &buf)
Unpack the parameter set from buf.
intParams
Integer paramters.
@ nodeLimit
The max number of nodes can be processed.
@ unitWorkNodes
The size/number of nodes of a unit work.
@ clockType
Type of clock when timing rampup, rampdown, etc.
@ bufSpare
The size of extra memory allocated to a message buffer.
@ hubInitNodeNum
The number of nodes initially generated by each hub.
@ masterReportInterval
The interval between master report system status.
@ mediumSize
The size of memory allocated for medium size message.
@ solLimit
The max num of solution can be stored in a solution pool.
@ largeSize
The size of memory allocated for large size message.
@ searchStrategy
Search strategy – best-first (0) – best-first-estimate (1) – breadth-first (2) – depth-first (3) – hy...
@ msgLevel
The level of printing messages on screen.
@ eliteSize
Number of the "elite" nodes that are used in determining workload.
@ processNum
The total number of processes that are launched for parallel code.
@ hubMsgLevel
Message level of the hub specific messages.
@ logFileLevel
The level of log file.
@ smallSize
The size of memory allocated for small size message.
@ hubWorkClusterSizeLimit
If the number of processes in a cluster is less than it, the hub also work as a worker.
@ workerMsgLevel
Message level of the worker specific messages.
@ printSystemStatus
Print system status: 0: do not print, 1: print.
@ masterInitNodeNum
The number of nodes initially generated by the master.
@ nodeLogInterval
Node log interval.
@ hubNum
The number of hubs.
@ staticBalanceScheme
Static load balancing scheme – root initialization (0) – spiral (1)
AlpsParams & operator=(const AlpsParams &x)
boolParams
Character parameters.
@ interClusterBalance
Master balances the workload of hubs: centralized.
@ printSolution
Print solution to screen and log if have a solution and msgLevel and logFileLevel permits.
@ checkMemory
Check memory.
@ deleteDeadNode
Remove dead nodes or not.
@ intraClusterBalance
Hub balances the workload of workers: receiver initialized.
void setEntry(const intParams key, const int val)
virtual void setDefaultEntries()
Method for setting the default values for the parameters.
int entry(const intParams key) const
strArrayParams
There are no string array parameters.
void setEntry(const boolParams key, const bool val)
This method is the one that ever been used.
void pack(AlpsEncoded &buf)
Pack the parameter set into buf.
void setEntry(const dblParams key, const char *val)
strParams
String parameters.
@ instance
The instance to be solved.
@ logFile
The name of log file.
void setEntry(const boolParams key, const char val)
char is true(1) or false(0), not used
dblParams
Double parameters.
@ donorThreshold
It is between 1.0 - infty.
@ unitWorkTime
The time length of a unit work.
@ masterBalancePeriod
The time period for master to do loading balance/termination check.
@ receiverThreshold
It is between 0.0 - 1.0.
@ changeWorkThreshold
The threshold of workload below which a worker will change the subtree that is working on.
@ timeLimit
The time limit (in seconds) of search.
@ tolerance
The numeric tolerance.
@ zeroLoad
If less than this number, it is considered zero workload.
@ hubReportPeriod
The time period (sec) for hubs to process messages.
@ needWorkThreshold
The threshold of workload below which a process will ask for workload Default: 2.
bool entry(const boolParams key) const
void setEntry(const boolParams key, const char *val)
char* is true(1) or false(0), not used
void setEntry(const strParams key, const char *val)
const std::vector< std::string > & entry(const strArrayParams key) const
void setEntry(const dblParams key, const double val)
void setEntry(const intParams key, const char *val)
void setEntry(const strArrayParams key, const char *val)
AlpsParams()
The default constructor creates a parameter set with from the template argument structure.
const std::string & entry(const strParams key) const