Decision Optimization

Decision Optimization

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

 View Only
Expand all | Collapse all

le processus opl run ne répond pas

  • 1.  le processus opl run ne répond pas

    Posted Fri September 22, 2017 06:35 AM

    Originally posted by: user1234567


    Hello, i have this error after running this code which took exactly 00:20:00:75; cplex block after this time of running and then displays this error message: Le processus opl run ne répond pas !

    here is the mod file:

    int nbJobs = ...;
    int nbMchs = ...;
    int nbOper = ...;

    range Jobs = 0..nbJobs-1;
    range Mchs = 0..nbMchs-1;
    range Oper = 0..nbOper-1;

    // Mchs is used both to index machines and operation position in job (cijk)
    tuple Operation {
     int id;
     int jobId;
     int mch; // Machine
     int pt;  // Processing time

    };


    Operation Ops[i in Jobs][j in Oper] = ...;

     
    dvar int+ s[j in Jobs][o in Mchs];
    dvar int+ c[j in Jobs][o in Mchs];


    dvar boolean X[i in Jobs][j in Oper][k in Mchs];
    dvar boolean e[i in Jobs][j in Oper][k in Mchs];
    dvar boolean y[i1 in Jobs][j1 in Oper][i2 in Jobs][j2 in Oper][k in Mchs];
     
     
     dexpr int Cmax = max(j in Jobs) c[j][nbMchs-1];
     
     
    minimize Cmax;
    subject to {

     

    forall (j in Jobs, o in 0..nbMchs-1) c[j][o]-s[j][o]==Ops[j][o].pt;


       
       forall (o1,o2 in Mchs) forall(i,j in Jobs:(Ops[i][o1].mch==Ops[j][o2].mch)
          && ((i!=j) || (o1!=o2)))
       (s[i][o1]>=c[j][o2]) || (s[j][o2]>=c[i][o1]);
      forall (j in Jobs, o in 0..nbMchs-2)
        (c[j][o]<=s[j][o+1]);
                                    
    }


    execute {
      for (var j = 0; j <= nbJobs-1; j++) {
        for (var o = 0; o <= nbMchs-1; o++) {
       
          write("start" +s[j][o] + "end" +c[j][o]);
            
        }
        writeln("");
      }
    }  
      

    .Dat:

    nbJobs = 10;
    nbMchs = 6;
    nbOper=55;

     

    Ops = [
     [ <1,1,1,5>,<1,1,2,0>,<1,1,3,4>,<1,1,4,0>,<1,1,5,0>, <1,1,6,0> ,
     <2,1,1,0>,<2,1,2,1>, <2,1,3,5>, <2,1,4,0>, <2,1,5,3>, <2,1,6,0> ,
     <3,1,1,0>,<3,1,2,0>, <3,1,3,4>, <3,1,4,0>, <3,1,5,0>, <3,1,6,2> ,
     <4,1,1,1>,<4,1,2,6>, <4,1,3,0>, <4,1,4,0>, <4,1,5,0>, <4,1,6,5> ,
     <5,1,1,0>,<5,1,2,0>, <5,1,3,1>, <5,1,4,0>, <5,1,5,0>, <5,1,6,0> ,
     <6,1,1,3>,<6,1,2,0>, <6,1,3,6>, <6,1,4,3>, <6,1,5,0>, <6,1,6,6> ],
     
      
     [ <1,2,1,0>,<1,2,2,6>, <1,2,3,0>, <1,2,4,0>, <1,2,5,0>,<1,2,6,0> ,
     <2,2,1,0>,<2,2,2,0>, <2,2,3,1>, <2,2,4,0>, <2,2,5,0>,<2,2,6,0> ,
     <3,2,1,2>,<3,2,2,0>, <3,2,3,0>, <3,2,4,0>, <3,2,5,0>,<3,2,6,0> ,
     <4,2,1,0>,<4,2,2,6>, <4,2,3,0>, <4,2,4,6>, <4,2,5,0>,<4,2,6,0> ,
     <5,2,1,1>,<5,2,2,6>, <5,2,3,0>, <5,2,4,0>, <5,2,5,0>,<5,2,6,5> ],
     
     [ <1,3,1,0>,<1,3,2,6>, <1,3,3,0>, <1,3,4,0>, <1,3,5,0>,<1,3,6,0> ,
     <2,3,1,0>,<2,3,2,0>, <2,3,3,4>, <2,3,4,0>, <2,3,5,0>,<2,3,6,2> ,
     <3,3,1,1>,<3,3,2,6>, <3,3,3,0>, <3,3,4,0>, <3,3,5,0>,<3,3,6,5> ,
     <4,3,1,0>,<4,3,2,6>, <4,3,3,4>, <4,3,4,0>, <4,3,5,0>,<4,3,6,6> ,
     <5,3,1,1>,<5,3,2,0>, <5,3,3,0>, <5,3,4,0>, <5,3,5,5>,<5,3,6,0> ], 

     [ <1,4,1,1>,<1,4,2,6>, <1,4,3,0>, <1,4,4,0>, <1,4,5,0>,<1,4,6,5> ,
     <2,4,1,0>,<2,4,2,6>, <2,4,3,0>, <2,4,4,0>, <2,4,5,0>,<2,4,6,0> ,
     <3,4,1,0>,<3,4,2,0>, <3,4,3,1>, <3,4,4,0>, <3,4,5,0>,<3,4,6,0> ,
     <4,4,1,0>,<4,4,2,1>, <4,4,3,5>, <4,4,4,0>, <4,4,5,3>,<4,4,6,0> ,
     <5,4,1,0>,<5,4,2,0>, <5,4,3,4>, <5,4,4,0>, <5,4,5,0>,<5,4,6,2> ],  
     
     [ <1,5,1,0>,<1,5,2,1>, <1,5,3,5>, <1,5,4,0>, <1,5,5,3>,<1,5,6,0> ,
     <2,5,1,1>,<2,5,2,6>, <2,5,3,0>, <2,5,4,0>, <2,5,5,0>,<2,5,6,5> ,
     <3,5,1,0>,<3,5,2,6>, <3,5,3,0>, <3,5,4,0>, <3,5,5,0>,<3,5,6,0> ,
     <4,5,1,5>,<4,5,2,0>, <4,5,3,4>, <4,5,4,0>, <4,5,5,0>,<4,5,6,0> ,
     <5,5,1,0>,<5,5,2,6>, <5,5,3,0>, <5,5,4,6>, <5,5,5,0>,<5,5,6,0> , 
     <6,5,1,0>,<6,5,2,6>, <6,5,3,4>, <6,5,4,0>, <6,5,5,0>,<6,5,6,6> ], 
     
     
     [ <1,6,1,0>,<1,6,2,0>, <1,6,3,4>, <1,6,4,0>, <1,6,5,0>,<1,6,6,2> ,
     <2,6,1,2>,<2,6,2,0>, <2,6,3,0>, <2,6,4,0>, <2,6,5,0>,<2,6,6,0> ,
     <3,6,1,0>,<3,6,2,6>, <3,6,3,4>, <3,6,4,0>, <3,6,5,0>,<3,6,6,6> ,
     <4,6,1,0>,<4,6,2,6>, <4,6,3,0>, <4,6,4,0>, <4,6,5,0>,<4,6,6,0> ,
     <5,6,1,1>,<5,6,2,6>, <5,6,3,0>, <5,6,4,0>, <5,6,5,0>,<5,6,6,5> , 
     <6,6,1,3>,<6,6,2,0>, <6,6,3,0>, <6,6,4,2>, <6,6,5,0>,<6,6,6,0> ], 
     
     [ <1,7,1,0>,<1,7,2,0>, <1,7,3,0>, <1,7,4,0>, <1,7,5,0>,<1,7,6,1> ,
     <2,7,1,3>,<2,7,2,0>, <2,7,3,0>, <2,7,4,2>, <2,7,5,0>,<2,7,6,0> ,
     <3,7,1,0>,<3,7,2,6>, <3,7,3,4>, <3,7,4,0>, <3,7,5,0>,<3,7,6,6> ,
     <4,7,1,6>,<4,7,2,6>, <4,7,3,0>, <4,7,4,0>, <4,7,5,1>,<4,7,6,0> ,
     <5,7,1,0>,<5,7,2,0>, <5,7,3,1>, <5,7,4,0>, <5,7,5,0>,<5,7,6,0> ], 
     
     
     [ <1,8,1,0>,<1,8,2,0>, <1,8,3,4>, <1,8,4,0>, <1,8,5,0>,<1,8,6,2>,
     <2,8,1,0>,<2,8,2,6>, <2,8,3,4>, <2,8,4,0>, <2,8,5,0>,<2,8,6,6>,
     <3,8,1,1>,<3,8,2,6>, <3,8,3,0>, <3,8,4,0>, <3,8,5,0>,<3,8,6,5>,
     <4,8,1,0>,<4,8,2,6>, <4,8,3,0>, <4,8,4,0>, <4,8,5,0>,<4,8,6,0>,
     <5,8,1,0>,<5,8,2,6>, <5,8,3,0>, <5,8,4,6>, <5,8,5,0>,<5,8,6,0> ], 
     
     [ <1,9,1,0>,<1,9,2,0>, <1,9,3,0>, <1,9,4,0>, <1,9,5,0>,<1,9,6,1> ,
     <2,9,1,1>,<2,9,2,0>, <2,9,3,0>, <2,9,4,0>, <2,9,5,5>,<2,9,6,0> ,
     <3,9,1,0>,<3,9,2,0>, <3,9,3,6>, <3,9,4,3>, <3,9,5,0>,<3,9,6,6> ,
     <4,9,1,2>,<4,9,2,0>, <4,9,3,0>, <4,9,4,0>, <4,9,5,0>,<4,9,6,0> ,
     <5,9,1,0>,<5,9,2,6>, <5,9,3,4>, <5,9,4,0>, <5,9,5,0>,<5,9,6,6> , 
     <6,9,1,0>,<6,9,2,6>, <6,9,3,0>, <6,9,4,6>, <6,9,5,0>,<6,9,6,0> ], 

     [ <1,10,1,0>,<1,10,2,0>, <1,10,3,4>, <1,10,4,0>, <1,10,5,0>,<1,10,6,2> ,
      <2,10,1,0>,<2,10,2,6>, <2,10,3,4>, <2,10,4,0>, <2,10,5,0>,<2,10,6,6> ,
      <3,10,1,0>,<3,10,2,1>, <3,10,3,5>, <3,10,4,0>, <3,10,5,3>,<3,10,6,0> ,
      <4,10,1,0>,<4,10,2,0>, <4,10,3,0>, <4,10,4,0>, <4,10,5,0>,<4,10,6,1> ,
      <5,10,1,0>,<5,10,2,6>, <5,10,3,0>, <5,10,4,6>, <5,10,5,0>,<5,10,6,0> , 
      <6,10,1,3>,<6,10,2,0>, <6,10,3,0>, <6,10,4,2>, <6,10,5,0>,<6,10,6,0> ], 
     
    ];

     

    Thank you

     


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: le processus opl run ne répond pas

    Posted Fri September 22, 2017 06:47 AM