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

Function main

examples/queens.cpp:189–210  ·  view source on GitHub ↗

\brief Main-function * \relates Queens */

Source from the content-addressed store, hash-verified

187 * \relates Queens
188 */
189int
190main(int argc, char* argv[]) {
191 SizeOptions opt("Queens");
192 opt.iterations(500);
193 opt.size(100);
194 opt.propagation(Queens::PROP_DISTINCT);
195 opt.propagation(Queens::PROP_BINARY, "binary",
196 "only binary disequality constraints");
197 opt.propagation(Queens::PROP_MIXED, "mixed",
198 "single distinct and binary disequality constraints");
199 opt.propagation(Queens::PROP_DISTINCT, "distinct",
200 "three distinct constraints");
201
202#if defined(GECODE_HAS_QT) && defined(GECODE_HAS_GIST)
203 QueensInspector ki;
204 opt.inspect.click(&ki);
205#endif
206
207 opt.parse(argc,argv);
208 Script::run<Queens,DFS,SizeOptions>(opt);
209 return 0;
210}
211
212// STATISTICS: example-any
213

Callers

nothing calls this directly

Calls 5

iterationsMethod · 0.80
propagationMethod · 0.80
sizeMethod · 0.45
clickMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected