MCPcopy Create free account
hub / github.com/Gecode/gecode / JobShopOptions

Method JobShopOptions

examples/job-shop.cpp:197–219  ·  view source on GitHub ↗

Initialize options for example with name \a s

Source from the content-addressed store, hash-verified

195public:
196 /// Initialize options for example with name \a s
197 JobShopOptions(const char* s)
198 : InstanceOptions(s),
199 _verbose("verbose","whether to print schedule",
200 JobShopConfig::verbose),
201 _probes("probes","how many probes to perform",
202 JobShopConfig::probes),
203 _fail_probe("fail-probe","failure limit per probe",
204 JobShopConfig::fail_probe),
205 _time_probe("time-probe","time-out for probing (in milliseconds)",
206 JobShopConfig::time_probe),
207 _time_adjust("time-adjust","time-out for adjusting (in milliseconds)",
208 JobShopConfig::time_adjust),
209 _time_solve("time-solve","time-out for solving (in milliseconds)",
210 JobShopConfig::time_solve),
211 _tbf("tbf", "tie-breaking factor", 0.0) {
212 add(_verbose);
213 add(_probes);
214 add(_fail_probe);
215 add(_time_probe);
216 add(_time_adjust);
217 add(_time_solve);
218 add(_tbf);
219 }
220 /// Return whether to print schedule
221 bool verbose(void) const {
222 return _verbose.value();

Callers

nothing calls this directly

Calls 1

addFunction · 0.85

Tested by

no test coverage detected