Question: I couldnt find a way to fix this error. Its my homeworkand its due soon. I ' m trying to optimize a personnel scheduling problem

I couldnt find a way to fix this error. Its my homeworkand its due soon. I'm trying to optimize a personnel scheduling problem with lingo .
sets:
`
EMPLOYEES/1..11/;
SHIFTS/1..2/;
DAYS/1..30/;
GRUP1(EMPLOYEES,SHIFTS,DAYS):X;
ENDSETS
@gin(EMPLOYEES(i));
MIN= @SUM(EMPLOYEES(i): @SUM(DAYS(J): @SUM(SHIFTS(K)))): X(i,J,K);
@for(DAYS(J): @FOR(SHIFTS(K): @SUM(EMPLOYEES(i):X(i,J,K))>=1));
@for(EMPLOYEES(i): @FOR(DAYS(J): @FOR(SHIFTS(K):X(i,J,K)<=1)));
@sum(EMPLOYEES(i): @SUM(DAYS(J): @SUM(SHIFTS(K):X(i,J,K))))<=24;
`
I'm trying to make a personnel schedule problem with lingo. I quess something is wrong with my sets. For the employee set program uses the decimals I dont know why and how to fix this.t also gives me the error code 161 'index variables may not share names with other variables'

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!