Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Demand Response User
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sepia-pub
Open Science
Demand Response User
Commits
5f98e2da
Commit
5f98e2da
authored
3 years ago
by
Maël Madon
Browse files
Options
Downloads
Patches
Plain Diff
campaign1 ready to be launched with 50 expe
parent
6d77b896
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
campaign1.py
+1
-4
1 addition, 4 deletions
campaign1.py
instance1.py
+1
-1
1 addition, 1 deletion
instance1.py
with
2 additions
and
5 deletions
campaign1.py
+
1
−
4
View file @
5f98e2da
...
...
@@ -13,7 +13,7 @@ jun1, nov30 = (int)(jun1_unix_time -
random
.
seed
(
1997
)
nb_expe
=
2
nb_expe
=
50
start_dates
=
[
random
.
randint
(
jun1
,
nov30
-
72
*
3600
)
...
...
@@ -27,6 +27,3 @@ with concurrent.futures.ProcessPoolExecutor() as executor:
for
instance
in
concurrent
.
futures
.
as_completed
(
instances
):
print
(
f
"
Expe
{
instance
.
result
()
}
terminated
"
)
# For every start date
# Call the one_instance file with this date
This diff is collapsed.
Click to expand it.
instance1.py
+
1
−
1
View file @
5f98e2da
...
...
@@ -44,7 +44,7 @@ def run_expe(expe_num, user_category, window_size, clean_log):
uf
=
f
"
{
ROOT_DIR
}
/sched_input/user_description_file.json
"
# Demand response window, from 12 to (12 + window_size) on day2
dm_window
=
[(
24
+
12
)
*
3600
,
(
24
+
12
+
window_size
)
*
3600
]
dm_window
=
[(
24
+
12
)
*
3600
,
(
int
)
(
24
+
12
+
window_size
)
*
3600
]
# User description file
def
user_description
(
user
):
...
...
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