\brief Main-function * \relates Photo */
| 166 | * \relates Photo |
| 167 | */ |
| 168 | int |
| 169 | main(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 |
| 192 | const int small[] = { |