diff --git a/ToDo.md b/ToDo.md index 533a969..a0bbfbe 100644 --- a/ToDo.md +++ b/ToDo.md @@ -1,5 +1,4 @@ ## 下一步计划 -1. ~~修改部分sql代码~~ -2. ~~方差分析~~ -3. 调整传入参数 -4. 调整资源消耗逻辑 \ No newline at end of file +1. 运行with_exp +2. 方差分析 +3. 优化资源消耗逻辑 \ No newline at end of file diff --git a/output_result/resilience/anova.csv b/output_result/resilience/anova.csv index 24a2668..03cb998 100644 --- a/output_result/resilience/anova.csv +++ b/output_result/resilience/anova.csv @@ -1,9 +1,9 @@ -,mean_count_firm_prod,mean_max_ts_firm_prod,mean_n_remove_firm_prod,mean_end_ts -prf_size,0.366,0.576,0,0.006 -prf_conn,0.332,0.053,0,0 -cap_limit_prob_type,0.446,0,0,0 -n_max_trial,0.234,0,0,0 -cap_limit_level,0.47,0,0,0 -diff_new_conn,0.499,0.009,0,0 -remove_t,0.305,0.28,0,0.101 -netw_prf_n,0.356,0.128,0,0.734 +Unnamed: 0.1,Unnamed: 0,mean_end_ts,mean_n_remove_firm_prod,mean_max_ts_firm_prod,mean_count_firm_prod +p1,n_sourcing,0.319,0.145,0.043,0.186 +p2,is_prf_size,0.607,0.608,0.005,0.111 +p3,n_max_trial,0.003,0.135,0.0,0.0 +p4,is_prf_conn,0.504,0.567,0.001,0.0 +p5,ex_cap_type,0.403,0.667,0.329,0.444 +p6,ex_cap_para,0.0,0.0,0.0,0.0 +p7,prob_new_conn,0.017,0.334,0.01,0.007 +p8,t_max_trial,0.0,0.014,0.939,0.1 diff --git a/output_result/resilience/anova_visualization.csv b/output_result/resilience/anova_visualization.csv index 42f329f..c83aef5 100644 --- a/output_result/resilience/anova_visualization.csv +++ b/output_result/resilience/anova_visualization.csv @@ -1,22 +1,22 @@ 自变量,level,系统恢复用时R1,产业-企业边累计扰乱次数R2,产业-企业边最大传导深度R3,产业-企业边断裂总数R4 -采购策略P1,三供应商,13.75,94.41,8.422,0 -采购策略P1,双供应商,13.63,94.42,8.336,0 -采购策略P1,单供应商,13.74,94.4,8.437,0 -是否规模偏好P2,倾向,13.91,94.42,8.41,0 -是否规模偏好P2,不倾向,13.5,94.41,8.386,0 -最大尝试次数P3,高,12.8,94.4,8.395,0 -最大尝试次数P3,中,13.51,94.42,8.358,0 -最大尝试次数P3,低,14.8,94.42,8.442,0 -是否已有连接偏好P4,倾向,13.24,94.4,8.355,0 -是否已有连接偏好P4,不倾向,14.17,94.42,8.441,0 -额外产能分布P5,均匀分布,14.06,94.42,8.619,0 -额外产能分布P5,正态分布,13.36,94.41,8.178,0 -额外产能分布参数P6,高,15.56,94.41,9.724,0 -额外产能分布参数P6,中,13.12,94.4,7.999,0 -额外产能分布参数P6,低,12.44,94.42,7.472,0 -新供应关系构成概率P7,低,14.2,94.42,8.31,0 -新供应关系构成概率P7,中,13.7,94.4,8.398,0 -新供应关系构成概率P7,高,13.21,94.41,8.486,0 -最大尝试时间步P8,低,13.82,94.42,8.971,0 -最大尝试时间步P8,中,13.49,94.42,8.503,0 -最大尝试时间步P8,高,13.81,94.4,7.721,0 +采购策略P1,三供应商,3.549,62.11,1.715,22.14 +采购策略P1,双供应商,3.743,62.43,1.759,21.71 +采购策略P1,单供应商,3.668,62.21,1.736,22.17 +是否规模偏好P2,倾向,3.681,62.13,1.715,22.06 +是否规模偏好P2,不倾向,3.627,62.37,1.758,21.96 +最大尝试次数P3,高,3.47,61.08,1.636,21.85 +最大尝试次数P3,中,3.552,62.08,1.742,21.86 +最大尝试次数P3,低,3.939,63.58,1.832,22.31 +是否已有连接偏好P4,倾向,3.619,61.95,1.711,21.95 +是否已有连接偏好P4,不倾向,3.689,62.55,1.762,22.07 +额外产能分布P5,均匀分布,3.698,62.19,1.73,21.96 +额外产能分布P5,正态分布,3.61,62.3,1.743,22.05 +额外产能分布参数P6,高,2.949,61.48,1.808,12.41 +额外产能分布参数P6,中,3.787,62.2,1.661,22.87 +额外产能分布参数P6,低,4.224,63.06,1.741,30.75 +新供应关系构成概率P7,低,3.882,62.41,1.749,22.2 +新供应关系构成概率P7,中,3.543,62.44,1.756,22.01 +新供应关系构成概率P7,高,3.535,61.9,1.705,21.82 +最大尝试时间步P8,低,2.601,62.03,1.738,22.47 +最大尝试时间步P8,中,3.656,62.31,1.733,21.78 +最大尝试时间步P8,高,4.704,62.4,1.738,21.78 diff --git a/output_result/resilience/experiment_result.csv b/output_result/resilience/experiment_result.csv deleted file mode 100644 index 5f0b55f..0000000 --- a/output_result/resilience/experiment_result.csv +++ /dev/null @@ -1,37 +0,0 @@ -idx_scenario,n_max_trial,prf_size,prf_conn,cap_limit_prob_type,cap_limit_level,diff_new_conn,remove_t,netw_prf_n,mean_count_firm_prod,mean_count_firm,mean_count_prod,mean_max_ts_firm_prod,mean_max_ts_firm,mean_max_ts_prod,mean_n_remove_firm_prod,mean_n_all_prod_remove_firm,mean_end_ts, -0,7,1,1,uniform,5.0000,0.3000,3,3,94.3905,25.8389,15.5684,10.3042,8.2747,5.5937,,,15.2632 -1,5,1,1,uniform,10.0000,0.5000,5,2,94.4211,25.8526,15.5684,8.2442,6.6884,4.5368,,,12.7537 -2,3,1,1,uniform,15.0000,0.7000,7,1,94.4211,25.8526,15.5684,7.0926,5.6989,3.8189,,,13.2421 -3,7,1,1,uniform,5.0000,0.3000,3,2,94.4032,25.8526,15.5684,10.3284,8.3516,5.6368,,,15.4642 -4,5,1,1,uniform,10.0000,0.5000,5,1,94.4211,25.8526,15.5684,8.2842,6.6389,4.4221,,,12.5284 -5,3,1,1,uniform,15.0000,0.7000,7,3,94.4211,25.8526,15.5684,7.0789,5.5937,3.7137,,,13.6147 -6,7,1,1,normal,5.0000,0.5000,7,3,94.4063,25.8400,15.5684,10.1158,8.2200,5.5147,,,14.3758 -7,5,1,1,normal,10.0000,0.7000,3,2,94.4211,25.8526,15.5684,8.0211,6.4116,4.2947,,,11.9158 -8,3,1,1,normal,15.0000,0.3000,5,1,94.4211,25.8526,15.5684,6.6611,5.2316,3.4979,,,13.0347 -9,7,1,0,uniform,5.0000,0.7000,5,3,94.4000,25.8516,15.5684,10.8484,8.9726,6.2316,,,15.2137 -10,5,1,0,uniform,10.0000,0.3000,7,2,94.4211,25.8526,15.5684,8.2421,6.6011,4.4411,,,14.5495 -11,3,1,0,uniform,15.0000,0.5000,3,1,94.4211,25.8526,15.5684,7.1937,5.7442,3.7242,,,14.9758 -12,7,1,0,normal,10.0000,0.7000,3,1,94.4211,25.8526,15.5684,8.4179,6.8137,4.5884,,,11.6758 -13,5,1,0,normal,15.0000,0.3000,5,3,94.4211,25.8526,15.5684,7.2000,5.6800,3.8368,,,13.2495 -14,3,1,0,normal,5.0000,0.5000,7,2,94.4211,25.8526,15.5684,8.7758,7.1768,4.6400,,,16.7832 -15,7,1,0,normal,10.0000,0.7000,5,3,94.4211,25.8526,15.5684,8.4800,6.8326,4.7326,,,11.6084 -16,5,1,0,normal,15.0000,0.3000,7,2,94.4211,25.8526,15.5684,7.2495,5.8063,3.8611,,,13.2989 -17,3,1,0,normal,5.0000,0.5000,3,1,94.4211,25.8526,15.5684,8.8453,7.2789,4.5863,,,16.8937 -18,7,0,1,normal,10.0000,0.3000,7,1,94.4211,25.8526,15.5684,8.2905,6.5737,4.4768,,,12.3000 -19,5,0,1,normal,15.0000,0.5000,3,3,94.4211,25.8526,15.5684,7.3737,5.8684,3.9411,,,11.1611 -20,3,0,1,normal,5.0000,0.7000,5,2,94.4211,25.8526,15.5684,8.8400,7.1789,4.8305,,,15.2400 -21,7,0,1,normal,10.0000,0.5000,7,1,94.2084,25.8242,15.5453,8.3768,6.7484,4.5558,,,11.6558 -22,5,0,1,normal,15.0000,0.7000,3,3,94.4211,25.8526,15.5684,7.3253,5.8726,3.9663,,,10.6347 -23,3,0,1,normal,5.0000,0.3000,5,2,94.4211,25.8526,15.5684,8.5432,6.9621,4.5263,,,15.3916 -24,7,0,1,uniform,15.0000,0.5000,3,2,94.4211,25.8526,15.5684,8.2053,6.4221,4.4084,,,11.5705 -25,5,0,1,uniform,5.0000,0.7000,5,1,94.4063,25.8400,15.5684,9.8326,7.8979,5.3768,,,14.5716 -26,3,0,1,uniform,10.0000,0.3000,7,3,94.4211,25.8526,15.5684,7.4747,6.0158,3.8495,,,13.5979 -27,7,0,0,normal,15.0000,0.5000,5,2,94.4211,25.8526,15.5684,7.6232,6.2011,4.0674,,,10.8221 -28,5,0,0,normal,5.0000,0.7000,7,1,94.3811,25.8274,15.5505,9.9442,8.0916,5.5853,,,15.0863 -29,3,0,0,normal,10.0000,0.3000,3,3,94.4211,25.8526,15.5684,7.1200,5.6505,3.6642,,,15.3021 -30,7,0,0,uniform,15.0000,0.7000,7,2,94.4211,25.8526,15.5684,8.3558,6.7084,4.6537,,,11.3000 -31,5,0,0,uniform,5.0000,0.3000,3,1,94.4211,25.8526,15.5684,10.0063,8.0895,5.2726,,,16.5568 -32,3,0,0,uniform,10.0000,0.5000,5,3,94.4211,25.8526,15.5684,7.4326,6.0211,3.8421,,,15.0526 -33,7,0,0,uniform,15.0000,0.3000,5,1,94.4211,25.8526,15.5684,8.3021,6.6600,4.4116,,,12.4042 -34,5,0,0,uniform,5.0000,0.5000,7,3,94.4053,25.8526,15.5674,10.3084,8.3789,5.4537,,,15.8716 -35,3,0,0,uniform,10.0000,0.7000,3,2,94.4211,25.8526,15.5684,7.5989,6.1305,4.1295,,,14.4716