Search found 2 matches

by baseerabbasi
6 years ago
Forum: Syntax
Topic: Loop
Replies: 3
Views: 3393

Re: Loop

Hi, Thank you very much for your reply Sir, My Code is like this eq3.. Netcost=e=(costAC+costDC); eq4.. PW=e=1/(1+r)**y; eq5.. CostY1=e=Netcost*PW; eq6.. CostY2=e=CostY1*PW; eq7.. CostY3=e=CostY2*PW; I want to make a loop that will increment year (y) value and calculate cost for the next year and th...
by baseerabbasi
6 years ago
Forum: Syntax
Topic: Loop
Replies: 3
Views: 3393

Loop

Hi, I am working in power distribution side. In my GAMS code , I have multiply cost with PRESENT WORTH FACTOR [1/((1+r)**Y)] , where r=0.03 and "Y" is number of years. Now I want my GAMS code to print value for 5 years . It is like this.. COST(Y)*[1/((1+r)**Y)] . I can not get incremental ...