def debug_cy(): init_para = { "noise_in": True, "noise_p": 0.01 } simulation_test(Thickener, mode='const', init_para=init_para, test_step=1000, const_u=[[85, 38]])
def debug_const(): simulation_test(Thickener, mode="const", const_u=[[60, 30], [60, 50], [80, 30], [85, 38], [80, 50], [100, 30], [100, 50]], test_step=120, eval_plt_param={"figsize": (15, 10)})
def debug_s(): init_para = { "c_start": [46, 77.61991659], "y_start": [1.142443791260041, 759.9451550012649] } simulation_test(Thickener, mode='const', init_para=init_para, test_step=2000, const_u=[[80, 40]])
def debug_cy_mul(): init_para = {"noise_in": True} simulation_test( Thickener, mode='const', init_para=init_para, test_step=500, const_u=[[60, 30], [60, 50], [80, 30], [85, 38], [80, 50], [100, 30], [100, 50]], )
def flotation_test(cls, init_para=None): if init_para is None: init_para = {} simulation_test(Flotation, mode="const", init_para=init_para, const_u=[[1, 17], [1.5, 17], [2, 10], [2, 20], [2.5, 17]], seprate_num=3, test_step=100, eval_plt_param={"figsize": (15, 10)}) simulation_test(Flotation, mode="random", init_para=init_para, test_step=100, eval_plt_param={"figsize": (15, 10)}) simulation_test(Flotation, mode="uniform", init_para=init_para, seprate_num=3, test_step=100, eval_plt_param={"figsize": (15, 10)})
#!/usr/bin/python # -*- coding:utf8 -*- import numpy as np import math import Control_Exp1001 as CE from Control_Exp1001.simulation.flotation import Flotation from Control_Exp1001.simulation.simulation_test import simulation_test para = { "normalize": True, } simulation_test(Flotation, init_para=para, mode="const", const_u=[[0, 0], [-0.5, 0.5], [0.5, 0.5]], test_step=100, eval_plt_param={"figsize": (15, 10)}) simulation_test(Flotation, mode="const", const_u=[[1, 17], [1.5, 17], [2, 3], [2, 20], [2.5, 17]], seprate_num=3, test_step=100, eval_plt_param={"figsize": (15, 10)}) #simulation_test(Flotation, mode="random", test_step=100, eval_plt_param={"figsize": (15, 10)}) simulation_test(Flotation, init_para=para, mode="uniform", seprate_num=2, test_step=100,
def debug_random(): simulation_test(Thickener, init_para={"noise_in": True}, mode="random", test_step=3000, eval_plt_param={"figsize": (15, 10)})
mode="uniform", init_para=init_para, seprate_num=3, test_step=100, eval_plt_param={"figsize": (15, 10)}) if __name__ == '__main__': ''' simulation_test(Flotation, mode="const", const_u=[[1, 17], [1.5, 17], [2, 3], [2, 20], [2.5, 17]] , seprate_num=3, test_step=200, eval_plt_param={"figsize": (15, 10)}) ''' simulation_test(Flotation, mode="random", test_step=200, eval_plt_param={"figsize": (15, 10)}) simulation_test(Flotation, mode="uniform", seprate_num=3, test_step=200, eval_plt_param={"figsize": (15, 10)}) simulation_test(Flotation, mode="const", const_u=[[1, 17], [1.5, 10], [1.5, 17], [1.5, 20], [1.5, 30], [2.5, 17], [3, 17]], seprate_num=3, test_step=200, eval_plt_param={"figsize": (15, 10)})
init_para=init_para, seprate_num=3, test_step=100, eval_plt_param={"figsize": (15, 10)}) if __name__ == '__main__': ''' simulation_test(Flotation, mode="const", const_u=[[1, 17], [1.5, 17], [2, 3], [2, 20], [2.5, 17]] , seprate_num=3, test_step=200, eval_plt_param={"figsize": (15, 10)}) ''' # simulation_test(Flotation, mode="random", test_step=200, eval_plt_param={"figsize": (15, 10)}) # # simulation_test(Flotation, mode="uniform", seprate_num=3, test_step=200, eval_plt_param={"figsize": (15, 10)}) # # simulation_test(Flotation, mode="const", # const_u=[[1, 17], [1.5, 10], [1.5, 17], [1.5, 20],[1.5, 30], [2.5, 17], [3, 17]] , seprate_num=3, # test_step=200, eval_plt_param={"figsize": (15, 10)}) # # simulation_test(Flotation, mode="const", # const_u=[[2.232,19.85]] , seprate_num=3, # test_step=200, eval_plt_param={"figsize": (15, 10)}) simulation_test(Flotation, mode="const", const_u=[[2.28, 19.5], [2.28, 20.5], [2.30, 19.5], [2.30, 20.5]], test_step=200, eval_plt_param={"figsize": (15, 10)})