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

Function main

examples/magic-square-partial.cpp:167–181  ·  view source on GitHub ↗

\brief Main-function * \relates MagicSquare */

Source from the content-addressed store, hash-verified

165 * \relates MagicSquare
166 */
167int
168main(int argc, char* argv[]) {
169 SizeOptions opt("MagicSquare");
170 opt.iterations(1);
171 opt.size(0);
172 opt.branching(MagicSquare::BRANCH_SIZE);
173 opt.branching(MagicSquare::BRANCH_SIZE, "size");
174 opt.branching(MagicSquare::BRANCH_AFC_SIZE, "afc-size");
175#ifdef GECODE_HAS_CBS
176 opt.branching(MagicSquare::BRANCH_CBS_MAX_SD, "maxSD");
177#endif
178 opt.parse(argc,argv);
179 Script::run<MagicSquare,DFS,SizeOptions>(opt);
180 return 0;
181}
182
183namespace {
184

Callers

nothing calls this directly

Calls 4

iterationsMethod · 0.80
branchingMethod · 0.80
sizeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected