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());
boolParams
Character parameters.
Search strategy – best-first (0) – best-first-estimate (1) – breadth-first (2) – depth-first (3) ...
The instance to be solved.
void pack(AlpsEncoded &buf)
Pack the parameter set into buf.
int entry(const intParams key) const
The time limit (in seconds) of search.
void setEntry(const boolParams key, const char *val)
char* is true(1) or false(0), not used
double * dpar_
The double parameters.
Remove dead nodes or not.
The size of memory allocated for small size message.
double entry(const dblParams key) const
void setEntry(const dblParams key, const char *val)
AlpsEncoded & writeRep(const T &value)
Write a single object of type T in repsentation_ .
AlpsParams & operator=(const AlpsParams &x)
std::string * spar_
The string (actually, std::string) parameters.
The size/number of nodes of a unit work.
virtual void createKeywordList()
Method for creating the list of keyword looked for in the parameter file.
strParams
String parameters.
void setEntry(const strArrayParams key, const char *val)
The interval between master report system status.
void setEntry(const intParams key, const char *val)
The max num of solution can be stored in a solution pool.
This data structure is to contain the packed form of an encodable knowledge.
AlpsParams()
The default constructor creates a parameter set with from the template argument structure.
AlpsEncoded & readRep(T &value)
Read a single object of type T from repsentation_ .
The size of extra memory allocated to a message buffer.
bool entry(const boolParams key) const
void setEntry(const strParams key, const char *val)
int * ipar_
The integer parameters.
intParams
Integer paramters.
The total number of processes that are launched for parallel code.
Print system status: 0: do not print, 1: print.
The time period (sec) for hubs to process messages.
bool * bpar_
The bool parameters.
The size of memory allocated for large size message.
void setEntry(const intParams key, const int val)
Number of the "elite" nodes that are used in determining workload.
The level of printing messages on screen.
The threshold of workload below which a worker will change the subtree that is working on...
Print solution to screen and log if have a solution and msgLevel and logFileLevel permits...
The threshold of workload below which a process will ask for workload Default: 2. ...
std::vector< std::string > * sapar_
Type of clock when timing rampup, rampdown, etc.
void unpack(AlpsEncoded &buf)
Unpack the parameter set from buf.
Message level of the worker specific messages.
The time period for master to do loading balance/termination check.
void setEntry(const boolParams key, const bool val)
This method is the one that ever been used.
It is between 1.0 - infty.
The number of nodes initially generated by each hub.
const std::vector< std::string > & entry(const strArrayParams key) const
The time length of a unit work.
Master balances the workload of hubs: centralized.
The size of memory allocated for medium size message.
The number of nodes initially generated by the master.
dblParams
Double parameters.
If less than this number, it is considered zero workload.
virtual void setDefaultEntries()
Method for setting the default values for the parameters.
const std::string & entry(const strParams key) const
Hub balances the workload of workers: receiver initialized.
The max number of nodes can be processed.
void setEntry(const boolParams key, const char val)
char is true(1) or false(0), not used
Message level of the hub specific messages.
If the number of processes in a cluster is less than it, the hub also work as a worker.
strArrayParams
There are no string array parameters.
This is the class serves as a holder for a set of parameters.
void setEntry(const dblParams key, const double val)
Static load balancing scheme – root initialization (0) – spiral (1)