-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maya Mutic
authored and
Maya Mutic
committed
May 16, 2024
1 parent
ab6685c
commit fba0db6
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
function default_settings_multistage() | ||
Dict{Any, Any}("NumStages" => 3, | ||
"StageLengths" => [10,10,10], | ||
"WACC" => 0.045, | ||
"ConvergenceTolerance" => 0.01, | ||
"Myopic" => 0) | ||
end | ||
|
||
@doc raw""" | ||
configure_settings(settings_path::String, output_settings_path::String) | ||
Reads in the settings from the `multi_stage_settings.yml` YAML file and | ||
merges them with the default multistage settings. It then returns the | ||
settings dictionary. | ||
# Arguments | ||
- `settings_path::String`: The path to the multistage settings YAML file. | ||
# Returns | ||
- `settings::Dict`: The multistage settings dictionary. | ||
""" | ||
function configure_settings_multistage(settings_path::String) | ||
println("Configuring Multistage Settings") | ||
model_settings = YAML.load(open(settings_path)) | ||
|
||
settings = default_settings_multistage() | ||
merge!(settings, model_settings) | ||
|
||
return settings | ||
end |
This file contains 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