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

Function main

examples/tsp.cpp:320–335  ·  view source on GitHub ↗

\brief Main-function * \relates TSP */

Source from the content-addressed store, hash-verified

318 * \relates TSP
319 */
320int
321main(int argc, char* argv[]) {
322 SizeOptions opt("TSP");
323 opt.solutions(0);
324 opt.ipl(IPL_DOM);
325 opt.parse(argc,argv);
326
327 if (opt.size() >= ps_n) {
328 std::cerr << "Error: size must be between 0 and "
329 << ps_n-1 << std::endl;
330 return 1;
331 }
332
333 IntMinimizeScript::run<TSP,BAB,SizeOptions>(opt);
334 return 0;
335}
336
337// STATISTICS: example-any

Callers

nothing calls this directly

Calls 4

solutionsMethod · 0.45
iplMethod · 0.45
parseMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected