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

Function main

examples/job-shop.cpp:800–826  ·  view source on GitHub ↗

\brief Main-function * \relates JobShop */

Source from the content-addressed store, hash-verified

798 * \relates JobShop
799 */
800int
801main(int argc, char* argv[]) {
802 JobShopOptions opt("JobShop");
803
804 opt.branching(JobShopSolve::BRANCH_AFC);
805 opt.branching(JobShopSolve::BRANCH_AFC, "afc");
806 opt.branching(JobShopSolve::BRANCH_ACTION, "action");
807 opt.branching(JobShopSolve::BRANCH_CHB, "chb");
808
809 opt.propagation(JobShopSolve::PROP_UNARY);
810 opt.propagation(JobShopSolve::PROP_ORDER,"order");
811 opt.propagation(JobShopSolve::PROP_UNARY,"unary");
812
813 opt.instance("ft06");
814
815 opt.restart_base(JobShopConfig::restart_base);
816 opt.restart_scale(JobShopConfig::restart_scale);
817 opt.nogoods(true);
818
819 opt.parse(argc,argv);
820 if (!Spec(opt.instance()).valid()) {
821 std::cerr << "Error: unknown instance" << std::endl;
822 return 1;
823 }
824 solve(opt);
825 return 0;
826}
827
828#include "examples/job-shop-instances.hpp"
829

Callers

nothing calls this directly

Calls 10

solveFunction · 0.85
branchingMethod · 0.80
propagationMethod · 0.80
SpecClass · 0.70
instanceMethod · 0.60
restart_baseMethod · 0.45
restart_scaleMethod · 0.45
nogoodsMethod · 0.45
parseMethod · 0.45
validMethod · 0.45

Tested by

no test coverage detected