Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Spent time condition on CP

    Posted 08/03/13 08:50 PM

    Originally posted by: HWFN_Hossein_Hojabri


    Hi everyone,

     

    I'm using CP to solve the partially destructed current solutions in ALNS. The problem is that in some iterations, CP takes very long to solve a satisfaction problem. My question is if I could put a time condition in CP to break if it takes more than a specified time t*? I'd appreciate if you could help me about that.

     

    Hossein


    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: Spent time condition on CP

    Posted 08/06/13 06:08 AM

    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


  • 3.  Re: Spent time condition on CP

    Posted 08/06/13 04:42 PM

    Originally posted by: HWFN_Hossein_Hojabri


    Thanks Philippe, I'll try it out.

     

    Hossein


    #CPOptimizer
    #DecisionOptimization