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 booklet set 1*m, and i get 767 error (Could not extract number in <element> * <element> list)
How can i define the booklet set?
Thank you guys.
Emine.
About sets
Re: About sets
Hi
If you don't know the exact size of a set, you could define a set s /1*1000/ and then define k as a dynamic subset of a without elements: k(s).
If you have calculated the total number of booklets, you define k(s) as:
k(s)$(ord(s) lt totalnumberbooklets) = YES;
Now, k(s) will have the elements 1 to totalnumberbooklets
Hope this helps
Renger
If you don't know the exact size of a set, you could define a set s /1*1000/ and then define k as a dynamic subset of a without elements: k(s).
If you have calculated the total number of booklets, you define k(s) as:
k(s)$(ord(s) lt totalnumberbooklets) = YES;
Now, k(s) will have the elements 1 to totalnumberbooklets
Hope this helps
Renger
____________________________________
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Enjoy modeling even more: Read my blog on modeling at The lazy economist
Re: About sets
Thank you for the reply Renger! it helped.