Skip to content

Obtaining shadow price (marginal cost) of different commodities #427

Discussion options

You must be logged in to vote

@zsalimian thanks for your questions. I answer with the same order:

  1. Yes, that's true.
  2. In the GAMS formulation, in the file message_ix\model\MESSAGE\message_solve.gms, you can find the calculation of PRICE_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.
  3. You should be able to look into the content of an output variable by calling scenario.var(), after solving the scenario successfully. For example, for this case, you can do: df = scenario.var('PRICE_COMMODITY'). T…

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@meng25meng
Comment options

@glatterf42
Comment options

Answer selected by glatterf42
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@zsalimian
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #427 on December 10, 2020 11:11.