Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cost of imports and exports (EUR) for each country (node) ? #25

Open
AbdullahAlawad opened this issue Oct 19, 2018 · 5 comments
Open

Cost of imports and exports (EUR) for each country (node) ? #25

AbdullahAlawad opened this issue Oct 19, 2018 · 5 comments
Labels
postprocessing Modifications in postprocessing module

Comments

@AbdullahAlawad
Copy link

Given the current GAMS code and its results, is it possible to write a postprocessing function to produce a time series for the cost of imports and exports (EUR) for each country (node)?
I would really appreciate any help or suggestion!

@kavvkon kavvkon added the postprocessing Modifications in postprocessing module label Oct 21, 2018
@squoilin
Copy link
Member

At the moment, the price of transmission is defined in the GAMS file, but not in the pre-processing. It is therefore considered to be zero.
We first need to include it in the Excel file and in the preprocessing (see #18), then we can also include it in the postprocessing.

@AbdullahAlawad
Copy link
Author

I may have miscommunicated my point. I want to mention an example to explain my point and what I meant by cost of exports/imports (EUR).
For example, The solution after running the optimization gives the following:

Country A operates its own generator 'A' to export half of its generation to country B and consumes the other half locally. Also, country A operates another generator 'B' to export half of its generation to country C and consumes the other half locally.

I wanted to record (if possible within GAMS) the power generation (and fuel consumption) from generator 'A' and 'B' which was exported to countries B and C, respectively. And to calculate the cost of this power generation (fixed+variable.. costs).

@squoilin
Copy link
Member

hmmm actually I don't think you can do that because you cannot determine which generator A or B is providing power to which Country B or C.
What you can compute is the congestion surplus (i.e. the profit that the transmission line operator can make by transporting the electricity). This would be given by the power flow times the marginal price difference between the two zones. Is non-null when the line is congested.

@AbdullahAlawad
Copy link
Author

Thank you for your reply! congestion surplus would be a good idea. This, however, does not capture everything I need to get. I am trying to calculate how much specific fuel was exported from, for instance, country A to country B and the cost of burning this fuel on country A. This is especially important because I am dealing with varying fuel subsidies in different countries.

Conceptually, the solver attempts to balance supply and demand of each country with the minimum cost either by locally generating cheaper power or dispatching cheaper power from a neighbor. At this instant, wouldn't it be possible to record the power flow from a neighbor using 'stacked units marginal costs' if I may say?
I thought I can somehow find a way to determine that by adding some constraints and using dual variables within GAMS.

@MPavicevic
Copy link
Member

MPavicevic commented Feb 25, 2021

This analysis should be possible with the power flow tracing matrix. When computed it shows which portion of the demand was cover by which zone:

Supply Z1 Z2 Z3
Z1 0.5 0.25 0.25
Z2 0 1 0
Z3 0 0.1 0.9

This would mean that Z2 is generating enough electricity locally. Z1 generates 0.5 locally and imports 0.25 from both Z2 and Z3. Z3 generates 0.9 locally and 0.1 imports from Z2.

If this percentages are multiplied by the generation in each zone one can easily see which FUEL-TECHNOLGY type supplied each zone. But I'm still not sure if this is what the question was all about.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
postprocessing Modifications in postprocessing module
Projects
None yet
Development

No branches or pull requests

4 participants