Skip to content

This tool clears the energy, secondary and tertiary markets, considering cross-border trading through a flow-based market coupling approach

License

Notifications You must be signed in to change notification settings

INESCTEC/ATTEST-WP2.6-Market-Simulator

 
 

Repository files navigation

ATTEST-WP2.6-Market-Simulator

This tool clears the energy, secondary and tertiary markets, considering cross-border trading through a flow-based market coupling approach.


Running the tool

To run the tool, the following command must be run:

python main.py [boolean] [boolean] [boolean]

The three boolean arguments refer to their respective market: energy, secondary and tertiary.

Setting the argument to:

  • True: will clear the correspoding market.
  • False: will ignore the corresponding market clearing optimization.

Input data

To run the Market Simulator there are 4 input folders: network, energy, secondary and tertiary.

The network folder input files are mandatory for every optimization.

On the other hand, the energy, secondary and tertiary folders input files are only required if that market is being cleared.

All input files are in csv format.

network folder

generators.csv

ElementDescription
gen_ididentification code of a generator
busbus number where the generator is connected
fixed_costfixed generator costs value in €/pu
variable_costvariable generator costs value in €/pu
r_upamount of energy that the generator is able to increase in production between periods
r_downamount of energy that the generator is able to decrease in production between periods
LGCboolean value to indicate if the energy market optimization considers the generator load gradient curve for complex orders
MICboolean values to indicate if the energy market optimization considers the generator minimum income coefficient for the complex order

loads_info.csv

ElementDescription
load_ididentification code of a load
busbus number where the generator is connected

branches.csv

ElementDescription
branch_ididentification code of a branch
bus0bus where the branch starts
bus1bus where the branch ends
rresistance value in p.u.
xreactance value in p.u.
bsusceptance value in p.u.
s_nomnominal power of the line in p.u.

buses.csv

ElementDescription
bus_ididentification code of a bus
zonezone number from where the bus is from
slackfboolean value to represent the slack bus

energy folder

gen_bid_prices.csv

ElementDescription
gen_ididentification code of a generator
n columnsn amount of columns that represent each timestep to run with each value representing the respective generator bid

gen_bid_qnt.csv

ElementDescription
gen_ididentification code of a generator
n columnsn amount of columns that represent each timestep to run with each value representing the respective generator bid

load_bid_prices.csv

ElementDescription
load_ididentification code of a load
n columnsn amount of columns that represent each timestep to run with each value representing the respective load bid

load_bid_qnt.csv

ElementDescription
load_ididentification code of a load
n columnsn amount of columns that represent each timestep to run with each value representing the respective load bid

secondary folder

gen_bid_prices.csv

ElementDescription
gen_ididentification code of a generator
n columnsn amount of columns that represent each timestep to run with each value representing the respective generator bid

gen_bid_qnt.csv

ElementDescription
gen_ididentification code of a generator
n columnsn amount of columns that represent each timestep to run with each value representing the respective generator bid

sec_req.csv

ElementDescription
gen_ididentification code of a zone
n columnsn amount of columns that represent each timestep to run with each value representing the respective zone secondary reserve requirements

tertiary folder

gen_bid_prices.csv

ElementDescription
gen_ididentification code of a generator
n columnsn amount of columns that represent each timestep to run with each value representing the respective generator bid

gen_bid_qnt.csv

ElementDescription
gen_ididentification code of a generator
n columnsn amount of columns that represent each timestep to run with each value representing the respective generator bid

ter_req.csv

ElementDescription
gen_ididentification code of a zone
n columnsn amount of columns that represent each timestep to run with each value representing the respective zone tertiary reserve requirements

Output data

To Market Simulator generates all outputs in csv format. The market results are inserted into their respective folder. Each folder content is as follows:

energy folder

FileDescription
results_gengenerators energy market clearance results for the timesteps defined in the input folders
results_loadloads energy market clearance results for the timesteps defined in the input folders

secondary folder

FileDescription
results_secondarygenerators secondary market clearance results for the timesteps defined in the input folders

tertiary folder

FileDescription
results_tertiarygenerators tertiary market clearance results for the timesteps defined in the input folders

About

This tool clears the energy, secondary and tertiary markets, considering cross-border trading through a flow-based market coupling approach

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%