
Options for scripts More...
#include <gecode/driver.hh>
Classes | |
| class | I_ |
| Helper class storing Gist inspectors. More... | |
Model options | |
| Driver::StringOption | _model |
| General model options. | |
| Driver::StringOption | _symmetry |
| General symmetry options. | |
| Driver::StringOption | _propagation |
| Propagation options. | |
| Driver::IplOption | _ipl |
| Integer propagation level. | |
| Driver::StringOption | _branching |
| Branching options. | |
| Driver::DoubleOption | _decay |
| Decay option. | |
| Driver::UnsignedIntOption | _seed |
| Seed option. | |
| Driver::DoubleOption | _step |
| Step option. | |
| void | model (int v) |
| Set default model value. | |
| void | model (int v, const char *o, const char *h=nullptr) |
| Add model option value for value v, string o, and help h. | |
| int | model (void) const |
| Return model value. | |
| void | symmetry (int v) |
| Set default symmetry value. | |
| void | symmetry (int v, const char *o, const char *h=nullptr) |
| Add symmetry option value for value v, string o, and help h. | |
| int | symmetry (void) const |
| Return symmetry value. | |
| void | propagation (int v) |
| Set default propagation value. | |
| void | propagation (int v, const char *o, const char *h=nullptr) |
| Add propagation option value for value v, string o, and help h. | |
| int | propagation (void) const |
| Return propagation value. | |
| void | ipl (IntPropLevel i) |
| Set default integer propagation level. | |
| IntPropLevel | ipl (void) const |
| Return integer propagation level. | |
| void | branching (int v) |
| Set default branching value. | |
| void | branching (int v, const char *o, const char *h=nullptr) |
| Add branching option value for value v, string o, and help h. | |
| int | branching (void) const |
| Return branching value. | |
| void | decay (double d) |
| Set default decay factor. | |
| double | decay (void) const |
| Return decay factor. | |
| void | seed (unsigned int s) |
| Set default seed value. | |
| unsigned int | seed (void) const |
| Return seed value. | |
| void | step (double s) |
| Set default step value. | |
| double | step (void) const |
| Return step value. | |
Search options | |
| Driver::StringOption | _search |
| Search options. | |
| Driver::UnsignedLongLongIntOption | _solutions |
| How many solutions. | |
| Driver::DoubleOption | _threads |
| How many threads to use. | |
| Driver::UnsignedIntOption | _c_d |
| Copy recomputation distance. | |
| Driver::UnsignedIntOption | _a_d |
| Adaptive recomputation distance. | |
| Driver::UnsignedIntOption | _d_l |
| Discrepancy limit for LDS. | |
| Driver::UnsignedLongLongIntOption | _node |
| Cutoff for number of nodes. | |
| Driver::UnsignedLongLongIntOption | _fail |
| Cutoff for number of failures. | |
| Driver::DoubleOption | _time |
| Cutoff for time. | |
| Driver::UnsignedIntOption | _assets |
| Number of assets in a portfolio. | |
| Driver::UnsignedIntOption | _slice |
| Size of a portfolio slice. | |
| Driver::StringOption | _restart |
| Restart method option. | |
| Driver::DoubleOption | _r_base |
| Restart base. | |
| Driver::UnsignedIntOption | _r_scale |
| Restart scale factor. | |
| Driver::UnsignedLongLongIntOption | _r_limit |
| Cutoff for number of restarts. | |
| Driver::BoolOption | _nogoods |
| Whether to use no-goods. | |
| Driver::UnsignedIntOption | _nogoods_limit |
| Limit for no-good extraction. | |
| Driver::DoubleOption | _relax |
| Probability to relax variable. | |
| Driver::BoolOption | _interrupt |
| Whether to catch SIGINT. | |
| void | search (int v) |
| Set default search value. | |
| void | search (int v, const char *o, const char *h=nullptr) |
| Add search option value for value v, string o, and help h. | |
| int | search (void) const |
| Return search value. | |
| void | solutions (unsigned long long int n) |
| Set default number of solutions to search for. | |
| unsigned long long int | solutions (void) const |
| Return number of solutions to search for. | |
| void | threads (double n) |
| Set number of parallel threads. | |
| double | threads (void) const |
| Return number of parallel threads. | |
| void | c_d (unsigned int d) |
| Set default copy recomputation distance. | |
| unsigned int | c_d (void) const |
| Return copy recomputation distance. | |
| void | a_d (unsigned int d) |
| Set default adaptive recomputation distance. | |
| unsigned int | a_d (void) const |
| Return adaptive recomputation distance. | |
| void | d_l (unsigned int d) |
| Set default discrepancy limit for LDS. | |
| unsigned int | d_l (void) const |
| Return discrepancy limit for LDS. | |
| void | node (unsigned long long int n) |
| Set default node cutoff. | |
| unsigned long long int | node (void) const |
| Return node cutoff. | |
| void | fail (unsigned long long int n) |
| Set default failure cutoff. | |
| unsigned long long int | fail (void) const |
| Return failure cutoff. | |
| void | time (double t) |
| Set default time cutoff. | |
| double | time (void) const |
| Return time cutoff. | |
| void | assets (unsigned int n) |
| Set default number of assets in a portfolio. | |
| unsigned int | assets (void) const |
| Return slice size in a portfolio. | |
| void | slice (unsigned int n) |
| Set default slice size in a portfolio. | |
| unsigned int | slice (void) const |
| Return slice size in a portfolio. | |
| void | restart (RestartMode r) |
| Set default restart mode. | |
| RestartMode | restart (void) const |
| Return restart mode. | |
| void | restart_base (double base) |
| Set default restart base. | |
| double | restart_base (void) const |
| Return restart base. | |
| void | restart_scale (unsigned int scale) |
| Set default restart scale factor. | |
| unsigned int | restart_scale (void) const |
| Return restart scale factor. | |
| void | restart_limit (unsigned long long int n) |
| Set default restart cutoff. | |
| unsigned long long int | restart_limit (void) const |
| Return restart cutoff. | |
| void | nogoods (bool b) |
| Set default nogoods posting behavior. | |
| bool | nogoods (void) const |
| Return whether nogoods are used. | |
| void | nogoods_limit (unsigned int l) |
| Set default nogoods depth limit. | |
| unsigned int | nogoods_limit (void) const |
| Return depth limit for nogoods. | |
| void | relax (double d) |
| Set default relax probability. | |
| double | relax (void) const |
| Return default relax probability. | |
| void | interrupt (bool b) |
| Set default interrupt behavior. | |
| bool | interrupt (void) const |
| Return interrupt behavior. | |
Execution options | |
| Driver::StringOption | _mode |
| Script mode to run. | |
| Driver::UnsignedIntOption | _samples |
| How many samples. | |
| Driver::UnsignedIntOption | _iterations |
| How many iterations per sample. | |
| Driver::BoolOption | _print_last |
| Print only last solution found. | |
| Driver::StringValueOption | _out_file |
| Where to print solutions. | |
| Driver::StringValueOption | _log_file |
| Where to print statistics. | |
| Driver::TraceOption | _trace |
| Trace flags for tracing. | |
| Driver::ProfilerOption | _profiler |
| Options for the CP Profiler. | |
| class Gecode::Options::I_ | inspect |
| Script mode to run. | |
| Options (const char *s) | |
| Initialize options for script with name s. | |
| void | mode (ScriptMode em) |
| Set default mode. | |
| ScriptMode | mode (void) const |
| Return mode. | |
| void | samples (unsigned int s) |
| Set default number of samples. | |
| unsigned int | samples (void) const |
| Return number of samples. | |
| void | iterations (unsigned int i) |
| Set default number of iterations. | |
| unsigned int | iterations (void) const |
| Return number of iterations. | |
| void | print_last (bool p) |
| Set whether to print only last solution found. | |
| bool | print_last (void) const |
| Return whether to print only last solution found. | |
| void | out_file (const char *f) |
| Set default output file name for solutions. | |
| const char * | out_file (void) const |
| Get file name for solutions. | |
| void | log_file (const char *f) |
| Set default output file name for Gecode stats. | |
| const char * | log_file (void) const |
| Get file name for Gecode stats. | |
| void | trace (int f) |
| Set trace flags. | |
| int | trace (void) const |
| Return trace flags. | |
| void | profiler_id (int i) |
| Set profiler execution identifier. | |
| int | profiler_id (void) const |
| Return profiler execution id. | |
| void | profiler_port (unsigned int p) |
| Set profiler port. | |
| unsigned int | profiler_port (void) const |
| Return profiler execution id. | |
Additional Inherited Members | |
| Public Member Functions inherited from Gecode::BaseOptions | |
| BaseOptions (const char *s) | |
| Initialize options for script with name s. | |
| virtual void | help (void) |
| Print help text. | |
| void | add (Driver::BaseOption &o) |
| Add new option o. | |
| void | parse (int &argc, char *argv[]) |
| Parse options from arguments argv (number is argc). | |
| const char * | name (void) const |
| Return name of script. | |
| void | name (const char *) |
| Set name of script. | |
| virtual | ~BaseOptions (void) |
| Destructor. | |
| Protected Attributes inherited from Gecode::BaseOptions | |
| Driver::BaseOption * | fst |
| First registered option. | |
| Driver::BaseOption * | lst |
| Last registered option. | |
| const char * | _name |
| Script name. | |
| Gecode::Options::Options | ( | const char * | s | ) |
Initialize options for script with name s.
|
inline |
Set default model value.
Definition at line 206 of file options.hpp.
|
inline |
Add model option value for value v, string o, and help h.
Definition at line 210 of file options.hpp.
|
inline |
Return model value.
Definition at line 214 of file options.hpp.
|
inline |
Set default symmetry value.
Definition at line 219 of file options.hpp.
|
inline |
Add symmetry option value for value v, string o, and help h.
Definition at line 223 of file options.hpp.
|
inline |
Return symmetry value.
Definition at line 227 of file options.hpp.
|
inline |
Set default propagation value.
Definition at line 232 of file options.hpp.
|
inline |
Add propagation option value for value v, string o, and help h.
Definition at line 236 of file options.hpp.
|
inline |
Return propagation value.
Definition at line 240 of file options.hpp.
|
inline |
Set default integer propagation level.
Definition at line 245 of file options.hpp.
|
inline |
Return integer propagation level.
Definition at line 249 of file options.hpp.
|
inline |
Set default branching value.
Definition at line 254 of file options.hpp.
|
inline |
Add branching option value for value v, string o, and help h.
Definition at line 258 of file options.hpp.
|
inline |
Return branching value.
Definition at line 262 of file options.hpp.
|
inline |
Set default decay factor.
Definition at line 267 of file options.hpp.
|
inline |
Return decay factor.
Definition at line 271 of file options.hpp.
|
inline |
Set default seed value.
Definition at line 276 of file options.hpp.
|
inline |
Return seed value.
Definition at line 280 of file options.hpp.
|
inline |
Set default step value.
Definition at line 285 of file options.hpp.
|
inline |
Return step value.
Definition at line 289 of file options.hpp.
|
inline |
Set default search value.
Definition at line 299 of file options.hpp.
|
inline |
Add search option value for value v, string o, and help h.
Definition at line 303 of file options.hpp.
|
inline |
Return search value.
Definition at line 307 of file options.hpp.
|
inline |
Set default number of solutions to search for.
Definition at line 312 of file options.hpp.
|
inline |
Return number of solutions to search for.
Definition at line 316 of file options.hpp.
|
inline |
Set number of parallel threads.
Definition at line 321 of file options.hpp.
|
inline |
Return number of parallel threads.
Definition at line 325 of file options.hpp.
|
inline |
Set default copy recomputation distance.
Definition at line 330 of file options.hpp.
|
inline |
Return copy recomputation distance.
Definition at line 334 of file options.hpp.
|
inline |
Set default adaptive recomputation distance.
Definition at line 339 of file options.hpp.
|
inline |
Return adaptive recomputation distance.
Definition at line 343 of file options.hpp.
|
inline |
Set default discrepancy limit for LDS.
Definition at line 348 of file options.hpp.
|
inline |
Return discrepancy limit for LDS.
Definition at line 352 of file options.hpp.
|
inline |
Set default node cutoff.
Definition at line 357 of file options.hpp.
|
inline |
Return node cutoff.
Definition at line 361 of file options.hpp.
|
inline |
Set default failure cutoff.
Definition at line 366 of file options.hpp.
|
inline |
Return failure cutoff.
Definition at line 370 of file options.hpp.
|
inline |
Set default time cutoff.
Definition at line 375 of file options.hpp.
|
inline |
Return time cutoff.
Definition at line 379 of file options.hpp.
|
inline |
Set default number of assets in a portfolio.
Definition at line 384 of file options.hpp.
|
inline |
Return slice size in a portfolio.
Definition at line 388 of file options.hpp.
|
inline |
Set default slice size in a portfolio.
Definition at line 393 of file options.hpp.
|
inline |
Return slice size in a portfolio.
Definition at line 397 of file options.hpp.
|
inline |
Set default restart mode.
Definition at line 402 of file options.hpp.
|
inline |
Return restart mode.
Definition at line 406 of file options.hpp.
|
inline |
Set default restart base.
Definition at line 411 of file options.hpp.
|
inline |
Return restart base.
Definition at line 415 of file options.hpp.
|
inline |
Set default restart scale factor.
Definition at line 420 of file options.hpp.
|
inline |
Return restart scale factor.
Definition at line 424 of file options.hpp.
|
inline |
Set default restart cutoff.
Definition at line 429 of file options.hpp.
|
inline |
Return restart cutoff.
Definition at line 433 of file options.hpp.
|
inline |
Set default nogoods posting behavior.
Definition at line 438 of file options.hpp.
|
inline |
Return whether nogoods are used.
Definition at line 442 of file options.hpp.
|
inline |
Set default nogoods depth limit.
Definition at line 447 of file options.hpp.
|
inline |
Return depth limit for nogoods.
Definition at line 451 of file options.hpp.
|
inline |
Set default relax probability.
Definition at line 456 of file options.hpp.
|
inline |
Return default relax probability.
Definition at line 460 of file options.hpp.
|
inline |
Set default interrupt behavior.
Definition at line 467 of file options.hpp.
|
inline |
Return interrupt behavior.
Definition at line 471 of file options.hpp.
|
inline |
Set default mode.
Definition at line 481 of file options.hpp.
|
inline |
Return mode.
Definition at line 485 of file options.hpp.
|
inline |
Set default number of samples.
Definition at line 490 of file options.hpp.
|
inline |
Return number of samples.
Definition at line 494 of file options.hpp.
|
inline |
Set default number of iterations.
Definition at line 499 of file options.hpp.
|
inline |
Return number of iterations.
Definition at line 503 of file options.hpp.
|
inline |
Set whether to print only last solution found.
Definition at line 508 of file options.hpp.
|
inline |
Return whether to print only last solution found.
Definition at line 512 of file options.hpp.
|
inline |
Set default output file name for solutions.
Definition at line 517 of file options.hpp.
|
inline |
Get file name for solutions.
Definition at line 522 of file options.hpp.
|
inline |
Set default output file name for Gecode stats.
Definition at line 527 of file options.hpp.
|
inline |
Get file name for Gecode stats.
Definition at line 532 of file options.hpp.
|
inline |
Set trace flags.
Definition at line 537 of file options.hpp.
|
inline |
Return trace flags.
Definition at line 542 of file options.hpp.
|
inline |
Set profiler execution identifier.
Definition at line 553 of file options.hpp.
|
inline |
Return profiler execution id.
Definition at line 557 of file options.hpp.
|
inline |
Set profiler port.
Definition at line 561 of file options.hpp.
|
inline |
Return profiler execution id.
Definition at line 565 of file options.hpp.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| class Gecode::Options::I_ Gecode::Options::inspect |
Script mode to run.