Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

RCPSP

  • 1.  RCPSP

    Posted Sat April 25, 2015 03:26 PM

    Originally posted by: 1259


    Hi,

    I am so sorry for disturbing

    I am new in cplex. I have a problem, could anybody please help me??

    I deal with a RCPSP model. I have an error that I cannot pass over . The error says the operator not available for..

    Actually I have a decision variable S[i] that defines start time of activity i. For each activity there is a precedency relationship. That is to say, for starting activity j there is a need to complete the predecessor activity i. so the start time of activity j is:  S[i] >=S[i] +duration[i] 

    I define the parameters of the activities and S[i]  as follows:

    tuple Task{

    key int ID;

    int duration;

    int EarliestStart;

    int LatestStart;

    int Latestfinish;

    int duedate;

    int demand resource;

    {int} pred;}

     

    //variables

    dvar int+ S[i]; 

     

    then in the constraints I define:

    forall (i in Tasks, j in i.pred)

    S[i] >=S[i] +i.duration;

    At this constraint I have the above mentioned error. Could you please help me how can I solve this error?

    Best regards

     

    â€

    ​


    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 2.  Re: RCPSP

    Posted Mon April 27, 2015 05:49 AM

    Hi,

    have you had a look at the example

    examples/opl/sched_rcpsp ?

    Can you attach your model ?

    regards

     
     

    #DecisionOptimization
    #OPLusingCPLEXOptimizer


  • 3.  Re: RCPSP

    Posted Tue April 28, 2015 02:54 AM

    Originally posted by: 1259


    Hi 

    thank you so much for your response. Yes, I have seen. But my problem is a little different.

    Actually I solved the error..

     

    Best regards 


    #DecisionOptimization
    #OPLusingCPLEXOptimizer