Search found 5 matches
- 6 years ago
- Forum: Modeling
- Topic: About New Constraint
- Replies: 1
- Views: 2084
About New Constraint
Hello guys, I need your help. My project is on booklet optimization for exams, it is a timetabling problem. Here my sets, variables, equ. and obj. : SETS o sessions /1*4/ k booklets /1*k/ i courses / course1 * coursen/ s students/student1*studentm/; VARIABLES x(i,k) if course i assing to booklet k, ...
- 6 years ago
- Forum: Modeling
- Topic: Constraint Problem
- Replies: 2
- Views: 2688
Re: Constraint Problem
Thank you very much for the reply Claudio,
Your suggestion worked, i didn't use auxiliary variable like w(i,k,o),
i just changed it like below:
z(i,o)-y(k,o))=l= 1-(x(i,k)) for all i,o,k
z(i,o)-y(k,o)=g= -(1-(x(i,k))) for all i,o,k
Have a nice day,
Emine
Your suggestion worked, i didn't use auxiliary variable like w(i,k,o),
i just changed it like below:
z(i,o)-y(k,o))=l= 1-(x(i,k)) for all i,o,k
z(i,o)-y(k,o)=g= -(1-(x(i,k))) for all i,o,k
Have a nice day,
Emine
- 6 years ago
- Forum: Modeling
- Topic: Constraint Problem
- Replies: 2
- Views: 2688
Constraint Problem
Hello guys, I need your help. My project is on booklet optimization for exams, it is a timetabling problem. Here my sets, variables, equ. and obj. : SETS o sessions /1*4/ k booklets /1*31/ i courses / course1 * coursen/ s students/student1*studentm/; VARIABLES x(i,k) if course i assing to booklet k ...
- 6 years ago
- Forum: Syntax
- Topic: About sets
- Replies: 2
- Views: 2755
Re: About sets
Thank you for the reply Renger! it helped.
- 6 years ago
- Forum: Syntax
- Topic: About sets
- Replies: 2
- Views: 2755
About sets
Hello guys, I have a problem about defining one of the set in my model. Sets in the model: *o sessions /1*4/ *k booklets /1*m/ *i courses /1*87/ *s students /1*30/; At the beginning of the study, number of booklets (k) is unknown and my aim is to minimize the total number of booklets. I define the b...