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
bac5d17b
Commit
bac5d17b
authored
2 years ago
by
Christoph von Oy
Browse files
Options
Downloads
Patches
Plain Diff
Remove old input profile processing
parent
afe4cd18
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Model_Library
+1
-1
1 addition, 1 deletion
Model_Library
Tooling
+1
-1
1 addition, 1 deletion
Tooling
runme_community.py
+5
-20
5 additions, 20 deletions
runme_community.py
with
7 additions
and
22 deletions
Model_Library
@
d1e391b6
Compare
45ee9ad7
...
d1e391b6
Subproject commit
45ee9ad75756f37ecddd11dee4902c97bb590bbb
Subproject commit
d1e391b64ee8d8437d1f8d65f93cb35af638a740
This diff is collapsed.
Click to expand it.
Tooling
@
7429265e
Compare
d7e201c3
...
7429265e
Subproject commit
d7e201c3af6d28b04300dbf3c6fca4900852dc10
Subproject commit
7429265e5642c02c9dd79efd5e595698edf81d7b
This diff is collapsed.
Click to expand it.
runme_community.py
+
5
−
20
View file @
bac5d17b
...
@@ -48,26 +48,17 @@ input_profiles = Tooling.input_profile_processor.input_profile_processor.process
...
@@ -48,26 +48,17 @@ input_profiles = Tooling.input_profile_processor.input_profile_processor.process
after_input_processing
=
time
.
time
()
after_input_processing
=
time
.
time
()
print
(
"
runme:
\t\t\t
Profile Processing [s]:
\t
"
+
str
(
after_input_processing
-
start
))
print
(
"
runme:
\t\t\t
Profile Processing [s]:
\t
"
+
str
(
after_input_processing
-
start
))
# 'data_path': path to file specifying where input profiles are located
# 'topology_path': path to directory that contains the matrices that define the prosumer topology
# 'topology_path': path to matrices that define the prosumer topology
# 'config_path': path to global configurations like prices, injection prices, emission costs, etc.
# 'config_path': path to global configurations like prices, injection prices, emission costs, etc.
prosumer_dict
=
{
'
SCN2_CAT1_PV11_3000_6000
'
:{
'
elec_demand
'
:
3000
,
prosumer_dict
=
{
'
SCN2_CAT1_PV11_3000_6000
'
:{
'
topology_path
'
:
'
input_files/models/prosumer_models/SCN2_CAT1_PV11
'
,
'
therm_demand
'
:
6000
,
'
hot_water_demand
'
:
1500
,
'
topology_path
'
:
'
input_files/models/prosumer_models/SCN2_CAT1_PV11
'
,
'
config_path
'
:
'
input_files/models/prosumer_models/SCN2_CAT1_PV11/config.csv
'
,
'
config_path
'
:
'
input_files/models/prosumer_models/SCN2_CAT1_PV11/config.csv
'
,
'
data_path
'
:
'
input_files/models/prosumer_models/SCN2_CAT1_PV11/data_path.csv
'
,
'
profiles
'
:
{
'
irradiance
'
:
'
irradiance_1
'
,
'
profiles
'
:
{
'
irradiance
'
:
'
irradiance_1
'
,
'
air_temperature
'
:
'
temperature_1
'
,
'
air_temperature
'
:
'
temperature_1
'
,
'
elec_demand
'
:
'
demand_electric_1
'
,
'
elec_demand
'
:
'
demand_electric_1
'
,
'
therm_demand
'
:
'
demand_heat_1
'
,
'
therm_demand
'
:
'
demand_heat_1
'
,
'
hot_water_demand
'
:
'
demand_hot_water_1
'
}},
'
hot_water_demand
'
:
'
demand_hot_water_1
'
}},
'
SCN0_CAT1_3000_6000
'
:
{
'
elec_demand
'
:
3000
,
'
SCN0_CAT1_3000_6000
'
:
{
'
topology_path
'
:
'
input_files/models/prosumer_models/SCN0_CAT1
'
,
'
therm_demand
'
:
6000
,
'
hot_water_demand
'
:
1500
,
'
topology_path
'
:
'
input_files/models/prosumer_models/SCN0_CAT1
'
,
'
config_path
'
:
'
input_files/models/prosumer_models/SCN0_CAT1/config.csv
'
,
'
config_path
'
:
'
input_files/models/prosumer_models/SCN0_CAT1/config.csv
'
,
'
data_path
'
:
'
input_files/models/prosumer_models/SCN0_CAT1/data_path.csv
'
,
'
profiles
'
:
{
'
irradiance
'
:
'
irradiance_2
'
,
'
profiles
'
:
{
'
irradiance
'
:
'
irradiance_2
'
,
'
air_temperature
'
:
'
temperature_2
'
,
'
air_temperature
'
:
'
temperature_2
'
,
'
elec_demand
'
:
'
demand_electric_2
'
,
'
elec_demand
'
:
'
demand_electric_2
'
,
...
@@ -95,12 +86,8 @@ print("runme:\t\t\tProsumer Optimization [s]: \t" + str(after_optimization - bef
...
@@ -95,12 +86,8 @@ print("runme:\t\t\tProsumer Optimization [s]: \t" + str(after_optimization - bef
start_community
=
time
.
time
()
start_community
=
time
.
time
()
ca_dict
=
{
'
ca_bat
'
:
{
'
elec_demand
'
:
0
,
ca_dict
=
{
'
ca_bat
'
:
{
'
topology_path
'
:
'
input_files/models/district_models/example_CA
'
,
'
therm_demand
'
:
0
,
'
hot_water_demand
'
:
0
,
'
topology_path
'
:
'
input_files/models/district_models/example_CA
'
,
'
config_path
'
:
'
input_files/models/district_models/example_CA/config.csv
'
,
'
config_path
'
:
'
input_files/models/district_models/example_CA/config.csv
'
,
'
data_path
'
:
'
input_files/models/district_models/example_CA/data_path.csv
'
,
'
profiles
'
:
{
'
irradiance
'
:
'
irradiance_3
'
,
'
profiles
'
:
{
'
irradiance
'
:
'
irradiance_3
'
,
'
air_temperature
'
:
'
temperature_3
'
,
'
air_temperature
'
:
'
temperature_3
'
,
'
elec_demand
'
:
'
demand_electric_3
'
,
'
elec_demand
'
:
'
demand_electric_3
'
,
...
@@ -115,9 +102,7 @@ comm_assets = main.Main_CA(ca_dict, t_start, t_horizon, t_step, input_profiles)
...
@@ -115,9 +102,7 @@ comm_assets = main.Main_CA(ca_dict, t_start, t_horizon, t_step, input_profiles)
after_community_assets
=
time
.
time
()
after_community_assets
=
time
.
time
()
print
(
"
runme:
\t\t\t
Community Assets Constr. [s]:
\t
"
+
str
(
after_community_assets
-
before_community_assets
))
print
(
"
runme:
\t\t\t
Community Assets Constr. [s]:
\t
"
+
str
(
after_community_assets
-
before_community_assets
))
comm_dict
=
{
'
community
'
:
{
'
topology_path
'
:
'
input_files/models/district_models/example_community
'
,
comm_dict
=
{
'
community
'
:
{
'
config_path
'
:
'
input_files/models/district_models/example_community/config.csv
'
,
'
config_path
'
:
'
input_files/models/district_models/example_community/config.csv
'
,
'
data_path
'
:
'
input_files/models/district_models/example_community/data_path.csv
'
,
'
profiles
'
:
{
'
elec_price
'
:
'
elec_price_1
'
}}}
'
profiles
'
:
{
'
elec_price
'
:
'
elec_price_1
'
}}}
comm_strategy
=
[
'
max_operational_profit
'
]
comm_strategy
=
[
'
max_operational_profit
'
]
...
...
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