Decision Optimization

Decision Optimization

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


#Analytics
#DecisionOptimization
#DecisionOptimization
 View Only
  • 1.  Schedule tasks with variable durations.

    Posted 12/13/11 05:27 PM

    Originally posted by: UMQX_Olfat_ELMahi


    Hello

    i am trying to write a schedule proble but with a non fixed duration meaning that instead of :
    using CP;
    int nbOps = ...;
    int Q = ...;
    int ProcessingTimehttp://1..nbOps = ...;
    int Demandhttp://1..nbOps = ...;
    dvar interval operationshttp://i in 1..nbOps size ProcessingTime[i];
    constraints {
    sum(i in 1..nbOps) pulse(operations[i], Demand[i]) <= Q;
    }
    i want to use
    using CP;
    range Time = 0..maxAll;
    int nbOps = ...;
    int Q = ...;
    int Demandhttp://1..nbOps = ...;
    dvar int ProcessingTimehttp://1..nbOps in Time;
    dvar interval operationshttp://i in 1..nbOps size ProcessingTime[i];
    constraints {
    sum(i in 1..nbOps) pulse(operations[i], Demand[i]) <= Q;
    }

    but it gives me error :
    syntax error, unexpected (identifier), expecting ';'
    and
    ProcessingTime not allowed.

    can any one please help me ?

    Thanks
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: Schedule tasks with variable durations.

    Posted 12/14/11 10:20 AM

    Originally posted by: UMQX_Olfat_ELMahi


    i did solve it thanks
    all waht you have to do is to

    using CP;
    range Time = 0..maxAll;
    int nbOps = ...;
    int Q = ...;
    int Demand 1..nbOps = ...;
    dvar int ProcessingTime 1..nbOps in Time;
    dvar interval operations i in 1..nbOps size ProcessingTime[i];
    constraints {
    sum(i in 1..nbOps) pulse(operations[i], Demand[i]) <= Q;

    }
    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: Schedule tasks with variable durations.

    Posted 12/14/11 10:22 AM

    Originally posted by: UMQX_Olfat_ELMahi


    i did solve it thanks
    all waht you have to do is to

    using CP;
    range Time = 0..maxAll;
    int nbOps = ...;
    int Q = ...;
    int Demand 1..nbOps = ...;
    dvar int ProcessingTime 1..nbOps in Time;
    dvar interval operations i in 1..nbOps size ProcessingTime[i];
    constraints {
    sum(i in 1..nbOps) pulse(operations[i], Demand[i]) <= Q;
    enfOf(operations) - startOf(operations) == ProcessingTime;
    }
    #DecisionOptimization
    #OPLusingCPLEXOptimizer