Originally posted by: SystemAdmin
Hi everyone,
I just started using the cplex optimizer, and I have this small problem to fix.
In my program I want to create an examination schedule.
This is a part of my input:
range Student = 1..NbStudents;
range Exam = 1..NbExams;
range Timeslot = 1..NbTimeslots;
{int} Vaks
Student; // This is an array I assigned for each student containg the exams he/she has to undertake
I now have the following constraint:
forall(s in Student, e in Vaks[s])
ct:
sum(t in Timeslot)x[s][e][t]==1;
In this constraint I only look at the exams a student has to undertake in stead of looking at every exam.
Doing this I get the error: Constraint labeling not supported for dimensions with variable size.
But when I ignore the labeling I get a conflict while running the program saying that the constraint is unnamed and the constraints gets relaxed.
How can I solve this?
Regards,
#ConstraintProgramming-General#DecisionOptimization