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
b786cd3a
Commit
b786cd3a
authored
1 year ago
by
Maël Madon
Browse files
Options
Downloads
Patches
Plain Diff
rerun expe0 and expe1 and started a diary of observations
parent
a26115c9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Extension europar2022
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
instance.py
+8
-7
8 additions, 7 deletions
instance.py
rerun_expe.ipynb
+1121
-0
1121 additions, 0 deletions
rerun_expe.ipynb
with
1129 additions
and
7 deletions
instance.py
+
8
−
7
View file @
b786cd3a
...
...
@@ -87,7 +87,7 @@ def run_expe(expe_num, user_category, window_size, clean_log, nb_cores=16):
def
start_instance
(
expe_num
,
start_date
,
prepare_workload
=
True
,
clean_log
=
False
,
only_degrad_temp
=
False
):
def
start_instance
(
expe_num
,
prepare_workload
=
True
,
start_date
=
0
,
clean_log
=
False
,
only_degrad_temp
=
False
):
# Prepare workload
if
prepare_workload
:
prepare_input_data
(
expe_num
,
start_date
)
...
...
@@ -97,12 +97,13 @@ def start_instance(expe_num, start_date, prepare_workload=True, clean_log=False,
# Run with Rigid behavior (the demand response window has no influence here)
run_expe
(
expe_num
=
expe_num
,
user_category
=
"
replay_user_rigid
"
,
window_size
=
1
,
clean_log
=
clean_log
)
user_category
=
"
replay_user_rigid
"
,
window_size
=
1
,
clean_log
=
clean_log
)
# 4*2 = 8 expe
if
only_degrad_temp
:
bhvs
=
[
"
dm_user_degrad_temp
"
]
# bhvs = ["dm_user_degrad_temp"]
bhvs
=
[]
else
:
bhvs
=
[
"
dm_user_reconfig
"
,
"
dm_user_degrad_space
"
,
"
dm_user_degrad_temp
"
,
"
dm_user_renounce
"
,
"
dm_user_delay
"
]
...
...
@@ -119,11 +120,11 @@ def main():
parser
=
argparse
.
ArgumentParser
(
description
=
'
One expe instance. To launch for example with `oarsub -l walltime=2
"
./1_one_instance arg1 arg2 arg3
"
`
'
)
parser
.
add_argument
(
'
expe_num
'
,
type
=
int
,
help
=
'
The expe ID
'
)
parser
.
add_argument
(
'
start_date
'
,
type
=
int
,
help
=
'
Start of the 3-day window (in seconds since the start of the original trace)
'
)
#
parser.add_argument('start_date', type=int,
#
help='Start of the 3-day window (in seconds since the start of the original trace)')
args
=
parser
.
parse_args
()
start_instance
(
args
.
expe_num
,
args
.
start_dat
e
)
start_instance
(
args
.
expe_num
,
prepare_workload
=
False
,
clean_log
=
True
,
only_degrad_temp
=
Tru
e
)
...
...
This diff is collapsed.
Click to expand it.
rerun_expe.ipynb
0 → 100644
+
1121
−
0
View file @
b786cd3a
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