Sorry that I couldn’t find a proper subject to introduce my problem but here it goes:
I have two different parameters f(t) and d(i) that I want to put into the same equation.
i is the index of customers and t is the index of the time periods.
d(i) puts which customer wants their demand to be covered at which time period. For example, d(2)=3 is the customer with index 2’s demand must be covered at the time period with index number 3.
f(t) is the number of vehicles used in period t. f(2)=3 implies that 3 vehicles must be used in period 2 to cover the exact total demand within that period.
s(i) is the demand of the customer with the index number i. Say that s(2)=5
The model must cover all the demands exactly at the exact periods. To do so, I made an equation which is SUM(i,s(i)) = f(d(i)). (Each unit of demand requires one vehicle to be covered.)
The model thus should take into account all the customers and spend vehicles according to their demand periods. For instance, for the customer with index number 2 and with the information d(2)=3, it should increase f(d(i))=f(d(2))=f(3) by 5. Note that s(2)=5.
So far so good yet GAMS does not accept such syntax. I cannot put d(i) into the parameter f(t). The question is therefore how to tackle this problem. This may be done by modifying the equation or some of the parameters, I do not know. Thanks in advance for any information on how to put this into the GAMS code.
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.