Skip to content

Commit

Permalink
Change key name and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lbonaldo committed Feb 20, 2024
1 parent 90e6171 commit bdadecf
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 97 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
OverwriteResults: 0 # Overwrite existing results in output folder or create a new one; 0 = create new folder; 1 = overwrite existing results
PrintModel: 0 # Write the model formulation as an output; 0 = active; 1 = not active
NetworkExpansion: 0 # Transmission network expansionl; 0 = not active; 1 = active systemwide
NetworkExpansion: 1 # Transmission network expansionl; 0 = not active; 1 = active systemwide
Trans_Loss_Segments: 1 # Number of segments used in piecewise linear approximation of transmission losses; 1 = linear, >2 = piecewise quadratic
Reserves: 0 # Regulation (primary) and operating (secondary) reserves; 0 = not active, 1 = active systemwide
Reserves: 1 # Regulation (primary) and operating (secondary) reserves; 0 = not active, 1 = active systemwide
EnergyShareRequirement: 1 # Minimum qualifying renewables penetration; 0 = not active; 1 = active systemwide
CapacityReserveMargin: 1 # Number of capacity reserve margin constraints; 0 = not active; 1 = active systemwide
CO2Cap: 1 # CO2 emissions cap; 0 = not active (no CO2 emission limit); 1 = mass-based emission limit constraint; 2 = demand + rate-based emission limit constraint; 3 = generation + rate-based emission limit constraint
Expand All @@ -18,3 +18,4 @@ ModelingToGenerateAlternatives: 0 # Modeling to generate alternatives; 0 = not a
ModelingtoGenerateAlternativeSlack: 0.1 # Slack value as a fraction of least-cost objective in budget constraint used for evaluating alternative model solutions; positive float value
ModelingToGenerateAlternativeIterations: 3 # Number of MGA iterations with maximization and minimization objective
MethodofMorris: 0 #Flag for turning on the Method of Morris analysis
WriteOutputs: "annual"
Original file line number Diff line number Diff line change
@@ -1,46 +1,27 @@
WriteCosts: true
WriteCapacity: true
WriteCapacityValue: true
WriteCapacityFactor: true
WriteCharge: true
WriteChargingCost: true
WriteCO2: true
WriteCO2Cap: true
WriteCommit: true
WriteCurtailment: true
WriteEmissions: true
WriteEnergyRevenue: true
WriteESRPrices: true
WriteESRRevenue: true
WriteFuelConsumption: true
WriteHourlyMatchingPrices: true
WriteHydrogenPrices: true
WriteMaintenance: true
WriteMaxCapReq: true
WriteMinCapReq: true
WriteNetRevenue: true
WriteNSE: true
WriteNWExpansion: true
WriteOpWrapLDSdStor: true
WriteOpWrapLDSStorInit: true
WritePower: true
WritePowerBalance: true
WritePrice: true
WriteReg: true
WriteReliability: true
WriteReserveMargin: true
WriteReserveMarginRevenue: true
WriteReserveMarginSlack: true
WriteReserveMarginWithWeights: true
WriteRsv: true
WriteShutdown: true
WriteStart: true
WriteStatus: true
WriteStorage: true
WriteStorageDual: true
WriteSubsidyRevenue: true
WriteTimeWeights: true
WriteTransmissionFlows: true
WriteTransmissionLosses: true
WriteVirtualDischarge: true
WriteVREStor: true
WriteCosts: false
WriteCapacity: false
WriteCapacityValue: false
WriteCapacityFactor: false
WriteCharge: false
WriteChargingCost: false
WriteCO2: false
WriteCO2Cap: false
WriteCommit: false
WriteCurtailment: false
WriteEmissions: false
WriteEnergyRevenue: false
WriteESRPrices: false
WriteESRRevenue: false
WriteFuelConsumption: false
WriteHourlyMatchingPrices: false
WriteHydrogenPrices: false
WriteMaintenance: false
WriteMaxCapReq: false
WriteMinCapReq: false
WriteNetRevenue: false
WriteNSE: false
WriteNWExpansion: false
WriteTransmissionFlows: false
WriteTransmissionLosses: false
WriteVirtualDischarge: false
WriteVREStor: false
5 changes: 5 additions & 0 deletions docs/src/data_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,18 @@ Note that all settings parameters are case sensitive.
|PrintModel | Flag for printing the model equations as .lp file.|
||1 = including the model equation as an output|
||0 = the model equation won't be included as an output|
| WriteOutputs | Flag for writing the model outputs with hourly resolution or just the annual sum.|
|| "full" = write the model outputs with hourly resolution.|
|| "annual" = write only the annual sum of the model outputs.|

Additionally, Solver related settings parameters are specified in the appropriate .yml file (e.g. `gurobi_settings.yml` or `cplex_settings.yml`),
which should be located in the current working directory.
Note that GenX supplies default settings for most solver settings in the various solver-specific functions found in the `src/configure_solver/` directory.
To overwrite default settings, you can specify the below Solver specific settings.
Settings are specific to each solver.

(Optional) The user can also select the output files that they want to export using the `output_settings.yml` file. This file containes a list of `yes/no` options for each output file, and should be located in the `Settings` folder. By default, if `output_settings.yml` is not included, GenX will export all output files.

###### Table 1b: Summary of the Solver settings parameters
---
|**Settings Parameter** | **Description**|
Expand Down
3 changes: 1 addition & 2 deletions src/configure_settings/configure_settings.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function configure_settings(settings_path::String, output_settings_path::String)
merge!(settings, model_settings)

output_settings = configure_writeoutput(output_settings_path, settings)
merge!(settings, output_settings)
settings["WriteOutputsSettingsDict"] = output_settings

validate_settings!(settings)
return settings
Expand Down Expand Up @@ -124,7 +124,6 @@ function configure_writeoutput(output_settings_path::String, settings::Dict)
writeoutput["WriteCapacityValue"] = false
writeoutput["WriteReserveMargin"] = false
writeoutput["WriteReserveMarginWithWeights"] = false

end

# read in YAML file if provided
Expand Down
2 changes: 1 addition & 1 deletion src/multi_stage/dual_dynamic_programming.jl
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ function write_multi_stage_outputs(stats_d::Dict, outpath::String, settings_d::D
write_multi_stage_network_expansion(outpath, multi_stage_settings_d)
end
write_multi_stage_costs(outpath, multi_stage_settings_d, inputs_dict)
write_multi_stage_stats(outpath, stats_d)
multi_stage_settings_d["Myopic"] == 0 && write_multi_stage_stats(outpath, stats_d)
write_multi_stage_settings(outpath, settings_d)

end
Expand Down
Loading

0 comments on commit bdadecf

Please sign in to comment.