Obtaining shadow price (marginal cost) of different commodities #427
-
Dear @khaeru
Regards |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
These questions can all be answered by reading the documentation, tutorials, and GAMS code. Please:
|
Beta Was this translation helpful? Give feedback.
-
@zsalimian thanks for your questions. I answer with the same order:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for your kind reply. I don't need the marginal cost of balance equations seprately. I think I can use the lvl column for the amount of shadow price. So, I think the lvl column shows the marginal price. Isn't it? |
Beta Was this translation helpful? Give feedback.
-
Please be specific with your quesitons. Are you asking about |
Beta Was this translation helpful? Give feedback.
-
Dear Dr., If your answer is 'yes',then 161.645110 is the PRICE_COMMODITY of light in the last year. So it represents the marginal cost of light in the last year and it must be the average of shadow prices of balance equations.In other words, as I mentioned before the marginal cost of commodity is sufficient for editing objective functions in GAMS code, but I confused which of them ('lvl' or 'mrg' columns) in the above output represent marginal cost, which is the average of shadow price of balance equations. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clarification. The answer to your question in general is "yes". I correct your sentence as " |
Beta Was this translation helpful? Give feedback.
@zsalimian thanks for your questions. I answer with the same order:
message_ix\model\MESSAGE\message_solve.gms
, you can find the calculation ofPRICE_COMMODITY
. It is based on both the marginals of commodity balance for "greater than" (GT) and "lower than" (LT) equations, divided by discount factor. If the marginal is zero in one of the above-mentioned equations, the marginal of the other one defines the price of commodity.scenario.var()
, after solving the scenario successfully. For example, for this case, you can do:df = scenario.var('PRICE_COMMODITY')
. T…