-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement DEPRECIATE STRAIGHTLINE (#264)
Fixes #258
- Loading branch information
1 parent
260a872
commit e93101e
Showing
9 changed files
with
387 additions
and
3 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,138 @@ | ||
Capacity Cost | ||
2020 1e+06 | ||
Depreciated Amount | ||
2020 0 | ||
2021 0 | ||
2022 5e+07 | ||
2023 5e+07 | ||
2024 5e+07 | ||
2025 5e+07 | ||
2026 1.75e+08 | ||
2027 1.75e+08 | ||
2028 1.75e+08 | ||
2029 1.75e+08 | ||
2030 1.75e+08 | ||
2031 1.75e+08 | ||
2032 1.75e+08 | ||
2033 1.75e+08 | ||
2034 1.75e+08 | ||
2035 1.75e+08 | ||
2036 1.75e+08 | ||
2037 1.75e+08 | ||
2038 1.75e+08 | ||
2039 1.75e+08 | ||
2040 1.75e+08 | ||
2041 1.75e+08 | ||
2042 1.25e+08 | ||
2043 1.25e+08 | ||
2044 1.25e+08 | ||
2045 1.25e+08 | ||
2046 0 | ||
2047 0 | ||
2048 0 | ||
2049 0 | ||
2050 0 | ||
dtime | ||
2020 20 | ||
FINAL TIME | ||
2020 2050 | ||
INITIAL TIME | ||
2020 2020 | ||
New Capacity | ||
2020 0 | ||
2021 0 | ||
2022 1000 | ||
2023 0 | ||
2024 0 | ||
2025 0 | ||
2026 2500 | ||
2027 0 | ||
2028 0 | ||
2029 0 | ||
2030 0 | ||
2031 0 | ||
2032 0 | ||
2033 0 | ||
2034 0 | ||
2035 0 | ||
2036 0 | ||
2037 0 | ||
2038 0 | ||
2039 0 | ||
2040 0 | ||
2041 0 | ||
2042 0 | ||
2043 0 | ||
2044 0 | ||
2045 0 | ||
2046 0 | ||
2047 0 | ||
2048 0 | ||
2049 0 | ||
2050 0 | ||
SAVEPER | ||
2020 1 | ||
2021 1 | ||
2022 1 | ||
2023 1 | ||
2024 1 | ||
2025 1 | ||
2026 1 | ||
2027 1 | ||
2028 1 | ||
2029 1 | ||
2030 1 | ||
2031 1 | ||
2032 1 | ||
2033 1 | ||
2034 1 | ||
2035 1 | ||
2036 1 | ||
2037 1 | ||
2038 1 | ||
2039 1 | ||
2040 1 | ||
2041 1 | ||
2042 1 | ||
2043 1 | ||
2044 1 | ||
2045 1 | ||
2046 1 | ||
2047 1 | ||
2048 1 | ||
2049 1 | ||
2050 1 | ||
str | ||
2020 0 | ||
2021 0 | ||
2022 1e+09 | ||
2023 0 | ||
2024 0 | ||
2025 0 | ||
2026 2.5e+09 | ||
2027 0 | ||
2028 0 | ||
2029 0 | ||
2030 0 | ||
2031 0 | ||
2032 0 | ||
2033 0 | ||
2034 0 | ||
2035 0 | ||
2036 0 | ||
2037 0 | ||
2038 0 | ||
2039 0 | ||
2040 0 | ||
2041 0 | ||
2042 0 | ||
2043 0 | ||
2044 0 | ||
2045 0 | ||
2046 0 | ||
2047 0 | ||
2048 0 | ||
2049 0 | ||
2050 0 | ||
TIME STEP | ||
2020 1 |
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,130 @@ | ||
{UTF-8} | ||
dtime= | ||
20 | ||
~ | ||
~ | | ||
|
||
Capacity Cost= | ||
1e+06 | ||
~ $/MW | ||
~ | | ||
|
||
New Capacity= | ||
IF THEN ELSE (Time = 2022, 1000, IF THEN ELSE(Time = 2026,2500,0)) | ||
~ MW | ||
~ | | ||
|
||
str= | ||
Capacity Cost*New Capacity | ||
~ $ | ||
~ | | ||
|
||
Depreciated Amount= | ||
DEPRECIATE STRAIGHTLINE(str, dtime, 1, 0) | ||
~ | ||
~ | | ||
|
||
******************************************************** | ||
.Control | ||
********************************************************~ | ||
Simulation Control Parameters | ||
| | ||
|
||
FINAL TIME = 2050 | ||
~ Year | ||
~ The final time for the simulation. | ||
| | ||
|
||
INITIAL TIME = 2020 | ||
~ Year | ||
~ The initial time for the simulation. | ||
| | ||
|
||
SAVEPER = | ||
TIME STEP | ||
~ Year [0,?] | ||
~ The frequency with which output is stored. | ||
| | ||
|
||
TIME STEP = 1 | ||
~ Year [0,?] | ||
~ The time step for the simulation. | ||
| | ||
|
||
\\\---/// Sketch information - do not modify anything except names | ||
V300 Do not put anything below this section - it will be ignored | ||
*View 1 | ||
$192-192-192,0,Courier|12||0-0-0|0-0-0|0-0-255|-1--1--1|255-255-255|96,96,100,0 | ||
10,1,New Capacity,344,277,56,9,8,3,0,0,0,0,0,0,0,0,0,0,0,0 | ||
10,2,Time,310,223,29,9,8,2,0,3,-1,0,0,0,128-128-128,0-0-0,|||128-128-128,0,0,0,0,0,0 | ||
1,3,2,1,0,0,0,0,0,64,0,-1--1--1,,1|(0,0)| | ||
10,4,Capacity Cost,423,168,39,16,8,3,0,0,0,0,0,0,0,0,0,0,0,0 | ||
10,5,str,537,238,53,16,8,3,0,0,0,0,0,0,0,0,0,0,0,0 | ||
1,6,1,5,0,0,0,0,0,128,0,-1--1--1,,1|(0,0)| | ||
1,7,4,5,0,0,0,0,0,128,0,-1--1--1,,1|(0,0)| | ||
10,8,Depreciated Amount,713,243,53,16,8,3,0,0,0,0,0,0,0,0,0,0,0,0 | ||
1,9,5,8,0,0,0,0,0,128,0,-1--1--1,,1|(0,0)| | ||
10,10,dtime,587,313,46,23,8,3,0,0,-1,0,0,0,0,0,0,0,0,0 | ||
1,11,10,8,0,0,0,0,0,64,1,-1--1--1,,1|(0,0)| | ||
///---\\\ | ||
:L<%^E!@ | ||
1:depreciate.vdfx | ||
4:Time | ||
5:Capacity Cost | ||
9:depreciate | ||
19:100,0 | ||
24:2020 | ||
25:2050 | ||
26:2050 | ||
57:1 | ||
54:0 | ||
55:0 | ||
82:1 | ||
86:0 | ||
59:0 | ||
56:0 | ||
58:0 | ||
71:0 | ||
110:0 | ||
111:0 | ||
44:0 | ||
46:0 | ||
45:0 | ||
49:0 | ||
50:0 | ||
51: | ||
52: | ||
53: | ||
43:/Users/todd/Projects/SDEverywhere/models/depreciate/depreciate.dat | ||
47: | ||
48: | ||
15:0,0,0,0,0,0 | ||
27:0, | ||
34:0, | ||
42:1 | ||
72:0 | ||
73:0 | ||
35:Date | ||
36:YYYY-MM-DD | ||
37:2020 | ||
38:1 | ||
39:1 | ||
40:0 | ||
41:0 | ||
95:0 | ||
96:0 | ||
97:0 | ||
77:0 | ||
78:0 | ||
102:1 | ||
93:0 | ||
94:0 | ||
92:0 | ||
91:0 | ||
90:0 | ||
87:0 | ||
75: | ||
43:/Users/todd/Projects/SDEverywhere/models/depreciate/depreciate.dat | ||
103:8,8,8,3,8 | ||
105:0,0,0,0,0,0,0,0,0,0 | ||
104:Courier|12||0-0-0|0-0-0|-1--1--1|0-0-255|192-192-192|-1--1--1 |
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
Oops, something went wrong.