Page 1 of 1

Calling an equation marginal value

Posted: Fri Jul 30, 2021 5:52 pm
by Louis
Hello, i'm working on a GAMS code for Transmission Expansion Planning where I have two models working together a master problem feeding results to the subproblem and viceversa, in the later I need to take the marginal value of equations present on the master problem model, is there any syntax or command to do that? I've tried calling the equation like it was a variable for example:

EQ48.m(n,w)

But it does not work like that, if anyone knows how to do that I would appreciate it very much, greetings.

Re: Calling an equation marginal value

Posted: Mon Aug 02, 2021 6:29 pm
by dirkse
Louis,

It should work exactly as you seem to expect.

For example, if you add these lines to the end of the trnsport.gms model you get the behavior you desire:

Code: Select all

parameter sprice(i);
sprice(i) = supply.m(i);
HTH,

-Steve