Originally posted by: AndyHam
Dear IBM,
I am working on flexible job shop with job-transfer with mobile robot. There is a great FJSP cp example in Cplex studio, but I am attempting to write a new code to better trace mobile robots. Now, I need some help on OPL script.
Suppose there are two jobs (1 and 2). Job 1 has two steps and each step has two machines. For instance, Job 1 can be processed on either machine 3 or 2 at step 1.
(input)
alt ={
//job step mch pt
<1 1 3 10>
<1 1 2 20>
<1 2 7 36>
<1 2 8 26>
<2 1 3 20>
<2 1 4 15>
<2 2 7 24>
<2 2 8 36>
<2 3 2 14>
<2 3 3 10>
};
Now, I would like to precalculate all possible combinations of job to machine assignment and term each combination "route".
For instance, Job 1 has possible routes of mch 3è7, mch 3è8, mch 2è7, and mch 2è8.
Can you please help me to write OPL script to generate the combination as shown below?
route job step mch pt (Desired Output)
1 1 1 3 10
1 1 2 7 36
2 1 1 3 10
2 1 2 8 26
3 1 1 2 20
3 1 2 7 36
4 1 1 2 20
4 1 2 8 26
1 2 1 3 20
1 2 2 7 24
1 2 3 2 14
2 2 .......... .......... .......... ..........
Thanks,
Andy
#DecisionOptimization#OPLusingCPOptimizer