Repository navigation
Feature/markets - #924
Open
manarjar wants to merge 10 commits into
Open
Feature/markets#924manarjar wants to merge 10 commits into
manarjar wants to merge 10 commits into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a markets module that lets zones buy and sell electricity from an external market at hourly prices.
Main changes:
src/model/policies/markets.jl): hourly buy/sell variables per market zone, with import/export limits fromZones_markets.csvand prices fromMarket_price.csv. Market purchases and sales enter the power balance and the objective.eTotalGenerationByZoneexpression aggregating net generation from thermal (incl. fusion parasitic load), VRE, must-run, hydro, storage (net of charging), VRE-STOR, and Allam cycle resources. Hourly sales in each zone are capped by this expression. Flexible demand and electrolyzers are excluded since they don't generate.Market_emissions.csvare added to a neweTotalEmissionsByZoneexpression, which is used in all CO2 cap formulations and inemissions.csv. Exports are not credited, since their emissions are already counted at the generating resources.load_markets_data.jl, a newMarketssetting (off by default), andwrite_markets.jl.write_power_balance.jlnow uses named columns instead of integer indices, so new components can be added to the power balance without tracking positions.example_systems/12_single_zone_w_markets.What type of PR is this? (check all applicable)
Checklist
How this can be tested
Run the included example system
example_systems/12_single_zone_w_markets:With
Markets: 1insettings/genx_settings.yml, the model should:results/(markets.csv), with hourly buy and sell decisions responding toMarket_price.csveTotalGenerationByZone)Market_emissions.csvin the zonal emissions, the CO2 cap, andemissions.csvpower_balance.csvTo check that existing behavior is unchanged, run any existing example with markets disabled (
Markets: 0, the default). Results should matchdevelop.Post-approval checklist for GenX core developers
After the PR is approved