-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from gilbertgong/ggong/consumption-prep
preparation for consumption - slight refactor, prepare for tests, tweak graphs
- Loading branch information
Showing
10 changed files
with
124 additions
and
47 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,5 @@ | ||
- add tests | ||
- refactor to use net_transfer_to_grid | ||
- incorporate consumption | ||
- example with 0 solar + 0 battery | ||
- build from here |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ scipy==1.8.1 | |
cvxopt | ||
cvxpy==1.2.2 | ||
plotly | ||
kaleido |
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,25 @@ | ||
""" These are used in the /examples directory as well as (planned) tests """ | ||
|
||
import numpy as np | ||
|
||
# examples use 24 hour day for analysis period | ||
# any granularity should be supported but only 24 hour day has been tested | ||
hours_per_day = 24 | ||
|
||
prices = np.zeros(hours_per_day) + 30 | ||
prices[6:19] = 40 | ||
prices[9] = 50 | ||
prices[12:14] = 30 | ||
prices[16:18] = 50 | ||
prices[17] = 60 | ||
|
||
no_solar = np.zeros(hours_per_day) | ||
|
||
with_solar = np.zeros(hours_per_day) | ||
with_solar[8:16] = 2.0 | ||
with_solar[10:14] = 4.0 | ||
|
||
solar_generation = { | ||
"no_solar": no_solar, | ||
"with_solar": with_solar, | ||
} |
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