diff --git a/SQL_migrate_db.sql b/SQL_migrate_db.sql index 0d1cc6e..11a7129 100644 --- a/SQL_migrate_db.sql +++ b/SQL_migrate_db.sql @@ -1,13 +1,13 @@ -CREATE DATABASE iiabmdb20230818; -RENAME TABLE iiabmdb.not_test_experiment TO iiabmdb20230818.not_test_experiment, -iiabmdb.not_test_result TO iiabmdb20230818.not_test_result, -iiabmdb.not_test_sample TO iiabmdb20230818.not_test_sample, -iiabmdb.test_experiment TO iiabmdb20230818.test_experiment, -iiabmdb.test_result TO iiabmdb20230818.test_result, -iiabmdb.test_sample TO iiabmdb20230818.test_sample; -RENAME TABLE iiabmdb.with_exp_experiment TO iiabmdb20230818.with_exp_experiment, -iiabmdb.with_exp_result TO iiabmdb20230818.with_exp_result, -iiabmdb.with_exp_sample TO iiabmdb20230818.with_exp_sample, -iiabmdb.without_exp_experiment TO iiabmdb20230818.without_exp_experiment, -iiabmdb.without_exp_result TO iiabmdb20230818.without_exp_result, -iiabmdb.without_exp_sample TO iiabmdb20230818.without_exp_sample; \ No newline at end of file +CREATE DATABASE iiabmdb20230821; +RENAME TABLE iiabmdb.not_test_experiment TO iiabmdb20230821.not_test_experiment, +iiabmdb.not_test_result TO iiabmdb20230821.not_test_result, +iiabmdb.not_test_sample TO iiabmdb20230821.not_test_sample, +iiabmdb.test_experiment TO iiabmdb20230821.test_experiment, +iiabmdb.test_result TO iiabmdb20230821.test_result, +iiabmdb.test_sample TO iiabmdb20230821.test_sample; +RENAME TABLE iiabmdb.with_exp_experiment TO iiabmdb20230821.with_exp_experiment, +iiabmdb.with_exp_result TO iiabmdb20230821.with_exp_result, +iiabmdb.with_exp_sample TO iiabmdb20230821.with_exp_sample, +iiabmdb.without_exp_experiment TO iiabmdb20230821.without_exp_experiment, +iiabmdb.without_exp_result TO iiabmdb20230821.without_exp_result, +iiabmdb.without_exp_sample TO iiabmdb20230821.without_exp_sample; \ No newline at end of file diff --git a/__pycache__/controller_db.cpython-38.pyc b/__pycache__/controller_db.cpython-38.pyc index fc15b58..602ccf3 100644 Binary files a/__pycache__/controller_db.cpython-38.pyc and b/__pycache__/controller_db.cpython-38.pyc differ diff --git a/__pycache__/firm.cpython-38.pyc b/__pycache__/firm.cpython-38.pyc index 5fc7d84..5ebf3e1 100644 Binary files a/__pycache__/firm.cpython-38.pyc and b/__pycache__/firm.cpython-38.pyc differ diff --git a/__pycache__/model.cpython-38.pyc b/__pycache__/model.cpython-38.pyc index d206e5a..c7b755c 100644 Binary files a/__pycache__/model.cpython-38.pyc and b/__pycache__/model.cpython-38.pyc differ diff --git a/__pycache__/product.cpython-38.pyc b/__pycache__/product.cpython-38.pyc index 72ed28c..5d83960 100644 Binary files a/__pycache__/product.cpython-38.pyc and b/__pycache__/product.cpython-38.pyc differ diff --git a/analysis/20230821anova_l36.mpx b/analysis/20230821anova_l36.mpx new file mode 100644 index 0000000..e2c076e Binary files /dev/null and b/analysis/20230821anova_l36.mpx differ diff --git a/analysis/20230821experiment_result.csv b/analysis/20230821experiment_result.csv new file mode 100644 index 0000000..dcdbc05 --- /dev/null +++ b/analysis/20230821experiment_result.csv @@ -0,0 +1,37 @@ +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,2.6375,2.6375,2.0861,1.0861,1.0861,1.0861,0.6034,0.2116,1.5507 +1,5,1,1,uniform,10.0000,0.5000,5,2,2.7680,2.7657,2.2021,1.2021,1.2021,1.2021,0.8602,0.3032,2.2992 +2,3,1,1,uniform,15.0000,0.7000,7,1,2.5724,2.5693,2.1728,1.1728,1.1728,1.1728,0.9326,0.3135,3.0844 +3,7,1,1,uniform,5.0000,0.3000,3,2,2.6731,2.6731,2.1181,1.1181,1.1181,1.1181,0.6080,0.2147,1.5562 +4,5,1,1,uniform,10.0000,0.5000,5,1,2.5528,2.5499,2.1568,1.1568,1.1568,1.1568,0.8128,0.2853,2.3352 +5,3,1,1,uniform,15.0000,0.7000,7,3,2.7758,2.7731,2.2036,1.2036,1.2036,1.2036,1.0053,0.3469,3.1764 +6,7,1,1,normal,5.0000,0.5000,7,3,2.8051,2.8051,2.1349,1.1349,1.1349,1.1349,0.6017,0.2112,2.1840 +7,5,1,1,normal,10.0000,0.7000,3,2,2.4440,2.4432,2.0097,1.0097,1.0097,1.0097,0.6482,0.2261,1.5912 +8,3,1,1,normal,15.0000,0.3000,5,1,2.5905,2.5857,2.1907,1.1907,1.1907,1.1907,0.8535,0.3027,2.5069 +9,7,1,0,uniform,5.0000,0.7000,5,3,2.6484,2.6484,2.0897,1.0897,1.0897,1.0897,0.6034,0.2116,1.8699 +10,5,1,0,uniform,10.0000,0.3000,7,2,2.7800,2.7777,2.2126,1.2126,1.2126,1.2126,0.8669,0.3067,2.8625 +11,3,1,0,uniform,15.0000,0.5000,3,1,2.6061,2.6008,2.2017,1.2017,1.2017,1.2017,1.0899,0.3779,2.0444 +12,7,1,0,normal,10.0000,0.7000,3,1,2.4703,2.4701,2.0848,1.0848,1.0848,1.0848,0.6754,0.2326,1.6291 +13,5,1,0,normal,15.0000,0.3000,5,3,2.8619,2.8602,2.1882,1.1882,1.1882,1.1882,0.8069,0.2745,2.2118 +14,3,1,0,normal,5.0000,0.5000,7,2,2.4358,2.4358,2.0008,1.0008,1.0008,1.0008,0.6013,0.2105,2.1909 +15,7,1,0,normal,10.0000,0.7000,5,3,2.8232,2.8225,2.1522,1.1522,1.1522,1.1522,0.6636,0.2312,1.9735 +16,5,1,0,normal,15.0000,0.3000,7,2,2.4954,2.4939,2.0549,1.0549,1.0549,1.0549,0.7598,0.2646,2.6013 +17,3,1,0,normal,5.0000,0.5000,3,1,2.4886,2.4880,2.1011,1.1011,1.1011,1.1011,0.7004,0.2467,1.6741 +18,7,0,1,normal,10.0000,0.3000,7,1,2.5133,2.5112,2.1253,1.1253,1.1253,1.1253,0.6949,0.2459,2.6966 +19,5,0,1,normal,15.0000,0.5000,3,3,2.8387,2.8366,2.1686,1.1686,1.1686,1.1686,0.8318,0.2914,1.7528 +20,3,0,1,normal,5.0000,0.7000,5,2,2.4606,2.4606,1.9937,0.9937,0.9937,0.9937,0.6004,0.2105,1.8640 +21,7,0,1,normal,10.0000,0.5000,7,1,2.4653,2.4642,2.0829,1.0829,1.0829,1.0829,0.6514,0.2267,2.4522 +22,5,0,1,normal,15.0000,0.7000,3,3,2.8364,2.8343,2.1667,1.1667,1.1667,1.1667,0.8267,0.2888,1.7461 +23,3,0,1,normal,5.0000,0.3000,5,2,2.4608,2.4608,1.9939,0.9939,0.9939,0.9939,0.6006,0.2107,1.8651 +24,7,0,1,uniform,15.0000,0.5000,3,2,2.5840,2.5794,2.1474,1.1474,1.1474,1.1474,0.9568,0.3301,1.8722 +25,5,0,1,uniform,5.0000,0.7000,5,1,2.4339,2.4339,2.0541,1.0541,1.0541,1.0541,0.6048,0.2118,1.9189 +26,3,0,1,uniform,10.0000,0.3000,7,3,2.7619,2.7602,2.1701,1.1701,1.1701,1.1701,0.8429,0.2994,2.8086 +27,7,0,0,normal,15.0000,0.5000,5,2,2.5179,2.5160,2.0465,1.0465,1.0465,1.0465,0.7621,0.2688,2.1512 +28,5,0,0,normal,5.0000,0.7000,7,1,2.4286,2.4284,2.0486,1.0486,1.0486,1.0486,0.6006,0.2105,2.2440 +29,3,0,0,normal,10.0000,0.3000,3,3,2.7964,2.7962,2.1312,1.1312,1.1312,1.1312,0.6960,0.2406,1.6377 +30,7,0,0,uniform,15.0000,0.7000,7,2,2.5851,2.5806,2.1476,1.1476,1.1476,1.1476,0.9295,0.3154,2.9756 +31,5,0,0,uniform,5.0000,0.3000,3,1,2.4966,2.4952,2.1103,1.1103,1.1103,1.1103,0.8017,0.2952,1.7958 +32,3,0,0,uniform,10.0000,0.5000,5,3,2.7703,2.7686,2.1771,1.1771,1.1771,1.1771,0.8387,0.2956,2.3099 +33,7,0,0,uniform,15.0000,0.3000,5,1,2.6002,2.5941,2.2002,1.2002,1.2002,1.2002,1.0322,0.3707,2.7615 +34,5,0,0,uniform,5.0000,0.5000,7,3,2.6827,2.6827,2.0994,1.0994,1.0994,1.0994,0.6025,0.2122,2.1867 +35,3,0,0,uniform,10.0000,0.7000,3,2,2.5514,2.5495,2.1181,1.1181,1.1181,1.1181,0.8352,0.2867,1.7676 diff --git a/analysis/anova.xlsx b/analysis/anova.xlsx index 55eb306..1750320 100644 Binary files a/analysis/anova.xlsx and b/analysis/anova.xlsx differ diff --git a/analysis/anova_l36.mpx b/analysis/anova_l36.mpx index e2c076e..529c752 100644 Binary files a/analysis/anova_l36.mpx and b/analysis/anova_l36.mpx differ diff --git a/analysis/anova_l36.mpx.bak b/analysis/anova_l36.mpx.bak index 11f5f35..e2c076e 100644 Binary files a/analysis/anova_l36.mpx.bak and b/analysis/anova_l36.mpx.bak differ diff --git a/analysis/experiment_result.csv b/analysis/experiment_result.csv index dcdbc05..c4df5bf 100644 --- a/analysis/experiment_result.csv +++ b/analysis/experiment_result.csv @@ -1,37 +1,37 @@ 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,2.6375,2.6375,2.0861,1.0861,1.0861,1.0861,0.6034,0.2116,1.5507 -1,5,1,1,uniform,10.0000,0.5000,5,2,2.7680,2.7657,2.2021,1.2021,1.2021,1.2021,0.8602,0.3032,2.2992 -2,3,1,1,uniform,15.0000,0.7000,7,1,2.5724,2.5693,2.1728,1.1728,1.1728,1.1728,0.9326,0.3135,3.0844 -3,7,1,1,uniform,5.0000,0.3000,3,2,2.6731,2.6731,2.1181,1.1181,1.1181,1.1181,0.6080,0.2147,1.5562 -4,5,1,1,uniform,10.0000,0.5000,5,1,2.5528,2.5499,2.1568,1.1568,1.1568,1.1568,0.8128,0.2853,2.3352 -5,3,1,1,uniform,15.0000,0.7000,7,3,2.7758,2.7731,2.2036,1.2036,1.2036,1.2036,1.0053,0.3469,3.1764 -6,7,1,1,normal,5.0000,0.5000,7,3,2.8051,2.8051,2.1349,1.1349,1.1349,1.1349,0.6017,0.2112,2.1840 -7,5,1,1,normal,10.0000,0.7000,3,2,2.4440,2.4432,2.0097,1.0097,1.0097,1.0097,0.6482,0.2261,1.5912 -8,3,1,1,normal,15.0000,0.3000,5,1,2.5905,2.5857,2.1907,1.1907,1.1907,1.1907,0.8535,0.3027,2.5069 -9,7,1,0,uniform,5.0000,0.7000,5,3,2.6484,2.6484,2.0897,1.0897,1.0897,1.0897,0.6034,0.2116,1.8699 -10,5,1,0,uniform,10.0000,0.3000,7,2,2.7800,2.7777,2.2126,1.2126,1.2126,1.2126,0.8669,0.3067,2.8625 -11,3,1,0,uniform,15.0000,0.5000,3,1,2.6061,2.6008,2.2017,1.2017,1.2017,1.2017,1.0899,0.3779,2.0444 -12,7,1,0,normal,10.0000,0.7000,3,1,2.4703,2.4701,2.0848,1.0848,1.0848,1.0848,0.6754,0.2326,1.6291 -13,5,1,0,normal,15.0000,0.3000,5,3,2.8619,2.8602,2.1882,1.1882,1.1882,1.1882,0.8069,0.2745,2.2118 -14,3,1,0,normal,5.0000,0.5000,7,2,2.4358,2.4358,2.0008,1.0008,1.0008,1.0008,0.6013,0.2105,2.1909 -15,7,1,0,normal,10.0000,0.7000,5,3,2.8232,2.8225,2.1522,1.1522,1.1522,1.1522,0.6636,0.2312,1.9735 -16,5,1,0,normal,15.0000,0.3000,7,2,2.4954,2.4939,2.0549,1.0549,1.0549,1.0549,0.7598,0.2646,2.6013 -17,3,1,0,normal,5.0000,0.5000,3,1,2.4886,2.4880,2.1011,1.1011,1.1011,1.1011,0.7004,0.2467,1.6741 -18,7,0,1,normal,10.0000,0.3000,7,1,2.5133,2.5112,2.1253,1.1253,1.1253,1.1253,0.6949,0.2459,2.6966 -19,5,0,1,normal,15.0000,0.5000,3,3,2.8387,2.8366,2.1686,1.1686,1.1686,1.1686,0.8318,0.2914,1.7528 -20,3,0,1,normal,5.0000,0.7000,5,2,2.4606,2.4606,1.9937,0.9937,0.9937,0.9937,0.6004,0.2105,1.8640 -21,7,0,1,normal,10.0000,0.5000,7,1,2.4653,2.4642,2.0829,1.0829,1.0829,1.0829,0.6514,0.2267,2.4522 -22,5,0,1,normal,15.0000,0.7000,3,3,2.8364,2.8343,2.1667,1.1667,1.1667,1.1667,0.8267,0.2888,1.7461 -23,3,0,1,normal,5.0000,0.3000,5,2,2.4608,2.4608,1.9939,0.9939,0.9939,0.9939,0.6006,0.2107,1.8651 -24,7,0,1,uniform,15.0000,0.5000,3,2,2.5840,2.5794,2.1474,1.1474,1.1474,1.1474,0.9568,0.3301,1.8722 -25,5,0,1,uniform,5.0000,0.7000,5,1,2.4339,2.4339,2.0541,1.0541,1.0541,1.0541,0.6048,0.2118,1.9189 -26,3,0,1,uniform,10.0000,0.3000,7,3,2.7619,2.7602,2.1701,1.1701,1.1701,1.1701,0.8429,0.2994,2.8086 -27,7,0,0,normal,15.0000,0.5000,5,2,2.5179,2.5160,2.0465,1.0465,1.0465,1.0465,0.7621,0.2688,2.1512 -28,5,0,0,normal,5.0000,0.7000,7,1,2.4286,2.4284,2.0486,1.0486,1.0486,1.0486,0.6006,0.2105,2.2440 -29,3,0,0,normal,10.0000,0.3000,3,3,2.7964,2.7962,2.1312,1.1312,1.1312,1.1312,0.6960,0.2406,1.6377 -30,7,0,0,uniform,15.0000,0.7000,7,2,2.5851,2.5806,2.1476,1.1476,1.1476,1.1476,0.9295,0.3154,2.9756 -31,5,0,0,uniform,5.0000,0.3000,3,1,2.4966,2.4952,2.1103,1.1103,1.1103,1.1103,0.8017,0.2952,1.7958 -32,3,0,0,uniform,10.0000,0.5000,5,3,2.7703,2.7686,2.1771,1.1771,1.1771,1.1771,0.8387,0.2956,2.3099 -33,7,0,0,uniform,15.0000,0.3000,5,1,2.6002,2.5941,2.2002,1.2002,1.2002,1.2002,1.0322,0.3707,2.7615 -34,5,0,0,uniform,5.0000,0.5000,7,3,2.6827,2.6827,2.0994,1.0994,1.0994,1.0994,0.6025,0.2122,2.1867 -35,3,0,0,uniform,10.0000,0.7000,3,2,2.5514,2.5495,2.1181,1.1181,1.1181,1.1181,0.8352,0.2867,1.7676 +0,7,1,1,uniform,5.0000,0.3000,3,3,2.7027,2.7027,2.0928,1.0928,1.0928,1.0928,0.6051,0.2131,1.5524 +1,5,1,1,uniform,10.0000,0.5000,5,2,2.7023,2.7004,2.2211,1.2211,1.2211,1.2211,0.9634,0.3309,2.4335 +2,3,1,1,uniform,15.0000,0.7000,7,1,2.5387,2.5360,2.1756,1.1756,1.1756,1.1756,1.0019,0.3293,3.1926 +3,7,1,1,uniform,5.0000,0.3000,3,2,2.5589,2.5589,2.0884,1.0884,1.0884,1.0884,0.6059,0.2139,1.5533 +4,5,1,1,uniform,10.0000,0.5000,5,1,2.5387,2.5356,2.1756,1.1756,1.1756,1.1756,0.9143,0.3143,2.4840 +5,3,1,1,uniform,15.0000,0.7000,7,3,2.9109,2.9074,2.2773,1.2773,1.2773,1.2773,1.1680,0.3872,3.4848 +6,7,1,1,normal,5.0000,0.5000,7,3,2.6356,2.6356,2.1055,1.1055,1.1055,1.1055,0.6008,0.2107,2.1806 +7,5,1,1,normal,10.0000,0.7000,3,2,2.5914,2.5909,2.0857,1.0857,1.0857,1.0857,0.6829,0.2354,1.6272 +8,3,1,1,normal,15.0000,0.3000,5,1,2.5219,2.5189,2.1617,1.1617,1.1617,1.1617,0.8895,0.3088,2.5105 +9,7,1,0,uniform,5.0000,0.7000,5,3,2.7091,2.7091,2.0952,1.0952,1.0952,1.0952,0.6051,0.2131,1.8733 +10,5,1,0,uniform,10.0000,0.3000,7,2,2.7107,2.7086,2.2280,1.2280,1.2280,1.2280,0.9674,0.3320,3.0187 +11,3,1,0,uniform,15.0000,0.5000,3,1,2.5771,2.5731,2.2095,1.2095,1.2095,1.2095,1.1646,0.3939,2.1248 +12,7,1,0,normal,10.0000,0.7000,3,1,2.4051,2.4042,2.0539,1.0539,1.0539,1.0539,0.6888,0.2347,1.6442 +13,5,1,0,normal,15.0000,0.3000,5,3,2.7368,2.7364,2.2015,1.2015,1.2015,1.2015,0.8714,0.3021,2.3029 +14,3,1,0,normal,5.0000,0.5000,7,2,2.5665,2.5665,2.0600,1.0600,1.0600,1.0600,0.6000,0.2105,2.1863 +15,7,1,0,normal,10.0000,0.7000,5,3,2.6705,2.6705,2.1389,1.1389,1.1389,1.1389,0.6943,0.2406,2.0160 +16,5,1,0,normal,15.0000,0.3000,7,2,2.6707,2.6680,2.1577,1.1577,1.1577,1.1577,0.8642,0.2973,2.8053 +17,3,1,0,normal,5.0000,0.5000,3,1,2.4105,2.4103,2.0594,1.0594,1.0594,1.0594,0.6903,0.2394,1.6615 +18,7,0,1,normal,10.0000,0.3000,7,1,2.4520,2.4493,2.1034,1.1034,1.1034,1.1034,0.7008,0.2423,2.6644 +19,5,0,1,normal,15.0000,0.5000,3,3,2.8086,2.8059,2.2133,1.2133,1.2133,1.2133,0.8821,0.3017,1.7964 +20,3,0,1,normal,5.0000,0.7000,5,2,2.5808,2.5808,2.0684,1.0684,1.0684,1.0684,0.6004,0.2105,1.8642 +21,7,0,1,normal,10.0000,0.5000,7,1,2.4149,2.4141,2.0697,1.0697,1.0697,1.0697,0.6594,0.2274,2.4549 +22,5,0,1,normal,15.0000,0.7000,3,3,2.8084,2.8057,2.2131,1.2131,1.2131,1.2131,0.8811,0.3013,1.7956 +23,3,0,1,normal,5.0000,0.3000,5,2,2.5808,2.5808,2.0684,1.0684,1.0684,1.0684,0.6006,0.2107,1.8648 +24,7,0,1,uniform,15.0000,0.5000,3,2,2.6992,2.6935,2.2269,1.2269,1.2269,1.2269,1.1223,0.3851,2.0112 +25,5,0,1,uniform,5.0000,0.7000,5,1,2.3648,2.3646,2.0248,1.0248,1.0248,1.0248,0.6084,0.2118,1.9465 +26,3,0,1,uniform,10.0000,0.3000,7,3,2.8187,2.8160,2.2122,1.2122,1.2122,1.2122,0.9806,0.3446,3.0491 +27,7,0,0,normal,15.0000,0.5000,5,2,2.6756,2.6731,2.1558,1.1558,1.1558,1.1558,0.8455,0.2893,2.2659 +28,5,0,0,normal,5.0000,0.7000,7,1,2.3678,2.3678,2.0261,1.0261,1.0261,1.0261,0.6008,0.2112,2.2375 +29,3,0,0,normal,10.0000,0.3000,3,3,2.7467,2.7463,2.1556,1.1556,1.1556,1.1556,0.7137,0.2482,1.6533 +30,7,0,0,uniform,15.0000,0.7000,7,2,2.6956,2.6899,2.2232,1.2232,1.2232,1.2232,1.1025,0.3741,3.2589 +31,5,0,0,uniform,5.0000,0.3000,3,1,2.4206,2.4183,2.0752,1.0752,1.0752,1.0752,0.8027,0.2905,1.7909 +32,3,0,0,uniform,10.0000,0.5000,5,3,2.8238,2.8211,2.2158,1.2158,1.2158,1.2158,0.9766,0.3423,2.4798 +33,7,0,0,uniform,15.0000,0.3000,5,1,2.5533,2.5451,2.1931,1.1931,1.1931,1.1931,1.0897,0.3749,2.7922 +34,5,0,0,uniform,5.0000,0.5000,7,3,2.6741,2.6741,2.0787,1.0787,1.0787,1.0787,0.6034,0.2114,2.1891 +35,3,0,0,uniform,10.0000,0.7000,3,2,2.6552,2.6518,2.1880,1.1880,1.1880,1.1880,0.9922,0.3379,1.9097 diff --git a/conf_experiment.yaml b/conf_experiment.yaml index 83d2795..77309ea 100644 --- a/conf_experiment.yaml +++ b/conf_experiment.yaml @@ -1,7 +1,7 @@ # read by ControllerDB # run settings -meta_seed: 1 +meta_seed: 2 test: # only for test scenarios n_sample: 1