# Unscaled utility_model = SSHUtility() tp, delay, utility = utility_grid( service_model, utility_model, discrete_delay_cnt=glb_discrete_delay_cnt, discrete_tp_cnt=glb_discrete_tp_cnt, max_delay=service_model.max_delay, min_delay=0.0, min_tp=glb_min_tp, max_tp=service_model.max_tp) plot_utility_model(tp, delay, utility) save_model("postprocessing/models_unscaled/", "ssh", tp, delay, utility) # Scaled utility_model = SSHUtility(scaled=True) tp, delay, utility = utility_grid( service_model, utility_model, discrete_delay_cnt=glb_discrete_delay_cnt, discrete_tp_cnt=glb_discrete_tp_cnt, max_delay=service_model.max_delay, min_delay=0.0, min_tp=glb_min_tp, max_tp=service_model.max_tp)
service_model = VideoService(X, y) # Unscaled utility_model = VideoUtility() tp,delay,utility = utility_grid(service_model, utility_model, discrete_delay_cnt=glb_discrete_delay_cnt, discrete_tp_cnt=glb_discrete_tp_cnt, max_delay=service_model.max_delay, min_delay=service_model.min_delay, min_tp=750, max_tp=service_model.max_tp) plot_utility_model(tp, delay, utility) save_model("postprocessing/models_unscaled/", "video_live", tp, delay, utility) # Scaled utility_model = VideoUtility(scaled=True) tp,delay,utility = utility_grid(service_model, utility_model, discrete_delay_cnt=glb_discrete_delay_cnt, discrete_tp_cnt=glb_discrete_tp_cnt, max_delay=service_model.max_delay, min_delay=service_model.min_delay, min_tp=750, max_tp=service_model.max_tp) plot_utility_model(tp, delay, utility) save_model("postprocessing/models/", "video_live", tp, delay, utility)