Originally posted by: PhilippeLaborie
Hello,
I I understand well you are using CP (thus ILOG Solver and/or Scheduler) in C++ and you are writing your own search. In this context, you can use limits (fail or time limits) thanks to the notion of search limits. For instance:
IloGoal myLimitedGoal = IloLimitSearch(env, myGoal, IloTimeLimit(env, timeLimit));
There is an example in the distribution of ILOG Scheduler (scheduler/examples/src/altlns.cpp).
Philippe
#CPOptimizer#DecisionOptimization