Originally posted by: SystemAdmin
[deborah said:]
Hi!!!
I run a scheduling problem in Java, I have m machines and n jobs... I need to work on the solution, particulary I want to print the assignment in this format:
M0 : 3
M1 : 7
M2 : 5 --> 6
M3 :
M4 : 4 --> 1
M5 : 8 --> 2
in this format I have to show the [u]order [/u] of execution of job.
I try to use:
IloIntervalSequenceVarMap W = opl.getElement("machines").asIntervalSequenceVarMap();
to access to the sequence var and:
IloIntervalSequenceVar subj=null;
for (int sc = 0; sc < 6; sc++) {<br />
subj = W.get(sc);
}
to access the single machine, but how can I access to single interval var to define the correct assignment?
Thanks
Deborah
#DecisionOptimization#OPLusingCPOptimizer