Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bi-Level_EVA
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Strach
Bi-Level_EVA
Commits
ac585a83
Commit
ac585a83
authored
Nov 3, 2023
by
Najet Nsir
Browse files
Options
Downloads
Patches
Plain Diff
runme script for rolling horizon approach on prosumer level
parent
6dd1875b
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Model_Library
+1
-1
1 addition, 1 deletion
Model_Library
runme.py
+7
-6
7 additions, 6 deletions
runme.py
with
8 additions
and
7 deletions
Model_Library
@
d75b42d3
Compare
dc5c2fac
...
d75b42d3
Subproject commit d
c5c2facdbb74e782cb7b88408551306342ed8f9
Subproject commit d
75b42d31df74c47ad1f1c73d7f481c17b7d420b
This diff is collapsed.
Click to expand it.
runme.py
+
7
−
6
View file @
ac585a83
...
...
@@ -32,7 +32,7 @@ class SimulationScope(Enum):
PROSUMER
=
1
DISTRICT
=
2
simulation_scope
=
SimulationScope
.
DISTRICT
simulation_scope
=
SimulationScope
.
PROSUMER
t_start
=
pd
.
Timestamp
(
"
2019-05-10 00:00:00
"
)
# start time of simulation
t_horizon
=
240
# number of time steps to be simulated
t_step
=
1
# length of a time step in hours
...
...
@@ -58,12 +58,13 @@ input_profiles = Tooling.input_profile_processor.input_profile_processor.process
# 'config_path': path to global configurations like prices, injection prices, emission costs, etc.
# 'topology_path': path to directory that contains the matrices that define the prosumer topology
prosumer_dict
=
{
'
SCN2_CAT1_PV1
1
_3000_6000
'
:{
'
config_path
'
:
'
input_files/models/prosumer_models/SCN2_CAT1_PV1
1
/config.csv
'
,
'
topology_path
'
:
'
input_files/models/prosumer_models/SCN2_CAT1_PV1
1
'
,
prosumer_dict
=
{
'
SCN2_CAT1_PV1
4_HP
_3000_6000
'
:{
'
config_path
'
:
'
input_files/models/prosumer_models/SCN2_CAT1_PV1
4_HP
/config.csv
'
,
'
topology_path
'
:
'
input_files/models/prosumer_models/SCN2_CAT1_PV1
4_HP
'
,
'
profiles
'
:
{
'
pv_roof
'
:
[(
'
irradiance_1
'
,
'
irradiance
'
,
'
perfect_foresight
'
),
(
'
temperature_1
'
,
'
temperature
'
,
'
perfect_foresight
'
)],
'
elec_cns
'
:
(
'
demand_electric_1
'
,
'
demand_electric
'
,
'
perfect_foresight
'
),
'
therm_cns
'
:
(
'
demand_heat_1
'
,
'
demand_heat
'
,
'
perfect_foresight
'
),
'
dhw_dmd
'
:
(
'
demand_hot_water_1
'
,
'
demand_hot_water
'
,
'
perfect_foresight
'
)}},
'
dhw_dmd
'
:
(
'
demand_hot_water_1
'
,
'
demand_hot_water
'
,
'
perfect_foresight
'
),
'
heat_pump
'
:
(
'
temperature_1
'
,
'
temperature
'
,
'
perfect_foresight
'
)}},
'
SCN0_CAT1_3000_6000
'
:
{
'
config_path
'
:
'
input_files/models/prosumer_models/SCN0_CAT1/config.csv
'
,
'
topology_path
'
:
'
input_files/models/prosumer_models/SCN0_CAT1
'
,
'
profiles
'
:
{
'
elec_cns
'
:
(
'
demand_electric_2
'
,
'
demand_electric
'
,
'
perfect_foresight
'
),
...
...
@@ -71,10 +72,10 @@ prosumer_dict = {'SCN2_CAT1_PV11_3000_6000':{'config_path': 'input_files/models/
'
dhw_dmd
'
:
(
'
demand_hot_water_2
'
,
'
demand_hot_water
'
,
'
perfect_foresight
'
)}}}
prosumer_main
=
main_prosumer
.
ProsumerMain
(
prosumer_dict
,
input_profiles
,
t_horizon
,
t_step
)
prosumer_sizing_strategy
=
'
annuity
'
prosumer_main
.
optimize_sizing
(
prosumer_sizing_strategy
)
prosumer_operation_strategy
=
'
annuity
'
prosumer_main
.
optimize_operation
(
prosumer_operation_strategy
)
prosumer_main
.
save_results
()
prosumers
=
prosumer_main
.
prosumers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment