Generated on for Gecode by doxygen 1.17.0
options.hpp
Go to the documentation of this file.
1/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
2/*
3 * Main authors:
4 * Christian Schulte <schulte@gecode.dev>
5 *
6 * Copyright:
7 * Christian Schulte, 2004
8 *
9 * This file is part of Gecode, the generic constraint
10 * development environment:
11 * http://www.gecode.dev
12 *
13 *
14 * Permission is hereby granted, free of charge, to any person obtaining
15 * a copy of this software and associated documentation files (the
16 * "Software"), to deal in the Software without restriction, including
17 * without limitation the rights to use, copy, modify, merge, publish,
18 * distribute, sublicense, and/or sell copies of the Software, and to
19 * permit persons to whom the Software is furnished to do so, subject to
20 * the following conditions:
21 *
22 * The above copyright notice and this permission notice shall be
23 * included in all copies or substantial portions of the Software.
24 *
25 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 *
33 */
34
35#include <cstring>
36
37namespace Gecode {
38
39 namespace Driver {
40
41 /*
42 * String option
43 *
44 */
45 inline const char*
47 return cur;
48 }
49
50 /*
51 * String option
52 *
53 */
54 inline
55 StringOption::StringOption(const char* o, const char* e, int v)
56 : BaseOption(o,e), cur(v), fst(nullptr), lst(nullptr) {}
57 inline void
59 cur = v;
60 }
61 inline int
62 StringOption::value(void) const {
63 return cur;
64 }
65
66 /*
67 * Integer option
68 *
69 */
70 inline
71 IntOption::IntOption(const char* o, const char* e, int v)
72 : BaseOption(o,e), cur(v) {}
73 inline void
75 cur = v;
76 }
77 inline int
78 IntOption::value(void) const {
79 return cur;
80 }
81
82 /*
83 * Unsigned integer option
84 *
85 */
86 inline
87 UnsignedIntOption::UnsignedIntOption(const char* o, const char* e,
88 unsigned int v)
89 : BaseOption(o,e), cur(v) {}
90 inline void
91 UnsignedIntOption::value(unsigned int v) {
92 cur = v;
93 }
94 inline unsigned int
96 return cur;
97 }
98
99 /*
100 * Unsigned long long integer option
101 *
102 */
103 inline
105 (const char* o, const char* e, unsigned long long int v)
106 : BaseOption(o,e), cur(v) {}
107 inline void
108 UnsignedLongLongIntOption::value(unsigned long long int v) {
109 cur = v;
110 }
111 inline unsigned long long int
113 return cur;
114 }
115
116 /*
117 * Double option
118 *
119 */
120 inline
121 DoubleOption::DoubleOption(const char* o, const char* e,
122 double v)
123 : BaseOption(o,e), cur(v) {}
124 inline void
126 cur = v;
127 }
128 inline double
130 return cur;
131 }
132
133 /*
134 * Bool option
135 *
136 */
137 inline
138 BoolOption::BoolOption(const char* o, const char* e, bool v)
139 : BaseOption(o,e), cur(v) {}
140 inline void
142 cur = v;
143 }
144 inline bool
145 BoolOption::value(void) const {
146 return cur;
147 }
148
149 /*
150 * Integer propagation level option
151 *
152 */
153 inline void
155 cur = ipl;
156 }
157 inline IntPropLevel
158 IplOption::value(void) const {
159 return cur;
160 }
161
162
163 /*
164 * Trace flag option
165 *
166 */
167 inline void
169 cur = f;
170 }
171 inline int
172 TraceOption::value(void) const {
173 return cur;
174 }
175
176 /*
177 * Profiler option
178 *
179 */
180 inline
181 ProfilerOption::ProfilerOption(const char* o, const char* e, unsigned int p, int i)
182 : BaseOption(o,e), cur_port(p), cur_execution_id(i) {}
183 inline void ProfilerOption::port(unsigned int p) { cur_port = p; }
184 inline unsigned int ProfilerOption::port(void) const { return cur_port; }
186 inline int ProfilerOption::execution_id(void) const { return cur_execution_id; }
187
188 }
189
190 /*
191 * Options
192 *
193 */
194 inline void
195 BaseOptions::parse_strict(int& argc, char* argv[]) {
196 parse(argc,argv,true);
197 }
198 inline void
199 BaseOptions::parse_permissive(int& argc, char* argv[]) {
200 parse(argc,argv,false);
201 }
202
203 inline const char*
204 BaseOptions::name(void) const {
205 return _name;
206 }
207
208
209
210 /*
211 * Model options
212 *
213 */
214 inline void
216 _model.value(v);
217 }
218 inline void
219 Options::model(int v, const char* o, const char* h) {
220 _model.add(v,o,h);
221 }
222 inline int
223 Options::model(void) const {
224 return _model.value();
225 }
226
227 inline void
229 _symmetry.value(v);
230 }
231 inline void
232 Options::symmetry(int v, const char* o, const char* h) {
233 _symmetry.add(v,o,h);
234 }
235 inline int
236 Options::symmetry(void) const {
237 return _symmetry.value();
238 }
239
240 inline void
242 _propagation.value(v);
243 }
244 inline void
245 Options::propagation(int v, const char* o, const char* h) {
246 _propagation.add(v,o,h);
247 }
248 inline int
250 return _propagation.value();
251 }
252
253 inline void
255 _ipl.value(i);
256 }
257 inline IntPropLevel
258 Options::ipl(void) const {
259 return _ipl.value();
260 }
261
262 inline void
264 _branching.value(v);
265 }
266 inline void
267 Options::branching(int v, const char* o, const char* h) {
268 _branching.add(v,o,h);
269 }
270 inline int
271 Options::branching(void) const {
272 return _branching.value();
273 }
274
275 inline void
276 Options::decay(double d) {
277 _decay.value(d);
278 }
279 inline double
280 Options::decay(void) const {
281 return _decay.value();
282 }
283
284 inline void
285 Options::seed(unsigned int s) {
286 _seed.value(s);
287 }
288 inline unsigned int
289 Options::seed(void) const {
290 return _seed.value();
291 }
292
293 inline void
294 Options::step(double s) {
295 _step.value(s);
296 }
297 inline double
298 Options::step(void) const {
299 return _step.value();
300 }
301
302
303 /*
304 * Search options
305 *
306 */
307 inline void
309 _search.value(v);
310 }
311 inline void
312 Options::search(int v, const char* o, const char* h) {
313 _search.add(v,o,h);
314 }
315 inline int
316 Options::search(void) const {
317 return _search.value();
318 }
319
320 inline void
321 Options::solutions(unsigned long long int n) {
322 _solutions.value(n);
323 }
324 inline unsigned long long int
325 Options::solutions(void) const {
326 return _solutions.value();
327 }
328
329 inline void
331 _threads.value(n);
332 }
333 inline double
334 Options::threads(void) const {
335 return _threads.value();
336 }
337
338#ifdef GECODE_HAS_EXPERIMENTAL
339 inline void
343 inline const Search::HeuristicGuidance*
344 Options::guidance(void) const {
345 return _guidance;
346 }
347#endif
348
349 inline void
350 Options::c_d(unsigned int d) {
351 _c_d.value(d);
352 }
353 inline unsigned int
354 Options::c_d(void) const {
355 return _c_d.value();
356 }
357
358 inline void
359 Options::a_d(unsigned int d) {
360 _a_d.value(d);
361 }
362 inline unsigned int
363 Options::a_d(void) const {
364 return _a_d.value();
365 }
366
367 inline void
368 Options::d_l(unsigned int d) {
369 _d_l.value(d);
370 }
371 inline unsigned int
372 Options::d_l(void) const {
373 return _d_l.value();
374 }
375
376 inline void
377 Options::node(unsigned long long int n) {
378 _node.value(n);
379 }
380 inline unsigned long long int
381 Options::node(void) const {
382 return _node.value();
383 }
384
385 inline void
386 Options::fail(unsigned long long int n) {
387 _fail.value(n);
388 }
389 inline unsigned long long int
390 Options::fail(void) const {
391 return _fail.value();
392 }
393
394 inline void
395 Options::time(double t) {
396 _time.value(t);
397 }
398 inline double
399 Options::time(void) const {
400 return _time.value();
401 }
402
403 inline void
404 Options::assets(unsigned int n) {
405 _assets.value(n);
406 }
407 inline unsigned int
408 Options::assets(void) const {
409 return _assets.value();
410 }
411
412 inline void
413 Options::slice(unsigned int n) {
414 _slice.value(n);
415 }
416 inline unsigned int
417 Options::slice(void) const {
418 return _slice.value();
419 }
420
421 inline void
423 _restart.value(rm);
424 }
425 inline RestartMode
426 Options::restart(void) const {
427 return static_cast<RestartMode>(_restart.value());
428 }
429
430 inline void
432 _r_base.value(n);
433 }
434 inline double
436 return _r_base.value();
437 }
438
439 inline void
440 Options::restart_scale(unsigned int n) {
441 _r_scale.value(n);
442 }
443 inline unsigned int
445 return _r_scale.value();
446 }
447
448 inline void
449 Options::restart_limit(unsigned long long int n) {
450 _r_limit.value(n);
451 }
452 inline unsigned long long int
454 return _r_limit.value();
455 }
456
457 inline void
459 _nogoods.value(b);
460 }
461 inline bool
462 Options::nogoods(void) const {
463 return _nogoods.value();
464 }
465
466 inline void
467 Options::nogoods_limit(unsigned int l) {
468 _nogoods_limit.value(l);
469 }
470 inline unsigned int
472 return _nogoods_limit.value();
473 }
474
475 inline void
476 Options::relax(double d) {
477 _relax.value(d);
478 }
479 inline double
480 Options::relax(void) const {
481 return _relax.value();
482 }
483
484
485
486 inline void
488 _interrupt.value(b);
489 }
490 inline bool
491 Options::interrupt(void) const {
492 return _interrupt.value();
493 }
494
495
496 /*
497 * Execution options
498 *
499 */
500 inline void
502 _mode.value(sm);
503 }
504 inline ScriptMode
505 Options::mode(void) const {
506 return static_cast<ScriptMode>(_mode.value());
507 }
508
509 inline void
510 Options::samples(unsigned int s) {
511 _samples.value(s);
512 }
513 inline unsigned int
514 Options::samples(void) const {
515 return _samples.value();
516 }
517
518 inline void
519 Options::iterations(unsigned int i) {
520 _iterations.value(i);
521 }
522 inline unsigned int
524 return _iterations.value();
525 }
526
527 inline void
529 _print_last.value(p);
530 }
531 inline bool
533 return _print_last.value();
534 }
535
536 inline void
537 Options::out_file(const char *f) {
538 _out_file.value(f);
539 }
540
541 inline const char*
542 Options::out_file(void) const {
543 return _out_file.value();
544 }
545
546 inline void
547 Options::log_file(const char* f) {
548 _log_file.value(f);
549 }
550
551 inline const char*
552 Options::log_file(void) const {
553 return _log_file.value();
554 }
555
556 inline void
558 _trace.value(f);
559 }
560
561 inline int
562 Options::trace(void) const {
563 return _trace.value();
564 }
565
566#ifdef GECODE_HAS_CPPROFILER
567
568 /*
569 * Profiler options
570 *
571 */
572 inline void
574 _profiler.execution_id(i);
575 }
576 inline int
578 return _profiler.execution_id();
579 }
580 inline void
581 Options::profiler_port(unsigned int p) {
582 _profiler.port(p);
583 }
584 inline unsigned int
586 return _profiler.port();
587 }
588#endif
589
590#ifdef GECODE_HAS_GIST
592 Options::I_::I_(void) : _click(heap,1), n_click(0),
593 _solution(heap,1), n_solution(0), _move(heap,1), n_move(0),
594 _compare(heap,1), n_compare(0) {}
595
596 forceinline void
598 _click[static_cast<int>(n_click++)] = i;
599 }
600 forceinline void
602 _solution[static_cast<int>(n_solution++)] = i;
603 }
604 forceinline void
606 _move[static_cast<int>(n_move++)] = i;
607 }
608 forceinline void
610 _compare[static_cast<int>(n_compare++)] = i;
611 }
613 Options::I_::click(unsigned int i) const {
614 return (i < n_click) ? _click[i] : nullptr;
615 }
617 Options::I_::solution(unsigned int i) const {
618 return (i < n_solution) ? _solution[i] : nullptr;
619 }
621 Options::I_::move(unsigned int i) const {
622 return (i < n_move) ? _move[i] : nullptr;
623 }
625 Options::I_::compare(unsigned int i) const {
626 return (i < n_compare) ? _compare[i] : nullptr;
627 }
628#endif
629
630 /*
631 * Options with additional size argument
632 *
633 */
634 inline void
635 SizeOptions::parse_strict(int& argc, char* argv[]) {
636 parse(argc,argv,true);
637 }
638 inline void
639 SizeOptions::parse_permissive(int& argc, char* argv[]) {
640 parse(argc,argv,false);
641 }
642
643 inline void
644 SizeOptions::size(unsigned int s) {
645 _size = s;
646 }
647 inline unsigned int
648 SizeOptions::size(void) const {
649 return _size;
650 }
651
652 /*
653 * Options with additional string argument
654 *
655 */
656 inline void
657 InstanceOptions::parse_strict(int& argc, char* argv[]) {
658 parse(argc,argv,true);
659 }
660 inline void
661 InstanceOptions::parse_permissive(int& argc, char* argv[]) {
662 parse(argc,argv,false);
663 }
664
665 inline const char*
667 return _inst;
668 }
669
670 inline const char*
672 return _spec;
673 }
674
675 inline const char*
677 return _spec_file.value();
678 }
679
680 inline const char*
682 return _param.value();
683 }
684}
685
686// STATISTICS: driver-any
void parse_strict(int &argc, char *argv[])
Parse options with strict checking (equivalent to parse() with true).
Definition options.hpp:195
const char * _name
Script name.
Definition driver.hh:395
const char * name(void) const
Return name of script.
Definition options.hpp:204
void parse_permissive(int &argc, char *argv[])
Parse options partially (equivalent to parse() with false).
Definition options.hpp:199
void parse(int &argc, char *argv[])
Parse options from arguments argv (number is argc).
Definition options.cpp:611
BaseOption(const char *o, const char *e)
Initialize for option o and explanation e.
Definition options.cpp:105
bool cur
Current value.
Definition driver.hh:307
BoolOption(const char *o, const char *e, bool v=false)
Initialize for option o and explanation e and default value v.
Definition options.hpp:138
bool value(void) const
Return current option value.
Definition options.hpp:145
double value(void) const
Return current option value.
Definition options.hpp:129
double cur
Current value.
Definition driver.hh:287
DoubleOption(const char *o, const char *e, double v=0)
Initialize for option o and explanation e and default value v.
Definition options.hpp:121
int cur
Current value.
Definition driver.hh:226
int value(void) const
Return current option value.
Definition options.hpp:78
IntOption(const char *o, const char *e, int v=0)
Initialize for option o and explanation e and default value v.
Definition options.hpp:71
IntPropLevel cur
Current value.
Definition driver.hh:327
IntPropLevel value(void) const
Return current option value.
Definition options.hpp:158
ProfilerOption(const char *o, const char *e, unsigned int p=0, int v=-1)
Initialize for option o and explanation e and default value v.
Definition options.hpp:181
int execution_id(void) const
Return current execution ID.
Definition options.hpp:186
int cur_execution_id
Current execution ID.
Definition driver.hh:368
unsigned int cur_port
Current port.
Definition driver.hh:367
unsigned int port(void) const
Return current port.
Definition options.hpp:184
int cur
Current value.
Definition driver.hh:199
int value(void) const
Return current option value.
Definition options.hpp:62
StringOption(const char *o, const char *e, int v=0)
Initialize for option o and explanation e and default value v.
Definition options.hpp:55
Value * lst
Last option value.
Definition driver.hh:201
Value * fst
First option value.
Definition driver.hh:200
const char * value(void) const
Return current option value.
Definition options.hpp:46
const char * cur
Current value.
Definition driver.hh:155
int cur
Current value.
Definition driver.hh:347
int value(void) const
Return current option value.
Definition options.hpp:172
unsigned int value(void) const
Return current option value.
Definition options.hpp:95
UnsignedIntOption(const char *o, const char *e, unsigned int v=0)
Initialize for option o and explanation e and default value v.
Definition options.hpp:87
unsigned int cur
Current value.
Definition driver.hh:246
unsigned long long int cur
Current value.
Definition driver.hh:266
UnsignedLongLongIntOption(const char *o, const char *e, unsigned long long int v=0)
Initialize for option o and explanation e and default value v.
Definition options.hpp:105
unsigned long long int value(void) const
Return current option value.
Definition options.hpp:112
Abstract base class for comparators.
Definition gist.hh:119
Abstract base class for inspectors.
Definition gist.hh:99
const char * _inst
Instance string.
Definition driver.hh:836
Driver::StringListOption _param
Parameters for the spec.
Definition driver.hh:839
const char * instance(void) const
Return instance name.
Definition options.hpp:666
const char * spec(void) const
Return the reader spec for instance files (may be null).
Definition options.hpp:671
const char * _spec
Reader spec for instance files.
Definition driver.hh:837
const char * param(void) const
Return the spec parameters (may be null).
Definition options.hpp:681
void parse_strict(int &argc, char *argv[])
Parse options with strict checking (equivalent to parse() with true).
Definition options.hpp:657
Driver::StringValueOption _spec_file
File with a reader spec.
Definition driver.hh:838
const char * spec_file(void) const
Return the file with a reader spec (may be null).
Definition options.hpp:676
void parse_permissive(int &argc, char *argv[])
Parse options partially (equivalent to parse() with false).
Definition options.hpp:661
I_(void)
Constructor.
Definition options.hpp:592
void compare(Gist::Comparator *i)
Add comparator.
Definition options.hpp:609
void click(Gist::Inspector *i)
Add inspector that reacts on node double clicks.
Definition options.hpp:597
void move(Gist::Inspector *i)
Add inspector that reacts on each move of the cursor.
Definition options.hpp:605
void solution(Gist::Inspector *i)
Add inspector that reacts on each new solution that is found.
Definition options.hpp:601
Driver::DoubleOption _relax
Probability to relax variable.
Definition driver.hh:484
unsigned long long int restart_limit(void) const
Return restart cutoff.
Definition options.hpp:453
bool nogoods(void) const
Return whether nogoods are used.
Definition options.hpp:462
Driver::StringValueOption _log_file
Where to print statistics.
Definition driver.hh:499
unsigned int profiler_port(void) const
Return profiler execution id.
Definition options.hpp:585
Driver::StringOption _model
General model options.
Definition driver.hh:451
bool print_last(void) const
Return whether to print only last solution found.
Definition options.hpp:532
int model(void) const
Return model value.
Definition options.hpp:223
unsigned int a_d(void) const
Return adaptive recomputation distance.
Definition options.hpp:363
double threads(void) const
Return number of parallel threads.
Definition options.hpp:334
int symmetry(void) const
Return symmetry value.
Definition options.hpp:236
Driver::StringOption _mode
Script mode to run.
Definition driver.hh:494
Driver::DoubleOption _decay
Decay option.
Definition driver.hh:456
Driver::UnsignedIntOption _nogoods_limit
Limit for no-good extraction.
Definition driver.hh:483
unsigned int iterations(void) const
Return number of iterations.
Definition options.hpp:523
Driver::BoolOption _nogoods
Whether to use no-goods.
Definition driver.hh:482
Driver::UnsignedIntOption _slice
Size of a portfolio slice.
Definition driver.hh:476
Driver::UnsignedLongLongIntOption _r_limit
Cutoff for number of restarts.
Definition driver.hh:481
Driver::TraceOption _trace
Trace flags for tracing.
Definition driver.hh:500
Driver::UnsignedLongLongIntOption _fail
Cutoff for number of failures.
Definition driver.hh:473
Driver::UnsignedIntOption _d_l
Discrepancy limit for LDS.
Definition driver.hh:469
const Search::HeuristicGuidance * guidance(void) const
Return guidance for heuristic search.
Definition options.hpp:344
Driver::UnsignedIntOption _assets
Number of assets in a portfolio.
Definition driver.hh:475
Driver::UnsignedLongLongIntOption _node
Cutoff for number of nodes.
Definition driver.hh:471
int propagation(void) const
Return propagation value.
Definition options.hpp:249
unsigned int seed(void) const
Return seed value.
Definition options.hpp:289
unsigned int assets(void) const
Return slice size in a portfolio.
Definition options.hpp:408
ScriptMode mode(void) const
Return mode.
Definition options.hpp:505
unsigned long long int solutions(void) const
Return number of solutions to search for.
Definition options.hpp:325
Driver::UnsignedIntOption _iterations
How many iterations per sample.
Definition driver.hh:496
Driver::StringOption _search
Search options.
Definition driver.hh:463
Driver::StringOption _propagation
Propagation options.
Definition driver.hh:453
Driver::IplOption _ipl
Integer propagation level.
Definition driver.hh:454
Driver::UnsignedLongLongIntOption _solutions
How many solutions.
Definition driver.hh:465
const char * log_file(void) const
Get file name for Gecode stats.
Definition options.hpp:552
Driver::BoolOption _print_last
Print only last solution found.
Definition driver.hh:497
Driver::UnsignedIntOption _c_d
Copy recomputation distance.
Definition driver.hh:467
unsigned int c_d(void) const
Return copy recomputation distance.
Definition options.hpp:354
const Search::HeuristicGuidance * _guidance
Guidance for heuristic search.
Definition driver.hh:488
Driver::ProfilerOption _profiler
Options for the CP Profiler.
Definition driver.hh:503
Driver::DoubleOption _threads
How many threads to use.
Definition driver.hh:466
Driver::StringOption _branching
Branching options.
Definition driver.hh:455
int search(void) const
Return search value.
Definition options.hpp:316
Driver::StringOption _restart
Restart method option.
Definition driver.hh:477
Driver::UnsignedIntOption _seed
Seed option.
Definition driver.hh:457
Driver::DoubleOption _step
Step option.
Definition driver.hh:458
Driver::UnsignedIntOption _r_scale
Restart scale factor.
Definition driver.hh:479
Driver::DoubleOption _time
Cutoff for time.
Definition driver.hh:474
unsigned long long int fail(void) const
Return failure cutoff.
Definition options.hpp:390
Driver::BoolOption _interrupt
Whether to catch SIGINT.
Definition driver.hh:485
unsigned long long int node(void) const
Return node cutoff.
Definition options.hpp:381
double time(void) const
Return time cutoff.
Definition options.hpp:399
Driver::UnsignedIntOption _a_d
Adaptive recomputation distance.
Definition driver.hh:468
double decay(void) const
Return decay factor.
Definition options.hpp:280
Driver::DoubleOption _r_base
Restart base.
Definition driver.hh:478
Driver::StringOption _symmetry
General symmetry options.
Definition driver.hh:452
double step(void) const
Return step value.
Definition options.hpp:298
Driver::StringValueOption _out_file
Where to print solutions.
Definition driver.hh:498
unsigned int samples(void) const
Return number of samples.
Definition options.hpp:514
int profiler_id(void) const
Return profiler execution id.
Definition options.hpp:577
unsigned int d_l(void) const
Return discrepancy limit for LDS.
Definition options.hpp:372
RestartMode restart(void) const
Return restart mode.
Definition options.hpp:426
Driver::UnsignedIntOption _samples
How many samples.
Definition driver.hh:495
int trace(void) const
Return trace flags.
Definition options.hpp:562
const char * out_file(void) const
Get file name for solutions.
Definition options.hpp:542
double relax(void) const
Return default relax probability.
Definition options.hpp:480
bool interrupt(void) const
Return interrupt behavior.
Definition options.hpp:491
unsigned int slice(void) const
Return slice size in a portfolio.
Definition options.hpp:417
int branching(void) const
Return branching value.
Definition options.hpp:271
unsigned int nogoods_limit(void) const
Return depth limit for nogoods.
Definition options.hpp:471
double restart_base(void) const
Return restart base.
Definition options.hpp:435
IntPropLevel ipl(void) const
Return integer propagation level.
Definition options.hpp:258
unsigned int restart_scale(void) const
Return restart scale factor.
Definition options.hpp:444
Guidance for heuristic search engines (experimental).
Definition search.hh:1259
unsigned int size(void) const
Return size.
Definition options.hpp:648
void parse_strict(int &argc, char *argv[])
Parse options with strict checking (equivalent to parse() with true).
Definition options.hpp:635
void parse_permissive(int &argc, char *argv[])
Parse options partially (equivalent to parse() with false).
Definition options.hpp:639
unsigned int _size
Size value.
Definition driver.hh:776
Heap heap
The single global heap.
Definition heap.cpp:44
ScriptMode
Different modes for executing scripts.
Definition driver.hh:97
RestartMode
Different modes for restart-based search.
Definition driver.hh:108
IntPropLevel
Propagation levels for integer propagators.
Definition int.hh:1274
Script commandline driver.
Gecode toplevel namespace
#define forceinline
Definition config.hpp:144