Display costs per period in multi period model

Problems with modeling
Post Reply
mikelusian
User
User
Posts: 3
Joined: 1 year ago

Display costs per period in multi period model

Post by mikelusian »

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!
abhosekar
Moderator
Moderator
Posts: 295
Joined: 3 years ago

Re: Display costs per period in multi period model

Post by abhosekar »

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

Code: Select all

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
Post Reply