Esempio n. 1
0
def creat_activity_4node():
##  add_activity(name, U0, Um, Sigma, Lambda, Xi, time_win, min_duration, is_madatory, pref_timing):
    add_activity('home-am',    1.0, 400, -0.008, 1.0,   720, (0, 1440), 360, 0, -1)
    add_activity('home-pm',    1.0, 400, -0.008, 1.0,   720, (0, 1440), 360, 0, -1)
    add_activity('work',       0.0,1000,  0.010, 1.0,   720, (0, 1440), 240, 1, 540)
    add_activity('school',     0.0, 160,  0.015, 1.0,   495, (0, 1440),  10, 0, -1)
    add_activity('shopping',   0.0, 400,  0.010, 1.0,  1170, (0, 1440),  10, 0, -1)
    add_activity('restaurant', 0.0, 200,  0.030, 1.0,  1140, (0, 1440),  10, 0, -1)
Esempio n. 2
0
def creat_activity_4node():
    ##  add_activity(name, U0, Um, Sigma, Lambda, Xi, time_win, min_duration, is_madatory, pref_timing):
    add_activity('home-am', 1.0, 400, -0.008, 1.0, 720, (0, 1440), 360, 0, -1)
    add_activity('home-pm', 1.0, 400, -0.008, 1.0, 720, (0, 1440), 360, 0, -1)
    add_activity('work', 0.0, 1000, 0.010, 1.0, 720, (0, 1440), 240, 1, 540)
    add_activity('school', 0.0, 160, 0.015, 1.0, 495, (0, 1440), 10, 0, -1)
    add_activity('shopping', 0.0, 400, 0.010, 1.0, 1170, (0, 1440), 10, 0, -1)
    add_activity('restaurant', 0.0, 200, 0.030, 1.0, 1140, (0, 1440), 10, 0,
                 -1)
Esempio n. 3
0
def creat_activity_6node():
##  add_activity(name, U0, Um, Sigma, Lambda, Xi, time_win, min_duration, is_joint, is_madatory, pref_timing):
    add_activity('home-am',          1.0,  600, -0.010, 1.0,   720, (  0,  720), 360, 1, 0,  -1)
    add_activity('home-pm',          1.0,  600, -0.010, 1.0,   720, (720, 1440), 360, 1, 0,  -1)
    add_activity('work',             0.0, 1600,  0.010, 1.0,   720, (240, 1440), 240, 0, 1, 540)
    add_activity('restaurent',       0.0,  420,  0.010, 1.0,  1170, (720, 1440),  10, 0, 0,  -1)
    add_activity('joint-restaurent', 0.0,  100,  0.010, 1.0,  1170, (720, 1440),  10, 1, 0,  -1)
    add_activity('shopping',         0.0,  500,  0.010, 1.0,  1110, (720, 1440),  10, 0, 0,  -1)
    add_activity('joint-shopping',   0.0,  120,  0.010, 1.0,  1110, (720, 1440),  10, 1, 0,  -1)
Esempio n. 4
0
def creat_activity_6node():
    ##  add_activity(name, U0, Um, Sigma, Lambda, Xi, time_win, min_duration, is_joint, is_madatory, pref_timing):
    add_activity('home-am', 1.0, 600, -0.010, 1.0, 720, (0, 720), 360, 1, 0,
                 -1)
    add_activity('home-pm', 1.0, 600, -0.010, 1.0, 720, (720, 1440), 360, 1, 0,
                 -1)
    add_activity('work', 0.0, 1600, 0.010, 1.0, 720, (240, 1440), 240, 0, 1,
                 540)
    add_activity('restaurent', 0.0, 420, 0.010, 1.0, 1170, (720, 1440), 10, 0,
                 0, -1)
    add_activity('joint-restaurent', 0.0, 100, 0.010, 1.0, 1170, (720, 1440),
                 10, 1, 0, -1)
    add_activity('shopping', 0.0, 500, 0.010, 1.0, 1110, (720, 1440), 10, 0, 0,
                 -1)
    add_activity('joint-shopping', 0.0, 120, 0.010, 1.0, 1110, (720, 1440), 10,
                 1, 0, -1)