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