calculation of retired equipment volume

Problems with modeling
Post Reply
barryliu54gams
User
User
Posts: 1
Joined: 4 years ago

calculation of retired equipment volume

Post by barryliu54gams »

Dear all!
One part of my gams model is to calculate the volume of equipment retired in year t and I used the following equation:
 

Code: Select all

v_outflow(t)  ..  out(t) =e= sum((tp,p)$(ord(tp) Lt ord(t) and ord(p) eq ord(t)- ord(tp)),in(tp) * out_factor(p));
 
Basic idea of the equation is that the volume of equipment retired in yeart ,v_outflow(t,i), is composed of equipment produced from year1 to yeartp( tp <= t ) and the retire proportion of equipment produced in year t when it has been used for p years(p = t – tp) is out_factor(p). and the in(tp) means the equipment produced in yeartp.
 
The gamside tells me that the syntax of the sentence is correct, while I can't get the correct answer based on the formula. So can anyone help me with identifying the error of the formula? Or is there any better method to compute the retired volume.
Post Reply