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

Function main

examples/car-sequencing.cpp:421–441  ·  view source on GitHub ↗

\brief Main-function * \relates CarSequencing */

Source from the content-addressed store, hash-verified

419 * \relates CarSequencing
420 */
421int
422main(int argc, char* argv[]) {
423 CarOptions opt("CarSequencing");
424 opt.solutions(0);
425 opt.size(0);
426 opt.branching(CarSequencing::BRANCH_INORDER);
427 opt.branching(CarSequencing::BRANCH_INORDER, "inorder");
428 opt.branching(CarSequencing::BRANCH_MIDDLE, "middle");
429 opt.propagation(CarSequencing::PROP_CUSTOM);
430 opt.propagation(CarSequencing::PROP_REGULAR, "regular");
431 opt.propagation(CarSequencing::PROP_CUSTOM, "custom");
432 opt.parse(argc,argv);
433 if (opt.size() >= n_problems) {
434 std::cerr << "Error: size must be between 0 and "
435 << n_problems-1 << std::endl;
436 return 1;
437 }
438
439 Script::run<CarSequencing,BAB,CarOptions>(opt);
440 return 0;
441}
442
443
444namespace {

Callers

nothing calls this directly

Calls 5

branchingMethod · 0.80
propagationMethod · 0.80
solutionsMethod · 0.45
sizeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected