-
Couldn't load subscription status.
- Fork 89
Switch 2.0.6 #115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Switch 2.0.6 #115
Changes from all commits
Commits
Show all changes
159 commits
Select commit
Hold shift + click to select a range
7289385
Allow users to choose log level for warning / info messages. Apply to…
josiahjohnston 2318c1a
Make `switch solve` command line options easier to do text searches o…
josiahjohnston f69352e
Fixed bug of storage export crashing for existing storage plants that…
josiahjohnston 41443b1
Fixed a bug where ArgParse doesn't allow unescaped percent signs in h…
josiahjohnston e6b486e
Change plotting libraries from `ggplot` to `plotnine` because the pyt…
josiahjohnston 3696e70
Export energy balance of local T&D node.
josiahjohnston 9a376d0
When `--interact` is given, use IPython.embed() if IPython is availab…
josiahjohnston ee9008e
Include storage decisions in dispatch export if the storage module is…
josiahjohnston 469caad
If the optional plotting library is available, filter out its spuriou…
josiahjohnston e8be456
Fix long-standing bug that used the wrong parameter name in `load_aug…
josiahjohnston 29a4366
Update simple_hydro to model spillways; a crucial feature of hydro pl…
josiahjohnston 849bc8e
Expand export from the dispatch module to simplify analysis:
josiahjohnston f06c001
Update planning reserves input documentation & reading to reflect tha…
josiahjohnston 889f47f
Write a simple-to-use expression in fuel markets to get post-optimiza…
josiahjohnston fd0e046
Fix a bug with fuel unavailability when calculating fuel costs relate…
josiahjohnston 1fa7a56
Implement a check for bidirectional transmission lines being specifie…
josiahjohnston 2de5b80
Clarify extra timepoints warning message since it applies to both pla…
josiahjohnston 7e5b960
Update transmission documentation to match implementation changes Mat…
josiahjohnston 56eaad9
Update typo in a warning message.
josiahjohnston e328fae
Port the extra contribution that ChargeStorage can make to spinning r…
josiahjohnston 89eb49d
Implement predetermined energy capacity for storage, a parallel to pr…
josiahjohnston d49f633
Fix bugs in planning reserve margin. One bug was a typo in accessing …
josiahjohnston e5bbfd3
Added a CLI option (`--logging-level`) to explicitly specify logging …
josiahjohnston 766e377
Bumping version number to avoid confusion with 2.0.5 release.
josiahjohnston b5b1a28
Updating version parser because the prior one (distutils.version) is …
josiahjohnston 3921704
Make min up & downtime constraints more concise & readable, and use s…
josiahjohnston 94525dc
Condense discussion of issues in code by referring to an issue posted…
josiahjohnston 401288a
Update documentation and code readability. Also remove a weird line o…
josiahjohnston 13cbca7
Make auto_select in load_aug optional and default to True, unless `se…
josiahjohnston ba088df
Move load_td I/O into its module instead of the transport.build modul…
josiahjohnston a78f59b
Trim down timepoints printed in error messages to avoid too long of d…
josiahjohnston 21bbc27
Include levelized cost of energy in dispatch summary files.
josiahjohnston 29d0332
Switch from --verbose/--quiet to --log-level flag
mfripp 4642de0
Report unused values in variable_capacity_factors.csv with new logger
mfripp e95abe3
Better handling of exceptions and warnings for dispatch summary graphs
mfripp 0986979
Improve INSTALL.md formatting
mfripp 5b35956
Cosmetic improvements to code and comments
mfripp de0db92
Implement --input-aliases option
mfripp 7e9b763
Bump version number to 2.0.6.
mfripp 81967ed
Improve default demand response reserves and share code
mfripp 81fc53f
Bring balancing.demand_response.iterative up-to-date
mfripp 056aeb4
Allow users to split fleet between different charging modes in hawaii.ev
mfripp 1ebbaaf
Update hawaii.fed_subsidies to work with FlatDistPV and SlopedDistPV
mfripp fe2bee5
Avoid warnings about unused variables if no min H2 tank size specified
mfripp 1bb408a
hawaii.save_results saves blanks if no duals are available; no error
mfripp b52846c
Use technology priority list when smoothing dispatch
mfripp 8771c80
Allow same-line comments in modules.txt, options.txt and scenarios.txt
mfripp 8cbea8d
Allow zero-weight timeseries
mfripp a432fbd
Replace psip_2016_12 with heco_outlook_2019
mfripp 4e10f69
Convert gen_multiple_fuels.dat to gen_multiple_fuels.csv
mfripp 621e8dd
Tell user if heco_outlook_2019 has a target for a missing technology
mfripp 396fc66
Update hawaii.scenario_data to work with --scenario-aliases
mfripp 75a4240
Allow different fuel costs for each timepoint (experimental/untested)
mfripp e912168
Format help code for PEP-8; streamline message creation for edge cases
mfripp c0c977f
Suppress all warnings from plotnine, including during run_tests.py
mfripp 972a150
Fix bug in reserve code sharing for demand_response.iterative
mfripp 0ce7831
Update version number for examples
mfripp 40ad196
Set deprecated verbose flag at correct point in model creation sequence
mfripp 6f872f0
Rename zone_rfm to zone_fuel_rfm to make indexing clearer
mfripp b452614
Fix bug in storage fixed cost calculations
mfripp d03e79a
Include storage energy costs in GenCapitalCosts in gen_cap.csv
mfripp 708b2ca
Apply inflation to connection costs; allow alternative BAU EV chargin…
mfripp 0e53e99
Add fuel_costs.markets_expansion for capacity expansion of fuel markets
mfripp c0d7f6b
Define per-timepoint fuel costs using fuel_costs.simple_per_timepoint
mfripp c564a4d
Don't report zonal electricity costs if zonal demand is not defined
mfripp bef565b
Read gen_predetermined_storage_energy_mwh from gen_build_predetermine…
mfripp 2c22edc
Warn when variables with unassigned values are found during reporting
mfripp fce90df
Move Switch banner higher in output stream and use logger instead of …
mfripp d853c46
Skip constructing the model if the prior solution file is missing
mfripp 8cf1809
Don't use IPython for --interact due to bug in list comprehension
mfripp 3b23000
Return solved instance when solve.main() finishes
mfripp 2bdfd80
Report location of model in callstack when using --debug
mfripp 6592911
Add transmission.copperplate module for free power transfer between z…
mfripp 8941a85
Run each scenario in a separate process
mfripp 31629bc
Fix typo in generators.core.build documentation.
mfripp e17bea3
Fix compatibility with Pyomo 5.7
mfripp a1b5517
Report when applying --input-aliases
mfripp bbd5bb2
Count components as they are created when --log-level is 'info'
mfripp b6475a5
Hawaii: use 'Motor_Gasoline' cost instead of 'Diesel' for ICE vehicles
mfripp e781c2a
Hawaii: Apply federal tax credits to individual generators to support…
mfripp 07ac462
Hawaii: correct federal tax credits for distributed PV in 2020 and 2021
mfripp 015e36c
Hawaii: Finalize heco_outlook_2019, used for PBR proceeding in Dec. 2019
mfripp 81325d0
Hawaii: add modules representing Oahu forecasts and HECO plans as of …
mfripp fc8e9b7
Hawaii: add oahu_plants module with rules for all plants; supersedes …
mfripp 02cd79d
Hawaii: update and improve backwards compatibility of scenario_data
mfripp a183ce3
Handle reserves better in hawaii.smooth_dispatch
mfripp 66aa956
Hawaii: streamline and improve capacity reporting
mfripp 24a6287
Update copyright notices to 2015-2020
mfripp 0d75522
Hawaii: replace kalaeloa with oahu_plants in modules.txt in upgrade s…
mfripp 52566ac
Fix bug in new GENS_FOR_RFM_PERIOD code when no rfm matches a gen
mfripp 433f14e
Improve message about model location during post-mortem debugging
mfripp 5e3f179
Add option to skip saving each decision variable in a separate file (…
josiahjohnston b010a5e
Fix bugs in creating capacity_by_technology_vertical.csv
mfripp 83860d6
Save model configuration in outputs/model_config.json
mfripp 0ece6a6
Hawaii: fix bugs when saving capacity_by_technology.csv
mfripp 95c9d0f
Identify compatible versions of Pyomo, pyutilib and pandas in setup.py
mfripp 4cb61b1
Merge recent changes from next_release branch
mfripp d7ed77a
Deprecate auto_select argument to load_aug since it is never needed
mfripp 606cc38
Make compatible with pandas 1.0+
mfripp 0cddb3e
read gen_predetermined_storage_energy_mwh from correct file
mfripp cc38499
Hawaii: support setting of gen_predetermined_storage_energy_mwh
mfripp ea6a7b5
Hawaii: update near-term forecasts and HECO Plan
mfripp ce2f8ba
hawaii package: more informative message about outdated federal subsi…
mfripp a7e262b
merge changes from 2.0.6 bugfix release
mfripp d92e507
fix typo in planning_reserves
DesmondZhong 88abc16
fix postprocessing errors in storage module
DesmondZhong 42c3e60
fix reporting for carbon_policies.py
ab0e211
clarify description of storage cost bug fixed in 2.0.6
mfripp 139070f
Apply unserved_load at distribution node when available
mfripp c1113eb
more precision in examples/**/total_cost.txt
mfripp 333c388
include iteration number in result filenames for demand_response.iter…
mfripp ea53158
add switch_model.balancing.diagnose_infeasibility to help diagnose in…
mfripp 3555e49
fix crashing bug in switch_model.energy_sources.fuel_costs.markets_ex…
mfripp 1175bed
hawaii.save_result: report all projects in capacity_by_*.csv, whether…
mfripp 734f9b3
Add support for multiple land-use classes in hawaii.scenario_data
mfripp f6bd388
remove extra 'm' from names of cumulative_capacity_by_tech_periods.cs…
mfripp ac017f7
Improve messages when trying to solve infeasible models
mfripp c59a9d4
Allow omission of existing_local_td and local_td_annual_cost_per_mw w…
mfripp 2b6a0ff
Adjust examples/diagnose_infeasibility so total_cost will be consiste…
mfripp 4110a65
Don't allow missing values for Expressions when reporting results.
mfripp 19c9200
Use same logger for model and instance (fixes some post-solve logging…
mfripp 944de5c
Allow omission of any column in an optional input .csv file, even if …
mfripp e23a0f6
various small, cosmetic changes
mfripp 3908fe3
Create and use SwitchAbstractModel and SwitchConcreteModel classes
mfripp 156a349
Remove outdated code from patch_pyomo and reduce nesting
mfripp 7a135f7
Ensure Switch logger output goes to log file and improve logging help
mfripp 2396df7
Improve code for progress messages during model construction
mfripp 4d4601d
Allow running tests from location other than top level directory
mfripp 2ff0ec6
Use lists instead of unordered sets to initialize Sets for Pyomo 5.7+…
mfripp 947fb52
Change Set(...,rule=...) to Set(...,initialize=...)
mfripp 62a0803
update compatibility range
mfripp 4ee5477
don't try to parse command-line arguments during tests
mfripp 27cea89
Apply Black formatting (mostly automated)
mfripp 0c82eaa
change 'is 0' to '== 0' to avoid warning in Python 3.8+
mfripp 7701c4f
move code to create gen_cap.csv from generators.core.build to reporti…
mfripp 71b8615
Make code and examples compatible with Pyomo 5.7 - 6.4
mfripp 2277e08
Add domains for a few more Params
mfripp 70768f6
Remove balancing_areas.csv from examples (have been obsolete for seve…
mfripp 7cf35d4
define --sorted-output for all models and move gen_cap.code back to g…
mfripp 61e9f23
apply --sorted-output more universally
mfripp 59808a9
Bump version number to 2.0.7 in example directories
mfripp c1026e0
Update copyright date to 2022.
mfripp 24e06ae
rename dispatch-wide.csv to dispatch_wide.csv and fix sorting bug
mfripp b0a81ee
Rename gen_predetermined_cap to build_gen_predetermined in gen_build_…
mfripp 112c65e
rename generation_projects_info.csv to gen_info.csv
mfripp 333653a
remove obsolete output files from example directories
mfripp 00940c1
Move trans_params.csv/distribution_loss_rate to load_zones.csv/local_…
mfripp 976cf7e
add test for --retrieve-cplex-mip-duals flag
mfripp 526ce3d
Ensure every Param has domain and avoid using obj.keys() to initializ…
mfripp ffc013f
Use isinstance() to check whether a sum() of Pyomo components has any…
mfripp 2d8cb8a
Prevent deprecation warning for model.preprocess() from Pyomo 6.0+
mfripp 99e0f41
Move model configuration banner above define_components messages
mfripp 84c8e9f
get stdin working for breakpoints, post-mortems and model upgrades un…
mfripp b629069
miscellaneous cosmetic tweaks and simplifications
mfripp 075df36
merge energy-democracy:fix_scc and report carbon cap duals even for i…
mfripp cbd02d1
Merge branch 'energy-democracy-fix_scc' into next_release
mfripp cbabc82
Merge branch 'next_release' into master
mfripp f8bfae0
Merge pull request #135 from DesmondZhong/master
mfripp 70ad996
Split reporting of generator additions and capacity, and include stor…
mfripp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| *pyc | ||
| !.gitignore | ||
| .* | ||
| *.pyc | ||
| **parse_table_datacmds.py | ||
| .idea | ||
| .DS_Store | ||
| gurobi.log | ||
| switch_model.egg-info/ | ||
| venv | ||
|
|
||
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| LOAD_ZONE,dbid,existing_local_td,local_td_annual_cost_per_mw | ||
| North,1,5.5,66406.5 | ||
| Central,2,3.5,61663.4 | ||
| South,3,9.5,128040.0 | ||
| LOAD_ZONE,dbid,existing_local_td,local_td_annual_cost_per_mw,local_td_loss_rate | ||
| North,1,5.5,66406.5,0.053 | ||
| Central,2,3.5,61663.4,0.053 | ||
| South,3,9.5,128040.0,0.053 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 2.0.6 | ||
| 2.0.7 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| trans_capital_cost_per_mw_km,trans_lifetime_yrs,trans_fixed_om_fraction,distribution_loss_rate | ||
| 1000.0,20,0.03,0.053 | ||
| trans_capital_cost_per_mw_km,trans_lifetime_yrs,trans_fixed_om_fraction | ||
| 1000.0,20,0.03 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 134733088.429 | ||
| 134733088.42929107 |
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
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
3 changes: 0 additions & 3 deletions
3
examples/3zone_toy_stochastic_PySP/inputs/balancing_areas.csv
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
examples/3zone_toy_stochastic_PySP/inputs/gen_build_predetermined.csv
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
examples/3zone_toy_stochastic_PySP/inputs/switch_inputs_version.txt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 2.0.6 | ||
| 2.0.7 |
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.