Re: Problem in set configuration

Then can you move to CPLEX 12.9 ?

This is the latest version and with 12.9 what I sent you works fine

Or if you need to stick with 12.8 you could write

range H = 1..2 ;

   range tasKRange = 1..5 ;

    

tuple predtask{
    int h;     // Líne num
    int i;      // task
    int tt;   // task time
    int taskP;   // Predecesor task
    int taskS;  // Sucesor task
}
{predtask} PredTask=…;

 


{int} conjuntoPredTot1 [h in H, i in tasKRange,j in tasKRange] =   { e.i | e in PredTask  : h == e.h  && j == e.taskS && j <= i } ;


{int} conjuntoPredTot[h in H, i in tasKRange]=union ( j in tasKRange) conjuntoPredTot1 [h , i,j ];
execute
{
writeln(conjuntoPredTot);
}  

regards

Source: Re: Problem in set configuration