Skip to content
Snippets Groups Projects
Commit 5f98e2da authored by Maël Madon's avatar Maël Madon
Browse files

campaign1 ready to be launched with 50 expe

parent 6d77b896
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment