Calling an equation marginal value

Problems with syntax of GAMS
Post Reply
Posts: 1
Joined: 2 months ago

Calling an equation marginal value

Post by Louis » 2 months ago

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:


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

User avatar
Posts: 165
Joined: 5 years ago
Location: Fairfax, VA

Re: Calling an equation marginal value

Post by dirkse » 2 months ago


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);


Post Reply