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

Function main

examples/all-interval.cpp:116–129  ·  view source on GitHub ↗

\brief Main-function * \relates AllInterval */

Source from the content-addressed store, hash-verified

114 * \relates AllInterval
115 */
116int
117main(int argc, char* argv[]){
118 SizeOptions opt("AllInterval");
119 opt.size(1000);
120 opt.iterations(5);
121 opt.ipl(IPL_BND);
122 opt.parse(argc, argv);
123 if (opt.size() < 2) {
124 std::cerr << "size must be at least 2!" << std::endl;
125 return -1;
126 }
127 Script::run<AllInterval,DFS,SizeOptions>(opt);
128 return 0;
129}
130
131// STATISTICS: example-any
132

Callers

nothing calls this directly

Calls 4

iterationsMethod · 0.80
sizeMethod · 0.45
iplMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected