Skip to content

Commit

Permalink
[API] Cleanup code (#794)
Browse files Browse the repository at this point in the history
- Add dome no_discard
- Use unsigned where it make sense
- Avoid implicit cast and use static_cast when possible
- Solver factory initialize all solvers (previously missing for xpress)
  • Loading branch information
JasonMarechal25 authored May 14, 2024
1 parent 1b25937 commit 6160c8f
Show file tree
Hide file tree
Showing 355 changed files with 366,994 additions and 173 deletions.
4 changes: 4 additions & 0 deletions data_test/tests_lpnamer/SmallTestFiveCandidates/Desktop.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[.shellclassinfo]
iconfile = settings/resources/study.ico
iconindex = 0
infotip = Antares Study8.0: ExpansionTest1
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[nodal optimization]
non-dispatchable-power = true
dispatchable-hydro-power = true
other-dispatchable-power = true
spread-unsupplied-energy-cost = 0.000000
spread-spilled-energy-cost = 0.000000

[filtering]
filter-synthesis = weekly, annual
filter-year-by-year = weekly, annual

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[ui]
x = -50
y = -1
color_r = 0
color_g = 128
color_b = 255
layers = 0
[layerX]
0 = -50

[layerY]
0 = -1

[layerColor]
0 = 0 , 128 , 255
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[nodal optimization]
non-dispatchable-power = true
dispatchable-hydro-power = true
other-dispatchable-power = true
spread-unsupplied-energy-cost = 0.000000
spread-spilled-energy-cost = 0.000000

[filtering]
filter-synthesis = weekly, annual
filter-year-by-year = weekly, annual

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[ui]
x = 112
y = -1
color_r = 0
color_g = 128
color_b = 255
layers = 0
[layerX]
0 = 112

[layerY]
0 = -1

[layerColor]
0 = 0 , 128 , 255
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[nodal optimization]
non-dispatchable-power = true
dispatchable-hydro-power = true
other-dispatchable-power = true
spread-unsupplied-energy-cost = 0.000000
spread-spilled-energy-cost = 0.000000

[filtering]
filter-synthesis = weekly, annual
filter-year-by-year = weekly, annual

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[ui]
x = 203
y = -92
color_r = 0
color_g = 0
color_b = 0
layers = 0
[layerX]
0 = 203

[layerY]
0 = -92

[layerColor]
0 = 0 , 0 , 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Store_in
area1
area2
flex
peak
pv
semibase
store_out
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[nodal optimization]
non-dispatchable-power = true
dispatchable-hydro-power = true
other-dispatchable-power = true
spread-unsupplied-energy-cost = 0.000000
spread-spilled-energy-cost = 0.000000

[filtering]
filter-synthesis = weekly, annual
filter-year-by-year = weekly, annual

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[ui]
x = -153
y = -1
color_r = 0
color_g = 0
color_b = 0
layers = 0
[layerX]
0 = -153

[layerY]
0 = -1

[layerColor]
0 = 0 , 0 , 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[nodal optimization]
non-dispatchable-power = true
dispatchable-hydro-power = true
other-dispatchable-power = true
spread-unsupplied-energy-cost = 0.000000
spread-spilled-energy-cost = 0.000000

[filtering]
filter-synthesis = weekly, annual
filter-year-by-year = weekly, annual

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[ui]
x = 230
y = -3
color_r = 0
color_g = 0
color_b = 0
layers = 0
[layerX]
0 = 230

[layerY]
0 = -3

[layerColor]
0 = 0 , 0 , 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[nodal optimization]
non-dispatchable-power = true
dispatchable-hydro-power = true
other-dispatchable-power = true
spread-unsupplied-energy-cost = 0.000000
spread-spilled-energy-cost = 0.000000

[filtering]
filter-synthesis = weekly, annual
filter-year-by-year = weekly, annual

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[ui]
x = -112
y = 54
color_r = 0
color_g = 0
color_b = 0
layers = 0
[layerX]
0 = -112

[layerY]
0 = 54

[layerColor]
0 = 0 , 0 , 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[all areas]
caption = All areas
comments = Spatial aggregates on all areas
output = false
apply-filter = add-all

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[nodal optimization]
non-dispatchable-power = true
dispatchable-hydro-power = true
other-dispatchable-power = true
spread-unsupplied-energy-cost = 0.000000
spread-spilled-energy-cost = 0.000000

[filtering]
filter-synthesis = weekly, annual
filter-year-by-year = weekly, annual

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[ui]
x = 339
y = -125
color_r = 192
color_g = 192
color_b = 192
layers = 0
[layerX]
0 = 339

[layerY]
0 = -125

[layerColor]
0 = 192 , 192 , 192
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[nodal optimization]
non-dispatchable-power = true
dispatchable-hydro-power = true
other-dispatchable-power = true
spread-unsupplied-energy-cost = 0.000000
spread-spilled-energy-cost = 0.000000

[filtering]
filter-synthesis = weekly, annual
filter-year-by-year = weekly, annual

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[ui]
x = 233
y = -185
color_r = 192
color_g = 192
color_b = 192
layers = 0
[layerX]
0 = 233

[layerY]
0 = -185

[layerColor]
0 = 192 , 192 , 192
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[0]
name = Storing_balance
id = storing_balance
enabled = true
type = daily
operator = equal
flex%store_in = 0.800000
flex%store_out = 1.000000

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[allocation]]
area1 = 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[allocation]]
area2 = 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[allocation]]
flex = 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[allocation]]
peak = 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[allocation]]
pv = 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[allocation]]
semibase = 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[allocation]]
store_in = 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[allocation]]
store_out = 1

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Loading

0 comments on commit 6160c8f

Please sign in to comment.