from regret_tuning import RegretTuning r = RegretTuning(datafile='./sat_runtime.csv', request_time_slot=600, conf_per_slot=100) regret_period = 600*45 n = 300 k = 10 gplot_file_means = './satunsat_means_xp2.dat' gplot_file_max = './satunsat_max_xp2.dat' r.shuffle_data() u = r.run_method('lex', regret_period, k) v = r.run_method('rand', regret_period, k) w = r.run_method('randsort', regret_period, k) x = r.run_method('randsortdesc', regret_period, k) y = r.run_method('randw', regret_period, k) z = r.run_method('randwnoh', regret_period, k) size = regret_period for i in range(1, n): r.shuffle_data() t_u = r.run_method('lex', regret_period, k) u = [u[j]+t_u[j] for j in range(0,size)] t_v = r.run_method('rand', regret_period, k) v = [v[j]+t_v[j] for j in range(0,size)] t_w = r.run_method('randsort', regret_period, k)
from regret_tuning import RegretTuning r = RegretTuning(datafile='./satunsat_runtime.csv', request_time_slot=600, conf_per_slot=100) regret_period = 600*76 n = 300 k = 10 gplot_file_means = './satunsat_means_xp4.dat' gplot_file_max = './satunsat_max_xp4.dat' r.shuffle_data() u = r.run_method('randw', regret_period, 10) v = r.run_method('randw', regret_period, 20) w = r.run_method('randw', regret_period, 30) x = r.run_method('randw', regret_period, 40) size = regret_period for i in range(1, n): r.shuffle_data() t_u = r.run_method('randw', regret_period, 10) u = [u[j]+t_u[j] for j in range(0,size)] t_v = r.run_method('randw', regret_period, 20) v = [v[j]+t_v[j] for j in range(0,size)] t_w = r.run_method('randw', regret_period, 30) w = [w[j]+t_w[j] for j in range(0,size)]