Originally posted by: TRAN Van Ut
Dear my friend,
I jobs 1, 2,… with processing time p and due (please see the file .dat and in file Z_H.ZIP)
Z_H.zip|View Details

Such that all jobs respect of (i.e Cj-dj] <=0 for all j from 1 to n). My code is below:
=
Process = 1.;
p [Process] = ...
d [Process] = ...
float+ CProcess];
boolean zProcess[Process];
int+ h;
h;
to
{
in Processj in Processk in Process)
[k]<=z[j+zj[k];
in 1.nbJobs-1j in i+1. . )
C[j]>= C[i]+ p[i]-1000*(1-z[i][j]);
in 1.nbJobs-1j in i+1. . )
C[i]>= C[j]+ p[j]-1000*z[i][j];
j in Process)
Cj-dj] <=0;
== sum in 1.nbJobs-1, j in i+1.) z[j];
}
In fact, the right result the position of is: 10 9 1 8 7 2 6 5 3 4 and Minh=12
With this model, I got only 10 9 1 8 7 2 6 5 4 3 and Minh=11. But when I checked by hand that C3-d3=1, it cannot satisfy this constraint: Cj-dj] <=0;
Please help me what was wrong in my code
Thanks in advance for your help
Best regards,
#DecisionOptimization#OPLusingCPLEXOptimizer