My program in GAMS is working, but some results are not what I was expecting. I need to check some of my equations line by line, to see what value each variable has in every iteration. So I need a report in excel, which I know will be done with the put command. What I want to see for example is this :
Code: Select all
Net9(i,f,t)$(Ainc(i,f)=1) .. K(i,t) =e= sum(j$(Ainc(j,f)=-1),K(j,t)) + 2*((R(f)/Zbase)*(P_line(f,t)/Sbase) +
(X(f)/Zbase)*(Q_line(f,t)/Sbase));
- -------k(i) - k(j) -- P() ---Q()
iter1: 5 ----4 -----202 ---150
iter2: 7 ----2 -----420 ---340 ....