[gecode-users] How to get the Status of the Solver

hamideh izadyar hamidehizadyar at gmail.com
Thu Jul 28 13:08:57 CEST 2011


Hi,
I have written my code like this:

  *SizeOptions opt("Scheduling");
  opt.size(5);
  opt.solutions(0);

  opt.search(Scheduling::SEARCH_BAB);
  opt.search(Scheduling::SEARCH_DFS, "dfs");
  opt.search(Scheduling::SEARCH_BAB, "bab");
  opt.search(Scheduling::SEARCH_RESTART, "restart");
  opt.parse(argc,argv);

  if (opt.search() == Scheduling::SEARCH_DFS) {
    Script::run<Scheduling, DFS, SizeOptions>(opt);
  } else if (opt.search() == Scheduling::SEARCH_RESTART) {
    MinimizeScript::run<Scheduling, Restart, SizeOptions>(opt);
  } else {
    MinimizeScript::run<Scheduling, BAB, SizeOptions>(opt);*

I want to know how can I understand wether the solver founds a solution or
it fails?
Thanks
-- 
*-------------------------------------------------------------------------

Hamideh Izadyar
Graduate Student
Computer Engineering Dep.
Sharif University of Technology
http://ce.sharif.edu/~izadyar
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20110728/f40516ca/attachment.htm>


More information about the users mailing list