Decision Optimization

Decision Optimization

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


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

    Posted 02/08/09 01:51 PM

    Originally posted by: SystemAdmin


    [deborah said:]

    Hi!!!

    I run a scheduling problem in Java, I have m machines and n jobs... I need to work on the solution, particulary I want to print the assignment in this format:

    M0 : 3
    M1 : 7
    M2 : 5 --> 6
    M3 :
    M4 : 4 --> 1
    M5 : 8 --> 2

    in this format I have to show the [u]order [/u] of execution of job.

    I try to use:



    IloIntervalSequenceVarMap W = opl.getElement("machines").asIntervalSequenceVarMap();



    to access to the sequence var and:



    IloIntervalSequenceVar subj=null;

          for (int sc = 0; sc < 6; sc++) {<br />  
                    subj = W.get(sc);
          }



    to access the single machine, but how can I access to single interval var to define the correct assignment?

    Thanks

    Deborah

    #DecisionOptimization
    #OPLusingCPOptimizer


  • 2.  Re: IloIntervalSequenceVarMap

    Posted 02/11/09 06:16 PM

    Originally posted by: SystemAdmin


    [leon said:]

    Hi Deborah,


      IloIntervalVar a = cp.getFirst(subj);
      while (a != null) {
        System.out.println(cp.getDomain(a));
        a = cp.getNext(subj, a);
      }


    May this be useful
    #DecisionOptimization
    #OPLusingCPOptimizer


  • 3.  Re: IloIntervalSequenceVarMap

    Posted 03/04/09 07:43 PM

    Originally posted by: SystemAdmin


    [deborah said:]

    Hi leon,

    thank you for your replay.

    Bye

    Deborah
    #DecisionOptimization
    #OPLusingCPOptimizer