Skip to content
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

Bring the tip of the develop branch in sync with Release/0.4.0 #661

Merged
merged 25 commits into from
Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
ae19f20
Merge hotfix-506
cfe316 Aug 4, 2023
d7de540
Fix eELOSSByZone expr: access before initialization
lbonaldo Oct 28, 2023
5ccb3ca
Merge fix #541
lbonaldo Oct 30, 2023
9249449
Fixed issue #572 by allowing hydro reservoirs to operate as long dura…
filippopecci Dec 7, 2023
ac7e929
Merge hotfix-572
lbonaldo Feb 1, 2024
3de7daf
Fix scaling of tx losses in tlosses.csv #616
lbonaldo Feb 2, 2024
32db8be
Merge hotfix-616
lbonaldo Feb 3, 2024
bf67d8b
Fixed tracking of current stage in setup dictionary in dual_dynamic_p…
filippopecci Aug 21, 2023
fb865cb
Merge fix #628
lbonaldo Feb 14, 2024
5d3c8e4
Revert "Fixed #572 : allow long duration hydro reservoir" (#630)
filippopecci Feb 14, 2024
e6105f8
Fixed issue #572 by allowing hydro reservoirs to operate as long dura…
filippopecci Feb 14, 2024
38b0872
Merge pull request #632 fixing #572
filippopecci Feb 14, 2024
ef618ec
Fixed computation of cumulative minimum retirements in multistage cod…
filippopecci Feb 14, 2024
d299266
Merge fix #514
filippopecci Feb 14, 2024
b98fd2a
Fix update of starting transmission capacity in multistage GenX
filippopecci Feb 14, 2024
aed9b9a
Merge #633
filippopecci Feb 14, 2024
40c11f5
Conflicts resolved
sambuddhac Mar 20, 2024
253737f
Removed .travis.yml since we now use gh-actions for automated tests a…
sambuddhac Mar 20, 2024
985cbd9
Changed the GenX version number to 0.4.0
sambuddhac Mar 20, 2024
5351dad
Changed the author naming convention and ordering in Project.toml to …
sambuddhac Mar 20, 2024
1687af8
Documentation correction in the expression of RETCAP in endogenous_re…
sambuddhac Mar 20, 2024
6c47fc2
Revised Acknowledgement on README and index.md
sambuddhac Mar 20, 2024
21b98b9
Updated Project.toml with [compat] of Dates and LinearAlgebra packages
sambuddhac Mar 20, 2024
d0f9d3e
Updated full-blown TagBot.yml to adhere to Julia package registration…
sambuddhac Mar 20, 2024
21f4aa1
Update test_examples.yml
lbonaldo Mar 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/TagBot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ on:
types:
- created
workflow_dispatch:
inputs:
lookback:
default: 3
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
Expand All @@ -12,4 +28,6 @@ jobs:
- uses: JuliaRegistries/TagBot@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# Edit the following line to reflect the actual name of the GitHub Secret containing your private key
ssh: ${{ secrets.DOCUMENTER_KEY }}
# ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }}
4 changes: 3 additions & 1 deletion .github/workflows/test_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Test-examples

on:
push:
branches: [main, develop]
tags: ['*']
schedule:
- cron: 21 4 * * * # Run at 12:21am US Eastern time

Expand Down Expand Up @@ -43,4 +45,4 @@ jobs:
@test isnothing(run_genx_case!(example_dir))
end
end
end
end
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated README with new instructions for running GenX through Julia REPL terminal (#492)
- Fix factor of 0.5 when writing out transmission losses. (#480)
- Fix summation error when a set of hours is empty (in thermal_commit.jl).
- Fix access to eELOSSByZone expr before initialization (#541)
- Fix modeling of hydro reservoir with long duration storage (#572).
- Fix computation of cumulative minimum capacity retirements in multistage GenX (#514)
- Fix update of starting transmission capacity in multistage GenX

### Changed

Expand Down
6 changes: 4 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GenX"
uuid = "5d317b1e-30ec-4ed6-a8ce-8d2d88d7cfac"
authors = ["Jesse Jenkins", "Nestor Sepulveda", "Dharik Mallapragada", "Aaron Schwartz", "Neha Patankar", "Qingyu Xu", "Jack Morris", "Sambuddha Chakrabarti"]
version = "0.4"
authors = ["Bonaldo, Luca", "Chakrabarti, Sambuddha", "Cheng, Fangwei", "Ding, Yifu", "Jenkins, Jesse D.", "Luo, Qian", "Macdonald, Ruaridh", "Mallapragada, Dharik", "Manocha, Aneesha", "Mantegna, Gabe ", "Morris, Jack", "Patankar, Neha", "Pecci, Filippo", "Schwartz, Aaron", "Schwartz, Jacob", "Schivley, Greg", "Sepulveda, Nestor", "Xu, Qingyu"]
version = "0.4.0"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand All @@ -27,9 +27,11 @@ Clustering = "0.14.2, 0.15"
Combinatorics = "1.0.2"
DataFrames = "1.3.4"
DataStructures = "0.18.13"
Dates = "1"
Distances = "0.10.7"
HiGHS = "1.1.4"
JuMP = "1.1.1"
LinearAlgebra = "1"
MathOptInterface = "1.6.1"
RecursiveArrayTools = "2.31.2, 3"
Statistics = "1.4.0"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,5 @@ Key contributors include [Nestor A. Sepulveda](https://energy.mit.edu/profile/ne
[Sambuddha Chakrabarti](https://www.linkedin.com/in/sambuddha-chakrabarti-ph-d-84157318).

## Acknowledgement
The GenX team expresses deep gratitude to Laura Zwanziger and Jacob Schwartz for designing the Julia-themed GenX logo and to [Maya Mutic](https://github.com/mmutic) for developing the tutorials along with Filippo Pecci and Luca Bonaldo.
The GenX team expresses deep gratitude to [Maya Mutic](https://github.com/mmutic) for developing the tutorials along with Filippo Pecci and Luca Bonaldo.
The Julia-themed GenX logo was designed by Laura Zwanziger and Jacob Schwartz.
3 changes: 2 additions & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ We recommend users of GenX to cite it in their academic publications and patent
`MIT Energy Initiative and Princeton University ZERO lab. [GenX](https://github.com/GenXProject/GenX): a configurable power system capacity expansion model for studying low-carbon energy futures n.d. https://github.com/GenXProject/GenX`.

## Acknowledgement
The GenX team expresses deep gratitude to Laura Zwanziger and Jacob Schwartz for designing the Julia-themed GenX logo and to [Maya Mutic](https://github.com/mmutic) for developing the tutorials along with Filippo Pecci and Luca Bonaldo.
The GenX team expresses deep gratitude to [Maya Mutic](https://github.com/mmutic) for developing the tutorials along with Filippo Pecci and Luca Bonaldo.
The Julia-themed GenX logo was designed by Laura Zwanziger and Jacob Schwartz.

## License

Expand Down
1 change: 0 additions & 1 deletion src/case_runners/case_runner.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ function run_genx_case_multistage!(case::AbstractString, mysetup::Dict, optimize
inputs_dict[t] = configure_multi_stage_inputs(inputs_dict[t],mysetup["MultiStageSettingsDict"],mysetup["NetworkExpansion"])

compute_cumulative_min_retirements!(inputs_dict,t)

# Step 2) Generate model
model_dict[t] = generate_model(mysetup, inputs_dict[t], OPTIMIZER)
end
Expand Down
10 changes: 5 additions & 5 deletions src/model/resources/storage/storage_all.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ end

function storage_all_operational_reserves!(EP::Model, inputs::Dict, setup::Dict)

gen = inputs["RESOURCES"]
T = inputs["T"]
p = inputs["hours_per_subperiod"]
CapacityReserveMargin = setup["CapacityReserveMargin"] > 1
gen = inputs["RESOURCES"]
T = inputs["T"]
p = inputs["hours_per_subperiod"]
CapacityReserveMargin = setup["CapacityReserveMargin"] > 1

STOR_ALL = inputs["STOR_ALL"]
STOR_ALL = inputs["STOR_ALL"]

STOR_REG = intersect(STOR_ALL, inputs["REG"]) # Set of storage resources with REG reserves
STOR_RSV = intersect(STOR_ALL, inputs["RSV"]) # Set of storage resources with RSV reserves
Expand Down
2 changes: 1 addition & 1 deletion src/multi_stage/endogenous_retirement.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ This function models the following constraint

```math
\begin{aligned}
& RETCAP_{y,p} \geq \sum^p_{t=1} MINRET_{y,t} + \sum^r_{t=1}CAP_{y,t} - \sum^p_{t=1}RETCAP_{y,p}
& RETCAP_{y,p} \geq \sum^p_{t=1} MINRET_{y,t} + \sum^r_{t=1}CAP_{y,t} - \sum^{(p-1)}_{t=1}RETCAP_{y,t}
\end{aligned}
```
where $r \in \{1, ..., (p-1)\}$ is defined as the last stage such that if we built $y$ at the end of stage $r$, it would reach its end of life before the end of stage $p$.
Expand Down
Loading