-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
822 additions
and
0 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,5 @@ | ||
cont,T | ||
A,3 | ||
B,3 | ||
C,3 | ||
D,3 |
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,6 @@ | ||
TU,A,B,C,D,L,theta,beta | ||
t1,0.95,0.95,0.6,0.0,5,1500,8000 | ||
t2,0.08,0.8,0.6,0.0,3,1000,8000 | ||
t3,0.0,0.6,0.95,0.95,4,4000,8000 | ||
t4,0.0,0.6,0.8,0.85,3,3000,8000 | ||
t5,0.0,0.6,0.85,0.8,1,3000,8000 |
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,18 @@ | ||
# from .wn_pwl import build_model_Piecewise as _pwl | ||
# from .wn_q import build_model_Quadratic as _q | ||
|
||
# from .wn_minlp import build_model_MINLP as _original | ||
from gdplib.water_network.wnd import build_model | ||
|
||
# def build_model(case="quadratic"): | ||
# if case == "quadratic": | ||
# return _q() | ||
# elif case == "piecewise": | ||
# return _pwl() | ||
# else: | ||
# raise ValueError(f"Invalid case: {case}") | ||
|
||
|
||
__all__ = ['build_model'] | ||
# if __name__ == "__main__": | ||
# build_model |
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,6 @@ | ||
FSU,A,B,C,D,flow_rate | ||
fs1,1.0,1.0,1.0,1.0,10 | ||
fs2,1.3333333333333333,0.0,0.0,0.6666666666666666,15 | ||
fs3,2.0,2.0,0.0,4.0,5 | ||
fs4,1.5,0.5,0.5,0.0,20 | ||
fs5,2.0,2.0,0.0,0.0,10 |
Oops, something went wrong.