Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions

Question

What factors in Nooyis Five C model facilitate employee trust?

Answered: 1 week ago