Topic
4 replies Latest Post - ‏2013-12-25T20:58:30Z by Abdelkader
Abdelkader
Abdelkader
18 Posts
ACCEPTED ANSWER

Pinned topic Pb with OPL 3.7 for IBM Ilog Cplex Studio 12.5

‏2013-12-18T16:06:59Z |

I have to run the following program that was running perfectly on OPL Studio 3.7 but with many error messages with IBM Ilog Cplex Studo 12.5 int

 
//CONSTRAINTS 
subject to{ 
Max1 = (sum(i in NumPochesNumSeqCC1) (StartTime1[i,3] - StartTime1[i,1] - DurationCV)/ NbtotalPochesCC1);
Max2 = (sum(i in NumPochesNumSeqCC2) (StartTime2[i,3] - StartTime2[i,1] - DurationCV)/ NbtotalPochesCC2);

 

---------------------------
/* Constraints 8-9 : Starting time of charge at the CV */
forall(i in NumPochesNumSeqCC1)
   StartTime1[i,1] = sum(j in m1) (delta1 + DurationCV*(j-1))*z1Seq1[i,j]+ 
   sum(j in m2) (delta2 + DurationCV*(j-1))*z2Seq1[i,j];
forall(i in NumPochesNumSeqCC2)
   StartTime2[i,1]= sum(j in m1) (delta1 + DurationCV*(j-1))*z1Seq2[i,j]+
   sum(j in m2) (delta2 + DurationCV*(j-1))*z2Seq2[i,j];   

-------------------------------

/* Constraints 16-17 : Continuity on CC - No Overlap for two sucessive machines on CC  */
forall(k in 1..NombreSeqCC[1])
   forall(i in 1..NbPochesNumSeqCC1[k]-1)
      StartTime1[Indice1[k] + i+1,3] = StartTime1[Indice1[k]+i,3] + ProcessTime1[Indice1[k]+i];
              
forall(k in 1..NombreSeqCC[2])
   forall(i in 1..NbPochesNumSeqCC2[k]-1)
      StartTime2[Indice2[k] +i +1,3] = StartTime2[Indice2[k] +i,3] + ProcessTime2[Indice2[k]+i];

---------------------------

Description Resource Path Location Type
Le type float ne peut pas être utilisé pour constraint. IntersequenceProgram.mod /scc 87:1-5 OPL Outline Problem Marker
Le type float ne peut pas être utilisé pour constraint. IntersequenceProgram.mod /scc 86:1-5 OPL Outline Problem Marker
Il n'est pas possible d'affecter une contrainte dans une instruction forall imbriquée. Suggestion : ajoutez des paramètres formels internes à l'instruction forall la plus à l'extérieur. IntersequenceProgram.mod /scc 153:4-154:97 OPL Outline Problem Marker
Il n'est pas possible d'affecter une contrainte dans une instruction forall imbriquée. Suggestion : ajoutez des paramètres formels internes à l'instruction forall la plus à l'extérieur. IntersequenceProgram.mod /scc 149:4-150:96 OPL Outline Problem Marker
Le type dvar float+ ne peut pas être utilisé pour constraint. IntersequenceProgram.mod /scc 126:4-19 OPL Outline Problem Marker
Le type dvar float+ ne peut pas être utilisé pour constraint. IntersequenceProgram.mod /scc 123:4-19 OPL Outline Problem Marker
La configuration d'exécution "interseq" n'est pas valide. scc Unknown OPL Problem Marker

and if I don't ignore the following instructions, I get these errors also:

display StartTime1[NbtotalPochesCC1,3] + ProcessTime1[NbtotalPochesCC1];
 
display StartTime2[NbtotalPochesCC2,3] +ProcessTime2[NbtotalPochesCC2];
 
display Max1 ;
display Max2 ;
 
display StartTime1[1,3] - InitialStart1[1];
 
display StartTime2[1,3] - InitialStart2[1];

 

Description Resource Path Location Type
syntax error, unexpected -, expecting ';' IntersequenceProgram.mod /scc 216:25-26 OPL Outline Problem Marker
syntax error, unexpected -, expecting ';' IntersequenceProgram.mod /scc 214:25-26 OPL Outline Problem Marker
syntax error, unexpected +, expecting ';' IntersequenceProgram.mod /scc 209:40-41 OPL Outline Problem Marker
syntax error, unexpected +, expecting ';' IntersequenceProgram.mod /scc 207:40-41 OPL Outline Problem Marker
La configuration d'exécution "interseq" n'est pas valide. scc Unknown OPL Problem Marker
 
Could you help please?

 

Thanks in advance