Hello guys,
I just wonder if anyone could help me to write these codes better by using vector notation or loop maybe (just three last line before display). I appreciate it.
Set
SOL List of all solves /"1st solve", '2nd solve'/
J sectoral Production units /1,2,3/
T time /2000*2004/;
Parameter
OTHER(T) Emissions of other greenhouse gasses
Coef(J,T) coefficient CO2 emission from total production
RES(SOL,T) Results for for different scenarios;
OTHER(T)=5;
Table
Coef (J,T)
2000
1 0.01
2 0.04
3 0.025;
coef("1",T) = 0.01*(0.95**(ORD(T)-1));
coef("2",T) = 0.04*(0.95**(ORD(T)-1));
coef("3",T) = 0.025*(0.95**(ORD(T)-1));
display Coef;