Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  The obsolete IlcActive function versus IloAndGoal

    Posted 07/21/11 10:03 AM

    Originally posted by: SystemAdmin


    Hi all,

    Does anyone know something about the obsolete function IlcActive(IlcGoal) ?

    I'd like to know if the code of
    IlcActive(IlcGoal1)
    IlcActive(IlcGoal2)

    is equivalent to do :
    solver.solve (IloAndGoal (_Env, IloGoal1, IloGoal2)) ?

    I can't find any old documentation about it...

    Thanks a lot!
    Best regards!
    #CPOptimizer
    #DecisionOptimization


  • 2.  Re: The obsolete IlcActive function versus IloAndGoal

    Posted 07/22/11 10:45 AM

    Originally posted by: ChrisBr


    Hi Alex,

    Yes at the toplevel you can consider that:

    IlcActive(IlcGoal1)
    IlcActive(IlcGoal2)

    is equivalent to do :
    solver.solve (IloAndGoal (_Env, IloGoal1, IloGoal2))

    In Solver 4.x there was a notion of edit mode.
    If the manager is in edit mode, what I said "at the toplevel", you can consider this works as you have understood.
    If the manager is not in edit mode (that is, it is in search mode), the behavior is a little bit different (let us know if you really need more details about this).

    Regards,

    Chris.
    #CPOptimizer
    #DecisionOptimization


  • 3.  Re: The obsolete IlcActive function versus IloAndGoal

    Posted 07/22/11 03:09 PM

    Originally posted by: SystemAdmin


    Hi,

    Thanks for your answer. Actually it is in no Edit mode....
    #CPOptimizer
    #DecisionOptimization


  • 4.  Re: The obsolete IlcActive function versus IloAndGoal

    Posted 07/22/11 05:04 PM

    Originally posted by: SystemAdmin


    Hi Chris,

    For the current development i made, i've used IloAndGoal in the solver.solve() to replace the calls of IlcActive used in the older version which worked with a manager (IlcNoEdit). But the solver doesn't find a solution....

    I would appreciate if you could explain me how to reach the same behavior than C
    #CPOptimizer
    #DecisionOptimization


  • 5.  Re: The obsolete IlcActive function versus IloAndGoal

    Posted 07/25/11 05:24 AM

    Originally posted by: SystemAdmin


    Hello,
    In general, solver.solve(IloGoal g, ...) can be used only at the top level of the search so if no exception is thrown in your code, even if the solver is in NoEdit mode, I guess it means that you are at the top level of the search and, in this context, the IloAndGoal should result in the same behavior as the two active goals. By the way, if you want to use some internal solve during the search, you need to use solver.solve(IlcGoal g,...) instead (with an +IlcGoal+).
    To understand the difference of behavior, I think you should analyze more in detail how the two searches run and which decisions are taken and in which order by adding some printing information in your goals.
    Philippe
    #CPOptimizer
    #DecisionOptimization


  • 6.  Re: The obsolete IlcActive function versus IloAndGoal

    Posted 07/25/11 11:11 AM

    Originally posted by: SystemAdmin


    Hi !
    Thanks for your answer.
    Actually, i have an exception if i do
    LfinalGoal = IloGoalTrue(Env) && LGoal1...

    instead of
    LfinalGoal= IloInstantiate (_Cost) && LGoal1 ...
    #CPOptimizer
    #DecisionOptimization