Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  IlcAnd

    Posted 01/15/09 03:09 AM

    Originally posted by: SystemAdmin


    [adji said:]

    morning all...

    i use dispatcher 2.1 and solver 4.4 and try to create a vehicle route (consist of 8 node and 1 depot)
    like this:

    IlcGoal goal =IlcAnd(
    Link(m, w.getFirstVisit(), visit1),
    Link(m, visit1, visit2),
    Link(m, visit2, visit3),
    Link(m, visit3, visit4),
    Link(m, visit4, visit5),
    Link(m, visit5, visit6),
    Link(m, visit6, visit7),
    Link(m, visit8, visit9),
    Link(m, visit9, w.getLastVisit()));


    i got this error:
    ================================================================================

    --------------------Configuration: Text1 - Win32 Release--------------------
    Compiling...
    Text1.cpp
    E:\ta\prognya\aneh\Text1.cpp(68) : error C2661: 'IlcAnd' : no overloaded function takes 9 parameters
    Error executing cl.exe.

    Text1.obj - 1 error(s), 0 warning(s)
    ================================================================================


    do you know know why?
    how to solve it?

    thanks for your replay.....


    regard,


    adji
    #ConstraintProgramming-General
    #DecisionOptimization


  • 2.  Re: IlcAnd

    Posted 01/15/09 03:10 PM

    Originally posted by: SystemAdmin


    [Gwyneth said:]

    IlcAnd can only be used to concatentate a limited number of goals.  I think four might be the maximum, but I haven't checked.  If you look in the documentation for IlcAnd, the way to concatenate more goals is illustrated:


    Here's how to define a choice point with eight subgoals:

    IlcAnd(IlcAnd(g1, g2, g3, g4, g5),
            IlcAnd(g6, g7, g8));


    I hope that helps.
    #ConstraintProgramming-General
    #DecisionOptimization