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

Function main

examples/photo.cpp:168–189  ·  view source on GitHub ↗

\brief Main-function * \relates Photo */

Source from the content-addressed store, hash-verified

166 * \relates Photo
167 */
168int
169main(int argc, char* argv[]) {
170 SizeOptions opt("Photo");
171 opt.solutions(0);
172 opt.size(1);
173 opt.iterations(10);
174 opt.ipl(IPL_BND);
175 opt.relax(0.7);
176 opt.time(10 * 1000);
177 opt.branching(Photo::BRANCH_DEGREE);
178 opt.branching(Photo::BRANCH_NONE, "none");
179 opt.branching(Photo::BRANCH_DEGREE, "degree");
180 opt.branching(Photo::BRANCH_AFC_SIZE, "afc");
181 opt.parse(argc,argv);
182 if (opt.size() >= n_pi) {
183 std::cerr << "Error: size must be between 0 and " << n_pi - 1
184 << std::endl;
185 return 1;
186 }
187 IntMinimizeScript::run<Photo,BAB,SizeOptions>(opt);
188 return 0;
189}
190
191/// Small Photo example
192const int small[] = {

Callers

nothing calls this directly

Calls 8

iterationsMethod · 0.80
relaxMethod · 0.80
branchingMethod · 0.80
solutionsMethod · 0.45
sizeMethod · 0.45
iplMethod · 0.45
timeMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected