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

Function main

examples/sports-league.cpp:332–348  ·  view source on GitHub ↗

\brief Main-function * \relates SportsLeague */

Source from the content-addressed store, hash-verified

330 * \relates SportsLeague
331 */
332int
333main(int argc, char* argv[]) {
334 SizeOptions opt("Sports League Scheduling");
335 opt.ipl(IPL_DOM);
336 opt.size(18);
337 opt.parse(argc,argv);
338 if (opt.size() < 5) {
339 std::cerr<< "No Solution for less than 5 teams!" << std::endl;
340 return 1;
341 }
342 if (opt.size() % 2 != 0) {
343 std::cerr << "Number of teams has to be even!" << std::endl;
344 return 1;
345 }
346 Script::run<SportsLeague, DFS,SizeOptions>(opt);
347 return 0;
348}
349
350// STATISTICS: example-any

Callers

nothing calls this directly

Calls 3

iplMethod · 0.45
sizeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected