Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Propgation Log

    Posted 07/05/12 06:24 PM

    Originally posted by: mslusky


    Hello,

    I am trying to see the propagation log for my code, so I did
    
    _cp.setParameter(IloCP::PropagationLog, IloCP::Normal);
    

    but when I run the code, it gives me a runtime error. It just says R6010 Abort() has been called. This is using 12.4. It does not happen with 12.2. The full code snippet is
    
    _cp.extract(_model); _cp.setParameter(IloCP::TimeLimit, 300); _cp.setIntParameter(IloCP::Workers, 1);   _cp.setParameter(IloCP::LogVerbosity, IloCP::Verbose); _cp.setParameter(IloCP::LogPeriod, 1); _cp.setParameter(IloCP::DefaultInferenceLevel, IloCP::Extended); _cp.setParameter(IloCP::SearchType, IloCP::Restart); _cp.setParameter(IloCP::RestartFailLimit, 40000); _cp.setParameter(IloCP::PropagationLog, IloCP::Normal);   _solFound = _cp.solve(_phaseArray);
    


    If I comment out the PropagationLog line, the model runs fine. If I put it in and try to debug, it brings me to the file crt0msg.c at line 217.

    Is PropagationLog not compatible with something else I'm doing? Is this an issue with CPOptimizer? Is there a workaround?

    Thanks,
    Marla
    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: Propgation Log

    Posted 07/06/12 03:03 AM

    Originally posted by: SystemAdmin


    Hello Marla.

    According to the documentation, propagation log is not supported together with restart search. Here is a quote from documentation:

    The propagation log can be used only in single-thread mode (parameter IloCP::Workers set to 1) with a depth-first search (parameter IloCP::SearchType set to IloCP::DepthFirst). If you try to start a search with the propagation log on and one or more of the above conditions violated, then an exception (an instance of IloException) is thrown.

    Could you try with DepthFirst? Could you also try to catch IloException?

    Best regards, Petr
    #CPOptimizer
    #DecisionOptimization