Decision Optimization

Decision Optimization

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

 View Only
  • 1.  FailLimit condition

    Posted Thu March 12, 2009 04:02 PM

    Originally posted by: SystemAdmin


    [shadi said:]

    hi,
    using the following command:
        cpConfig.cp.param.FailLimit = 400000;
    The search will stop when the fail limit (400000) is  reached


    and when using the following command:
            if (colCnt ==10)
                  break;
            } 
    The search will stop when the cp model find 10 new columns.


    how i can stop the when

    (cpConfig.cp.param.FailLimit > 400000 && colCnt == 1) || (colCnt == 10)
    i mean i dont want to stop the search if the faillimit is reached and colCnt still 0 (no column was found).

    thanks in advanced
    kshienboun shadi
    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: FailLimit condition

    Posted Mon March 16, 2009 07:37 PM

    Originally posted by: SystemAdmin


    [afleischer said:]

    Hi,

    in your next() loop,

    you may write

    if (colCnt == 10)  cpConfig.cp.param.FailLimit > 400000;

    which means that as soon as colCnt equals 10, the FailLimit will be set

    Alex

    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: FailLimit condition

    Posted Tue March 17, 2009 11:32 AM

    Originally posted by: SystemAdmin


    [shadi said:]

    thank you Alex, it works good...
    i didn't know that i can set the FailLimit  parameter inside the next loop.


    #DecisionOptimization
    #OPLusingCPOptimizer