diff --git a/data_analysis.py b/data_analysis.py index 443c55d..a42e44b 100644 --- a/data_analysis.py +++ b/data_analysis.py @@ -1,8 +1,9 @@ import numpy as np import pandas as pd import matplotlib.pyplot as plt +from datetime import datetime -num_time_step = 201 +num_time_step = 501 num_iter = 10 env_data = pd.DataFrame(pd.read_excel('env_data.xlsx', engine='openpyxl', sheet_name=0)) @@ -25,5 +26,5 @@ for str_col in lst_column: plt.plot(x, y) # plt.show() # plt.close() - plt.savefig(f'{str_col}.pdf', bbox_inches="tight") + plt.savefig(f"{str_col}-{datetime.today().strftime('%Y-%m-%d')}.pdf", bbox_inches="tight") plt.close() diff --git a/env_data.xlsx b/env_data.xlsx index 81168cf..9ffee95 100644 Binary files a/env_data.xlsx and b/env_data.xlsx differ diff --git a/out_f_avg_profit-2023-02-17.pdf b/out_f_avg_profit-2023-02-17.pdf new file mode 100644 index 0000000..400b684 Binary files /dev/null and b/out_f_avg_profit-2023-02-17.pdf differ diff --git a/out_f_avg_yield-2023-02-17.pdf b/out_f_avg_yield-2023-02-17.pdf new file mode 100644 index 0000000..141d121 Binary files /dev/null and b/out_f_avg_yield-2023-02-17.pdf differ diff --git a/out_f_gini_profit-2023-02-17.pdf b/out_f_gini_profit-2023-02-17.pdf new file mode 100644 index 0000000..253b640 Binary files /dev/null and b/out_f_gini_profit-2023-02-17.pdf differ diff --git a/out_w_avg_salary-2023-02-17.pdf b/out_w_avg_salary-2023-02-17.pdf new file mode 100644 index 0000000..30cc28e Binary files /dev/null and b/out_w_avg_salary-2023-02-17.pdf differ diff --git a/out_w_gini_salary-2023-02-17.pdf b/out_w_gini_salary-2023-02-17.pdf new file mode 100644 index 0000000..9d82c50 Binary files /dev/null and b/out_w_gini_salary-2023-02-17.pdf differ diff --git a/out_w_percent_hired-2023-02-17.pdf b/out_w_percent_hired-2023-02-17.pdf new file mode 100644 index 0000000..fc0726f Binary files /dev/null and b/out_w_percent_hired-2023-02-17.pdf differ diff --git a/result/experiment_result_25.csv b/result/experiment_result_25.csv index ac59c91..274f05d 100644 --- a/result/experiment_result_25.csv +++ b/result/experiment_result_25.csv @@ -1,26 +1,26 @@ ,alpha,percent_search,is_RH_ratio,is_FH_ratio,4,5,out_w_avg_salary,out_w_gini_salary,out_f_avg_profit,out_f_avg_yield,out_f_gini_profit,out_w_percent_hired -0,0.1,0.1,0.0,0.0,0,0,3964054687.4268475,0.08720663778245505,32888833432.274235,0.7063055988364291,0.02573588115431101,0.9999666666666668 -1,0.1,0.2,0.25,0.5,3,4,3771613705.088724,0.07954486986586938,31868416681.904884,0.7486264770120516,0.024921222378351093,0.9960666666666663 -2,0.1,0.3,0.5,0.75,4,1,3584820695.7431035,0.07319267750272562,30385929071.529438,0.7768847955950473,0.024373996254554064,0.9958666666666665 -3,0.1,0.6,0.75,1.0,1,2,3408013297.120691,0.08699814562875076,27485267714.345665,0.7779103018269108,0.04309196337844635,0.9709000000000001 -4,0.1,0.8,1.0,0.25,2,3,2540634743.6358457,0.05369244039646588,19646121099.463802,0.7791622239510231,0.041099371568935936,0.9961666666666666 -5,0.3,0.1,0.25,0.25,1,1,3822529021.562453,0.0761493282211473,32764211314.472507,0.73924191031523,0.02429009889320572,0.9944666666666666 -6,0.3,0.2,0.5,1.0,0,3,3607254045.656348,0.07610097626526957,30641750291.150898,0.7749833336482536,0.023537073789590485,0.9998333333333334 -7,0.3,0.3,1.0,0.0,3,2,2326166598.3574433,0.07193946514093447,17174550354.996449,0.7498407860386497,0.056183971569819934,0.9906666666666665 -8,0.3,0.6,0.0,0.75,2,4,3866291501.614393,0.09685969668328769,30553633014.9875,0.706168605244585,0.02919183959836508,0.9999666666666668 -9,0.3,0.8,0.75,0.5,4,0,3302765119.010196,0.08739879310155402,28973869596.09232,0.7727757803240185,0.03792936672857634,0.9674666666666665 -10,0.5,0.1,0.5,0.5,2,2,3635164347.9166718,0.07223238071369359,29826975750.47325,0.7640343077593824,0.025579797905849556,0.9932666666666666 -11,0.5,0.2,1.0,0.75,1,0,2145814519.6934304,0.10630648602237686,15121756598.665697,0.7429493087241388,0.10024898712596307,0.9883333333333331 -12,0.5,0.3,0.75,0.25,0,4,3280215776.8779473,0.07392344601920621,27535874923.18503,0.7742386824858348,0.02778184966327841,0.9903666666666666 -13,0.5,0.6,0.25,0.0,4,3,3733053371.543826,0.08542184529182892,30294457718.652958,0.739994385787595,0.026143624669807606,0.9939666666666667 -14,0.5,0.8,0.0,1.0,3,1,3868081665.235581,0.09524632405793981,31123061915.61634,0.70811665076265,0.028232860276024917,1.0 -15,0.7,0.1,0.75,0.75,3,3,3330590377.077554,0.07324286087806994,28009354984.178905,0.77101870101639,0.026522250255100542,0.9938333333333332 -16,0.7,0.2,0.0,0.25,4,2,3879923892.405111,0.09287772214905302,32077456261.107548,0.7092648986079924,0.026124849236665932,0.9997666666666666 -17,0.7,0.3,0.25,1.0,2,0,3729559649.969672,0.08472110828756059,30574439942.61938,0.7366900948997877,0.025480143774951766,0.9997333333333331 -18,0.7,0.6,1.0,0.5,0,1,2019860002.646692,0.14496429252217075,12716899877.15417,0.754715476782345,0.16283168991147254,0.9836666666666667 -19,0.7,0.8,0.5,0.0,1,4,3568806095.650769,0.07871915191895583,30032167448.892323,0.7629522316567776,0.025065573066454436,0.9920666666666663 -20,0.9,0.1,1.0,1.0,4,4,2246819785.3982553,0.08289906596938025,16391553824.467003,0.7373396218956161,0.07195343604986927,0.9945999999999997 -21,0.9,0.2,0.75,0.0,2,1,3330876703.8792706,0.07610629773949494,27674320366.79667,0.7742527429660275,0.028118070033153513,0.9895999999999999 -22,0.9,0.3,0.0,0.5,1,3,3880659664.8644805,0.0940375231764736,31799708717.90585,0.701975186568906,0.02633369365903764,0.9999333333333333 -23,0.9,0.6,0.5,0.25,3,0,3572889817.877089,0.0792317259747448,28817388267.385258,0.7624308348187311,0.027316029066635297,0.9926333333333331 -24,0.9,0.8,0.25,0.75,0,2,3702065223.334019,0.08670772960451446,30971934313.33295,0.7391414945664546,0.02459908627439125,0.9962999999999997 +0,0.1,0.1,0.0,0.0,0,0,2368465751.5406537,0.25549631542877876,13562099898.491034,0.8111621840041076,0.02176875745790126,0.9988666666666669 +1,0.1,0.2,0.25,0.5,3,4,5522285523.0731,0.2524078028062856,16315667734.367153,0.6593680667656033,0.045560589871753515,0.5098666666666667 +2,0.1,0.3,0.5,0.75,4,1,4454727560.0325775,0.2771080480659774,13699986479.16012,0.7067163108727459,0.043326466263185676,0.5896333333333332 +3,0.1,0.6,0.75,1.0,1,2,3524093666.5841937,0.30440038884993215,8213057585.886228,0.880109267422068,0.12377874385642872,0.7924 +4,0.1,0.8,1.0,0.25,2,3,875218961.7464943,0.20976780091170993,6113345396.221328,0.952269754073068,0.02494302091472818,0.9896999999999997 +5,0.3,0.1,0.25,0.25,1,1,5398498461.823114,0.2441507436030353,18795156613.361065,0.686389131537799,0.039447871824882484,0.5462666666666667 +6,0.3,0.2,0.5,1.0,0,3,2395383999.030499,0.27526438728192953,11630610298.951496,0.8487831693260026,0.023700608340641985,0.9239333333333334 +7,0.3,0.3,1.0,0.0,3,2,4497862732.328102,0.25650404394763476,6597215958.996845,0.8692483398813017,0.2613133986633773,0.5502666666666667 +8,0.3,0.6,0.0,0.75,2,4,2348575416.0071034,0.27155174965375956,12409088226.99467,0.7910579331452426,0.022505688439158684,0.9995666666666666 +9,0.3,0.8,0.75,0.5,4,0,6651993103.30317,0.30766207889001734,10035164802.668427,0.7843607510828039,0.22003607984174758,0.4164333333333333 +10,0.5,0.1,0.5,0.5,2,2,5133723848.104433,0.26769485505833346,17235341192.94299,0.6888348491428041,0.03913753781713959,0.5156666666666668 +11,0.5,0.2,1.0,0.75,1,0,5034164466.873026,0.24368013029391572,5865650683.297427,0.8229320941467569,0.24390962121474857,0.5581 +12,0.5,0.3,0.75,0.25,0,4,6578657635.364925,0.3115112813862723,12821889906.626564,0.7296776559004362,0.12566259947274172,0.37306666666666666 +13,0.5,0.6,0.25,0.0,4,3,5317878424.16211,0.25426139822096233,15952002523.191202,0.6366959066789712,0.04931280827587589,0.4945 +14,0.5,0.8,0.0,1.0,3,1,2337493729.850705,0.2710639457985169,12450822077.153242,0.7959806250965015,0.021674836574836306,1.0 +15,0.7,0.1,0.75,0.75,3,3,4390912082.717371,0.29317850679017093,11461734869.758415,0.8454879328793415,0.09655847372754531,0.7302666666666665 +16,0.7,0.2,0.0,0.25,4,2,2352491003.881384,0.26561012389146327,12783562370.987354,0.7967645757084304,0.02266688334352523,0.9986333333333332 +17,0.7,0.3,0.25,1.0,2,0,3653532123.395534,0.2617650401923907,13957125531.167791,0.7533581068472094,0.03256326130466421,0.7757333333333333 +18,0.7,0.6,1.0,0.5,0,1,6924158520.902663,0.2675809284783991,7891681851.714676,0.8045158669403997,0.43446126904216925,0.24976666666666672 +19,0.7,0.8,0.5,0.0,1,4,4736119503.894477,0.27992269679276827,14678429776.163397,0.5976800185496292,0.05283537967029203,0.42810000000000004 +20,0.9,0.1,1.0,1.0,4,4,867511457.6456088,0.24922575247153309,5665703830.975503,0.9307229635556812,0.024869887137445312,0.9877666666666663 +21,0.9,0.2,0.75,0.0,2,1,6851187209.991049,0.31492006315769994,14119587314.503916,0.7105804111939837,0.09613556316018454,0.34823333333333323 +22,0.9,0.3,0.0,0.5,1,3,2361545981.6950893,0.2705929602865968,12574016364.653028,0.7903606771743784,0.023174577361497042,0.9990666666666664 +23,0.9,0.6,0.5,0.25,3,0,4857056462.399006,0.279816369708902,14630466418.460012,0.6084314344270363,0.05141348153810012,0.43129999999999996 +24,0.9,0.8,0.25,0.75,0,2,4760429051.04185,0.25907435765822473,15349917450.20687,0.6836278612672746,0.04078068085187289,0.5870000000000001 diff --git a/result/experiment_result_25.xlsx b/result/experiment_result_25.xlsx index d2fb891..56bfa05 100644 Binary files a/result/experiment_result_25.xlsx and b/result/experiment_result_25.xlsx differ