Study format changes¶
This is a list of all recent changes that came with new Antares Simulator features. The main goal of this document is to lower the costs of changing existing interfaces, both GUI and scripts.
v8.9.0¶
Input¶
Solver logs¶
- Solver logs can be enabled either by the command-line option (--solver-logs) or in the generaldata.ini file by setting solver-logs = true under the optimization section.
v8.8.0¶
Input¶
Short-term storage¶
If no value is specified for initiallevel
, then a default value of 50% is used. Note that this value is used only if initialleveloptim=false
, and that false
is the default value for initialleveloptim
.
Add property enabled
(bool, default=true
). If a ST storage object is not enabled, it is ignored by Antares Simulator.
Experimental "MILP" mode¶
New value milp
for existing property other preferences/unit-commitment-mode
in file settings/generaldata.ini.
Using this property requires OR-Tools and a MILP solver (XPRESS, COIN)
antares-8.8-solver --use-ortools --ortools-solver coin|xpress ...
Output¶
Cashflow by short-term storage¶
In existing file details-STstorage-<period>.txt (mc-all & mc-ind), add a new column for each ST storage object, named "STS Cashflow By Cluster", in EURO.
v8.7.0¶
Input¶
Scenarized RHS for binding constraints¶
-
For each binding constraint, file input/bindingconstraints/<id>.txt is split into 3 files:
- input/bindingconstraints/<id>_lt.txt
- input/bindingconstraints/<id>_gt.txt
- input/bindingconstraints/<id>_eq.txt
Each of these files can be either empty or have N column of 8674 rows
-
In file input/bindingconstraints/bindingconstraints.ini, add property
group
to every section - Binding constraints in the same group must have the same number of RHS columns (3 files described above for their respective types). Exception: a constraint in a group can have empty RHS or only one RHS column
-
In file settings/scenariobuilder.dat, add prefix
bc
for every group of binding constraints. The syntax is the followingThis line is not mandatory for every group & MC year. If absent, the TS number will be drawn randomly (usual behavior).bc,<group>,<MC Year> = <TS number>
-
0 <= MC Year < generaldata.ini/general.nbyears
- 1 <=TS number <= number of columns for the group
Thermal cluster new properties¶
For each thermal cluster, in existing file input/thermal/clusters/<area>/list.ini, under existing sections <cluster>, following properties added:
costgeneration
[string] can take valuesuseCostTimeseries
or be excluded from the section ifSetManually
is selected (default behavior).efficiency
[float] between 0-100 (default = 100). Unit is "percentage".variableomcost
[float] excluded from the section if default value 0 is selected (default behavior). Unit is Euro / MWh
For each thermal cluster, new files added input/thermal/series/<area>/<cluster>/CO2Cost.txt and input/thermal/series/<area>/<cluster>/fuelCost.txt. fuelCost.txt and CO2Cost.txt must either have one column, or the same number of columns as existing file series.txt (availability). The number of rows for these new matrices is 8760.
Output¶
Scenarized RHS for binding constraints¶
Add directory bindingconstraints to output directory ts-numbers. For every binding constraint group, add a file ts-numbers/bindingconstraints/<group>.txt containing the TS numbers used for that group.
v8.6.0¶
Input¶
Short-term storage¶
- Add directories input/st-storage/clusters and input/st-storage/series
- For each area, add directory input/st-storage/clusters/<area id>/list.ini
-
This file contains the multiple sections whose name is ignored. Each section contains these properties:
name
[str]group
[str]. Possible values: "PSP_open", "PSP_closed", "Pondage", "Battery", "Other1", ... , "Other5". Default Other1efficiency
[double] in range 0-1reservoircapacity
[double] > 0initiallevel
[double] in range 0-1withdrawalnominalcapacity
[double] > 0injectionnominalcapacity
[double] > 0initialleveloptim
[bool]
-
For each short-term-storage object, add the corresponding time-series in directory input/st-storage/series/<area id>/<STS id>. All of these files contain 8760 rows and 1 column.
- PMAX-injection.txt All entries must be in range 0-1
- PMAX-withdrawal.txt All entries must be in range 0-1
- inflows.txt All entries must be > 0
- lower-rule-curve.txt All entries must be in range 0-1
- upper-rule-curve.txt All entries must be in range 0-1
Pollutant emission factors¶
In files input/thermal/cluster/area/list.ini add properties nh3
, nox
, pm2_5
, pm5
, pm10
, nmvoc
, so2
, op1
, op2
, op3
, op4
, op5
[double]. These properties are emission factors similar to the existing one for CO2.
Adequacy patch¶
In file settings/generaldata.ini, in section adequacy patch
add property enable-first-step
[bool]. Default value = true
Enable or disable DENS column
Hydro Pmin¶
For each area, new file added input/hydro/series/<area>/mingen.txt. This file has one or more columns, and 8760 rows. The number of columns may be 1, or identical to the number of columns in existing file mod.txt.
Output¶
Short-term storage¶
- For every short-term storage group, add 3 columns in files values-<period>.txt (mc-all & mc-ind)
ST-<group id>-withdrawal
ST-<group id>-injection
ST-<group id>-level
- For every area, add file details-STstorage-<period>.txt (mc-all & mc-ind) containing the same columns, but this time for every short-term storage object.
Pollutant emission factors¶
In files economy/mc-all/areas/ add column: CO2 EMIS. One colum for every pollutant: CO2, NH3, NOX, PM2_5, PM5, PM10, NMVOC, OP1, OP2, OP3, OP4, OP5
v8.5.2¶
Input¶
In file settings/generaldata.ini, in section optimization
, link-type is now deprecated
v8.5.0¶
Input¶
In file settings/generaldata.ini, in section adequacy patch
, add properties
price-taking-order
[string] can take valuesDENS
(default value) andLoad
.include-hurdle-cost-csr
[bool]. Default value =false
check-csr-cost-function
[bool]. Default value =false
threshold-initiate-curtailment-sharing-rule
[double]. Default value =0.0
threshold-display-local-matching-rule-violations
[double]. Default value =0.0
threshold-csr-variable-bounds-relaxation
[int]. Default value =3
Output¶
- If
include-adq-patch
is set totrue
, add columnLMR VIOL.
in files values-<period>.txt (mc-all & mc-ind) - If
include-adq-patch
is set totrue
, add columnSPIL. ENRG. CSR
in files values-<period>.txt (mc-all & mc-ind) - If
include-adq-patch
is set totrue
, add columnDTG MRG CSR
in files values-<period>.txt (mc-all & mc-ind)
v8.4.0¶
Input¶
Zero/infinite capacity for physical links only¶
In file settings/generaldata.ini, in section optimization
, change admissible values for key transmission-capacities
[str]:
local-values
(formerlytrue
, default) uses the local capacity of all linksnull-for-all-links
(formerlyfalse
) sets the capacity of all links to 0infinite-for-all-links
(formerlyinfinite
) sets the capacity of all links to +infinitynull-for-physical-links
sets the capacity of physical links to 0, uses the local capacity for virtual linksinfinite-for-physical-links
sets the capacity of physical links to +infinity, uses the local capacity for virtual links
Previous values (true
, false
and infinite
) are still admissible for compatibility.
Remove "Split MPS"¶
In existing section optimization
, remove property include-split-exported-mps
[bool]. This property will be ignored (no error) for compatibility.
Result format¶
In file settings/generaldata.ini, in existing section output
, add property result-format
[str]. Default value = txt-files
. If this property is set to zip
, all results are written into a single zip archive, instead of multiple files.
Output¶
Result format¶
If property output/result-format
is set to zip
, all results are stored in a single archive. The hierarchy within this archive remains identical, for example economy/mc-all/areas/. Otherwise, txt files are created like in previous versions.
v8.3.2¶
Writing MPS files¶
MPS files of first optimization used to be overwritten by MPS files of second optimization. Not anymore. Now user can choose to print : * no MPS file, * MPS files related to the first optimization (named problem-<week>-<year>--optim-nb-1.txt), * MPS files related to the second optimization (named problem-<week>-<year>--optim-nb-2.txt), * MPS files related to the both optimizations.
In the generaldata.ini input file, corresponding values for include-exportmps are : none, optim-1, optim-2, both-optims.
Compatibility with existing values is maintained (true = both-optims, false=none).
Marginal price of a binding constraint¶
Input¶
In the context of the addition of a new output variable (marginal price associated to a binding constraint), file input/bindingconstraints/bindingconstraints.ini get 2 new parameters for each binding constraint. They control which marginal price time granularity is printed, either regarding year by year or synthesis results.
filter-year-by-year
. Default value = hourly, daily, weekly, monthly, annualfilter-synthesis
. Default value = hourly, daily, weekly, monthly, annual
Marginal cost for binding constraints¶
Still on the binding constraints marginal price results, 2 new folders binding_constraints are created inside any simulation output folder, more precisely under mc-ind and mc-all.
Examples : * output/yyyymmdd-hhmmeco/economy/mc-ind/00001/binding_constraints * output/yyyymmdd-hhmmeco/economy/mc-all/binding_constraints
These folders are meant to contain results of any kind regarding binding constraints marginal price (year by year or synthesis).
Examples of output files inside these folders : * binding-constraints-hourly.txt * binding-constraints-weekly.txt
v8.3.1¶
Output¶
Add file execution_info.ini, containing information about the execution time for the various steps of a study, as well as study related information that affects performance.
[durations_ms]
hydro_ventilation = 7
mc_years = 693
post_processing = 0
study_loading = 51
synthesis_export = 731
total = 1526
yby_export = 114
[number_of_calls]
hydro_ventilation = 1
mc_years = 1
post_processing = 1
study_loading = 1
synthesis_export = 1
total = 1
yby_export = 1
[optimization problem]
constraints = 1008
non-zero coefficients = 15894
variables = 1512
[study]
antares version = 831
areas = 3
enabled bc = 0
enabled daily bc = 0
enabled hourly bc = 0
enabled thermal clusters = 1
enabled weekly bc = 0
links = 2
max parallel years = 1
ortools solver = xpress
ortools used = true
performed years = 1
unit commitment = fast
v8.3.0¶
Input¶
In file settings/generaldata.ini, add section adequacy patch
, with properties
include-adq-patch
[bool]. Default value =false
set-to-null-ntc-from-physical-out-to-physical-in-for-first-step
[bool]. Default value =true
set-to-null-ntc-between-physical-out-for-first-step
[bool]. Default value =true
In existing section optimization
, add property include-split-exported-mps
[bool]. Default value = false
Add variables DENS
and Profit by plant
, which may be used for thematic trimming, see file settings/generaldata.ini, section variables selection
.
For each area, add a new file input/areas/<area>/adequacy_patch.ini containing a single section adequacy-patch
. This section contains a single property adequacy-patch-mode
, that can take values
outside
inside
virtual
Example
[adequacy-patch]
adequacy-patch-mode = outside
Output¶
- If
include-adq-patch
is set totrue
, add columnDENS
in files values-<period>.txt (mc-all & mc-ind) - Add
Profit by plant
column in files details-<period>.txt (mc-all & mc-ind) - If
include-split-exported-mps
is set totrue
, create split MPS files in the output folder - Add file time_measurement.txt, containing performance data
NOTE: period can be any of the following
hourly
daily
weekly
monthly
annual
v8.2.0¶
Input¶
-
For each link, the first two columns of file input/links/<area 1>/<area 2>.txt have been moved to input/links/<area 1>/capacities/<area 2>_direct.txt and input/links/<area 1>/capacities/<area 2>_indirect.txt respectively. Note that these two files may contain more than one column, but must contain the same number of columns. The 6 remaining columns have been moved to area input/links/<area 1>/<area 2>_parameters.txt.
-
In file settings/generaldata.ini, add
hydro-debug
[bool] key to existing sectionoutput
. Default value isfalse
.
Output¶
If parameter hydro-debug
is enabled, a debug directory is created in the output folder.