Display costs per period in multi period model

Hello everyone,

I am currently working on a multi period model that minimizes the total costs over 4 periods. I was wondering if it is possible to show the costs of each period on it’s own as well and not just the total costs of the 4 periods?

Thank you in advance!

It is possible. I assume you have an index for time periods.

set i /i1*i4/
t /t1*t5/;

parameter p(i,t);
p(i,t) = 0.1;

file name / ''/;
put name;
put p('i1', 't1');
putclose;

display p;

You can display the entire symbol using display or you can use put as I showed you above.

If you have a variable, you can follow the same approach but you will have a .l suffix.

  • Atharv