-
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.
Add new tests for seven modules. Include GH workflow. (#563)
This PR adds seven more tests to GenX: three-zone, multi-stage, electrolyzer, VRE+storage, piecewise_fuel+CO2, TDR, and Method of Morris. The tests are passed if the value of the objective function is consistent over time (up to the tolerance of the solver). The tests for the TDR validate the clustering by computing the rand index and the mutual information and comparing the output files. For the Method of Morris module, we are testing if the module is correctly built and if the output is consistent over time.
- Loading branch information
Showing
125 changed files
with
49,081 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main, develop] | ||
tags: ['*'] | ||
|
||
jobs: | ||
test: | ||
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name}} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
version: | ||
- "1.6" # LTS (64-bit Linux) | ||
- "1.7" | ||
- "1.8" | ||
- '1.9' # latest stable Julia release (Linux) | ||
os: | ||
- ubuntu-latest | ||
arch: | ||
- x64 | ||
include: # additional tests [Julia-nightly] (Linux) | ||
- os: ubuntu-latest | ||
version: 'nightly' | ||
arch: x64 | ||
allow_failure: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: julia-actions/setup-julia@v1 | ||
with: | ||
version: ${{ matrix.version }} | ||
arch: ${{ matrix.arch }} | ||
- uses: julia-actions/cache@v1 | ||
- uses: julia-actions/julia-buildpkg@v1 | ||
- uses: julia-actions/julia-runtest@v1 | ||
- uses: julia-actions/julia-processcoverage@v1 | ||
- uses: codecov/codecov-action@v3 | ||
with: | ||
file: lcov.info |
This file was deleted.
Oops, something went wrong.
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
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
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
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,121 @@ | ||
Voll,Demand_Segment,Cost_of_Demand_Curtailment_per_MW,Max_Demand_Curtailment,Rep_Periods,Timesteps_per_Rep_Period,Sub_Weights,Time_Index,Demand_MW_z1 | ||
50000,1,1,1,5,24,24.0,1,11122.0 | ||
,,,,,,3672.0,2,10655.0 | ||
,,,,,,5016.0,3,10441.0 | ||
,,,,,,24.0,4,10365.0 | ||
,,,,,,24.0,5,10639.0 | ||
,,,,,,,6,11577.0 | ||
,,,,,,,7,13349.0 | ||
,,,,,,,8,14550.0 | ||
,,,,,,,9,14922.0 | ||
,,,,,,,10,15165.0 | ||
,,,,,,,11,15328.0 | ||
,,,,,,,12,15380.0 | ||
,,,,,,,13,15275.0 | ||
,,,,,,,14,15154.0 | ||
,,,,,,,15,14953.0 | ||
,,,,,,,16,14885.0 | ||
,,,,,,,17,15340.0 | ||
,,,,,,,18,16003.0 | ||
,,,,,,,19,15767.0 | ||
,,,,,,,20,15236.0 | ||
,,,,,,,21,14663.0 | ||
,,,,,,,22,13889.0 | ||
,,,,,,,23,12855.0 | ||
,,,,,,,24,11809.0 | ||
,,,,,,,25,9702.0 | ||
,,,,,,,26,9229.0 | ||
,,,,,,,27,9004.0 | ||
,,,,,,,28,8951.0 | ||
,,,,,,,29,9188.0 | ||
,,,,,,,30,10087.0 | ||
,,,,,,,31,11929.0 | ||
,,,,,,,32,13166.0 | ||
,,,,,,,33,13504.0 | ||
,,,,,,,34,13632.0 | ||
,,,,,,,35,13724.0 | ||
,,,,,,,36,13742.0 | ||
,,,,,,,37,13665.0 | ||
,,,,,,,38,13641.0 | ||
,,,,,,,39,13501.0 | ||
,,,,,,,40,13366.0 | ||
,,,,,,,41,13376.0 | ||
,,,,,,,42,13524.0 | ||
,,,,,,,43,13736.0 | ||
,,,,,,,44,14401.0 | ||
,,,,,,,45,14006.0 | ||
,,,,,,,46,13006.0 | ||
,,,,,,,47,11658.0 | ||
,,,,,,,48,10416.0 | ||
,,,,,,,49,10219.0 | ||
,,,,,,,50,9671.0 | ||
,,,,,,,51,9383.0 | ||
,,,,,,,52,9269.0 | ||
,,,,,,,53,9483.0 | ||
,,,,,,,54,10103.0 | ||
,,,,,,,55,11573.0 | ||
,,,,,,,56,13059.0 | ||
,,,,,,,57,13905.0 | ||
,,,,,,,58,14430.0 | ||
,,,,,,,59,14873.0 | ||
,,,,,,,60,15179.0 | ||
,,,,,,,61,15323.0 | ||
,,,,,,,62,15515.0 | ||
,,,,,,,63,15537.0 | ||
,,,,,,,64,15481.0 | ||
,,,,,,,65,15485.0 | ||
,,,,,,,66,15440.0 | ||
,,,,,,,67,15208.0 | ||
,,,,,,,68,15028.0 | ||
,,,,,,,69,15221.0 | ||
,,,,,,,70,14913.0 | ||
,,,,,,,71,13573.0 | ||
,,,,,,,72,12159.0 | ||
,,,,,,,73,14935.0 | ||
,,,,,,,74,14062.0 | ||
,,,,,,,75,13498.0 | ||
,,,,,,,76,13146.0 | ||
,,,,,,,77,13178.0 | ||
,,,,,,,78,13712.0 | ||
,,,,,,,79,15192.0 | ||
,,,,,,,80,17114.0 | ||
,,,,,,,81,18656.0 | ||
,,,,,,,82,20020.0 | ||
,,,,,,,83,21201.0 | ||
,,,,,,,84,22009.0 | ||
,,,,,,,85,22567.0 | ||
,,,,,,,86,23070.0 | ||
,,,,,,,87,23388.0 | ||
,,,,,,,88,23629.0 | ||
,,,,,,,89,23770.0 | ||
,,,,,,,90,23575.0 | ||
,,,,,,,91,23034.0 | ||
,,,,,,,92,22325.0 | ||
,,,,,,,93,21921.0 | ||
,,,,,,,94,21122.0 | ||
,,,,,,,95,19311.0 | ||
,,,,,,,96,17514.0 | ||
,,,,,,,97,11232.0 | ||
,,,,,,,98,10825.0 | ||
,,,,,,,99,10632.0 | ||
,,,,,,,100,10622.0 | ||
,,,,,,,101,10948.0 | ||
,,,,,,,102,11984.0 | ||
,,,,,,,103,13879.0 | ||
,,,,,,,104,14890.0 | ||
,,,,,,,105,15134.0 | ||
,,,,,,,106,15241.0 | ||
,,,,,,,107,15360.0 | ||
,,,,,,,108,15407.0 | ||
,,,,,,,109,15385.0 | ||
,,,,,,,110,15372.0 | ||
,,,,,,,111,15285.0 | ||
,,,,,,,112,15482.0 | ||
,,,,,,,113,16544.0 | ||
,,,,,,,114,17247.0 | ||
,,,,,,,115,17114.0 | ||
,,,,,,,116,16657.0 | ||
,,,,,,,117,15936.0 | ||
,,,,,,,118,14783.0 | ||
,,,,,,,119,13342.0 | ||
,,,,,,,120,12052.0 |
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,2 @@ | ||
,Network_zones,ESR_1,ESR_2 | ||
NE,z1,0.259,0.348 |
Oops, something went wrong.