P3: codes and results

This commit is contained in:
2026-01-18 17:06:19 +08:00
parent ae3d4cffde
commit 5f3d5c95ed
10 changed files with 1433 additions and 5 deletions

27
data/p3_kmin_pairs.csv Normal file
View File

@@ -0,0 +1,27 @@
site_i_idx,site_i_name,site_j_idx,site_j_name,distance_miles,mu_i,sigma_i,mu_j,sigma_j,q_opt,score_mean,served_i_mean,served_j_mean,served_total_mean,unmet_mean,waste_mean,ratio_i_mean,ratio_j_mean,fairness_mean,pair_count
7,MFP Bradford,40,MFP Senior - CFS Lakeview,11.76921918626308,122.27272727272728,29.7425315300864,112.0,15.563490039905,184.0,0.9428869758435676,122.25498527814786,105.3741322184006,227.62911749654845,0.0245101988460443,0.0894835300138062,0.9990972042500004,0.9441164351469572,0.0550585860376161,11
20,MFP Lamphear Court,43,MFP Senior - Dayspring,2.5388276228095874,126.0,40.6803255750109,77.18181818181819,17.9489174148091,209.0,0.9417319305889976,125.2536380858632,73.67629766238196,198.92993574824516,0.010882511255999,0.2042802570070193,0.9975753346750716,0.96892092605832,0.0307046476592066,10
15,MFP Danby,57,MFP Senior - Titus Towers,6.74907391207574,160.22222222222223,34.5788149658782,72.8,4.31534728871525,190.0,0.9386917705052576,156.90304496212124,69.19779172023146,226.10083668235268,0.0263680617753903,0.0955966532705892,0.9819261875976928,0.9524403721601729,0.0323828947559224,9
58,MFP Senior - Villa Serene,23,MFP Millport,10.593196325210428,69.72727272727273,5.0614406860282,166.0,36.4996194805127,84.0,0.9338181981409592,69.66185187329195,158.19618676472925,227.8580386380212,0.030292645480911,0.0885678454479152,0.999954529189803,0.9597122187620404,0.0402423104277625,9
52,MFP Senior - Metro Plaza Apartments,14,MFP Conklin- Maines Community Center,4.971710797175927,56.3,19.9167712689024,153.16666666666666,20.1125620325993,114.0,0.9614448925652858,56.134920404051805,151.73568494851176,207.8706053525636,0.0030322448229782,0.1685175785897456,0.995351942612302,0.995514771549426,0.0090933662751668,8
18,MFP Erin,47,MFP Senior - Flannery,12.463935572449168,173.9090909090909,27.3219858189501,61.72727272727273,10.1103007778296,215.0,0.9518261130996396,173.78074383378473,56.36340452390987,230.14414835769463,0.0201807534915724,0.0794234065692216,0.9967743078990589,0.9264515396633294,0.0704809134935804,8
19,MFP First Assembly Of God Church,44,MFP Senior - East Hill Senior Living,2.909892189220507,146.0,21.6459108042479,39.833333333333336,2.16724933890169,213.0,0.9487649930999984,146.1592916414775,39.86564413193418,186.0249357734117,3.434719920681324e-05,0.2559002569063532,0.999979440137201,0.9998999328210344,8.305258300460189e-05,8
14,MFP Conklin- Maines Community Center,53,MFP Senior - North Shore Towers,4.71565048597784,153.16666666666666,20.1125620325993,58.333333333333336,6.86051504383355,202.0,0.967323217612732,153.16748725169143,58.222339029392096,211.38982628108351,0.0011179021325842,0.1544406948756659,0.9997651519565478,0.9962419469840804,0.0035724909179595,7
21,MFP Lansing,41,MFP Senior - Conifer Village,6.107874800160203,181.0,23.2937759927411,33.8,10.3794669098819,233.0,0.96518810029574,180.5999985159279,32.66221052848747,213.26220904441536,0.0033885418373702,0.1469511638223385,0.9997629580990872,0.9799437603770594,0.0198459971043055,7
56,MFP Senior - Springview Apartments,65,MFP Van Etten,15.98768426073982,27.583333333333332,9.31722094084958,213.7,19.9613515463145,60.0,0.95994825358438,27.729904255502117,208.38933412497505,236.11923838047716,0.0180919607000011,0.0555230464780913,0.9970284582045988,0.9793270372969494,0.0236445044984517,7
18,MFP Erin,38,MFP Senior - Carpenter Apartments,11.351845173577209,173.9090909090909,27.3219858189501,31.09090909090909,6.75950509215793,232.0,0.9596543054737808,174.75971286597905,30.63486464514537,205.3945775111244,0.0029133478344492,0.1784216899555023,0.9991448032866024,0.9833982853535616,0.0157876889920745,7
45,"MFP Senior - Elizabeth Square, Waverly",65,MFP Van Etten,16.200324053199697,29.0,9.67658842962558,213.7,19.9613515463145,57.0,0.9575306805051936,28.932857648259983,207.86708464280983,236.79994229106984,0.0199432958297887,0.0528002308357206,0.999417288108808,0.9771252086948627,0.0233685686907207,7
64,MFP Tuscarora,36,MFP Senior - Addison Place Apartments,5.172850536384525,192.63636363636363,29.8639338576576,30.09090909090909,5.02900676982135,233.0,0.9571630445210272,192.53996336018577,28.1110239281017,220.65098728828744,0.0120985908185018,0.1173960508468503,0.9945384553527564,0.9379297361035528,0.0566087192492033,7
51,MFP Senior - Long Meadow Senior Housing,26,MFP Owego VFW,1.084296011715769,34.75,13.0043698949098,176.25,34.285234033433,75.0,0.9519792196656196,34.48286887986591,172.9413445528889,207.4242134327548,0.0087250944253651,0.1703031462689808,0.9963411468595392,0.9895484339730172,0.0141104191674435,7
59,MFP Senior - Village Square/Manor,8,MFP Campbell,10.226626433666802,34.25,6.48249390842192,168.5,40.968946111104,57.0,0.945434723392738,34.31957766684849,166.005020895597,200.3245985624455,0.0092655971607613,0.1987016057502181,1.0,0.98938499203219,0.01061500796781,7
8,MFP Campbell,42,MFP Senior - Corning Senior Center,12.473579226713138,168.5,40.968946111104,75.0,30.9636884107821,248.0,0.8940926170580517,166.40521210206353,59.56367058819695,225.96888269026047,0.054176555683848,0.096124469238958,0.9984274250036131,0.817411946946492,0.1810154780571212,7
49,MFP Senior - Jefferson Village,4,MFP Beaver Dams,12.76809179930506,24.818181818181817,2.78633026822672,170.7,28.7906234736241,35.0,0.9541130470769168,24.876624785335387,170.89326699128202,195.76989177661744,0.0015642914652357,0.2169204328935303,1.0,0.9982673733666096,0.0017326266333905,6
39,MFP Senior - Cayuga Meadows,21,MFP Lansing,5.619262046423938,25.88888888888889,3.33333333333333,181.0,23.2937759927411,38.0,0.9635822985614684,25.940284344595877,180.6618705898014,206.60215493439725,0.0010621408662808,0.1735913802624109,1.0,0.9988153083219709,0.001184691678029,5
68,MFP Whitney Point,60,MFP Senior - Wells Apartments,16.87604765269892,202.54545454545453,30.4478690103713,23.5,4.55216676124922,238.0,0.9571221984285616,200.0505539505132,21.74456459228217,221.7951185427954,0.0126961852535466,0.1128195258288185,0.9934789092932628,0.9275456911378226,0.0659332181554401,5
48,MFP Senior - Harry L Apartments,26,MFP Owego VFW,16.915448371143015,32.833333333333336,6.24232862533419,176.25,34.285234033433,51.0,0.9557506491221164,32.967065793811216,175.59195315480338,208.5590189486146,0.0069353537729846,0.1657639242055417,1.0,0.9920687776161624,0.0079312223838376,5
23,MFP Millport,55,MFP Senior - Park Terrace Congregate Apartments,15.115694505719103,166.0,36.4996194805127,24.363636363636363,4.41073071662117,239.0,0.948162717900407,166.58653630344105,23.67680631426951,190.26334261771052,0.0025299726211009,0.2389466295291578,0.9990836602507632,0.981692921114046,0.0174039050195892,5
69,MFP Windsor,50,MFP Senior - Lincoln Court,14.510764082261073,200.9090909090909,34.8954281975578,26.0,4.89897948556636,237.0,0.9464011221716472,197.9911686202582,23.27842987046033,221.26959849071855,0.0191340978880797,0.1149216060371257,0.9895414756554092,0.9030310460987526,0.0865706643033308,5
46,MFP Senior - Ellis Hollow,34,MFP Salvation Army Ithaca,2.3921824800166336,24.727272727272727,13.8064543536051,181.1818181818182,39.5848915163808,69.0,0.9461425904751966,24.60395402465814,177.22230271238274,201.8262567370409,0.0095740093215226,0.1926949730518365,0.9559781794865208,0.9891674250122044,0.0547537283644393,5
29,MFP Reach for Christ Church Freeville,61,MFP Senior - Woodsedge Apartments,10.988460066901554,220.0,22.6175939382498,17.2,4.23739962188552,244.0,0.962586600279761,217.59971016858316,14.787948793888864,232.387658962472,0.0145772043063853,0.070449364150112,0.993904404447825,0.871430362462156,0.122474041985669,4
20,MFP Lamphear Court,42,MFP Senior - Corning Senior Center,1.2156460766066033,126.0,40.6803255750109,75.0,30.9636884107821,227.0,0.9302798578553,127.56628346264212,70.70067791416179,198.2669613768039,0.0177085695288394,0.2069321544927843,0.9986662140788032,0.9409016797571024,0.0593355807387992,2
47,MFP Senior - Flannery,37,MFP Senior - Bragg,0.9136830730627136,61.72727272727273,10.1103007778296,66.88888888888889,6.03001750504186,99.0,0.9028897915279448,61.641667869309266,66.97057154062155,128.6122394099308,0.0,0.4855510423602767,1.0,1.0,0.0,1
1 site_i_idx site_i_name site_j_idx site_j_name distance_miles mu_i sigma_i mu_j sigma_j q_opt score_mean served_i_mean served_j_mean served_total_mean unmet_mean waste_mean ratio_i_mean ratio_j_mean fairness_mean pair_count
2 7 MFP Bradford 40 MFP Senior - CFS Lakeview 11.76921918626308 122.27272727272728 29.7425315300864 112.0 15.563490039905 184.0 0.9428869758435676 122.25498527814786 105.3741322184006 227.62911749654845 0.0245101988460443 0.0894835300138062 0.9990972042500004 0.9441164351469572 0.0550585860376161 11
3 20 MFP Lamphear Court 43 MFP Senior - Dayspring 2.5388276228095874 126.0 40.6803255750109 77.18181818181819 17.9489174148091 209.0 0.9417319305889976 125.2536380858632 73.67629766238196 198.92993574824516 0.010882511255999 0.2042802570070193 0.9975753346750716 0.96892092605832 0.0307046476592066 10
4 15 MFP Danby 57 MFP Senior - Titus Towers 6.74907391207574 160.22222222222223 34.5788149658782 72.8 4.31534728871525 190.0 0.9386917705052576 156.90304496212124 69.19779172023146 226.10083668235268 0.0263680617753903 0.0955966532705892 0.9819261875976928 0.9524403721601729 0.0323828947559224 9
5 58 MFP Senior - Villa Serene 23 MFP Millport 10.593196325210428 69.72727272727273 5.0614406860282 166.0 36.4996194805127 84.0 0.9338181981409592 69.66185187329195 158.19618676472925 227.8580386380212 0.030292645480911 0.0885678454479152 0.999954529189803 0.9597122187620404 0.0402423104277625 9
6 52 MFP Senior - Metro Plaza Apartments 14 MFP Conklin- Maines Community Center 4.971710797175927 56.3 19.9167712689024 153.16666666666666 20.1125620325993 114.0 0.9614448925652858 56.134920404051805 151.73568494851176 207.8706053525636 0.0030322448229782 0.1685175785897456 0.995351942612302 0.995514771549426 0.0090933662751668 8
7 18 MFP Erin 47 MFP Senior - Flannery 12.463935572449168 173.9090909090909 27.3219858189501 61.72727272727273 10.1103007778296 215.0 0.9518261130996396 173.78074383378473 56.36340452390987 230.14414835769463 0.0201807534915724 0.0794234065692216 0.9967743078990589 0.9264515396633294 0.0704809134935804 8
8 19 MFP First Assembly Of God Church 44 MFP Senior - East Hill Senior Living 2.909892189220507 146.0 21.6459108042479 39.833333333333336 2.16724933890169 213.0 0.9487649930999984 146.1592916414775 39.86564413193418 186.0249357734117 3.434719920681324e-05 0.2559002569063532 0.999979440137201 0.9998999328210344 8.305258300460189e-05 8
9 14 MFP Conklin- Maines Community Center 53 MFP Senior - North Shore Towers 4.71565048597784 153.16666666666666 20.1125620325993 58.333333333333336 6.86051504383355 202.0 0.967323217612732 153.16748725169143 58.222339029392096 211.38982628108351 0.0011179021325842 0.1544406948756659 0.9997651519565478 0.9962419469840804 0.0035724909179595 7
10 21 MFP Lansing 41 MFP Senior - Conifer Village 6.107874800160203 181.0 23.2937759927411 33.8 10.3794669098819 233.0 0.96518810029574 180.5999985159279 32.66221052848747 213.26220904441536 0.0033885418373702 0.1469511638223385 0.9997629580990872 0.9799437603770594 0.0198459971043055 7
11 56 MFP Senior - Springview Apartments 65 MFP Van Etten 15.98768426073982 27.583333333333332 9.31722094084958 213.7 19.9613515463145 60.0 0.95994825358438 27.729904255502117 208.38933412497505 236.11923838047716 0.0180919607000011 0.0555230464780913 0.9970284582045988 0.9793270372969494 0.0236445044984517 7
12 18 MFP Erin 38 MFP Senior - Carpenter Apartments 11.351845173577209 173.9090909090909 27.3219858189501 31.09090909090909 6.75950509215793 232.0 0.9596543054737808 174.75971286597905 30.63486464514537 205.3945775111244 0.0029133478344492 0.1784216899555023 0.9991448032866024 0.9833982853535616 0.0157876889920745 7
13 45 MFP Senior - Elizabeth Square, Waverly 65 MFP Van Etten 16.200324053199697 29.0 9.67658842962558 213.7 19.9613515463145 57.0 0.9575306805051936 28.932857648259983 207.86708464280983 236.79994229106984 0.0199432958297887 0.0528002308357206 0.999417288108808 0.9771252086948627 0.0233685686907207 7
14 64 MFP Tuscarora 36 MFP Senior - Addison Place Apartments 5.172850536384525 192.63636363636363 29.8639338576576 30.09090909090909 5.02900676982135 233.0 0.9571630445210272 192.53996336018577 28.1110239281017 220.65098728828744 0.0120985908185018 0.1173960508468503 0.9945384553527564 0.9379297361035528 0.0566087192492033 7
15 51 MFP Senior - Long Meadow Senior Housing 26 MFP Owego VFW 1.084296011715769 34.75 13.0043698949098 176.25 34.285234033433 75.0 0.9519792196656196 34.48286887986591 172.9413445528889 207.4242134327548 0.0087250944253651 0.1703031462689808 0.9963411468595392 0.9895484339730172 0.0141104191674435 7
16 59 MFP Senior - Village Square/Manor 8 MFP Campbell 10.226626433666802 34.25 6.48249390842192 168.5 40.968946111104 57.0 0.945434723392738 34.31957766684849 166.005020895597 200.3245985624455 0.0092655971607613 0.1987016057502181 1.0 0.98938499203219 0.01061500796781 7
17 8 MFP Campbell 42 MFP Senior - Corning Senior Center 12.473579226713138 168.5 40.968946111104 75.0 30.9636884107821 248.0 0.8940926170580517 166.40521210206353 59.56367058819695 225.96888269026047 0.054176555683848 0.096124469238958 0.9984274250036131 0.817411946946492 0.1810154780571212 7
18 49 MFP Senior - Jefferson Village 4 MFP Beaver Dams 12.76809179930506 24.818181818181817 2.78633026822672 170.7 28.7906234736241 35.0 0.9541130470769168 24.876624785335387 170.89326699128202 195.76989177661744 0.0015642914652357 0.2169204328935303 1.0 0.9982673733666096 0.0017326266333905 6
19 39 MFP Senior - Cayuga Meadows 21 MFP Lansing 5.619262046423938 25.88888888888889 3.33333333333333 181.0 23.2937759927411 38.0 0.9635822985614684 25.940284344595877 180.6618705898014 206.60215493439725 0.0010621408662808 0.1735913802624109 1.0 0.9988153083219709 0.001184691678029 5
20 68 MFP Whitney Point 60 MFP Senior - Wells Apartments 16.87604765269892 202.54545454545453 30.4478690103713 23.5 4.55216676124922 238.0 0.9571221984285616 200.0505539505132 21.74456459228217 221.7951185427954 0.0126961852535466 0.1128195258288185 0.9934789092932628 0.9275456911378226 0.0659332181554401 5
21 48 MFP Senior - Harry L Apartments 26 MFP Owego VFW 16.915448371143015 32.833333333333336 6.24232862533419 176.25 34.285234033433 51.0 0.9557506491221164 32.967065793811216 175.59195315480338 208.5590189486146 0.0069353537729846 0.1657639242055417 1.0 0.9920687776161624 0.0079312223838376 5
22 23 MFP Millport 55 MFP Senior - Park Terrace Congregate Apartments 15.115694505719103 166.0 36.4996194805127 24.363636363636363 4.41073071662117 239.0 0.948162717900407 166.58653630344105 23.67680631426951 190.26334261771052 0.0025299726211009 0.2389466295291578 0.9990836602507632 0.981692921114046 0.0174039050195892 5
23 69 MFP Windsor 50 MFP Senior - Lincoln Court 14.510764082261073 200.9090909090909 34.8954281975578 26.0 4.89897948556636 237.0 0.9464011221716472 197.9911686202582 23.27842987046033 221.26959849071855 0.0191340978880797 0.1149216060371257 0.9895414756554092 0.9030310460987526 0.0865706643033308 5
24 46 MFP Senior - Ellis Hollow 34 MFP Salvation Army Ithaca 2.3921824800166336 24.727272727272727 13.8064543536051 181.1818181818182 39.5848915163808 69.0 0.9461425904751966 24.60395402465814 177.22230271238274 201.8262567370409 0.0095740093215226 0.1926949730518365 0.9559781794865208 0.9891674250122044 0.0547537283644393 5
25 29 MFP Reach for Christ Church Freeville 61 MFP Senior - Woodsedge Apartments 10.988460066901554 220.0 22.6175939382498 17.2 4.23739962188552 244.0 0.962586600279761 217.59971016858316 14.787948793888864 232.387658962472 0.0145772043063853 0.070449364150112 0.993904404447825 0.871430362462156 0.122474041985669 4
26 20 MFP Lamphear Court 42 MFP Senior - Corning Senior Center 1.2156460766066033 126.0 40.6803255750109 75.0 30.9636884107821 227.0 0.9302798578553 127.56628346264212 70.70067791416179 198.2669613768039 0.0177085695288394 0.2069321544927843 0.9986662140788032 0.9409016797571024 0.0593355807387992 2
27 47 MFP Senior - Flannery 37 MFP Senior - Bragg 0.9136830730627136 61.72727272727273 10.1103007778296 66.88888888888889 6.03001750504186 99.0 0.9028897915279448 61.641667869309266 66.97057154062155 128.6122394099308 0.0 0.4855510423602767 1.0 1.0 0.0 1