File size: 431,929 Bytes
aff484f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 | task_name,problem_type,instruction,instance,solution,obj,instance_variant,solution_variant,context_index,input_format,input_index_base
UFLP,UFLP,"Someone at planning has to balance the budget and convenience: decide which neighborhood libraries to open and make sure every regular reader is linked to one of the opened branches. For any setup, the cityβs outlay equals the sum of the opening fees for the selected branches plus the travel cost for each reader to their single assigned branch; the setups with lower combined totals are preferable. Readers can only go to branches that are actually opened, no one is left unassigned, and libraries can serve any number of people. The detailed data are shown below.
There are 7 librarys and 14 readers in this instance.
**Librarys**
| library_id | opening_fee |
|---|---|
| F1 | 1956 |
| F2 | 1996 |
| F3 | 1058 |
| F4 | 1035 |
| F5 | 1123 |
| F6 | 1444 |
| F7 | 1690 |
**Readers**
| reader_id |
|---|
| A |
| B |
| C |
| D |
| E |
| F |
| G |
| H |
| I |
| J |
| K |
| L |
| M |
| N |
**Travel Cost**
| library_id | reader_id | travel_cost |
|---|---|---|
| F1 | A | 814 |
| F1 | B | 370 |
| F1 | C | 913 |
| F1 | D | 485 |
| F1 | E | 352 |
| F1 | F | 509 |
| F1 | G | 62 |
| F1 | H | 353 |
| F1 | I | 527 |
| F1 | J | 148 |
| F1 | K | 295 |
| F1 | L | 202 |
| F1 | M | 461 |
| F1 | N | 865 |
| F2 | A | 106 |
| F2 | B | 678 |
| F2 | C | 312 |
| F2 | D | 561 |
| F2 | E | 872 |
| F2 | F | 39 |
| F2 | G | 296 |
| F2 | H | 478 |
| F2 | I | 273 |
| F2 | J | 690 |
| F2 | K | 181 |
| F2 | L | 959 |
| F2 | M | 491 |
| F2 | N | 799 |
| F3 | A | 406 |
| F3 | B | 116 |
| F3 | C | 933 |
| F3 | D | 44 |
| F3 | E | 219 |
| F3 | F | 349 |
| F3 | G | 707 |
| F3 | H | 544 |
| F3 | I | 184 |
| F3 | J | 298 |
| F3 | K | 595 |
| F3 | L | 923 |
| F3 | M | 873 |
| F3 | N | 273 |
| F4 | A | 65 |
| F4 | B | 853 |
| F4 | C | 973 |
| F4 | D | 314 |
| F4 | E | 129 |
| F4 | F | 97 |
| F4 | G | 100 |
| F4 | H | 921 |
| F4 | I | 655 |
| F4 | J | 745 |
| F4 | K | 594 |
| F4 | L | 387 |
| F4 | M | 805 |
| F4 | N | 115 |
| F5 | A | 980 |
| F5 | B | 534 |
| F5 | C | 410 |
| F5 | D | 332 |
| F5 | E | 868 |
| F5 | F | 841 |
| F5 | G | 238 |
| F5 | H | 769 |
| F5 | I | 919 |
| F5 | J | 603 |
| F5 | K | 964 |
| F5 | L | 818 |
| F5 | M | 804 |
| F5 | N | 906 |
| F6 | A | 650 |
| F6 | B | 925 |
| F6 | C | 443 |
| F6 | D | 55 |
| F6 | E | 166 |
| F6 | F | 372 |
| F6 | G | 152 |
| F6 | H | 527 |
| F6 | I | 614 |
| F6 | J | 478 |
| F6 | K | 358 |
| F6 | L | 792 |
| F6 | M | 879 |
| F6 | N | 235 |
| F7 | A | 96 |
| F7 | B | 467 |
| F7 | C | 692 |
| F7 | D | 676 |
| F7 | E | 205 |
| F7 | F | 315 |
| F7 | G | 656 |
| F7 | H | 635 |
| F7 | I | 978 |
| F7 | J | 598 |
| F7 | K | 272 |
| F7 | L | 227 |
| F7 | M | 522 |
| F7 | N | 494 |
If you want to send back a candidate setup, just use this simple JSON layout so I can read it reliably.
{
""solution"": {
""selected"": [<library_to_open>, <library_to_open>, ...],
""assignments"": [<chosen_open_library>, <chosen_open_library>, ...]
}
}
Here, ""selected"" is the list of library locations you plan to open, and ""assignments"" is a list giving, for each reader in the input order, which opened library they would go to. Think of it like filling out a short form: pick the branches you open, then for every reader say which branch they use.
This JSON is only a sketch of the expected shape β not the final answer. Please make sure to use the exact identifiers from the instance input, with no renaming and no extra labels:
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β"".","{'opening_costs': [1956, 1996, 1058, 1035, 1123, 1444, 1690], 'connection_costs': [[814, 370, 913, 485, 352, 509, 62, 353, 527, 148, 295, 202, 461, 865], [106, 678, 312, 561, 872, 39, 296, 478, 273, 690, 181, 959, 491, 799], [406, 116, 933, 44, 219, 349, 707, 544, 184, 298, 595, 923, 873, 273], [65, 853, 973, 314, 129, 97, 100, 921, 655, 745, 594, 387, 805, 115], [980, 534, 410, 332, 868, 841, 238, 769, 919, 603, 964, 818, 804, 906], [650, 925, 443, 55, 166, 372, 152, 527, 614, 478, 358, 792, 879, 235], [96, 467, 692, 676, 205, 315, 656, 635, 978, 598, 272, 227, 522, 494]], 'objective': 6504.0}","{'open_facilities': [2, 3], 'assignments': [3, 2, 2, 2, 3, 3, 3, 2, 2, 2, 3, 3, 3, 3]}",6504.0,"{'problem_type': 'UFLP', 'num_facilities': 7, 'num_customers': 14, 'facilities': [{'id': 'F1', 'opening_cost': 1956}, {'id': 'F2', 'opening_cost': 1996}, {'id': 'F3', 'opening_cost': 1058}, {'id': 'F4', 'opening_cost': 1035}, {'id': 'F5', 'opening_cost': 1123}, {'id': 'F6', 'opening_cost': 1444}, {'id': 'F7', 'opening_cost': 1690}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}, {'id': 'L'}, {'id': 'M'}, {'id': 'N'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 814}, {'facility': 'F1', 'customer': 'B', 'cost': 370}, {'facility': 'F1', 'customer': 'C', 'cost': 913}, {'facility': 'F1', 'customer': 'D', 'cost': 485}, {'facility': 'F1', 'customer': 'E', 'cost': 352}, {'facility': 'F1', 'customer': 'F', 'cost': 509}, {'facility': 'F1', 'customer': 'G', 'cost': 62}, {'facility': 'F1', 'customer': 'H', 'cost': 353}, {'facility': 'F1', 'customer': 'I', 'cost': 527}, {'facility': 'F1', 'customer': 'J', 'cost': 148}, {'facility': 'F1', 'customer': 'K', 'cost': 295}, {'facility': 'F1', 'customer': 'L', 'cost': 202}, {'facility': 'F1', 'customer': 'M', 'cost': 461}, {'facility': 'F1', 'customer': 'N', 'cost': 865}, {'facility': 'F2', 'customer': 'A', 'cost': 106}, {'facility': 'F2', 'customer': 'B', 'cost': 678}, {'facility': 'F2', 'customer': 'C', 'cost': 312}, {'facility': 'F2', 'customer': 'D', 'cost': 561}, {'facility': 'F2', 'customer': 'E', 'cost': 872}, {'facility': 'F2', 'customer': 'F', 'cost': 39}, {'facility': 'F2', 'customer': 'G', 'cost': 296}, {'facility': 'F2', 'customer': 'H', 'cost': 478}, {'facility': 'F2', 'customer': 'I', 'cost': 273}, {'facility': 'F2', 'customer': 'J', 'cost': 690}, {'facility': 'F2', 'customer': 'K', 'cost': 181}, {'facility': 'F2', 'customer': 'L', 'cost': 959}, {'facility': 'F2', 'customer': 'M', 'cost': 491}, {'facility': 'F2', 'customer': 'N', 'cost': 799}, {'facility': 'F3', 'customer': 'A', 'cost': 406}, {'facility': 'F3', 'customer': 'B', 'cost': 116}, {'facility': 'F3', 'customer': 'C', 'cost': 933}, {'facility': 'F3', 'customer': 'D', 'cost': 44}, {'facility': 'F3', 'customer': 'E', 'cost': 219}, {'facility': 'F3', 'customer': 'F', 'cost': 349}, {'facility': 'F3', 'customer': 'G', 'cost': 707}, {'facility': 'F3', 'customer': 'H', 'cost': 544}, {'facility': 'F3', 'customer': 'I', 'cost': 184}, {'facility': 'F3', 'customer': 'J', 'cost': 298}, {'facility': 'F3', 'customer': 'K', 'cost': 595}, {'facility': 'F3', 'customer': 'L', 'cost': 923}, {'facility': 'F3', 'customer': 'M', 'cost': 873}, {'facility': 'F3', 'customer': 'N', 'cost': 273}, {'facility': 'F4', 'customer': 'A', 'cost': 65}, {'facility': 'F4', 'customer': 'B', 'cost': 853}, {'facility': 'F4', 'customer': 'C', 'cost': 973}, {'facility': 'F4', 'customer': 'D', 'cost': 314}, {'facility': 'F4', 'customer': 'E', 'cost': 129}, {'facility': 'F4', 'customer': 'F', 'cost': 97}, {'facility': 'F4', 'customer': 'G', 'cost': 100}, {'facility': 'F4', 'customer': 'H', 'cost': 921}, {'facility': 'F4', 'customer': 'I', 'cost': 655}, {'facility': 'F4', 'customer': 'J', 'cost': 745}, {'facility': 'F4', 'customer': 'K', 'cost': 594}, {'facility': 'F4', 'customer': 'L', 'cost': 387}, {'facility': 'F4', 'customer': 'M', 'cost': 805}, {'facility': 'F4', 'customer': 'N', 'cost': 115}, {'facility': 'F5', 'customer': 'A', 'cost': 980}, {'facility': 'F5', 'customer': 'B', 'cost': 534}, {'facility': 'F5', 'customer': 'C', 'cost': 410}, {'facility': 'F5', 'customer': 'D', 'cost': 332}, {'facility': 'F5', 'customer': 'E', 'cost': 868}, {'facility': 'F5', 'customer': 'F', 'cost': 841}, {'facility': 'F5', 'customer': 'G', 'cost': 238}, {'facility': 'F5', 'customer': 'H', 'cost': 769}, {'facility': 'F5', 'customer': 'I', 'cost': 919}, {'facility': 'F5', 'customer': 'J', 'cost': 603}, {'facility': 'F5', 'customer': 'K', 'cost': 964}, {'facility': 'F5', 'customer': 'L', 'cost': 818}, {'facility': 'F5', 'customer': 'M', 'cost': 804}, {'facility': 'F5', 'customer': 'N', 'cost': 906}, {'facility': 'F6', 'customer': 'A', 'cost': 650}, {'facility': 'F6', 'customer': 'B', 'cost': 925}, {'facility': 'F6', 'customer': 'C', 'cost': 443}, {'facility': 'F6', 'customer': 'D', 'cost': 55}, {'facility': 'F6', 'customer': 'E', 'cost': 166}, {'facility': 'F6', 'customer': 'F', 'cost': 372}, {'facility': 'F6', 'customer': 'G', 'cost': 152}, {'facility': 'F6', 'customer': 'H', 'cost': 527}, {'facility': 'F6', 'customer': 'I', 'cost': 614}, {'facility': 'F6', 'customer': 'J', 'cost': 478}, {'facility': 'F6', 'customer': 'K', 'cost': 358}, {'facility': 'F6', 'customer': 'L', 'cost': 792}, {'facility': 'F6', 'customer': 'M', 'cost': 879}, {'facility': 'F6', 'customer': 'N', 'cost': 235}, {'facility': 'F7', 'customer': 'A', 'cost': 96}, {'facility': 'F7', 'customer': 'B', 'cost': 467}, {'facility': 'F7', 'customer': 'C', 'cost': 692}, {'facility': 'F7', 'customer': 'D', 'cost': 676}, {'facility': 'F7', 'customer': 'E', 'cost': 205}, {'facility': 'F7', 'customer': 'F', 'cost': 315}, {'facility': 'F7', 'customer': 'G', 'cost': 656}, {'facility': 'F7', 'customer': 'H', 'cost': 635}, {'facility': 'F7', 'customer': 'I', 'cost': 978}, {'facility': 'F7', 'customer': 'J', 'cost': 598}, {'facility': 'F7', 'customer': 'K', 'cost': 272}, {'facility': 'F7', 'customer': 'L', 'cost': 227}, {'facility': 'F7', 'customer': 'M', 'cost': 522}, {'facility': 'F7', 'customer': 'N', 'cost': 494}], 'objective': 6504.0}","{'selected': ['F3', 'F4'], 'assignments': ['F4', 'F3', 'F3', 'F3', 'F4', 'F4', 'F4', 'F3', 'F3', 'F3', 'F4', 'F4', 'F4', 'F4']}",1,markdown_table,names
UFLP,UFLP,"At the festival the logistical brief was: decide which kitchens to switch on and which switched-on kitchen will take care of each order. Each kitchen has an activation charge, and assigning an order to a kitchen brings a delivery-distance cost; the overall cost of any choice equals the sum of the activation charges for the kitchens used plus the delivery distances for every order. All orders must be assigned to one active kitchen only, and active kitchens can serve any number of orders, so the aim is to end up with the combination that produces the smallest total cost. The specific kitchens, their fees and the list of orders are shown below.
There are 6 kitchens and 13 orders in this instance.
**Kitchens**
| kitchen_id | activation_fee |
|---|---|
| F1 | 1000 |
| F2 | 1000 |
| F3 | 1000 |
| F4 | 1000 |
| F5 | 1000 |
| F6 | 1000 |
**Orders**
| order_id |
|---|
| A |
| B |
| C |
| D |
| E |
| F |
| G |
| H |
| I |
| J |
| K |
| L |
| M |
**Delivery Distance**
| kitchen_id | order_id | delivery_distance |
|---|---|---|
| F1 | A | 222 |
| F1 | B | 354 |
| F1 | C | 70 |
| F1 | D | 378 |
| F1 | E | 77 |
| F1 | F | 202 |
| F1 | G | 109 |
| F1 | H | 788 |
| F1 | I | 254 |
| F1 | J | 52 |
| F1 | K | 389 |
| F1 | L | 915 |
| F1 | M | 123 |
| F2 | A | 52 |
| F2 | B | 392 |
| F2 | C | 568 |
| F2 | D | 293 |
| F2 | E | 423 |
| F2 | F | 234 |
| F2 | G | 803 |
| F2 | H | 188 |
| F2 | I | 279 |
| F2 | J | 603 |
| F2 | K | 705 |
| F2 | L | 631 |
| F2 | M | 300 |
| F3 | A | 914 |
| F3 | B | 443 |
| F3 | C | 343 |
| F3 | D | 208 |
| F3 | E | 85 |
| F3 | F | 73 |
| F3 | G | 259 |
| F3 | H | 162 |
| F3 | I | 581 |
| F3 | J | 341 |
| F3 | K | 679 |
| F3 | L | 664 |
| F3 | M | 704 |
| F4 | A | 121 |
| F4 | B | 168 |
| F4 | C | 648 |
| F4 | D | 346 |
| F4 | E | 648 |
| F4 | F | 174 |
| F4 | G | 748 |
| F4 | H | 314 |
| F4 | I | 961 |
| F4 | J | 530 |
| F4 | K | 514 |
| F4 | L | 119 |
| F4 | M | 616 |
| F5 | A | 486 |
| F5 | B | 926 |
| F5 | C | 909 |
| F5 | D | 664 |
| F5 | E | 656 |
| F5 | F | 352 |
| F5 | G | 36 |
| F5 | H | 462 |
| F5 | I | 137 |
| F5 | J | 84 |
| F5 | K | 709 |
| F5 | L | 704 |
| F5 | M | 773 |
| F6 | A | 415 |
| F6 | B | 458 |
| F6 | C | 910 |
| F6 | D | 890 |
| F6 | E | 384 |
| F6 | F | 729 |
| F6 | G | 639 |
| F6 | H | 259 |
| F6 | I | 54 |
| F6 | J | 341 |
| F6 | K | 228 |
| F6 | L | 171 |
| F6 | M | 602 |
If you want to hand the plan back to me in a tidy form, a simple JSON sketch like this is perfect β nothing fancy, just the shape I expect:
{
""solution"": {
""selected"": [<kitchen_to_switch_on>, <kitchen_to_switch_on>, ...],
""assignments"": [<chosen_switched_on_kitchen>, <chosen_switched_on_kitchen>, ...]
}
}
Think of ""selected"" as the list of kitchens you flip on (just put their exact IDs in that list), and ""assignments"" as, for each order in the same sequence as the input, which switched-on kitchen will handle it. Super casual: it's just two lists β which kitchens are active, and who serves which order.
This JSON is only a sketch of the expected shape, not the final answer β fill in the real kitchen IDs and assignments when you submit.
Also: all identifiers must be used exactly as they appear in the instance input β no renaming and no new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1000, 1000, 1000, 1000, 1000, 1000], 'connection_costs': [[222, 354, 70, 378, 77, 202, 109, 788, 254, 52, 389, 915, 123], [52, 392, 568, 293, 423, 234, 803, 188, 279, 603, 705, 631, 300], [914, 443, 343, 208, 85, 73, 259, 162, 581, 341, 679, 664, 704], [121, 168, 648, 346, 648, 174, 748, 314, 961, 530, 514, 119, 616], [486, 926, 909, 664, 656, 352, 36, 462, 137, 84, 709, 704, 773], [415, 458, 910, 890, 384, 729, 639, 259, 54, 341, 228, 171, 602]], 'objective': 4299.0}","{'open_facilities': [0, 5], 'assignments': [0, 0, 0, 0, 0, 0, 0, 5, 5, 0, 5, 5, 0]}",4299.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 13, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}, {'id': 'F5', 'opening_cost': 1000}, {'id': 'F6', 'opening_cost': 1000}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}, {'id': 'L'}, {'id': 'M'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 222}, {'facility': 'F1', 'customer': 'B', 'cost': 354}, {'facility': 'F1', 'customer': 'C', 'cost': 70}, {'facility': 'F1', 'customer': 'D', 'cost': 378}, {'facility': 'F1', 'customer': 'E', 'cost': 77}, {'facility': 'F1', 'customer': 'F', 'cost': 202}, {'facility': 'F1', 'customer': 'G', 'cost': 109}, {'facility': 'F1', 'customer': 'H', 'cost': 788}, {'facility': 'F1', 'customer': 'I', 'cost': 254}, {'facility': 'F1', 'customer': 'J', 'cost': 52}, {'facility': 'F1', 'customer': 'K', 'cost': 389}, {'facility': 'F1', 'customer': 'L', 'cost': 915}, {'facility': 'F1', 'customer': 'M', 'cost': 123}, {'facility': 'F2', 'customer': 'A', 'cost': 52}, {'facility': 'F2', 'customer': 'B', 'cost': 392}, {'facility': 'F2', 'customer': 'C', 'cost': 568}, {'facility': 'F2', 'customer': 'D', 'cost': 293}, {'facility': 'F2', 'customer': 'E', 'cost': 423}, {'facility': 'F2', 'customer': 'F', 'cost': 234}, {'facility': 'F2', 'customer': 'G', 'cost': 803}, {'facility': 'F2', 'customer': 'H', 'cost': 188}, {'facility': 'F2', 'customer': 'I', 'cost': 279}, {'facility': 'F2', 'customer': 'J', 'cost': 603}, {'facility': 'F2', 'customer': 'K', 'cost': 705}, {'facility': 'F2', 'customer': 'L', 'cost': 631}, {'facility': 'F2', 'customer': 'M', 'cost': 300}, {'facility': 'F3', 'customer': 'A', 'cost': 914}, {'facility': 'F3', 'customer': 'B', 'cost': 443}, {'facility': 'F3', 'customer': 'C', 'cost': 343}, {'facility': 'F3', 'customer': 'D', 'cost': 208}, {'facility': 'F3', 'customer': 'E', 'cost': 85}, {'facility': 'F3', 'customer': 'F', 'cost': 73}, {'facility': 'F3', 'customer': 'G', 'cost': 259}, {'facility': 'F3', 'customer': 'H', 'cost': 162}, {'facility': 'F3', 'customer': 'I', 'cost': 581}, {'facility': 'F3', 'customer': 'J', 'cost': 341}, {'facility': 'F3', 'customer': 'K', 'cost': 679}, {'facility': 'F3', 'customer': 'L', 'cost': 664}, {'facility': 'F3', 'customer': 'M', 'cost': 704}, {'facility': 'F4', 'customer': 'A', 'cost': 121}, {'facility': 'F4', 'customer': 'B', 'cost': 168}, {'facility': 'F4', 'customer': 'C', 'cost': 648}, {'facility': 'F4', 'customer': 'D', 'cost': 346}, {'facility': 'F4', 'customer': 'E', 'cost': 648}, {'facility': 'F4', 'customer': 'F', 'cost': 174}, {'facility': 'F4', 'customer': 'G', 'cost': 748}, {'facility': 'F4', 'customer': 'H', 'cost': 314}, {'facility': 'F4', 'customer': 'I', 'cost': 961}, {'facility': 'F4', 'customer': 'J', 'cost': 530}, {'facility': 'F4', 'customer': 'K', 'cost': 514}, {'facility': 'F4', 'customer': 'L', 'cost': 119}, {'facility': 'F4', 'customer': 'M', 'cost': 616}, {'facility': 'F5', 'customer': 'A', 'cost': 486}, {'facility': 'F5', 'customer': 'B', 'cost': 926}, {'facility': 'F5', 'customer': 'C', 'cost': 909}, {'facility': 'F5', 'customer': 'D', 'cost': 664}, {'facility': 'F5', 'customer': 'E', 'cost': 656}, {'facility': 'F5', 'customer': 'F', 'cost': 352}, {'facility': 'F5', 'customer': 'G', 'cost': 36}, {'facility': 'F5', 'customer': 'H', 'cost': 462}, {'facility': 'F5', 'customer': 'I', 'cost': 137}, {'facility': 'F5', 'customer': 'J', 'cost': 84}, {'facility': 'F5', 'customer': 'K', 'cost': 709}, {'facility': 'F5', 'customer': 'L', 'cost': 704}, {'facility': 'F5', 'customer': 'M', 'cost': 773}, {'facility': 'F6', 'customer': 'A', 'cost': 415}, {'facility': 'F6', 'customer': 'B', 'cost': 458}, {'facility': 'F6', 'customer': 'C', 'cost': 910}, {'facility': 'F6', 'customer': 'D', 'cost': 890}, {'facility': 'F6', 'customer': 'E', 'cost': 384}, {'facility': 'F6', 'customer': 'F', 'cost': 729}, {'facility': 'F6', 'customer': 'G', 'cost': 639}, {'facility': 'F6', 'customer': 'H', 'cost': 259}, {'facility': 'F6', 'customer': 'I', 'cost': 54}, {'facility': 'F6', 'customer': 'J', 'cost': 341}, {'facility': 'F6', 'customer': 'K', 'cost': 228}, {'facility': 'F6', 'customer': 'L', 'cost': 171}, {'facility': 'F6', 'customer': 'M', 'cost': 602}], 'objective': 4299.0}","{'selected': ['F1', 'F6'], 'assignments': ['F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F6', 'F6', 'F1', 'F6', 'F6', 'F1']}",2,markdown_table,names
UFLP,UFLP,"Iβm trying to sort out which EV chargers to put in our apartment complex and how to link each residentβs car to one of the chargers. The idea is to pick a set of chargers to install (each has an installation fee) and then sign each car up to exactly one of the chargers that actually gets installed. A plan is better when the overall bill is lower β just add up all the installation fees for the chargers chosen plus the walking distance for every resident from their parking spot to their assigned charger β and the goal is to make that total as small as possible. Chargers can serve more than one car, but no car can be left unassigned or signed up to more than one charger. Concrete details about candidate charger locations, installation costs, residents, and distances are listed below.
{
""num_candidate_chargers"": 4,
""num_resident_cars"": 9,
""chargers"": [
{
""charger_id"": ""F1"",
""installation_cost"": 2000
},
{
""charger_id"": ""F2"",
""installation_cost"": 2000
},
{
""charger_id"": ""F3"",
""installation_cost"": 2000
},
{
""charger_id"": ""F4"",
""installation_cost"": 2000
}
],
""resident_cars"": [
{
""resident_car_id"": 0
},
{
""resident_car_id"": 1
},
{
""resident_car_id"": 2
},
{
""resident_car_id"": 3
},
{
""resident_car_id"": 4
},
{
""resident_car_id"": 5
},
{
""resident_car_id"": 6
},
{
""resident_car_id"": 7
},
{
""resident_car_id"": 8
}
],
""walking_distances"": [
{
""charger_id"": ""F1"",
""resident_car_id"": 0,
""walking_distance"": 822
},
{
""charger_id"": ""F1"",
""resident_car_id"": 1,
""walking_distance"": 913
},
{
""charger_id"": ""F1"",
""resident_car_id"": 2,
""walking_distance"": 554
},
{
""charger_id"": ""F1"",
""resident_car_id"": 3,
""walking_distance"": 414
},
{
""charger_id"": ""F1"",
""resident_car_id"": 4,
""walking_distance"": 965
},
{
""charger_id"": ""F1"",
""resident_car_id"": 5,
""walking_distance"": 480
},
{
""charger_id"": ""F1"",
""resident_car_id"": 6,
""walking_distance"": 120
},
{
""charger_id"": ""F1"",
""resident_car_id"": 7,
""walking_distance"": 523
},
{
""charger_id"": ""F1"",
""resident_car_id"": 8,
""walking_distance"": 296
},
{
""charger_id"": ""F2"",
""resident_car_id"": 0,
""walking_distance"": 380
},
{
""charger_id"": ""F2"",
""resident_car_id"": 1,
""walking_distance"": 61
},
{
""charger_id"": ""F2"",
""resident_car_id"": 2,
""walking_distance"": 28
},
{
""charger_id"": ""F2"",
""resident_car_id"": 3,
""walking_distance"": 762
},
{
""charger_id"": ""F2"",
""resident_car_id"": 4,
""walking_distance"": 355
},
{
""charger_id"": ""F2"",
""resident_car_id"": 5,
""walking_distance"": 991
},
{
""charger_id"": ""F2"",
""resident_car_id"": 6,
""walking_distance"": 826
},
{
""charger_id"": ""F2"",
""resident_car_id"": 7,
""walking_distance"": 439
},
{
""charger_id"": ""F2"",
""resident_car_id"": 8,
""walking_distance"": 388
},
{
""charger_id"": ""F3"",
""resident_car_id"": 0,
""walking_distance"": 129
},
{
""charger_id"": ""F3"",
""resident_car_id"": 1,
""walking_distance"": 653
},
{
""charger_id"": ""F3"",
""resident_car_id"": 2,
""walking_distance"": 451
},
{
""charger_id"": ""F3"",
""resident_car_id"": 3,
""walking_distance"": 76
},
{
""charger_id"": ""F3"",
""resident_car_id"": 4,
""walking_distance"": 733
},
{
""charger_id"": ""F3"",
""resident_car_id"": 5,
""walking_distance"": 817
},
{
""charger_id"": ""F3"",
""resident_car_id"": 6,
""walking_distance"": 260
},
{
""charger_id"": ""F3"",
""resident_car_id"": 7,
""walking_distance"": 127
},
{
""charger_id"": ""F3"",
""resident_car_id"": 8,
""walking_distance"": 662
},
{
""charger_id"": ""F4"",
""resident_car_id"": 0,
""walking_distance"": 976
},
{
""charger_id"": ""F4"",
""resident_car_id"": 1,
""walking_distance"": 901
},
{
""charger_id"": ""F4"",
""resident_car_id"": 2,
""walking_distance"": 354
},
{
""charger_id"": ""F4"",
""resident_car_id"": 3,
""walking_distance"": 418
},
{
""charger_id"": ""F4"",
""resident_car_id"": 4,
""walking_distance"": 647
},
{
""charger_id"": ""F4"",
""resident_car_id"": 5,
""walking_distance"": 280
},
{
""charger_id"": ""F4"",
""resident_car_id"": 6,
""walking_distance"": 979
},
{
""charger_id"": ""F4"",
""resident_car_id"": 7,
""walking_distance"": 403
},
{
""charger_id"": ""F4"",
""resident_car_id"": 8,
""walking_distance"": 739
}
]
}
When you reply with a plan, please use this simple JSON layout so I can parse it easily:
{
""solution"": {
""selected"": [<charger_site_to_open>, <charger_site_to_open>, ...],
""assignments"": [<assigned_charger_site>, <assigned_charger_site>, ...]
}
}
""selected"" is where you list the charger locations you want to install. ""assignments"" is a list with one entry per resident showing which installed charger theyβll use. Think of it like filling out a form: which chargers are installed, and for each resident, which charger they get. This is just the shape I need β not the final answer.
Please use the exact identifiers from the instance input β donβt rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [2000, 2000, 2000, 2000], 'connection_costs': [[822, 913, 554, 414, 965, 480, 120, 523, 296], [380, 61, 28, 762, 355, 991, 826, 439, 388], [129, 653, 451, 76, 733, 817, 260, 127, 662], [976, 901, 354, 418, 647, 280, 979, 403, 739]], 'objective': 5908.0}","{'open_facilities': [2], 'assignments': [2, 2, 2, 2, 2, 2, 2, 2, 2]}",5908.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 9, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 822}, {'facility': 'F1', 'customer': 1, 'cost': 913}, {'facility': 'F1', 'customer': 2, 'cost': 554}, {'facility': 'F1', 'customer': 3, 'cost': 414}, {'facility': 'F1', 'customer': 4, 'cost': 965}, {'facility': 'F1', 'customer': 5, 'cost': 480}, {'facility': 'F1', 'customer': 6, 'cost': 120}, {'facility': 'F1', 'customer': 7, 'cost': 523}, {'facility': 'F1', 'customer': 8, 'cost': 296}, {'facility': 'F2', 'customer': 0, 'cost': 380}, {'facility': 'F2', 'customer': 1, 'cost': 61}, {'facility': 'F2', 'customer': 2, 'cost': 28}, {'facility': 'F2', 'customer': 3, 'cost': 762}, {'facility': 'F2', 'customer': 4, 'cost': 355}, {'facility': 'F2', 'customer': 5, 'cost': 991}, {'facility': 'F2', 'customer': 6, 'cost': 826}, {'facility': 'F2', 'customer': 7, 'cost': 439}, {'facility': 'F2', 'customer': 8, 'cost': 388}, {'facility': 'F3', 'customer': 0, 'cost': 129}, {'facility': 'F3', 'customer': 1, 'cost': 653}, {'facility': 'F3', 'customer': 2, 'cost': 451}, {'facility': 'F3', 'customer': 3, 'cost': 76}, {'facility': 'F3', 'customer': 4, 'cost': 733}, {'facility': 'F3', 'customer': 5, 'cost': 817}, {'facility': 'F3', 'customer': 6, 'cost': 260}, {'facility': 'F3', 'customer': 7, 'cost': 127}, {'facility': 'F3', 'customer': 8, 'cost': 662}, {'facility': 'F4', 'customer': 0, 'cost': 976}, {'facility': 'F4', 'customer': 1, 'cost': 901}, {'facility': 'F4', 'customer': 2, 'cost': 354}, {'facility': 'F4', 'customer': 3, 'cost': 418}, {'facility': 'F4', 'customer': 4, 'cost': 647}, {'facility': 'F4', 'customer': 5, 'cost': 280}, {'facility': 'F4', 'customer': 6, 'cost': 979}, {'facility': 'F4', 'customer': 7, 'cost': 403}, {'facility': 'F4', 'customer': 8, 'cost': 739}], 'objective': 5908.0}","{'selected': ['F3'], 'assignments': ['F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3']}",3,json,0
UFLP,UFLP,"Many people browse the clothing tents at the market, and the organizer needs to pick which pop-up stalls to pay for and then route every shopper to one of the paid stalls. Each stall carries a rent, and each shopperβs walk to their stall carries a travel cost, so the best setup is the one with the lowest total: add the rents for all the stalls that are booked and the travel cost for every shopper to reach their single assigned stall. Each shopper must be matched to exactly one rented stall, and shoppers are only allowed to go to stalls that were actually rented. The concrete details about stalls, prices, and shoppers appear below.
# num_candidate_stalls=3
# num_shoppers=9
# STALLS
stall_id,stall_rent
F1,3813
F2,4989
F3,5364
# SHOPPERS
shopper_id
0
1
2
3
4
5
6
7
8
# SHOPPER_WALKS
stall_id,shopper_id,shopper_walk_cost
F1,0,299
F1,1,309
F1,2,543
F1,3,353
F1,4,808
F1,5,3
F1,6,458
F1,7,256
F1,8,946
F2,0,819
F2,1,615
F2,2,306
F2,3,628
F2,4,521
F2,5,202
F2,6,677
F2,7,70
F2,8,509
F3,0,792
F3,1,575
F3,2,709
F3,3,380
F3,4,584
F3,5,85
F3,6,259
F3,7,832
F3,8,976
Also, when you hand back the final plan, please use this JSON layout so it's easy to read and check:
{
""solution"": {
""selected"": [<stall_to_rent>, <stall_to_rent>, ...],
""assignments"": [<chosen_rented_stall>, <chosen_rented_stall>, ...]
}
}
Pretty simple: ""selected"" is the list of stalls you decide to rent, and ""assignments"" lists, in the same order as the shoppers appear in the instance, which rented stall each shopper goes to. Think of it as a short form: which stalls are paid for, and then one chosen stall per shopper.
This JSON is just a sketch of the shape I expect, not the actual solution. All identifiers you use must match the instance exactly β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".""","{'opening_costs': [3813, 4989, 5364], 'connection_costs': [[299, 309, 543, 353, 808, 3, 458, 256, 946], [819, 615, 306, 628, 521, 202, 677, 70, 509], [792, 575, 709, 380, 584, 85, 259, 832, 976]], 'objective': 7788.0}","{'open_facilities': [0], 'assignments': [0, 0, 0, 0, 0, 0, 0, 0, 0]}",7788.0,"{'problem_type': 'UFLP', 'num_facilities': 3, 'num_customers': 9, 'facilities': [{'id': 'F1', 'opening_cost': 3813}, {'id': 'F2', 'opening_cost': 4989}, {'id': 'F3', 'opening_cost': 5364}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 299}, {'facility': 'F1', 'customer': 1, 'cost': 309}, {'facility': 'F1', 'customer': 2, 'cost': 543}, {'facility': 'F1', 'customer': 3, 'cost': 353}, {'facility': 'F1', 'customer': 4, 'cost': 808}, {'facility': 'F1', 'customer': 5, 'cost': 3}, {'facility': 'F1', 'customer': 6, 'cost': 458}, {'facility': 'F1', 'customer': 7, 'cost': 256}, {'facility': 'F1', 'customer': 8, 'cost': 946}, {'facility': 'F2', 'customer': 0, 'cost': 819}, {'facility': 'F2', 'customer': 1, 'cost': 615}, {'facility': 'F2', 'customer': 2, 'cost': 306}, {'facility': 'F2', 'customer': 3, 'cost': 628}, {'facility': 'F2', 'customer': 4, 'cost': 521}, {'facility': 'F2', 'customer': 5, 'cost': 202}, {'facility': 'F2', 'customer': 6, 'cost': 677}, {'facility': 'F2', 'customer': 7, 'cost': 70}, {'facility': 'F2', 'customer': 8, 'cost': 509}, {'facility': 'F3', 'customer': 0, 'cost': 792}, {'facility': 'F3', 'customer': 1, 'cost': 575}, {'facility': 'F3', 'customer': 2, 'cost': 709}, {'facility': 'F3', 'customer': 3, 'cost': 380}, {'facility': 'F3', 'customer': 4, 'cost': 584}, {'facility': 'F3', 'customer': 5, 'cost': 85}, {'facility': 'F3', 'customer': 6, 'cost': 259}, {'facility': 'F3', 'customer': 7, 'cost': 832}, {'facility': 'F3', 'customer': 8, 'cost': 976}], 'objective': 7788.0}","{'selected': ['F1'], 'assignments': ['F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1']}",4,csv,0
UFLP,UFLP,"Recently the neighborhood board brought up which community tool sheds to keep maintained and how to assign homes to them. The job is to choose some sheds to pay for and then register each household with a single kept shed β households can only access sheds on that maintained list. To pick the best arrangement, you add the maintenance costs for the kept sheds and the travel cost for each household to reach its assigned shed; the arrangement with the lowest total of those added costs is preferred. No home can be left out or listed twice. The detailed costs and household distances are provided below.
# total_candidate_sheds=6
# total_households=14
# SHEDS
shed_id,maintenance_cost
F1,2000
F2,2000
F3,2000
F4,2000
F5,2000
F6,2000
# HOUSEHOLDS
household_id
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# HOUSEHOLD_TRAVELS
shed_id,household_id,household_travel_cost
F1,1,242
F1,2,954
F1,3,724
F1,4,467
F1,5,691
F1,6,774
F1,7,490
F1,8,475
F1,9,432
F1,10,714
F1,11,547
F1,12,661
F1,13,519
F1,14,237
F2,1,992
F2,2,959
F2,3,294
F2,4,323
F2,5,828
F2,6,449
F2,7,765
F2,8,883
F2,9,985
F2,10,704
F2,11,363
F2,12,965
F2,13,191
F2,14,218
F3,1,28
F3,2,406
F3,3,536
F3,4,572
F3,5,269
F3,6,107
F3,7,106
F3,8,191
F3,9,377
F3,10,307
F3,11,472
F3,12,133
F3,13,943
F3,14,457
F4,1,127
F4,2,532
F4,3,879
F4,4,699
F4,5,423
F4,6,743
F4,7,138
F4,8,596
F4,9,661
F4,10,492
F4,11,566
F4,12,248
F4,13,647
F4,14,445
F5,1,599
F5,2,179
F5,3,730
F5,4,445
F5,5,768
F5,6,958
F5,7,287
F5,8,996
F5,9,360
F5,10,465
F5,11,40
F5,12,73
F5,13,823
F5,14,857
F6,1,650
F6,2,575
F6,3,557
F6,4,574
F6,5,740
F6,6,389
F6,7,357
F6,8,766
F6,9,328
F6,10,460
F6,11,424
F6,12,424
F6,13,153
F6,14,470
Also, when you send the actual solution back, just stick to a small JSON shape so it's easy to check. Something casual like this will do:
{
""solution"": {
""selected"": [<shed_to_keep>, <shed_to_keep>, ...],
""assignments"": [<assigned_shed>, <assigned_shed>, ...]
}
}
Here ""selected"" is the list of shed locations you choose to keep (their IDs), and ""assignments"" lists, for each household in the same order as the input, which kept shed they're signed up to. Think of it like filling out a simple form β which sheds are kept and where each house is registered. This JSON is just the sketch of the shape I expect, not the filled-in answer.
Please use the exact identifiers from the instance input β do not rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [2000, 2000, 2000, 2000, 2000, 2000], 'connection_costs': [[242, 954, 724, 467, 691, 774, 490, 475, 432, 714, 547, 661, 519, 237], [992, 959, 294, 323, 828, 449, 765, 883, 985, 704, 363, 965, 191, 218], [28, 406, 536, 572, 269, 107, 106, 191, 377, 307, 472, 133, 943, 457], [127, 532, 879, 699, 423, 743, 138, 596, 661, 492, 566, 248, 647, 445], [599, 179, 730, 445, 768, 958, 287, 996, 360, 465, 40, 73, 823, 857], [650, 575, 557, 574, 740, 389, 357, 766, 328, 460, 424, 424, 153, 470]], 'objective': 6904.0}","{'open_facilities': [2], 'assignments': [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]}",6904.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 14, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}, {'id': 'F6', 'opening_cost': 2000}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}, {'id': 12}, {'id': 13}, {'id': 14}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 242}, {'facility': 'F1', 'customer': 2, 'cost': 954}, {'facility': 'F1', 'customer': 3, 'cost': 724}, {'facility': 'F1', 'customer': 4, 'cost': 467}, {'facility': 'F1', 'customer': 5, 'cost': 691}, {'facility': 'F1', 'customer': 6, 'cost': 774}, {'facility': 'F1', 'customer': 7, 'cost': 490}, {'facility': 'F1', 'customer': 8, 'cost': 475}, {'facility': 'F1', 'customer': 9, 'cost': 432}, {'facility': 'F1', 'customer': 10, 'cost': 714}, {'facility': 'F1', 'customer': 11, 'cost': 547}, {'facility': 'F1', 'customer': 12, 'cost': 661}, {'facility': 'F1', 'customer': 13, 'cost': 519}, {'facility': 'F1', 'customer': 14, 'cost': 237}, {'facility': 'F2', 'customer': 1, 'cost': 992}, {'facility': 'F2', 'customer': 2, 'cost': 959}, {'facility': 'F2', 'customer': 3, 'cost': 294}, {'facility': 'F2', 'customer': 4, 'cost': 323}, {'facility': 'F2', 'customer': 5, 'cost': 828}, {'facility': 'F2', 'customer': 6, 'cost': 449}, {'facility': 'F2', 'customer': 7, 'cost': 765}, {'facility': 'F2', 'customer': 8, 'cost': 883}, {'facility': 'F2', 'customer': 9, 'cost': 985}, {'facility': 'F2', 'customer': 10, 'cost': 704}, {'facility': 'F2', 'customer': 11, 'cost': 363}, {'facility': 'F2', 'customer': 12, 'cost': 965}, {'facility': 'F2', 'customer': 13, 'cost': 191}, {'facility': 'F2', 'customer': 14, 'cost': 218}, {'facility': 'F3', 'customer': 1, 'cost': 28}, {'facility': 'F3', 'customer': 2, 'cost': 406}, {'facility': 'F3', 'customer': 3, 'cost': 536}, {'facility': 'F3', 'customer': 4, 'cost': 572}, {'facility': 'F3', 'customer': 5, 'cost': 269}, {'facility': 'F3', 'customer': 6, 'cost': 107}, {'facility': 'F3', 'customer': 7, 'cost': 106}, {'facility': 'F3', 'customer': 8, 'cost': 191}, {'facility': 'F3', 'customer': 9, 'cost': 377}, {'facility': 'F3', 'customer': 10, 'cost': 307}, {'facility': 'F3', 'customer': 11, 'cost': 472}, {'facility': 'F3', 'customer': 12, 'cost': 133}, {'facility': 'F3', 'customer': 13, 'cost': 943}, {'facility': 'F3', 'customer': 14, 'cost': 457}, {'facility': 'F4', 'customer': 1, 'cost': 127}, {'facility': 'F4', 'customer': 2, 'cost': 532}, {'facility': 'F4', 'customer': 3, 'cost': 879}, {'facility': 'F4', 'customer': 4, 'cost': 699}, {'facility': 'F4', 'customer': 5, 'cost': 423}, {'facility': 'F4', 'customer': 6, 'cost': 743}, {'facility': 'F4', 'customer': 7, 'cost': 138}, {'facility': 'F4', 'customer': 8, 'cost': 596}, {'facility': 'F4', 'customer': 9, 'cost': 661}, {'facility': 'F4', 'customer': 10, 'cost': 492}, {'facility': 'F4', 'customer': 11, 'cost': 566}, {'facility': 'F4', 'customer': 12, 'cost': 248}, {'facility': 'F4', 'customer': 13, 'cost': 647}, {'facility': 'F4', 'customer': 14, 'cost': 445}, {'facility': 'F5', 'customer': 1, 'cost': 599}, {'facility': 'F5', 'customer': 2, 'cost': 179}, {'facility': 'F5', 'customer': 3, 'cost': 730}, {'facility': 'F5', 'customer': 4, 'cost': 445}, {'facility': 'F5', 'customer': 5, 'cost': 768}, {'facility': 'F5', 'customer': 6, 'cost': 958}, {'facility': 'F5', 'customer': 7, 'cost': 287}, {'facility': 'F5', 'customer': 8, 'cost': 996}, {'facility': 'F5', 'customer': 9, 'cost': 360}, {'facility': 'F5', 'customer': 10, 'cost': 465}, {'facility': 'F5', 'customer': 11, 'cost': 40}, {'facility': 'F5', 'customer': 12, 'cost': 73}, {'facility': 'F5', 'customer': 13, 'cost': 823}, {'facility': 'F5', 'customer': 14, 'cost': 857}, {'facility': 'F6', 'customer': 1, 'cost': 650}, {'facility': 'F6', 'customer': 2, 'cost': 575}, {'facility': 'F6', 'customer': 3, 'cost': 557}, {'facility': 'F6', 'customer': 4, 'cost': 574}, {'facility': 'F6', 'customer': 5, 'cost': 740}, {'facility': 'F6', 'customer': 6, 'cost': 389}, {'facility': 'F6', 'customer': 7, 'cost': 357}, {'facility': 'F6', 'customer': 8, 'cost': 766}, {'facility': 'F6', 'customer': 9, 'cost': 328}, {'facility': 'F6', 'customer': 10, 'cost': 460}, {'facility': 'F6', 'customer': 11, 'cost': 424}, {'facility': 'F6', 'customer': 12, 'cost': 424}, {'facility': 'F6', 'customer': 13, 'cost': 153}, {'facility': 'F6', 'customer': 14, 'cost': 470}], 'objective': 6904.0}","{'selected': ['F3'], 'assignments': ['F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3']}",5,csv,1
UFLP,UFLP,"Back when the shop was deciding routes for the month, the owner had to choose which mobile grooming vans to deploy and who would service each client. The constraint was clear: each appointment must be covered by exactly one van that was actually sent out β no appointment left out, no appointment served twice, and no assigning to vans that werenβt deployed. A smarter schedule is simply the cheaper one overall: add together the deployment charges for the vans chosen and the travel costs for every appointment, and keep that combined amount as low as possible. The detailed van information and appointments are shown below.
There were 5 candidate vans, 13 appointments, and deployment costs 1000, 1000, 1000, 1000, 1000.
Van F1 had a deployment cost of 1000.
Van F2 had a deployment cost of 1000.
Van F3 had a deployment cost of 1000.
Van F4 had a deployment cost of 1000.
Van F5 had a deployment cost of 1000.
Van F1 serving appointment 1 had travel cost 296.
Van F1 serving appointment 2 had travel cost 926.
Van F1 serving appointment 3 had travel cost 877.
Van F1 serving appointment 4 had travel cost 848.
Van F1 serving appointment 5 had travel cost 706.
Van F1 serving appointment 6 had travel cost 666.
Van F1 serving appointment 7 had travel cost 807.
Van F1 serving appointment 8 had travel cost 946.
Van F1 serving appointment 9 had travel cost 603.
Van F1 serving appointment 10 had travel cost 802.
Van F1 serving appointment 11 had travel cost 608.
Van F1 serving appointment 12 had travel cost 341.
Van F1 serving appointment 13 had travel cost 133.
Van F2 serving appointment 1 had travel cost 780.
Van F2 serving appointment 2 had travel cost 390.
Van F2 serving appointment 3 had travel cost 637.
Van F2 serving appointment 4 had travel cost 421.
Van F2 serving appointment 5 had travel cost 773.
Van F2 serving appointment 6 had travel cost 995.
Van F2 serving appointment 7 had travel cost 850.
Van F2 serving appointment 8 had travel cost 212.
Van F2 serving appointment 9 had travel cost 727.
Van F2 serving appointment 10 had travel cost 320.
Van F2 serving appointment 11 had travel cost 182.
Van F2 serving appointment 12 had travel cost 746.
Van F2 serving appointment 13 had travel cost 18.
Van F3 serving appointment 1 had travel cost 921.
Van F3 serving appointment 2 had travel cost 650.
Van F3 serving appointment 3 had travel cost 22.
Van F3 serving appointment 4 had travel cost 324.
Van F3 serving appointment 5 had travel cost 252.
Van F3 serving appointment 6 had travel cost 812.
Van F3 serving appointment 7 had travel cost 964.
Van F3 serving appointment 8 had travel cost 214.
Van F3 serving appointment 9 had travel cost 71.
Van F3 serving appointment 10 had travel cost 587.
Van F3 serving appointment 11 had travel cost 474.
Van F3 serving appointment 12 had travel cost 118.
Van F3 serving appointment 13 had travel cost 858.
Van F4 serving appointment 1 had travel cost 56.
Van F4 serving appointment 2 had travel cost 407.
Van F4 serving appointment 3 had travel cost 220.
Van F4 serving appointment 4 had travel cost 672.
Van F4 serving appointment 5 had travel cost 948.
Van F4 serving appointment 6 had travel cost 130.
Van F4 serving appointment 7 had travel cost 240.
Van F4 serving appointment 8 had travel cost 606.
Van F4 serving appointment 9 had travel cost 501.
Van F4 serving appointment 10 had travel cost 101.
Van F4 serving appointment 11 had travel cost 975.
Van F4 serving appointment 12 had travel cost 198.
Van F4 serving appointment 13 had travel cost 174.
Van F5 serving appointment 1 had travel cost 279.
Van F5 serving appointment 2 had travel cost 866.
Van F5 serving appointment 3 had travel cost 126.
Van F5 serving appointment 4 had travel cost 881.
Van F5 serving appointment 5 had travel cost 959.
Van F5 serving appointment 6 had travel cost 468.
Van F5 serving appointment 7 had travel cost 684.
Van F5 serving appointment 8 had travel cost 41.
Van F5 serving appointment 9 had travel cost 335.
Van F5 serving appointment 10 had travel cost 125.
Van F5 serving appointment 11 had travel cost 410.
Van F5 serving appointment 12 had travel cost 708.
Van F5 serving appointment 13 had travel cost 654.
The owner then chose vans and assignments to minimize the combined deployment and travel cost.
If you want to tell me which vans you actually sent and who each client got, please use this simple JSON layout so it's easy to read and check:
{
""solution"": {
""selected"": [<van_to_deploy>, <van_to_deploy>, ...],
""assignments"": [<van_assigned_to_customer>, <van_assigned_to_customer>, ...]
}
}
Pretty straightforward: ""selected"" is the list of vans you decide to send out, and ""assignments"" lists, in the same order as the appointments in the instance, which van handles each appointment. Think of it like filling out a form β pick the vans you deploy, then next to each client write the van that will serve them.
This JSON is just the expected shape β a sketch β not the actual solution.
Important: all identifiers must be used exactly as they appear in the instance input β no renaming and no new labels.
For example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1000, 1000, 1000, 1000, 1000], 'connection_costs': [[296, 926, 877, 848, 706, 666, 807, 946, 603, 802, 608, 341, 133], [780, 390, 637, 421, 773, 995, 850, 212, 727, 320, 182, 746, 18], [921, 650, 22, 324, 252, 812, 964, 214, 71, 587, 474, 118, 858], [56, 407, 220, 672, 948, 130, 240, 606, 501, 101, 975, 198, 174], [279, 866, 126, 881, 959, 468, 684, 41, 335, 125, 410, 708, 654]], 'objective': 4583.0}","{'open_facilities': [2, 3], 'assignments': [3, 3, 2, 2, 2, 3, 3, 2, 2, 3, 2, 2, 3]}",4583.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 13, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}, {'id': 'F5', 'opening_cost': 1000}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}, {'id': 12}, {'id': 13}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 296}, {'facility': 'F1', 'customer': 2, 'cost': 926}, {'facility': 'F1', 'customer': 3, 'cost': 877}, {'facility': 'F1', 'customer': 4, 'cost': 848}, {'facility': 'F1', 'customer': 5, 'cost': 706}, {'facility': 'F1', 'customer': 6, 'cost': 666}, {'facility': 'F1', 'customer': 7, 'cost': 807}, {'facility': 'F1', 'customer': 8, 'cost': 946}, {'facility': 'F1', 'customer': 9, 'cost': 603}, {'facility': 'F1', 'customer': 10, 'cost': 802}, {'facility': 'F1', 'customer': 11, 'cost': 608}, {'facility': 'F1', 'customer': 12, 'cost': 341}, {'facility': 'F1', 'customer': 13, 'cost': 133}, {'facility': 'F2', 'customer': 1, 'cost': 780}, {'facility': 'F2', 'customer': 2, 'cost': 390}, {'facility': 'F2', 'customer': 3, 'cost': 637}, {'facility': 'F2', 'customer': 4, 'cost': 421}, {'facility': 'F2', 'customer': 5, 'cost': 773}, {'facility': 'F2', 'customer': 6, 'cost': 995}, {'facility': 'F2', 'customer': 7, 'cost': 850}, {'facility': 'F2', 'customer': 8, 'cost': 212}, {'facility': 'F2', 'customer': 9, 'cost': 727}, {'facility': 'F2', 'customer': 10, 'cost': 320}, {'facility': 'F2', 'customer': 11, 'cost': 182}, {'facility': 'F2', 'customer': 12, 'cost': 746}, {'facility': 'F2', 'customer': 13, 'cost': 18}, {'facility': 'F3', 'customer': 1, 'cost': 921}, {'facility': 'F3', 'customer': 2, 'cost': 650}, {'facility': 'F3', 'customer': 3, 'cost': 22}, {'facility': 'F3', 'customer': 4, 'cost': 324}, {'facility': 'F3', 'customer': 5, 'cost': 252}, {'facility': 'F3', 'customer': 6, 'cost': 812}, {'facility': 'F3', 'customer': 7, 'cost': 964}, {'facility': 'F3', 'customer': 8, 'cost': 214}, {'facility': 'F3', 'customer': 9, 'cost': 71}, {'facility': 'F3', 'customer': 10, 'cost': 587}, {'facility': 'F3', 'customer': 11, 'cost': 474}, {'facility': 'F3', 'customer': 12, 'cost': 118}, {'facility': 'F3', 'customer': 13, 'cost': 858}, {'facility': 'F4', 'customer': 1, 'cost': 56}, {'facility': 'F4', 'customer': 2, 'cost': 407}, {'facility': 'F4', 'customer': 3, 'cost': 220}, {'facility': 'F4', 'customer': 4, 'cost': 672}, {'facility': 'F4', 'customer': 5, 'cost': 948}, {'facility': 'F4', 'customer': 6, 'cost': 130}, {'facility': 'F4', 'customer': 7, 'cost': 240}, {'facility': 'F4', 'customer': 8, 'cost': 606}, {'facility': 'F4', 'customer': 9, 'cost': 501}, {'facility': 'F4', 'customer': 10, 'cost': 101}, {'facility': 'F4', 'customer': 11, 'cost': 975}, {'facility': 'F4', 'customer': 12, 'cost': 198}, {'facility': 'F4', 'customer': 13, 'cost': 174}, {'facility': 'F5', 'customer': 1, 'cost': 279}, {'facility': 'F5', 'customer': 2, 'cost': 866}, {'facility': 'F5', 'customer': 3, 'cost': 126}, {'facility': 'F5', 'customer': 4, 'cost': 881}, {'facility': 'F5', 'customer': 5, 'cost': 959}, {'facility': 'F5', 'customer': 6, 'cost': 468}, {'facility': 'F5', 'customer': 7, 'cost': 684}, {'facility': 'F5', 'customer': 8, 'cost': 41}, {'facility': 'F5', 'customer': 9, 'cost': 335}, {'facility': 'F5', 'customer': 10, 'cost': 125}, {'facility': 'F5', 'customer': 11, 'cost': 410}, {'facility': 'F5', 'customer': 12, 'cost': 708}, {'facility': 'F5', 'customer': 13, 'cost': 654}], 'objective': 4583.0}","{'selected': ['F3', 'F4'], 'assignments': ['F4', 'F4', 'F3', 'F3', 'F3', 'F4', 'F4', 'F3', 'F3', 'F4', 'F3', 'F3', 'F4']}",6,nl,1
UFLP,UFLP,"Many people on the planning team are working through a straightforward trade-off: open more pickup hubs (which costs money) or have customers travel farther (which raises travel bills). The task is to choose which hubs to open and register each customer to a single opened hub so that when you add together the hub opening charges and all customer travel costs the total is as small as it can be. Every customer must be assigned to exactly one hub thatβs been opened, and customers canβt use hubs that remain closed. The specific options and numbers are shown below.
There are 6 hubs and 13 customers in this instance.
**Hubs**
| hub_id | hub_opening_fee |
|---|---|
| F1 | 6721 |
| F2 | 9459 |
| F3 | 9823 |
| F4 | 6765 |
| F5 | 1198 |
| F6 | 3977 |
**Customers**
| customer_id |
|---|
| A |
| B |
| C |
| D |
| E |
| F |
| G |
| H |
| I |
| J |
| K |
| L |
| M |
**Travel Cost To Hub**
| hub_id | customer_id | travel_cost_to_hub |
|---|---|---|
| F1 | A | 602 |
| F1 | B | 683 |
| F1 | C | 265 |
| F1 | D | 350 |
| F1 | E | 846 |
| F1 | F | 931 |
| F1 | G | 149 |
| F1 | H | 118 |
| F1 | I | 302 |
| F1 | J | 644 |
| F1 | K | 570 |
| F1 | L | 163 |
| F1 | M | 642 |
| F2 | A | 297 |
| F2 | B | 339 |
| F2 | C | 744 |
| F2 | D | 486 |
| F2 | E | 285 |
| F2 | F | 492 |
| F2 | G | 942 |
| F2 | H | 133 |
| F2 | I | 334 |
| F2 | J | 850 |
| F2 | K | 852 |
| F2 | L | 353 |
| F2 | M | 51 |
| F3 | A | 3 |
| F3 | B | 991 |
| F3 | C | 759 |
| F3 | D | 949 |
| F3 | E | 755 |
| F3 | F | 827 |
| F3 | G | 624 |
| F3 | H | 304 |
| F3 | I | 487 |
| F3 | J | 144 |
| F3 | K | 151 |
| F3 | L | 555 |
| F3 | M | 928 |
| F4 | A | 884 |
| F4 | B | 749 |
| F4 | C | 861 |
| F4 | D | 875 |
| F4 | E | 972 |
| F4 | F | 974 |
| F4 | G | 440 |
| F4 | H | 334 |
| F4 | I | 193 |
| F4 | J | 425 |
| F4 | K | 277 |
| F4 | L | 834 |
| F4 | M | 851 |
| F5 | A | 179 |
| F5 | B | 407 |
| F5 | C | 50 |
| F5 | D | 464 |
| F5 | E | 263 |
| F5 | F | 339 |
| F5 | G | 961 |
| F5 | H | 379 |
| F5 | I | 449 |
| F5 | J | 139 |
| F5 | K | 515 |
| F5 | L | 665 |
| F5 | M | 773 |
| F6 | A | 252 |
| F6 | B | 159 |
| F6 | C | 6 |
| F6 | D | 635 |
| F6 | E | 492 |
| F6 | F | 520 |
| F6 | G | 661 |
| F6 | H | 688 |
| F6 | I | 498 |
| F6 | J | 734 |
| F6 | K | 385 |
| F6 | L | 262 |
| F6 | M | 271 |
Just so we're on the same page about how I want the answer formatted, please use this simple JSON shape when you send the solution β it makes it easy to read and plug into the rest of the workflow.
{
""solution"": {
""selected"": [<hub_to_open>, <hub_to_open>, ...],
""assignments"": [<chosen_open_hub>, <chosen_open_hub>, ...]
}
}
Think of it like a little form: ""selected"" is the list of hubs you choose to open, and ""assignments"" is the list that says, for each customer (in the same order as the input), which opened hub they will use. This is just the shape I expect β fill in the actual identifiers from the instance when you produce the final answer.
Please use the exact identifiers from the instance input β don't rename them or invent new labels.
- for example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [6721, 9459, 9823, 6765, 1198, 3977], 'connection_costs': [[602, 683, 265, 350, 846, 931, 149, 118, 302, 644, 570, 163, 642], [297, 339, 744, 486, 285, 492, 942, 133, 334, 850, 852, 353, 51], [3, 991, 759, 949, 755, 827, 624, 304, 487, 144, 151, 555, 928], [884, 749, 861, 875, 972, 974, 440, 334, 193, 425, 277, 834, 851], [179, 407, 50, 464, 263, 339, 961, 379, 449, 139, 515, 665, 773], [252, 159, 6, 635, 492, 520, 661, 688, 498, 734, 385, 262, 271]], 'objective': 6781.0}","{'open_facilities': [4], 'assignments': [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]}",6781.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 13, 'facilities': [{'id': 'F1', 'opening_cost': 6721}, {'id': 'F2', 'opening_cost': 9459}, {'id': 'F3', 'opening_cost': 9823}, {'id': 'F4', 'opening_cost': 6765}, {'id': 'F5', 'opening_cost': 1198}, {'id': 'F6', 'opening_cost': 3977}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}, {'id': 'L'}, {'id': 'M'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 602}, {'facility': 'F1', 'customer': 'B', 'cost': 683}, {'facility': 'F1', 'customer': 'C', 'cost': 265}, {'facility': 'F1', 'customer': 'D', 'cost': 350}, {'facility': 'F1', 'customer': 'E', 'cost': 846}, {'facility': 'F1', 'customer': 'F', 'cost': 931}, {'facility': 'F1', 'customer': 'G', 'cost': 149}, {'facility': 'F1', 'customer': 'H', 'cost': 118}, {'facility': 'F1', 'customer': 'I', 'cost': 302}, {'facility': 'F1', 'customer': 'J', 'cost': 644}, {'facility': 'F1', 'customer': 'K', 'cost': 570}, {'facility': 'F1', 'customer': 'L', 'cost': 163}, {'facility': 'F1', 'customer': 'M', 'cost': 642}, {'facility': 'F2', 'customer': 'A', 'cost': 297}, {'facility': 'F2', 'customer': 'B', 'cost': 339}, {'facility': 'F2', 'customer': 'C', 'cost': 744}, {'facility': 'F2', 'customer': 'D', 'cost': 486}, {'facility': 'F2', 'customer': 'E', 'cost': 285}, {'facility': 'F2', 'customer': 'F', 'cost': 492}, {'facility': 'F2', 'customer': 'G', 'cost': 942}, {'facility': 'F2', 'customer': 'H', 'cost': 133}, {'facility': 'F2', 'customer': 'I', 'cost': 334}, {'facility': 'F2', 'customer': 'J', 'cost': 850}, {'facility': 'F2', 'customer': 'K', 'cost': 852}, {'facility': 'F2', 'customer': 'L', 'cost': 353}, {'facility': 'F2', 'customer': 'M', 'cost': 51}, {'facility': 'F3', 'customer': 'A', 'cost': 3}, {'facility': 'F3', 'customer': 'B', 'cost': 991}, {'facility': 'F3', 'customer': 'C', 'cost': 759}, {'facility': 'F3', 'customer': 'D', 'cost': 949}, {'facility': 'F3', 'customer': 'E', 'cost': 755}, {'facility': 'F3', 'customer': 'F', 'cost': 827}, {'facility': 'F3', 'customer': 'G', 'cost': 624}, {'facility': 'F3', 'customer': 'H', 'cost': 304}, {'facility': 'F3', 'customer': 'I', 'cost': 487}, {'facility': 'F3', 'customer': 'J', 'cost': 144}, {'facility': 'F3', 'customer': 'K', 'cost': 151}, {'facility': 'F3', 'customer': 'L', 'cost': 555}, {'facility': 'F3', 'customer': 'M', 'cost': 928}, {'facility': 'F4', 'customer': 'A', 'cost': 884}, {'facility': 'F4', 'customer': 'B', 'cost': 749}, {'facility': 'F4', 'customer': 'C', 'cost': 861}, {'facility': 'F4', 'customer': 'D', 'cost': 875}, {'facility': 'F4', 'customer': 'E', 'cost': 972}, {'facility': 'F4', 'customer': 'F', 'cost': 974}, {'facility': 'F4', 'customer': 'G', 'cost': 440}, {'facility': 'F4', 'customer': 'H', 'cost': 334}, {'facility': 'F4', 'customer': 'I', 'cost': 193}, {'facility': 'F4', 'customer': 'J', 'cost': 425}, {'facility': 'F4', 'customer': 'K', 'cost': 277}, {'facility': 'F4', 'customer': 'L', 'cost': 834}, {'facility': 'F4', 'customer': 'M', 'cost': 851}, {'facility': 'F5', 'customer': 'A', 'cost': 179}, {'facility': 'F5', 'customer': 'B', 'cost': 407}, {'facility': 'F5', 'customer': 'C', 'cost': 50}, {'facility': 'F5', 'customer': 'D', 'cost': 464}, {'facility': 'F5', 'customer': 'E', 'cost': 263}, {'facility': 'F5', 'customer': 'F', 'cost': 339}, {'facility': 'F5', 'customer': 'G', 'cost': 961}, {'facility': 'F5', 'customer': 'H', 'cost': 379}, {'facility': 'F5', 'customer': 'I', 'cost': 449}, {'facility': 'F5', 'customer': 'J', 'cost': 139}, {'facility': 'F5', 'customer': 'K', 'cost': 515}, {'facility': 'F5', 'customer': 'L', 'cost': 665}, {'facility': 'F5', 'customer': 'M', 'cost': 773}, {'facility': 'F6', 'customer': 'A', 'cost': 252}, {'facility': 'F6', 'customer': 'B', 'cost': 159}, {'facility': 'F6', 'customer': 'C', 'cost': 6}, {'facility': 'F6', 'customer': 'D', 'cost': 635}, {'facility': 'F6', 'customer': 'E', 'cost': 492}, {'facility': 'F6', 'customer': 'F', 'cost': 520}, {'facility': 'F6', 'customer': 'G', 'cost': 661}, {'facility': 'F6', 'customer': 'H', 'cost': 688}, {'facility': 'F6', 'customer': 'I', 'cost': 498}, {'facility': 'F6', 'customer': 'J', 'cost': 734}, {'facility': 'F6', 'customer': 'K', 'cost': 385}, {'facility': 'F6', 'customer': 'L', 'cost': 262}, {'facility': 'F6', 'customer': 'M', 'cost': 271}], 'objective': 6781.0}","{'selected': ['F5'], 'assignments': ['F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5']}",7,markdown_table,names
UFLP,UFLP,"Iβm the one putting together the community garden plan this season: pick which plots to get ready and then place every interested family into exactly one of those prepared plots. Only plots that are prepared can take families, and a plot can host any number of families. The goal is to keep the total bill down β add up the setup cost for each plot thatβs prepared plus the travel cost for every family to their assigned plot β and choose the combination that yields the smallest total. The exact plots, their setup costs, and the family travel numbers are listed below.
{
""num_plots"": 4,
""num_families"": 11,
""plots"": [
{
""plot_id"": ""F1"",
""plot_setup_cost"": 1000
},
{
""plot_id"": ""F2"",
""plot_setup_cost"": 1000
},
{
""plot_id"": ""F3"",
""plot_setup_cost"": 1000
},
{
""plot_id"": ""F4"",
""plot_setup_cost"": 1000
}
],
""familys"": [
{
""family_id"": 0
},
{
""family_id"": 1
},
{
""family_id"": 2
},
{
""family_id"": 3
},
{
""family_id"": 4
},
{
""family_id"": 5
},
{
""family_id"": 6
},
{
""family_id"": 7
},
{
""family_id"": 8
},
{
""family_id"": 9
},
{
""family_id"": 10
}
],
""travels"": [
{
""plot_id"": ""F1"",
""family_id"": 0,
""travel_cost"": 370
},
{
""plot_id"": ""F1"",
""family_id"": 1,
""travel_cost"": 10
},
{
""plot_id"": ""F1"",
""family_id"": 2,
""travel_cost"": 680
},
{
""plot_id"": ""F1"",
""family_id"": 3,
""travel_cost"": 775
},
{
""plot_id"": ""F1"",
""family_id"": 4,
""travel_cost"": 919
},
{
""plot_id"": ""F1"",
""family_id"": 5,
""travel_cost"": 366
},
{
""plot_id"": ""F1"",
""family_id"": 6,
""travel_cost"": 476
},
{
""plot_id"": ""F1"",
""family_id"": 7,
""travel_cost"": 472
},
{
""plot_id"": ""F1"",
""family_id"": 8,
""travel_cost"": 931
},
{
""plot_id"": ""F1"",
""family_id"": 9,
""travel_cost"": 138
},
{
""plot_id"": ""F1"",
""family_id"": 10,
""travel_cost"": 132
},
{
""plot_id"": ""F2"",
""family_id"": 0,
""travel_cost"": 542
},
{
""plot_id"": ""F2"",
""family_id"": 1,
""travel_cost"": 65
},
{
""plot_id"": ""F2"",
""family_id"": 2,
""travel_cost"": 378
},
{
""plot_id"": ""F2"",
""family_id"": 3,
""travel_cost"": 373
},
{
""plot_id"": ""F2"",
""family_id"": 4,
""travel_cost"": 640
},
{
""plot_id"": ""F2"",
""family_id"": 5,
""travel_cost"": 739
},
{
""plot_id"": ""F2"",
""family_id"": 6,
""travel_cost"": 711
},
{
""plot_id"": ""F2"",
""family_id"": 7,
""travel_cost"": 318
},
{
""plot_id"": ""F2"",
""family_id"": 8,
""travel_cost"": 607
},
{
""plot_id"": ""F2"",
""family_id"": 9,
""travel_cost"": 582
},
{
""plot_id"": ""F2"",
""family_id"": 10,
""travel_cost"": 574
},
{
""plot_id"": ""F3"",
""family_id"": 0,
""travel_cost"": 832
},
{
""plot_id"": ""F3"",
""family_id"": 1,
""travel_cost"": 251
},
{
""plot_id"": ""F3"",
""family_id"": 2,
""travel_cost"": 742
},
{
""plot_id"": ""F3"",
""family_id"": 3,
""travel_cost"": 229
},
{
""plot_id"": ""F3"",
""family_id"": 4,
""travel_cost"": 830
},
{
""plot_id"": ""F3"",
""family_id"": 5,
""travel_cost"": 240
},
{
""plot_id"": ""F3"",
""family_id"": 6,
""travel_cost"": 640
},
{
""plot_id"": ""F3"",
""family_id"": 7,
""travel_cost"": 574
},
{
""plot_id"": ""F3"",
""family_id"": 8,
""travel_cost"": 143
},
{
""plot_id"": ""F3"",
""family_id"": 9,
""travel_cost"": 444
},
{
""plot_id"": ""F3"",
""family_id"": 10,
""travel_cost"": 817
},
{
""plot_id"": ""F4"",
""family_id"": 0,
""travel_cost"": 488
},
{
""plot_id"": ""F4"",
""family_id"": 1,
""travel_cost"": 516
},
{
""plot_id"": ""F4"",
""family_id"": 2,
""travel_cost"": 878
},
{
""plot_id"": ""F4"",
""family_id"": 3,
""travel_cost"": 775
},
{
""plot_id"": ""F4"",
""family_id"": 4,
""travel_cost"": 313
},
{
""plot_id"": ""F4"",
""family_id"": 5,
""travel_cost"": 283
},
{
""plot_id"": ""F4"",
""family_id"": 6,
""travel_cost"": 216
},
{
""plot_id"": ""F4"",
""family_id"": 7,
""travel_cost"": 199
},
{
""plot_id"": ""F4"",
""family_id"": 8,
""travel_cost"": 613
},
{
""plot_id"": ""F4"",
""family_id"": 9,
""travel_cost"": 780
},
{
""plot_id"": ""F4"",
""family_id"": 10,
""travel_cost"": 401
}
]
}
You can send back the final plan in a little JSON snippet like this β just helps me parse it easily. Something in this shape will do:
{
""solution"": {
""selected"": [<plot_to_prepare>, <plot_to_prepare>, ...],
""assignments"": [<assigned_plot>, <assigned_plot>, ...]
}
}
Quick, friendly guide: ""selected"" is the list of plots you decide to get ready (those incur setup costs). ""assignments"" lists, in order, which prepared plot each family will use (so the first entry is the plot for the first family, the second for the second family, and so on). Think of this JSON as a simple form β a sketch of the shape I need, not the final numbers.
Please make sure all plot and family identifiers you put in there match the instance exactly β donβt rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1000, 1000, 1000, 1000], 'connection_costs': [[370, 10, 680, 775, 919, 366, 476, 472, 931, 138, 132], [542, 65, 378, 373, 640, 739, 711, 318, 607, 582, 574], [832, 251, 742, 229, 830, 240, 640, 574, 143, 444, 817], [488, 516, 878, 775, 313, 283, 216, 199, 613, 780, 401]], 'objective': 5666.0}","{'open_facilities': [2, 3], 'assignments': [3, 2, 2, 2, 3, 2, 3, 3, 2, 2, 3]}",5666.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 370}, {'facility': 'F1', 'customer': 1, 'cost': 10}, {'facility': 'F1', 'customer': 2, 'cost': 680}, {'facility': 'F1', 'customer': 3, 'cost': 775}, {'facility': 'F1', 'customer': 4, 'cost': 919}, {'facility': 'F1', 'customer': 5, 'cost': 366}, {'facility': 'F1', 'customer': 6, 'cost': 476}, {'facility': 'F1', 'customer': 7, 'cost': 472}, {'facility': 'F1', 'customer': 8, 'cost': 931}, {'facility': 'F1', 'customer': 9, 'cost': 138}, {'facility': 'F1', 'customer': 10, 'cost': 132}, {'facility': 'F2', 'customer': 0, 'cost': 542}, {'facility': 'F2', 'customer': 1, 'cost': 65}, {'facility': 'F2', 'customer': 2, 'cost': 378}, {'facility': 'F2', 'customer': 3, 'cost': 373}, {'facility': 'F2', 'customer': 4, 'cost': 640}, {'facility': 'F2', 'customer': 5, 'cost': 739}, {'facility': 'F2', 'customer': 6, 'cost': 711}, {'facility': 'F2', 'customer': 7, 'cost': 318}, {'facility': 'F2', 'customer': 8, 'cost': 607}, {'facility': 'F2', 'customer': 9, 'cost': 582}, {'facility': 'F2', 'customer': 10, 'cost': 574}, {'facility': 'F3', 'customer': 0, 'cost': 832}, {'facility': 'F3', 'customer': 1, 'cost': 251}, {'facility': 'F3', 'customer': 2, 'cost': 742}, {'facility': 'F3', 'customer': 3, 'cost': 229}, {'facility': 'F3', 'customer': 4, 'cost': 830}, {'facility': 'F3', 'customer': 5, 'cost': 240}, {'facility': 'F3', 'customer': 6, 'cost': 640}, {'facility': 'F3', 'customer': 7, 'cost': 574}, {'facility': 'F3', 'customer': 8, 'cost': 143}, {'facility': 'F3', 'customer': 9, 'cost': 444}, {'facility': 'F3', 'customer': 10, 'cost': 817}, {'facility': 'F4', 'customer': 0, 'cost': 488}, {'facility': 'F4', 'customer': 1, 'cost': 516}, {'facility': 'F4', 'customer': 2, 'cost': 878}, {'facility': 'F4', 'customer': 3, 'cost': 775}, {'facility': 'F4', 'customer': 4, 'cost': 313}, {'facility': 'F4', 'customer': 5, 'cost': 283}, {'facility': 'F4', 'customer': 6, 'cost': 216}, {'facility': 'F4', 'customer': 7, 'cost': 199}, {'facility': 'F4', 'customer': 8, 'cost': 613}, {'facility': 'F4', 'customer': 9, 'cost': 780}, {'facility': 'F4', 'customer': 10, 'cost': 401}], 'objective': 5666.0}","{'selected': ['F3', 'F4'], 'assignments': ['F4', 'F3', 'F3', 'F3', 'F4', 'F3', 'F4', 'F4', 'F3', 'F3', 'F4']}",8,json,0
UFLP,UFLP,"Someone on the team needs to decide which weekend sites to launch so all students have a weekend tutoring spot. Each candidate site carries a launch price, and every student will have some commute cost depending on which site they use. The choice is twofold: pick which sites to open, then put each student at exactly one of those opened sites β no skipping students and no splitting them between centers. To compare choices, add up the costs to open the chosen sites plus the commuting costs for all students to their assigned sites; the plan with the smallest total bill is preferable. Sites arenβt capacity-limited, but students may only be assigned to sites that are actually launched. The concrete details are shown below.
There are 4 centers and 11 students in this instance.
**Centers**
| center_id | launch_cost |
|---|---|
| F1 | 2000 |
| F2 | 2000 |
| F3 | 2000 |
| F4 | 2000 |
**Students**
| student_id |
|---|
| A |
| B |
| C |
| D |
| E |
| F |
| G |
| H |
| I |
| J |
| K |
**Commute Cost**
| center_id | student_id | commute_cost |
|---|---|---|
| F1 | A | 281 |
| F1 | B | 496 |
| F1 | C | 966 |
| F1 | D | 913 |
| F1 | E | 299 |
| F1 | F | 234 |
| F1 | G | 670 |
| F1 | H | 80 |
| F1 | I | 675 |
| F1 | J | 281 |
| F1 | K | 834 |
| F2 | A | 847 |
| F2 | B | 391 |
| F2 | C | 620 |
| F2 | D | 874 |
| F2 | E | 341 |
| F2 | F | 753 |
| F2 | G | 88 |
| F2 | H | 600 |
| F2 | I | 292 |
| F2 | J | 442 |
| F2 | K | 998 |
| F3 | A | 44 |
| F3 | B | 166 |
| F3 | C | 346 |
| F3 | D | 862 |
| F3 | E | 27 |
| F3 | F | 116 |
| F3 | G | 579 |
| F3 | H | 745 |
| F3 | I | 267 |
| F3 | J | 499 |
| F3 | K | 295 |
| F4 | A | 999 |
| F4 | B | 601 |
| F4 | C | 476 |
| F4 | D | 26 |
| F4 | E | 90 |
| F4 | F | 176 |
| F4 | G | 828 |
| F4 | H | 280 |
| F4 | I | 664 |
| F4 | J | 211 |
| F4 | K | 877 |
Also, when you hand back the plan, it helps if you use a simple JSON shape like this so we can read it automatically β nothing fancy, just the bits we need:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
Think of ""selected"" as the list of weekend sites you decide to launch, and ""assignments"" as, for each student (in the same order as the input), which launched site theyβll go to. This block is just a sketch of the shape I expect, not the actual answer.
Please make sure every identifier you use matches the instance input exactly β donβt rename IDs or invent new ones. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [2000, 2000, 2000, 2000], 'connection_costs': [[281, 496, 966, 913, 299, 234, 670, 80, 675, 281, 834], [847, 391, 620, 874, 341, 753, 88, 600, 292, 442, 998], [44, 166, 346, 862, 27, 116, 579, 745, 267, 499, 295], [999, 601, 476, 26, 90, 176, 828, 280, 664, 211, 877]], 'objective': 5946.0}","{'open_facilities': [2], 'assignments': [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]}",5946.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 281}, {'facility': 'F1', 'customer': 'B', 'cost': 496}, {'facility': 'F1', 'customer': 'C', 'cost': 966}, {'facility': 'F1', 'customer': 'D', 'cost': 913}, {'facility': 'F1', 'customer': 'E', 'cost': 299}, {'facility': 'F1', 'customer': 'F', 'cost': 234}, {'facility': 'F1', 'customer': 'G', 'cost': 670}, {'facility': 'F1', 'customer': 'H', 'cost': 80}, {'facility': 'F1', 'customer': 'I', 'cost': 675}, {'facility': 'F1', 'customer': 'J', 'cost': 281}, {'facility': 'F1', 'customer': 'K', 'cost': 834}, {'facility': 'F2', 'customer': 'A', 'cost': 847}, {'facility': 'F2', 'customer': 'B', 'cost': 391}, {'facility': 'F2', 'customer': 'C', 'cost': 620}, {'facility': 'F2', 'customer': 'D', 'cost': 874}, {'facility': 'F2', 'customer': 'E', 'cost': 341}, {'facility': 'F2', 'customer': 'F', 'cost': 753}, {'facility': 'F2', 'customer': 'G', 'cost': 88}, {'facility': 'F2', 'customer': 'H', 'cost': 600}, {'facility': 'F2', 'customer': 'I', 'cost': 292}, {'facility': 'F2', 'customer': 'J', 'cost': 442}, {'facility': 'F2', 'customer': 'K', 'cost': 998}, {'facility': 'F3', 'customer': 'A', 'cost': 44}, {'facility': 'F3', 'customer': 'B', 'cost': 166}, {'facility': 'F3', 'customer': 'C', 'cost': 346}, {'facility': 'F3', 'customer': 'D', 'cost': 862}, {'facility': 'F3', 'customer': 'E', 'cost': 27}, {'facility': 'F3', 'customer': 'F', 'cost': 116}, {'facility': 'F3', 'customer': 'G', 'cost': 579}, {'facility': 'F3', 'customer': 'H', 'cost': 745}, {'facility': 'F3', 'customer': 'I', 'cost': 267}, {'facility': 'F3', 'customer': 'J', 'cost': 499}, {'facility': 'F3', 'customer': 'K', 'cost': 295}, {'facility': 'F4', 'customer': 'A', 'cost': 999}, {'facility': 'F4', 'customer': 'B', 'cost': 601}, {'facility': 'F4', 'customer': 'C', 'cost': 476}, {'facility': 'F4', 'customer': 'D', 'cost': 26}, {'facility': 'F4', 'customer': 'E', 'cost': 90}, {'facility': 'F4', 'customer': 'F', 'cost': 176}, {'facility': 'F4', 'customer': 'G', 'cost': 828}, {'facility': 'F4', 'customer': 'H', 'cost': 280}, {'facility': 'F4', 'customer': 'I', 'cost': 664}, {'facility': 'F4', 'customer': 'J', 'cost': 211}, {'facility': 'F4', 'customer': 'K', 'cost': 877}], 'objective': 5946.0}","{'selected': ['F3'], 'assignments': ['F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3']}",9,markdown_table,names
UFLP,UFLP,"Our team is sketching out where to place repair kiosks along the loop: there are candidate locations and a list of riders who might stop by. The job is to pick which locations to actually install and then assign every single rider to one of those installed kiosks. A good layout minimizes the overall cost β sum up the installation costs for the kiosks that are built plus the extra miles (or cost) riders take to reach their assigned kiosk, and prefer the plan with the smallest total. Kiosks not built are off-limits, and built kiosks can serve unlimited riders. The detailed instance information is below.
# num_kiosk_locations=4
# num_riders=9
# KIOSKS
kiosk_id,installation_cost
F1,1009
F2,2688
F3,1290
F4,5752
# RIDERS
rider_id
A
B
C
D
E
F
G
H
I
# DETOUR_DISTANCE_ORS
kiosk_id,rider_id,detour_distance_or_cost
F1,A,507
F1,B,833
F1,C,596
F1,D,869
F1,E,606
F1,F,430
F1,G,418
F1,H,461
F1,I,908
F2,A,970
F2,B,886
F2,C,401
F2,D,957
F2,E,799
F2,F,799
F2,G,640
F2,H,71
F2,I,499
F3,A,228
F3,B,783
F3,C,108
F3,D,855
F3,E,41
F3,F,474
F3,G,621
F3,H,579
F3,I,448
F4,A,75
F4,B,989
F4,C,659
F4,D,53
F4,E,323
F4,F,746
F4,G,101
F4,H,872
F4,I,45
You can just send the plan back in a small JSON file like this so it's easy to check and parse.
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<assigned_site>, <assigned_site>, ...]
}
}
Think of it like a simple form: ""selected"" is the list of kiosk locations you choose to build, and ""assignments"" tells, for each rider (in the same order they were listed in the input), which opened kiosk they will use. This is just the expected shape β not the actual answer β so fill in the real IDs from the instance when you submit.
Please make sure to use the exact identifiers from the input β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1009, 2688, 1290, 5752], 'connection_costs': [[507, 833, 596, 869, 606, 430, 418, 461, 908], [970, 886, 401, 957, 799, 799, 640, 71, 499], [228, 783, 108, 855, 41, 474, 621, 579, 448], [75, 989, 659, 53, 323, 746, 101, 872, 45]], 'objective': 5427.0}","{'open_facilities': [2], 'assignments': [2, 2, 2, 2, 2, 2, 2, 2, 2]}",5427.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 9, 'facilities': [{'id': 'F1', 'opening_cost': 1009}, {'id': 'F2', 'opening_cost': 2688}, {'id': 'F3', 'opening_cost': 1290}, {'id': 'F4', 'opening_cost': 5752}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 507}, {'facility': 'F1', 'customer': 'B', 'cost': 833}, {'facility': 'F1', 'customer': 'C', 'cost': 596}, {'facility': 'F1', 'customer': 'D', 'cost': 869}, {'facility': 'F1', 'customer': 'E', 'cost': 606}, {'facility': 'F1', 'customer': 'F', 'cost': 430}, {'facility': 'F1', 'customer': 'G', 'cost': 418}, {'facility': 'F1', 'customer': 'H', 'cost': 461}, {'facility': 'F1', 'customer': 'I', 'cost': 908}, {'facility': 'F2', 'customer': 'A', 'cost': 970}, {'facility': 'F2', 'customer': 'B', 'cost': 886}, {'facility': 'F2', 'customer': 'C', 'cost': 401}, {'facility': 'F2', 'customer': 'D', 'cost': 957}, {'facility': 'F2', 'customer': 'E', 'cost': 799}, {'facility': 'F2', 'customer': 'F', 'cost': 799}, {'facility': 'F2', 'customer': 'G', 'cost': 640}, {'facility': 'F2', 'customer': 'H', 'cost': 71}, {'facility': 'F2', 'customer': 'I', 'cost': 499}, {'facility': 'F3', 'customer': 'A', 'cost': 228}, {'facility': 'F3', 'customer': 'B', 'cost': 783}, {'facility': 'F3', 'customer': 'C', 'cost': 108}, {'facility': 'F3', 'customer': 'D', 'cost': 855}, {'facility': 'F3', 'customer': 'E', 'cost': 41}, {'facility': 'F3', 'customer': 'F', 'cost': 474}, {'facility': 'F3', 'customer': 'G', 'cost': 621}, {'facility': 'F3', 'customer': 'H', 'cost': 579}, {'facility': 'F3', 'customer': 'I', 'cost': 448}, {'facility': 'F4', 'customer': 'A', 'cost': 75}, {'facility': 'F4', 'customer': 'B', 'cost': 989}, {'facility': 'F4', 'customer': 'C', 'cost': 659}, {'facility': 'F4', 'customer': 'D', 'cost': 53}, {'facility': 'F4', 'customer': 'E', 'cost': 323}, {'facility': 'F4', 'customer': 'F', 'cost': 746}, {'facility': 'F4', 'customer': 'G', 'cost': 101}, {'facility': 'F4', 'customer': 'H', 'cost': 872}, {'facility': 'F4', 'customer': 'I', 'cost': 45}], 'objective': 5427.0}","{'selected': ['F3'], 'assignments': ['F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3']}",10,csv,names
UFLP,UFLP,"Someone on the relief team has to decide which supply caches to put resources into and which stocked cache each household should use. The rule is simple: each household must be assigned to one stocked cache only, and they canβt go to caches we didnβt stock. What weβre trying to do, practically, is keep the total expense down β that total is just the stocking bills for the caches we pick plus the retrieval distance or travel cost for every household, all added together. The candidate locations, costs, and household distances are shown below.
We have 4 candidate caches, 10 households, and stocking costs 1246, 1777, 1385, 1078.
Cache F1 costs 1246 to stock.
Cache F2 costs 1777 to stock.
Cache F3 costs 1385 to stock.
Cache F4 costs 1078 to stock.
If we serve household 0 from cache F1, the travel cost is 573.
If we serve household 1 from cache F1, the travel cost is 878.
If we serve household 2 from cache F1, the travel cost is 303.
If we serve household 3 from cache F1, the travel cost is 931.
If we serve household 4 from cache F1, the travel cost is 504.
If we serve household 5 from cache F1, the travel cost is 990.
If we serve household 6 from cache F1, the travel cost is 725.
If we serve household 7 from cache F1, the travel cost is 110.
If we serve household 8 from cache F1, the travel cost is 233.
If we serve household 9 from cache F1, the travel cost is 115.
If we serve household 0 from cache F2, the travel cost is 933.
If we serve household 1 from cache F2, the travel cost is 73.
If we serve household 2 from cache F2, the travel cost is 282.
If we serve household 3 from cache F2, the travel cost is 947.
If we serve household 4 from cache F2, the travel cost is 786.
If we serve household 5 from cache F2, the travel cost is 776.
If we serve household 6 from cache F2, the travel cost is 644.
If we serve household 7 from cache F2, the travel cost is 104.
If we serve household 8 from cache F2, the travel cost is 212.
If we serve household 9 from cache F2, the travel cost is 301.
If we serve household 0 from cache F3, the travel cost is 33.
If we serve household 1 from cache F3, the travel cost is 679.
If we serve household 2 from cache F3, the travel cost is 519.
If we serve household 3 from cache F3, the travel cost is 523.
If we serve household 4 from cache F3, the travel cost is 824.
If we serve household 5 from cache F3, the travel cost is 924.
If we serve household 6 from cache F3, the travel cost is 337.
If we serve household 7 from cache F3, the travel cost is 29.
If we serve household 8 from cache F3, the travel cost is 621.
If we serve household 9 from cache F3, the travel cost is 667.
If we serve household 0 from cache F4, the travel cost is 179.
If we serve household 1 from cache F4, the travel cost is 462.
If we serve household 2 from cache F4, the travel cost is 736.
If we serve household 3 from cache F4, the travel cost is 834.
If we serve household 4 from cache F4, the travel cost is 936.
If we serve household 5 from cache F4, the travel cost is 395.
If we serve household 6 from cache F4, the travel cost is 275.
If we serve household 7 from cache F4, the travel cost is 925.
If we serve household 8 from cache F4, the travel cost is 903.
If we serve household 9 from cache F4, the travel cost is 3.
Weβll use these entries to choose which caches to stock and which stocked cache each household should use.
If you want to hand me the plan, just follow this simple JSON shape so I can read it automatically β nothing fancy, just a small form to fill in.
{
""solution"": {
""selected"": [<cache_to_stock>, <cache_to_stock>, ...],
""assignments"": [<chosen_stocked_cache>, <chosen_stocked_cache>, ...]
}
}
Think of ""selected"" as the list of caches we decide to stock, and ""assignments"" as, for each household in the same order as the input, which stocked cache they will use. Super casual: ""selected"" = which caches we put supplies into; ""assignments"" = which stocked cache each household goes to.
This JSON is just a sketch of the shape I expect in the answer β not the actual plan itself.
Please use the exact identifiers from the instance input when you fill this in β no renaming and no new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1246, 1777, 1385, 1078], 'connection_costs': [[573, 878, 303, 931, 504, 990, 725, 110, 233, 115], [933, 73, 282, 947, 786, 776, 644, 104, 212, 301], [33, 679, 519, 523, 824, 924, 337, 29, 621, 667], [179, 462, 736, 834, 936, 395, 275, 925, 903, 3]], 'objective': 5622.0}","{'open_facilities': [0, 3], 'assignments': [3, 3, 0, 3, 0, 3, 3, 0, 0, 3]}",5622.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 10, 'facilities': [{'id': 'F1', 'opening_cost': 1246}, {'id': 'F2', 'opening_cost': 1777}, {'id': 'F3', 'opening_cost': 1385}, {'id': 'F4', 'opening_cost': 1078}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 573}, {'facility': 'F1', 'customer': 1, 'cost': 878}, {'facility': 'F1', 'customer': 2, 'cost': 303}, {'facility': 'F1', 'customer': 3, 'cost': 931}, {'facility': 'F1', 'customer': 4, 'cost': 504}, {'facility': 'F1', 'customer': 5, 'cost': 990}, {'facility': 'F1', 'customer': 6, 'cost': 725}, {'facility': 'F1', 'customer': 7, 'cost': 110}, {'facility': 'F1', 'customer': 8, 'cost': 233}, {'facility': 'F1', 'customer': 9, 'cost': 115}, {'facility': 'F2', 'customer': 0, 'cost': 933}, {'facility': 'F2', 'customer': 1, 'cost': 73}, {'facility': 'F2', 'customer': 2, 'cost': 282}, {'facility': 'F2', 'customer': 3, 'cost': 947}, {'facility': 'F2', 'customer': 4, 'cost': 786}, {'facility': 'F2', 'customer': 5, 'cost': 776}, {'facility': 'F2', 'customer': 6, 'cost': 644}, {'facility': 'F2', 'customer': 7, 'cost': 104}, {'facility': 'F2', 'customer': 8, 'cost': 212}, {'facility': 'F2', 'customer': 9, 'cost': 301}, {'facility': 'F3', 'customer': 0, 'cost': 33}, {'facility': 'F3', 'customer': 1, 'cost': 679}, {'facility': 'F3', 'customer': 2, 'cost': 519}, {'facility': 'F3', 'customer': 3, 'cost': 523}, {'facility': 'F3', 'customer': 4, 'cost': 824}, {'facility': 'F3', 'customer': 5, 'cost': 924}, {'facility': 'F3', 'customer': 6, 'cost': 337}, {'facility': 'F3', 'customer': 7, 'cost': 29}, {'facility': 'F3', 'customer': 8, 'cost': 621}, {'facility': 'F3', 'customer': 9, 'cost': 667}, {'facility': 'F4', 'customer': 0, 'cost': 179}, {'facility': 'F4', 'customer': 1, 'cost': 462}, {'facility': 'F4', 'customer': 2, 'cost': 736}, {'facility': 'F4', 'customer': 3, 'cost': 834}, {'facility': 'F4', 'customer': 4, 'cost': 936}, {'facility': 'F4', 'customer': 5, 'cost': 395}, {'facility': 'F4', 'customer': 6, 'cost': 275}, {'facility': 'F4', 'customer': 7, 'cost': 925}, {'facility': 'F4', 'customer': 8, 'cost': 903}, {'facility': 'F4', 'customer': 9, 'cost': 3}], 'objective': 5622.0}","{'selected': ['F1', 'F4'], 'assignments': ['F4', 'F4', 'F1', 'F4', 'F1', 'F4', 'F4', 'F1', 'F1', 'F4']}",11,nl,0
UFLP,UFLP,"At the festival gates the problem is practical: decide which vendor stalls to lease and assign every artisan to one leased stall. Leasing a stall costs money, only leased stalls can be used, and each artisan needs a single stall (no doubles, no omissions). Festival-goers will head to a single vendor, and the final tally is the rent paid for the leased stalls plus the total walking distance of all attendees to their vendor β the task is to make that tally as small as it can be. Concrete data follows below.
There are 4 stalls and 9 attendees in this instance.
**Stalls**
| stall_id | stall_rent |
|---|---|
| F1 | 1251 |
| F2 | 1780 |
| F3 | 1764 |
| F4 | 1638 |
**Attendees**
| attendee_id |
|---|
| 0 |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
**Walking Distance Cost**
| stall_id | attendee_id | walking_distance_cost |
|---|---|---|
| F1 | 0 | 243 |
| F1 | 1 | 988 |
| F1 | 2 | 980 |
| F1 | 3 | 364 |
| F1 | 4 | 735 |
| F1 | 5 | 359 |
| F1 | 6 | 241 |
| F1 | 7 | 798 |
| F1 | 8 | 474 |
| F2 | 0 | 546 |
| F2 | 1 | 92 |
| F2 | 2 | 676 |
| F2 | 3 | 866 |
| F2 | 4 | 426 |
| F2 | 5 | 693 |
| F2 | 6 | 100 |
| F2 | 7 | 455 |
| F2 | 8 | 721 |
| F3 | 0 | 760 |
| F3 | 1 | 389 |
| F3 | 2 | 428 |
| F3 | 3 | 645 |
| F3 | 4 | 896 |
| F3 | 5 | 423 |
| F3 | 6 | 967 |
| F3 | 7 | 322 |
| F3 | 8 | 512 |
| F4 | 0 | 37 |
| F4 | 1 | 718 |
| F4 | 2 | 875 |
| F4 | 3 | 933 |
| F4 | 4 | 328 |
| F4 | 5 | 17 |
| F4 | 6 | 894 |
| F4 | 7 | 693 |
| F4 | 8 | 312 |
Also, just so we're on the same page, please return your choice in this little JSON layout β keeps things tidy and machine-friendly:
{
""solution"": {
""selected"": [<stall_to_lease>, <stall_to_lease>, ...],
""assignments"": [<leased_stall_for_artisan>, <leased_stall_for_artisan>, ...]
}
}
""selected"" is the list of stalls you decide to lease. ""assignments"" is a list with one entry per artisan saying which leased stall they will use. Think of it like filling out a simple form: pick the stalls, then point each artisan to one of the picked stalls.
This JSON is just the outline of the shape I expect β not the actual answer. Please make sure every identifier you put in here matches exactly the identifiers in the instance input β don't rename them and don't invent new ones.
- for example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [1251, 1780, 1764, 1638], 'connection_costs': [[243, 988, 980, 364, 735, 359, 241, 798, 474], [546, 92, 676, 866, 426, 693, 100, 455, 721], [760, 389, 428, 645, 896, 423, 967, 322, 512], [37, 718, 875, 933, 328, 17, 894, 693, 312]], 'objective': 6220.0}","{'open_facilities': [0, 1], 'assignments': [0, 1, 1, 0, 1, 0, 1, 1, 0]}",6220.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 9, 'facilities': [{'id': 'F1', 'opening_cost': 1251}, {'id': 'F2', 'opening_cost': 1780}, {'id': 'F3', 'opening_cost': 1764}, {'id': 'F4', 'opening_cost': 1638}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 243}, {'facility': 'F1', 'customer': 1, 'cost': 988}, {'facility': 'F1', 'customer': 2, 'cost': 980}, {'facility': 'F1', 'customer': 3, 'cost': 364}, {'facility': 'F1', 'customer': 4, 'cost': 735}, {'facility': 'F1', 'customer': 5, 'cost': 359}, {'facility': 'F1', 'customer': 6, 'cost': 241}, {'facility': 'F1', 'customer': 7, 'cost': 798}, {'facility': 'F1', 'customer': 8, 'cost': 474}, {'facility': 'F2', 'customer': 0, 'cost': 546}, {'facility': 'F2', 'customer': 1, 'cost': 92}, {'facility': 'F2', 'customer': 2, 'cost': 676}, {'facility': 'F2', 'customer': 3, 'cost': 866}, {'facility': 'F2', 'customer': 4, 'cost': 426}, {'facility': 'F2', 'customer': 5, 'cost': 693}, {'facility': 'F2', 'customer': 6, 'cost': 100}, {'facility': 'F2', 'customer': 7, 'cost': 455}, {'facility': 'F2', 'customer': 8, 'cost': 721}, {'facility': 'F3', 'customer': 0, 'cost': 760}, {'facility': 'F3', 'customer': 1, 'cost': 389}, {'facility': 'F3', 'customer': 2, 'cost': 428}, {'facility': 'F3', 'customer': 3, 'cost': 645}, {'facility': 'F3', 'customer': 4, 'cost': 896}, {'facility': 'F3', 'customer': 5, 'cost': 423}, {'facility': 'F3', 'customer': 6, 'cost': 967}, {'facility': 'F3', 'customer': 7, 'cost': 322}, {'facility': 'F3', 'customer': 8, 'cost': 512}, {'facility': 'F4', 'customer': 0, 'cost': 37}, {'facility': 'F4', 'customer': 1, 'cost': 718}, {'facility': 'F4', 'customer': 2, 'cost': 875}, {'facility': 'F4', 'customer': 3, 'cost': 933}, {'facility': 'F4', 'customer': 4, 'cost': 328}, {'facility': 'F4', 'customer': 5, 'cost': 17}, {'facility': 'F4', 'customer': 6, 'cost': 894}, {'facility': 'F4', 'customer': 7, 'cost': 693}, {'facility': 'F4', 'customer': 8, 'cost': 312}], 'objective': 6220.0}","{'selected': ['F1', 'F2'], 'assignments': ['F1', 'F2', 'F2', 'F1', 'F2', 'F1', 'F2', 'F2', 'F1']}",12,markdown_table,0
UFLP,UFLP,"Someone in charge needs to figure out which remote work pods to put up on campus and how to seat the freelancers. The rule is every freelancer gets assigned to one and only one of the pods that were actually installed β no double-assignments and no sending anyone to a non-existent pod. The best setup is the one that keeps the total cost down, where that total is the sum of all pod installation charges plus all freelancersβ commuting inconvenience to their assigned pod. The specific instance details follow below.
# num_candidate_pods=5
# num_freelancers=10
# PODS
pod_id,pod_setup_cost
F1,2000
F2,2000
F3,2000
F4,2000
F5,2000
# FREELANCERS
freelancer_id
0
1
2
3
4
5
6
7
8
9
# COMMUTE_INCONVENIENCES
pod_id,freelancer_id,commute_inconvenience_cost
F1,0,910
F1,1,848
F1,2,172
F1,3,809
F1,4,405
F1,5,118
F1,6,633
F1,7,439
F1,8,315
F1,9,92
F2,0,435
F2,1,729
F2,2,443
F2,3,146
F2,4,839
F2,5,152
F2,6,248
F2,7,936
F2,8,861
F2,9,12
F3,0,897
F3,1,754
F3,2,204
F3,3,576
F3,4,449
F3,5,455
F3,6,49
F3,7,310
F3,8,914
F3,9,954
F4,0,822
F4,1,835
F4,2,495
F4,3,862
F4,4,880
F4,5,699
F4,6,855
F4,7,415
F4,8,203
F4,9,49
F5,0,720
F5,1,123
F5,2,58
F5,3,76
F5,4,909
F5,5,517
F5,6,851
F5,7,719
F5,8,490
F5,9,422
So, when you send the answer back, a little JSON sketch like this is perfect β just showing which pods you actually install and which pod each freelancer is sent to:
{
""solution"": {
""selected"": [<pod_to_install>, <pod_to_install>, ...],
""assignments"": [<assigned_pod>, <assigned_pod>, ...]
}
}
""selected"" is where you list the pods you put up (one entry per pod). ""assignments"" lists, in order, the pod each freelancer uses β one entry per freelancer. Super informal: think of ""selected"" as the installations box and ""assignments"" as the seating map. This is only the shape I expect, not the final choices.
Please use the exact identifiers from the instance input β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000, 2000], 'connection_costs': [[910, 848, 172, 809, 405, 118, 633, 439, 315, 92], [435, 729, 443, 146, 839, 152, 248, 936, 861, 12], [897, 754, 204, 576, 449, 455, 49, 310, 914, 954], [822, 835, 495, 862, 880, 699, 855, 415, 203, 49], [720, 123, 58, 76, 909, 517, 851, 719, 490, 422]], 'objective': 6741.0}","{'open_facilities': [0], 'assignments': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}",6741.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 10, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 910}, {'facility': 'F1', 'customer': 1, 'cost': 848}, {'facility': 'F1', 'customer': 2, 'cost': 172}, {'facility': 'F1', 'customer': 3, 'cost': 809}, {'facility': 'F1', 'customer': 4, 'cost': 405}, {'facility': 'F1', 'customer': 5, 'cost': 118}, {'facility': 'F1', 'customer': 6, 'cost': 633}, {'facility': 'F1', 'customer': 7, 'cost': 439}, {'facility': 'F1', 'customer': 8, 'cost': 315}, {'facility': 'F1', 'customer': 9, 'cost': 92}, {'facility': 'F2', 'customer': 0, 'cost': 435}, {'facility': 'F2', 'customer': 1, 'cost': 729}, {'facility': 'F2', 'customer': 2, 'cost': 443}, {'facility': 'F2', 'customer': 3, 'cost': 146}, {'facility': 'F2', 'customer': 4, 'cost': 839}, {'facility': 'F2', 'customer': 5, 'cost': 152}, {'facility': 'F2', 'customer': 6, 'cost': 248}, {'facility': 'F2', 'customer': 7, 'cost': 936}, {'facility': 'F2', 'customer': 8, 'cost': 861}, {'facility': 'F2', 'customer': 9, 'cost': 12}, {'facility': 'F3', 'customer': 0, 'cost': 897}, {'facility': 'F3', 'customer': 1, 'cost': 754}, {'facility': 'F3', 'customer': 2, 'cost': 204}, {'facility': 'F3', 'customer': 3, 'cost': 576}, {'facility': 'F3', 'customer': 4, 'cost': 449}, {'facility': 'F3', 'customer': 5, 'cost': 455}, {'facility': 'F3', 'customer': 6, 'cost': 49}, {'facility': 'F3', 'customer': 7, 'cost': 310}, {'facility': 'F3', 'customer': 8, 'cost': 914}, {'facility': 'F3', 'customer': 9, 'cost': 954}, {'facility': 'F4', 'customer': 0, 'cost': 822}, {'facility': 'F4', 'customer': 1, 'cost': 835}, {'facility': 'F4', 'customer': 2, 'cost': 495}, {'facility': 'F4', 'customer': 3, 'cost': 862}, {'facility': 'F4', 'customer': 4, 'cost': 880}, {'facility': 'F4', 'customer': 5, 'cost': 699}, {'facility': 'F4', 'customer': 6, 'cost': 855}, {'facility': 'F4', 'customer': 7, 'cost': 415}, {'facility': 'F4', 'customer': 8, 'cost': 203}, {'facility': 'F4', 'customer': 9, 'cost': 49}, {'facility': 'F5', 'customer': 0, 'cost': 720}, {'facility': 'F5', 'customer': 1, 'cost': 123}, {'facility': 'F5', 'customer': 2, 'cost': 58}, {'facility': 'F5', 'customer': 3, 'cost': 76}, {'facility': 'F5', 'customer': 4, 'cost': 909}, {'facility': 'F5', 'customer': 5, 'cost': 517}, {'facility': 'F5', 'customer': 6, 'cost': 851}, {'facility': 'F5', 'customer': 7, 'cost': 719}, {'facility': 'F5', 'customer': 8, 'cost': 490}, {'facility': 'F5', 'customer': 9, 'cost': 422}], 'objective': 6741.0}","{'selected': ['F1'], 'assignments': ['F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1']}",13,csv,0
UFLP,UFLP,"In our district the administrator must choose which temporary classroom trailers to bring in and then put every after-school student into one of the trailers that arrived. The decision is to select which trailers to bring and then assign each student to exactly one of those brought trailers (students canβt go to trailers that werenβt brought, and nobody gets left without an assignment). What makes one plan preferable is the total cost you end up with β add together the cost to bring the chosen trailers plus the travel-time cost for every student getting to their assigned trailer; the plan with the lowest combined total is best. Trailers can hold any number of students, and the concrete details will be shown below.
{
""num_candidate_trailers"": 5,
""num_students"": 11,
""trailers"": [
{
""trailer_id"": ""F1"",
""trailer_bring_cost"": 1000
},
{
""trailer_id"": ""F2"",
""trailer_bring_cost"": 1000
},
{
""trailer_id"": ""F3"",
""trailer_bring_cost"": 1000
},
{
""trailer_id"": ""F4"",
""trailer_bring_cost"": 1000
},
{
""trailer_id"": ""F5"",
""trailer_bring_cost"": 1000
}
],
""students"": [
{
""student_id"": 0
},
{
""student_id"": 1
},
{
""student_id"": 2
},
{
""student_id"": 3
},
{
""student_id"": 4
},
{
""student_id"": 5
},
{
""student_id"": 6
},
{
""student_id"": 7
},
{
""student_id"": 8
},
{
""student_id"": 9
},
{
""student_id"": 10
}
],
""student_travel_times"": [
{
""trailer_id"": ""F1"",
""student_id"": 0,
""student_travel_time_cost"": 513
},
{
""trailer_id"": ""F1"",
""student_id"": 1,
""student_travel_time_cost"": 435
},
{
""trailer_id"": ""F1"",
""student_id"": 2,
""student_travel_time_cost"": 467
},
{
""trailer_id"": ""F1"",
""student_id"": 3,
""student_travel_time_cost"": 605
},
{
""trailer_id"": ""F1"",
""student_id"": 4,
""student_travel_time_cost"": 305
},
{
""trailer_id"": ""F1"",
""student_id"": 5,
""student_travel_time_cost"": 376
},
{
""trailer_id"": ""F1"",
""student_id"": 6,
""student_travel_time_cost"": 152
},
{
""trailer_id"": ""F1"",
""student_id"": 7,
""student_travel_time_cost"": 427
},
{
""trailer_id"": ""F1"",
""student_id"": 8,
""student_travel_time_cost"": 470
},
{
""trailer_id"": ""F1"",
""student_id"": 9,
""student_travel_time_cost"": 851
},
{
""trailer_id"": ""F1"",
""student_id"": 10,
""student_travel_time_cost"": 185
},
{
""trailer_id"": ""F2"",
""student_id"": 0,
""student_travel_time_cost"": 226
},
{
""trailer_id"": ""F2"",
""student_id"": 1,
""student_travel_time_cost"": 639
},
{
""trailer_id"": ""F2"",
""student_id"": 2,
""student_travel_time_cost"": 346
},
{
""trailer_id"": ""F2"",
""student_id"": 3,
""student_travel_time_cost"": 719
},
{
""trailer_id"": ""F2"",
""student_id"": 4,
""student_travel_time_cost"": 86
},
{
""trailer_id"": ""F2"",
""student_id"": 5,
""student_travel_time_cost"": 580
},
{
""trailer_id"": ""F2"",
""student_id"": 6,
""student_travel_time_cost"": 589
},
{
""trailer_id"": ""F2"",
""student_id"": 7,
""student_travel_time_cost"": 852
},
{
""trailer_id"": ""F2"",
""student_id"": 8,
""student_travel_time_cost"": 671
},
{
""trailer_id"": ""F2"",
""student_id"": 9,
""student_travel_time_cost"": 786
},
{
""trailer_id"": ""F2"",
""student_id"": 10,
""student_travel_time_cost"": 873
},
{
""trailer_id"": ""F3"",
""student_id"": 0,
""student_travel_time_cost"": 257
},
{
""trailer_id"": ""F3"",
""student_id"": 1,
""student_travel_time_cost"": 381
},
{
""trailer_id"": ""F3"",
""student_id"": 2,
""student_travel_time_cost"": 431
},
{
""trailer_id"": ""F3"",
""student_id"": 3,
""student_travel_time_cost"": 667
},
{
""trailer_id"": ""F3"",
""student_id"": 4,
""student_travel_time_cost"": 732
},
{
""trailer_id"": ""F3"",
""student_id"": 5,
""student_travel_time_cost"": 867
},
{
""trailer_id"": ""F3"",
""student_id"": 6,
""student_travel_time_cost"": 964
},
{
""trailer_id"": ""F3"",
""student_id"": 7,
""student_travel_time_cost"": 563
},
{
""trailer_id"": ""F3"",
""student_id"": 8,
""student_travel_time_cost"": 702
},
{
""trailer_id"": ""F3"",
""student_id"": 9,
""student_travel_time_cost"": 495
},
{
""trailer_id"": ""F3"",
""student_id"": 10,
""student_travel_time_cost"": 525
},
{
""trailer_id"": ""F4"",
""student_id"": 0,
""student_travel_time_cost"": 121
},
{
""trailer_id"": ""F4"",
""student_id"": 1,
""student_travel_time_cost"": 448
},
{
""trailer_id"": ""F4"",
""student_id"": 2,
""student_travel_time_cost"": 114
},
{
""trailer_id"": ""F4"",
""student_id"": 3,
""student_travel_time_cost"": 623
},
{
""trailer_id"": ""F4"",
""student_id"": 4,
""student_travel_time_cost"": 325
},
{
""trailer_id"": ""F4"",
""student_id"": 5,
""student_travel_time_cost"": 583
},
{
""trailer_id"": ""F4"",
""student_id"": 6,
""student_travel_time_cost"": 307
},
{
""trailer_id"": ""F4"",
""student_id"": 7,
""student_travel_time_cost"": 910
},
{
""trailer_id"": ""F4"",
""student_id"": 8,
""student_travel_time_cost"": 860
},
{
""trailer_id"": ""F4"",
""student_id"": 9,
""student_travel_time_cost"": 691
},
{
""trailer_id"": ""F4"",
""student_id"": 10,
""student_travel_time_cost"": 522
},
{
""trailer_id"": ""F5"",
""student_id"": 0,
""student_travel_time_cost"": 764
},
{
""trailer_id"": ""F5"",
""student_id"": 1,
""student_travel_time_cost"": 746
},
{
""trailer_id"": ""F5"",
""student_id"": 2,
""student_travel_time_cost"": 284
},
{
""trailer_id"": ""F5"",
""student_id"": 3,
""student_travel_time_cost"": 853
},
{
""trailer_id"": ""F5"",
""student_id"": 4,
""student_travel_time_cost"": 44
},
{
""trailer_id"": ""F5"",
""student_id"": 5,
""student_travel_time_cost"": 40
},
{
""trailer_id"": ""F5"",
""student_id"": 6,
""student_travel_time_cost"": 443
},
{
""trailer_id"": ""F5"",
""student_id"": 7,
""student_travel_time_cost"": 140
},
{
""trailer_id"": ""F5"",
""student_id"": 8,
""student_travel_time_cost"": 447
},
{
""trailer_id"": ""F5"",
""student_id"": 9,
""student_travel_time_cost"": 304
},
{
""trailer_id"": ""F5"",
""student_id"": 10,
""student_travel_time_cost"": 279
}
]
}
If you want to send back a plan, just use this simple JSON shape so I can read it easily β nothing fancy, just a small form that says which trailers you brought and which trailer each student goes to.
{
""solution"": {
""selected"": [""<trailer_to_bring>"", ""<trailer_to_bring>"", ...],
""assignments"": [""<assigned_trailer>"", ""<assigned_trailer>"", ...]
}
}
Think of ""selected"" as the list of trailers you decided to bring in, and ""assignments"" as a student-by-student list saying which of the brought trailers each student will go to (in the same student order as the instance). Super casual β it's just a sketch of the shape I expect, not the actual answer.
Please make sure you use the exact identifiers from the instance input when you fill this in β don't rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [1000, 1000, 1000, 1000, 1000], 'connection_costs': [[513, 435, 467, 605, 305, 376, 152, 427, 470, 851, 185], [226, 639, 346, 719, 86, 580, 589, 852, 671, 786, 873], [257, 381, 431, 667, 732, 867, 964, 563, 702, 495, 525], [121, 448, 114, 623, 325, 583, 307, 910, 860, 691, 522], [764, 746, 284, 853, 44, 40, 443, 140, 447, 304, 279]], 'objective': 4867.0}","{'open_facilities': [3, 4], 'assignments': [3, 3, 3, 3, 4, 4, 3, 4, 4, 4, 4]}",4867.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}, {'id': 'F5', 'opening_cost': 1000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 513}, {'facility': 'F1', 'customer': 1, 'cost': 435}, {'facility': 'F1', 'customer': 2, 'cost': 467}, {'facility': 'F1', 'customer': 3, 'cost': 605}, {'facility': 'F1', 'customer': 4, 'cost': 305}, {'facility': 'F1', 'customer': 5, 'cost': 376}, {'facility': 'F1', 'customer': 6, 'cost': 152}, {'facility': 'F1', 'customer': 7, 'cost': 427}, {'facility': 'F1', 'customer': 8, 'cost': 470}, {'facility': 'F1', 'customer': 9, 'cost': 851}, {'facility': 'F1', 'customer': 10, 'cost': 185}, {'facility': 'F2', 'customer': 0, 'cost': 226}, {'facility': 'F2', 'customer': 1, 'cost': 639}, {'facility': 'F2', 'customer': 2, 'cost': 346}, {'facility': 'F2', 'customer': 3, 'cost': 719}, {'facility': 'F2', 'customer': 4, 'cost': 86}, {'facility': 'F2', 'customer': 5, 'cost': 580}, {'facility': 'F2', 'customer': 6, 'cost': 589}, {'facility': 'F2', 'customer': 7, 'cost': 852}, {'facility': 'F2', 'customer': 8, 'cost': 671}, {'facility': 'F2', 'customer': 9, 'cost': 786}, {'facility': 'F2', 'customer': 10, 'cost': 873}, {'facility': 'F3', 'customer': 0, 'cost': 257}, {'facility': 'F3', 'customer': 1, 'cost': 381}, {'facility': 'F3', 'customer': 2, 'cost': 431}, {'facility': 'F3', 'customer': 3, 'cost': 667}, {'facility': 'F3', 'customer': 4, 'cost': 732}, {'facility': 'F3', 'customer': 5, 'cost': 867}, {'facility': 'F3', 'customer': 6, 'cost': 964}, {'facility': 'F3', 'customer': 7, 'cost': 563}, {'facility': 'F3', 'customer': 8, 'cost': 702}, {'facility': 'F3', 'customer': 9, 'cost': 495}, {'facility': 'F3', 'customer': 10, 'cost': 525}, {'facility': 'F4', 'customer': 0, 'cost': 121}, {'facility': 'F4', 'customer': 1, 'cost': 448}, {'facility': 'F4', 'customer': 2, 'cost': 114}, {'facility': 'F4', 'customer': 3, 'cost': 623}, {'facility': 'F4', 'customer': 4, 'cost': 325}, {'facility': 'F4', 'customer': 5, 'cost': 583}, {'facility': 'F4', 'customer': 6, 'cost': 307}, {'facility': 'F4', 'customer': 7, 'cost': 910}, {'facility': 'F4', 'customer': 8, 'cost': 860}, {'facility': 'F4', 'customer': 9, 'cost': 691}, {'facility': 'F4', 'customer': 10, 'cost': 522}, {'facility': 'F5', 'customer': 0, 'cost': 764}, {'facility': 'F5', 'customer': 1, 'cost': 746}, {'facility': 'F5', 'customer': 2, 'cost': 284}, {'facility': 'F5', 'customer': 3, 'cost': 853}, {'facility': 'F5', 'customer': 4, 'cost': 44}, {'facility': 'F5', 'customer': 5, 'cost': 40}, {'facility': 'F5', 'customer': 6, 'cost': 443}, {'facility': 'F5', 'customer': 7, 'cost': 140}, {'facility': 'F5', 'customer': 8, 'cost': 447}, {'facility': 'F5', 'customer': 9, 'cost': 304}, {'facility': 'F5', 'customer': 10, 'cost': 279}], 'objective': 4867.0}","{'selected': ['F4', 'F5'], 'assignments': ['F4', 'F4', 'F4', 'F4', 'F5', 'F5', 'F4', 'F5', 'F5', 'F5', 'F5']}",14,json,0
UFLP,UFLP,"Around town the recycling squad is planning which drop-off sites to maintain and how to route every block to a single maintained site. Closed sites wonβt be available, blocks canβt split their pickups, and maintained sites can serve unlimited blocks. What makes one plan better is the total sum: all the maintenance fees for the kept sites plus the distances people from each block must travel to their assigned site β the lower that combined sum, the better the plan. The specific instance details follow below.
{
""total_dropoff_sites"": 6,
""total_blocks"": 12,
""sites"": [
{
""site_id"": ""F1"",
""maintenance_fee"": 1000
},
{
""site_id"": ""F2"",
""maintenance_fee"": 1000
},
{
""site_id"": ""F3"",
""maintenance_fee"": 1000
},
{
""site_id"": ""F4"",
""maintenance_fee"": 1000
},
{
""site_id"": ""F5"",
""maintenance_fee"": 1000
},
{
""site_id"": ""F6"",
""maintenance_fee"": 1000
}
],
""blocks"": [
{
""block_id"": 0
},
{
""block_id"": 1
},
{
""block_id"": 2
},
{
""block_id"": 3
},
{
""block_id"": 4
},
{
""block_id"": 5
},
{
""block_id"": 6
},
{
""block_id"": 7
},
{
""block_id"": 8
},
{
""block_id"": 9
},
{
""block_id"": 10
},
{
""block_id"": 11
}
],
""walking_distances"": [
{
""site_id"": ""F1"",
""block_id"": 0,
""walking_distance"": 39
},
{
""site_id"": ""F1"",
""block_id"": 1,
""walking_distance"": 160
},
{
""site_id"": ""F1"",
""block_id"": 2,
""walking_distance"": 210
},
{
""site_id"": ""F1"",
""block_id"": 3,
""walking_distance"": 289
},
{
""site_id"": ""F1"",
""block_id"": 4,
""walking_distance"": 156
},
{
""site_id"": ""F1"",
""block_id"": 5,
""walking_distance"": 65
},
{
""site_id"": ""F1"",
""block_id"": 6,
""walking_distance"": 296
},
{
""site_id"": ""F1"",
""block_id"": 7,
""walking_distance"": 631
},
{
""site_id"": ""F1"",
""block_id"": 8,
""walking_distance"": 440
},
{
""site_id"": ""F1"",
""block_id"": 9,
""walking_distance"": 359
},
{
""site_id"": ""F1"",
""block_id"": 10,
""walking_distance"": 646
},
{
""site_id"": ""F1"",
""block_id"": 11,
""walking_distance"": 451
},
{
""site_id"": ""F2"",
""block_id"": 0,
""walking_distance"": 384
},
{
""site_id"": ""F2"",
""block_id"": 1,
""walking_distance"": 663
},
{
""site_id"": ""F2"",
""block_id"": 2,
""walking_distance"": 104
},
{
""site_id"": ""F2"",
""block_id"": 3,
""walking_distance"": 271
},
{
""site_id"": ""F2"",
""block_id"": 4,
""walking_distance"": 433
},
{
""site_id"": ""F2"",
""block_id"": 5,
""walking_distance"": 126
},
{
""site_id"": ""F2"",
""block_id"": 6,
""walking_distance"": 256
},
{
""site_id"": ""F2"",
""block_id"": 7,
""walking_distance"": 70
},
{
""site_id"": ""F2"",
""block_id"": 8,
""walking_distance"": 763
},
{
""site_id"": ""F2"",
""block_id"": 9,
""walking_distance"": 4
},
{
""site_id"": ""F2"",
""block_id"": 10,
""walking_distance"": 331
},
{
""site_id"": ""F2"",
""block_id"": 11,
""walking_distance"": 619
},
{
""site_id"": ""F3"",
""block_id"": 0,
""walking_distance"": 737
},
{
""site_id"": ""F3"",
""block_id"": 1,
""walking_distance"": 325
},
{
""site_id"": ""F3"",
""block_id"": 2,
""walking_distance"": 404
},
{
""site_id"": ""F3"",
""block_id"": 3,
""walking_distance"": 190
},
{
""site_id"": ""F3"",
""block_id"": 4,
""walking_distance"": 268
},
{
""site_id"": ""F3"",
""block_id"": 5,
""walking_distance"": 79
},
{
""site_id"": ""F3"",
""block_id"": 6,
""walking_distance"": 888
},
{
""site_id"": ""F3"",
""block_id"": 7,
""walking_distance"": 119
},
{
""site_id"": ""F3"",
""block_id"": 8,
""walking_distance"": 308
},
{
""site_id"": ""F3"",
""block_id"": 9,
""walking_distance"": 165
},
{
""site_id"": ""F3"",
""block_id"": 10,
""walking_distance"": 257
},
{
""site_id"": ""F3"",
""block_id"": 11,
""walking_distance"": 409
},
{
""site_id"": ""F4"",
""block_id"": 0,
""walking_distance"": 688
},
{
""site_id"": ""F4"",
""block_id"": 1,
""walking_distance"": 502
},
{
""site_id"": ""F4"",
""block_id"": 2,
""walking_distance"": 674
},
{
""site_id"": ""F4"",
""block_id"": 3,
""walking_distance"": 208
},
{
""site_id"": ""F4"",
""block_id"": 4,
""walking_distance"": 314
},
{
""site_id"": ""F4"",
""block_id"": 5,
""walking_distance"": 714
},
{
""site_id"": ""F4"",
""block_id"": 6,
""walking_distance"": 661
},
{
""site_id"": ""F4"",
""block_id"": 7,
""walking_distance"": 365
},
{
""site_id"": ""F4"",
""block_id"": 8,
""walking_distance"": 427
},
{
""site_id"": ""F4"",
""block_id"": 9,
""walking_distance"": 1
},
{
""site_id"": ""F4"",
""block_id"": 10,
""walking_distance"": 596
},
{
""site_id"": ""F4"",
""block_id"": 11,
""walking_distance"": 272
},
{
""site_id"": ""F5"",
""block_id"": 0,
""walking_distance"": 433
},
{
""site_id"": ""F5"",
""block_id"": 1,
""walking_distance"": 869
},
{
""site_id"": ""F5"",
""block_id"": 2,
""walking_distance"": 965
},
{
""site_id"": ""F5"",
""block_id"": 3,
""walking_distance"": 492
},
{
""site_id"": ""F5"",
""block_id"": 4,
""walking_distance"": 16
},
{
""site_id"": ""F5"",
""block_id"": 5,
""walking_distance"": 629
},
{
""site_id"": ""F5"",
""block_id"": 6,
""walking_distance"": 994
},
{
""site_id"": ""F5"",
""block_id"": 7,
""walking_distance"": 576
},
{
""site_id"": ""F5"",
""block_id"": 8,
""walking_distance"": 888
},
{
""site_id"": ""F5"",
""block_id"": 9,
""walking_distance"": 817
},
{
""site_id"": ""F5"",
""block_id"": 10,
""walking_distance"": 11
},
{
""site_id"": ""F5"",
""block_id"": 11,
""walking_distance"": 429
},
{
""site_id"": ""F6"",
""block_id"": 0,
""walking_distance"": 744
},
{
""site_id"": ""F6"",
""block_id"": 1,
""walking_distance"": 422
},
{
""site_id"": ""F6"",
""block_id"": 2,
""walking_distance"": 942
},
{
""site_id"": ""F6"",
""block_id"": 3,
""walking_distance"": 746
},
{
""site_id"": ""F6"",
""block_id"": 4,
""walking_distance"": 435
},
{
""site_id"": ""F6"",
""block_id"": 5,
""walking_distance"": 42
},
{
""site_id"": ""F6"",
""block_id"": 6,
""walking_distance"": 137
},
{
""site_id"": ""F6"",
""block_id"": 7,
""walking_distance"": 140
},
{
""site_id"": ""F6"",
""block_id"": 8,
""walking_distance"": 131
},
{
""site_id"": ""F6"",
""block_id"": 9,
""walking_distance"": 334
},
{
""site_id"": ""F6"",
""block_id"": 10,
""walking_distance"": 53
},
{
""site_id"": ""F6"",
""block_id"": 11,
""walking_distance"": 903
}
]
}
Also, when you send your plan back, please stick to this simple JSON layout so it's easy to check automatically.
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
Think of it like a short form: ""selected"" is the list of drop-off sites you decide to keep maintained, and ""assignments"" is, for each block in the same order as the instance, which maintained site that block will use. This JSON is just a sketch of the shape I expect β itβs not the real answer itself.
Please make sure every identifier you use matches exactly whatβs in the instance input β donβt rename or invent labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1000, 1000, 1000, 1000, 1000, 1000], 'connection_costs': [[39, 160, 210, 289, 156, 65, 296, 631, 440, 359, 646, 451], [384, 663, 104, 271, 433, 126, 256, 70, 763, 4, 331, 619], [737, 325, 404, 190, 268, 79, 888, 119, 308, 165, 257, 409], [688, 502, 674, 208, 314, 714, 661, 365, 427, 1, 596, 272], [433, 869, 965, 492, 16, 629, 994, 576, 888, 817, 11, 429], [744, 422, 942, 746, 435, 42, 137, 140, 131, 334, 53, 903]], 'objective': 4142.0}","{'open_facilities': [0, 5], 'assignments': [0, 0, 0, 0, 0, 5, 5, 5, 5, 5, 5, 0]}",4142.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 12, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}, {'id': 'F5', 'opening_cost': 1000}, {'id': 'F6', 'opening_cost': 1000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 39}, {'facility': 'F1', 'customer': 1, 'cost': 160}, {'facility': 'F1', 'customer': 2, 'cost': 210}, {'facility': 'F1', 'customer': 3, 'cost': 289}, {'facility': 'F1', 'customer': 4, 'cost': 156}, {'facility': 'F1', 'customer': 5, 'cost': 65}, {'facility': 'F1', 'customer': 6, 'cost': 296}, {'facility': 'F1', 'customer': 7, 'cost': 631}, {'facility': 'F1', 'customer': 8, 'cost': 440}, {'facility': 'F1', 'customer': 9, 'cost': 359}, {'facility': 'F1', 'customer': 10, 'cost': 646}, {'facility': 'F1', 'customer': 11, 'cost': 451}, {'facility': 'F2', 'customer': 0, 'cost': 384}, {'facility': 'F2', 'customer': 1, 'cost': 663}, {'facility': 'F2', 'customer': 2, 'cost': 104}, {'facility': 'F2', 'customer': 3, 'cost': 271}, {'facility': 'F2', 'customer': 4, 'cost': 433}, {'facility': 'F2', 'customer': 5, 'cost': 126}, {'facility': 'F2', 'customer': 6, 'cost': 256}, {'facility': 'F2', 'customer': 7, 'cost': 70}, {'facility': 'F2', 'customer': 8, 'cost': 763}, {'facility': 'F2', 'customer': 9, 'cost': 4}, {'facility': 'F2', 'customer': 10, 'cost': 331}, {'facility': 'F2', 'customer': 11, 'cost': 619}, {'facility': 'F3', 'customer': 0, 'cost': 737}, {'facility': 'F3', 'customer': 1, 'cost': 325}, {'facility': 'F3', 'customer': 2, 'cost': 404}, {'facility': 'F3', 'customer': 3, 'cost': 190}, {'facility': 'F3', 'customer': 4, 'cost': 268}, {'facility': 'F3', 'customer': 5, 'cost': 79}, {'facility': 'F3', 'customer': 6, 'cost': 888}, {'facility': 'F3', 'customer': 7, 'cost': 119}, {'facility': 'F3', 'customer': 8, 'cost': 308}, {'facility': 'F3', 'customer': 9, 'cost': 165}, {'facility': 'F3', 'customer': 10, 'cost': 257}, {'facility': 'F3', 'customer': 11, 'cost': 409}, {'facility': 'F4', 'customer': 0, 'cost': 688}, {'facility': 'F4', 'customer': 1, 'cost': 502}, {'facility': 'F4', 'customer': 2, 'cost': 674}, {'facility': 'F4', 'customer': 3, 'cost': 208}, {'facility': 'F4', 'customer': 4, 'cost': 314}, {'facility': 'F4', 'customer': 5, 'cost': 714}, {'facility': 'F4', 'customer': 6, 'cost': 661}, {'facility': 'F4', 'customer': 7, 'cost': 365}, {'facility': 'F4', 'customer': 8, 'cost': 427}, {'facility': 'F4', 'customer': 9, 'cost': 1}, {'facility': 'F4', 'customer': 10, 'cost': 596}, {'facility': 'F4', 'customer': 11, 'cost': 272}, {'facility': 'F5', 'customer': 0, 'cost': 433}, {'facility': 'F5', 'customer': 1, 'cost': 869}, {'facility': 'F5', 'customer': 2, 'cost': 965}, {'facility': 'F5', 'customer': 3, 'cost': 492}, {'facility': 'F5', 'customer': 4, 'cost': 16}, {'facility': 'F5', 'customer': 5, 'cost': 629}, {'facility': 'F5', 'customer': 6, 'cost': 994}, {'facility': 'F5', 'customer': 7, 'cost': 576}, {'facility': 'F5', 'customer': 8, 'cost': 888}, {'facility': 'F5', 'customer': 9, 'cost': 817}, {'facility': 'F5', 'customer': 10, 'cost': 11}, {'facility': 'F5', 'customer': 11, 'cost': 429}, {'facility': 'F6', 'customer': 0, 'cost': 744}, {'facility': 'F6', 'customer': 1, 'cost': 422}, {'facility': 'F6', 'customer': 2, 'cost': 942}, {'facility': 'F6', 'customer': 3, 'cost': 746}, {'facility': 'F6', 'customer': 4, 'cost': 435}, {'facility': 'F6', 'customer': 5, 'cost': 42}, {'facility': 'F6', 'customer': 6, 'cost': 137}, {'facility': 'F6', 'customer': 7, 'cost': 140}, {'facility': 'F6', 'customer': 8, 'cost': 131}, {'facility': 'F6', 'customer': 9, 'cost': 334}, {'facility': 'F6', 'customer': 10, 'cost': 53}, {'facility': 'F6', 'customer': 11, 'cost': 903}], 'objective': 4142.0}","{'selected': ['F1', 'F6'], 'assignments': ['F1', 'F1', 'F1', 'F1', 'F1', 'F6', 'F6', 'F6', 'F6', 'F6', 'F6', 'F1']}",15,json,0
UFLP,UFLP,"Someone managing the farm markets needs to pick which roadside produce stands will operate this season and assign each regular buyer to a single open stand. Better choices are those that cut the total expense, calculated by adding the operating costs for all stands left open plus the travel cost for each customer to their chosen stand. Each customer gets exactly one operating stand and nobody visits a closed one; stands arenβt capped on how many people they can serve. The exact numbers are shown below.
There are 4 candidate roadside produce stands, 9 regular buyers, and the stand opening costs are 5234, 3751, 6957, 3907.
Stand F1 has an opening cost of 5234.
Stand F2 has an opening cost of 3751.
Stand F3 has an opening cost of 6957.
Stand F4 has an opening cost of 3907.
Buyer 1 would incur travel cost 759 to visit stand F1.
Buyer 2 would incur travel cost 320 to visit stand F1.
Buyer 3 would incur travel cost 173 to visit stand F1.
Buyer 4 would incur travel cost 443 to visit stand F1.
Buyer 5 would incur travel cost 396 to visit stand F1.
Buyer 6 would incur travel cost 708 to visit stand F1.
Buyer 7 would incur travel cost 425 to visit stand F1.
Buyer 8 would incur travel cost 708 to visit stand F1.
Buyer 9 would incur travel cost 391 to visit stand F1.
Buyer 1 would incur travel cost 203 to visit stand F2.
Buyer 2 would incur travel cost 779 to visit stand F2.
Buyer 3 would incur travel cost 609 to visit stand F2.
Buyer 4 would incur travel cost 514 to visit stand F2.
Buyer 5 would incur travel cost 560 to visit stand F2.
Buyer 6 would incur travel cost 579 to visit stand F2.
Buyer 7 would incur travel cost 525 to visit stand F2.
Buyer 8 would incur travel cost 389 to visit stand F2.
Buyer 9 would incur travel cost 848 to visit stand F2.
Buyer 1 would incur travel cost 868 to visit stand F3.
Buyer 2 would incur travel cost 557 to visit stand F3.
Buyer 3 would incur travel cost 61 to visit stand F3.
Buyer 4 would incur travel cost 857 to visit stand F3.
Buyer 5 would incur travel cost 280 to visit stand F3.
Buyer 6 would incur travel cost 977 to visit stand F3.
Buyer 7 would incur travel cost 609 to visit stand F3.
Buyer 8 would incur travel cost 230 to visit stand F3.
Buyer 9 would incur travel cost 730 to visit stand F3.
Buyer 1 would incur travel cost 174 to visit stand F4.
Buyer 2 would incur travel cost 211 to visit stand F4.
Buyer 3 would incur travel cost 790 to visit stand F4.
Buyer 4 would incur travel cost 947 to visit stand F4.
Buyer 5 would incur travel cost 449 to visit stand F4.
Buyer 6 would incur travel cost 819 to visit stand F4.
Buyer 7 would incur travel cost 520 to visit stand F4.
Buyer 8 would incur travel cost 691 to visit stand F4.
Buyer 9 would incur travel cost 431 to visit stand F4.
These numbers are for the manager to use in choosing which stands to open and how to assign buyers so the total expense (stand opening costs plus travel costs) is minimized.
If you want to send me the plan in a tidy, machine-friendly way, just use this simple JSON shape below β it shows which stands to open and which open stand each buyer will go to.
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
""selected"" is the list of stands you'll keep operating this season. ""assignments"" says, for each regular buyer (in the same order as the instance), which open stand they go to. Think of it like filling out a short form: pick the open stands, then list each buyer's chosen stand. This is just a sketch of the shape I need, not the actual filled-in answer.
Please make sure to use the exact identifiers from the instance input β do not rename them or invent new ones.
Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".","{'opening_costs': [5234, 3751, 6957, 3907], 'connection_costs': [[759, 320, 173, 443, 396, 708, 425, 708, 391], [203, 779, 609, 514, 560, 579, 525, 389, 848], [868, 557, 61, 857, 280, 977, 609, 230, 730], [174, 211, 790, 947, 449, 819, 520, 691, 431]], 'objective': 8757.0}","{'open_facilities': [1], 'assignments': [1, 1, 1, 1, 1, 1, 1, 1, 1]}",8757.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 9, 'facilities': [{'id': 'F1', 'opening_cost': 5234}, {'id': 'F2', 'opening_cost': 3751}, {'id': 'F3', 'opening_cost': 6957}, {'id': 'F4', 'opening_cost': 3907}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 759}, {'facility': 'F1', 'customer': 2, 'cost': 320}, {'facility': 'F1', 'customer': 3, 'cost': 173}, {'facility': 'F1', 'customer': 4, 'cost': 443}, {'facility': 'F1', 'customer': 5, 'cost': 396}, {'facility': 'F1', 'customer': 6, 'cost': 708}, {'facility': 'F1', 'customer': 7, 'cost': 425}, {'facility': 'F1', 'customer': 8, 'cost': 708}, {'facility': 'F1', 'customer': 9, 'cost': 391}, {'facility': 'F2', 'customer': 1, 'cost': 203}, {'facility': 'F2', 'customer': 2, 'cost': 779}, {'facility': 'F2', 'customer': 3, 'cost': 609}, {'facility': 'F2', 'customer': 4, 'cost': 514}, {'facility': 'F2', 'customer': 5, 'cost': 560}, {'facility': 'F2', 'customer': 6, 'cost': 579}, {'facility': 'F2', 'customer': 7, 'cost': 525}, {'facility': 'F2', 'customer': 8, 'cost': 389}, {'facility': 'F2', 'customer': 9, 'cost': 848}, {'facility': 'F3', 'customer': 1, 'cost': 868}, {'facility': 'F3', 'customer': 2, 'cost': 557}, {'facility': 'F3', 'customer': 3, 'cost': 61}, {'facility': 'F3', 'customer': 4, 'cost': 857}, {'facility': 'F3', 'customer': 5, 'cost': 280}, {'facility': 'F3', 'customer': 6, 'cost': 977}, {'facility': 'F3', 'customer': 7, 'cost': 609}, {'facility': 'F3', 'customer': 8, 'cost': 230}, {'facility': 'F3', 'customer': 9, 'cost': 730}, {'facility': 'F4', 'customer': 1, 'cost': 174}, {'facility': 'F4', 'customer': 2, 'cost': 211}, {'facility': 'F4', 'customer': 3, 'cost': 790}, {'facility': 'F4', 'customer': 4, 'cost': 947}, {'facility': 'F4', 'customer': 5, 'cost': 449}, {'facility': 'F4', 'customer': 6, 'cost': 819}, {'facility': 'F4', 'customer': 7, 'cost': 520}, {'facility': 'F4', 'customer': 8, 'cost': 691}, {'facility': 'F4', 'customer': 9, 'cost': 431}], 'objective': 8757.0}","{'selected': ['F2'], 'assignments': ['F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2']}",16,nl,1
UFLP,UFLP,"At the conservatory the director must decide which piano practice rooms to operate and then send every musician to one of those open rooms. The smart trade-off is obvious in plain terms: keep an eye on the sum of the room upkeep bills plus the walking time for all musicians, and choose the setup with the least total. Each musician is assigned to exactly one available room β closed rooms arenβt options β and open rooms can host multiple musicians without limit. The specific room costs and walking distances are listed below.
# num_rooms=5
# num_musicians=11
# ROOMS
room_id,room_upkeep_cost
F1,3855
F2,5518
F3,2501
F4,7315
F5,6976
# MUSICIANS
musician_id
0
1
2
3
4
5
6
7
8
9
10
# WALKING_TIMES
room_id,musician_id,walking_time
F1,0,968
F1,1,783
F1,2,346
F1,3,784
F1,4,10
F1,5,801
F1,6,306
F1,7,747
F1,8,674
F1,9,184
F1,10,261
F2,0,527
F2,1,560
F2,2,22
F2,3,109
F2,4,795
F2,5,712
F2,6,857
F2,7,105
F2,8,169
F2,9,450
F2,10,955
F3,0,207
F3,1,643
F3,2,696
F3,3,851
F3,4,41
F3,5,1
F3,6,330
F3,7,125
F3,8,747
F3,9,544
F3,10,110
F4,0,590
F4,1,346
F4,2,666
F4,3,701
F4,4,1
F4,5,680
F4,6,578
F4,7,480
F4,8,789
F4,9,99
F4,10,951
F5,0,451
F5,1,187
F5,2,511
F5,3,41
F5,4,678
F5,5,829
F5,6,547
F5,7,48
F5,8,371
F5,9,633
F5,10,432
You can just give the plan in a tiny JSON shape like this β it makes it easy to check which rooms get opened and where each musician is sent:
{
""solution"": {
""selected"": [<room_to_open>, <room_to_open>, ...],
""assignments"": [<chosen_open_room>, <chosen_open_room>, ...]
}
}
""selected"" is the list of practice rooms you decide to operate. ""assignments"" lists, for every musician in order, which open room they go to. Think of it like filling out a simple form: pick the rooms youβll run, then list each musicianβs room.
This is just a sketch of the shape I expect, not the actual answer. Please use the exact identifiers from the instance input β do not rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [3855, 5518, 2501, 7315, 6976], 'connection_costs': [[968, 783, 346, 784, 10, 801, 306, 747, 674, 184, 261], [527, 560, 22, 109, 795, 712, 857, 105, 169, 450, 955], [207, 643, 696, 851, 41, 1, 330, 125, 747, 544, 110], [590, 346, 666, 701, 1, 680, 578, 480, 789, 99, 951], [451, 187, 511, 41, 678, 829, 547, 48, 371, 633, 432]], 'objective': 6796.0}","{'open_facilities': [2], 'assignments': [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]}",6796.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 3855}, {'id': 'F2', 'opening_cost': 5518}, {'id': 'F3', 'opening_cost': 2501}, {'id': 'F4', 'opening_cost': 7315}, {'id': 'F5', 'opening_cost': 6976}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 968}, {'facility': 'F1', 'customer': 1, 'cost': 783}, {'facility': 'F1', 'customer': 2, 'cost': 346}, {'facility': 'F1', 'customer': 3, 'cost': 784}, {'facility': 'F1', 'customer': 4, 'cost': 10}, {'facility': 'F1', 'customer': 5, 'cost': 801}, {'facility': 'F1', 'customer': 6, 'cost': 306}, {'facility': 'F1', 'customer': 7, 'cost': 747}, {'facility': 'F1', 'customer': 8, 'cost': 674}, {'facility': 'F1', 'customer': 9, 'cost': 184}, {'facility': 'F1', 'customer': 10, 'cost': 261}, {'facility': 'F2', 'customer': 0, 'cost': 527}, {'facility': 'F2', 'customer': 1, 'cost': 560}, {'facility': 'F2', 'customer': 2, 'cost': 22}, {'facility': 'F2', 'customer': 3, 'cost': 109}, {'facility': 'F2', 'customer': 4, 'cost': 795}, {'facility': 'F2', 'customer': 5, 'cost': 712}, {'facility': 'F2', 'customer': 6, 'cost': 857}, {'facility': 'F2', 'customer': 7, 'cost': 105}, {'facility': 'F2', 'customer': 8, 'cost': 169}, {'facility': 'F2', 'customer': 9, 'cost': 450}, {'facility': 'F2', 'customer': 10, 'cost': 955}, {'facility': 'F3', 'customer': 0, 'cost': 207}, {'facility': 'F3', 'customer': 1, 'cost': 643}, {'facility': 'F3', 'customer': 2, 'cost': 696}, {'facility': 'F3', 'customer': 3, 'cost': 851}, {'facility': 'F3', 'customer': 4, 'cost': 41}, {'facility': 'F3', 'customer': 5, 'cost': 1}, {'facility': 'F3', 'customer': 6, 'cost': 330}, {'facility': 'F3', 'customer': 7, 'cost': 125}, {'facility': 'F3', 'customer': 8, 'cost': 747}, {'facility': 'F3', 'customer': 9, 'cost': 544}, {'facility': 'F3', 'customer': 10, 'cost': 110}, {'facility': 'F4', 'customer': 0, 'cost': 590}, {'facility': 'F4', 'customer': 1, 'cost': 346}, {'facility': 'F4', 'customer': 2, 'cost': 666}, {'facility': 'F4', 'customer': 3, 'cost': 701}, {'facility': 'F4', 'customer': 4, 'cost': 1}, {'facility': 'F4', 'customer': 5, 'cost': 680}, {'facility': 'F4', 'customer': 6, 'cost': 578}, {'facility': 'F4', 'customer': 7, 'cost': 480}, {'facility': 'F4', 'customer': 8, 'cost': 789}, {'facility': 'F4', 'customer': 9, 'cost': 99}, {'facility': 'F4', 'customer': 10, 'cost': 951}, {'facility': 'F5', 'customer': 0, 'cost': 451}, {'facility': 'F5', 'customer': 1, 'cost': 187}, {'facility': 'F5', 'customer': 2, 'cost': 511}, {'facility': 'F5', 'customer': 3, 'cost': 41}, {'facility': 'F5', 'customer': 4, 'cost': 678}, {'facility': 'F5', 'customer': 5, 'cost': 829}, {'facility': 'F5', 'customer': 6, 'cost': 547}, {'facility': 'F5', 'customer': 7, 'cost': 48}, {'facility': 'F5', 'customer': 8, 'cost': 371}, {'facility': 'F5', 'customer': 9, 'cost': 633}, {'facility': 'F5', 'customer': 10, 'cost': 432}], 'objective': 6796.0}","{'selected': ['F3'], 'assignments': ['F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3']}",17,csv,0
UFLP,UFLP,"Weβre organizing a citywide donation drive and need to pick which potential drop-off boxes to install and then decide which installed box each donor will go to. Each possible box costs money to place, and each donor incurs some detour to reach the box theyβre assigned to, so the trick is to keep the total cost down by adding all the installation fees and every donorβs extra travel; a lower total means a better rollout. Also, every donor must be routed to one single box thatβs actually been installed β no duplicates, no unassigned donors, and nobody should be told to use a box that wasnβt put out. The specific locations, costs, and donor positions are listed below.
{
""total_candidate_boxes"": 6,
""total_donors"": 13,
""boxs"": [
{
""box_id"": ""F1"",
""installation_fee"": 1510
},
{
""box_id"": ""F2"",
""installation_fee"": 1032
},
{
""box_id"": ""F3"",
""installation_fee"": 1160
},
{
""box_id"": ""F4"",
""installation_fee"": 1687
},
{
""box_id"": ""F5"",
""installation_fee"": 1227
},
{
""box_id"": ""F6"",
""installation_fee"": 1784
}
],
""donors"": [
{
""donor_id"": ""A""
},
{
""donor_id"": ""B""
},
{
""donor_id"": ""C""
},
{
""donor_id"": ""D""
},
{
""donor_id"": ""E""
},
{
""donor_id"": ""F""
},
{
""donor_id"": ""G""
},
{
""donor_id"": ""H""
},
{
""donor_id"": ""I""
},
{
""donor_id"": ""J""
},
{
""donor_id"": ""K""
},
{
""donor_id"": ""L""
},
{
""donor_id"": ""M""
}
],
""donor_detours"": [
{
""box_id"": ""F1"",
""donor_id"": ""A"",
""donor_detour_cost"": 459
},
{
""box_id"": ""F1"",
""donor_id"": ""B"",
""donor_detour_cost"": 41
},
{
""box_id"": ""F1"",
""donor_id"": ""C"",
""donor_detour_cost"": 923
},
{
""box_id"": ""F1"",
""donor_id"": ""D"",
""donor_detour_cost"": 381
},
{
""box_id"": ""F1"",
""donor_id"": ""E"",
""donor_detour_cost"": 150
},
{
""box_id"": ""F1"",
""donor_id"": ""F"",
""donor_detour_cost"": 812
},
{
""box_id"": ""F1"",
""donor_id"": ""G"",
""donor_detour_cost"": 635
},
{
""box_id"": ""F1"",
""donor_id"": ""H"",
""donor_detour_cost"": 744
},
{
""box_id"": ""F1"",
""donor_id"": ""I"",
""donor_detour_cost"": 272
},
{
""box_id"": ""F1"",
""donor_id"": ""J"",
""donor_detour_cost"": 673
},
{
""box_id"": ""F1"",
""donor_id"": ""K"",
""donor_detour_cost"": 422
},
{
""box_id"": ""F1"",
""donor_id"": ""L"",
""donor_detour_cost"": 241
},
{
""box_id"": ""F1"",
""donor_id"": ""M"",
""donor_detour_cost"": 206
},
{
""box_id"": ""F2"",
""donor_id"": ""A"",
""donor_detour_cost"": 103
},
{
""box_id"": ""F2"",
""donor_id"": ""B"",
""donor_detour_cost"": 200
},
{
""box_id"": ""F2"",
""donor_id"": ""C"",
""donor_detour_cost"": 749
},
{
""box_id"": ""F2"",
""donor_id"": ""D"",
""donor_detour_cost"": 78
},
{
""box_id"": ""F2"",
""donor_id"": ""E"",
""donor_detour_cost"": 735
},
{
""box_id"": ""F2"",
""donor_id"": ""F"",
""donor_detour_cost"": 729
},
{
""box_id"": ""F2"",
""donor_id"": ""G"",
""donor_detour_cost"": 984
},
{
""box_id"": ""F2"",
""donor_id"": ""H"",
""donor_detour_cost"": 893
},
{
""box_id"": ""F2"",
""donor_id"": ""I"",
""donor_detour_cost"": 198
},
{
""box_id"": ""F2"",
""donor_id"": ""J"",
""donor_detour_cost"": 738
},
{
""box_id"": ""F2"",
""donor_id"": ""K"",
""donor_detour_cost"": 53
},
{
""box_id"": ""F2"",
""donor_id"": ""L"",
""donor_detour_cost"": 433
},
{
""box_id"": ""F2"",
""donor_id"": ""M"",
""donor_detour_cost"": 268
},
{
""box_id"": ""F3"",
""donor_id"": ""A"",
""donor_detour_cost"": 468
},
{
""box_id"": ""F3"",
""donor_id"": ""B"",
""donor_detour_cost"": 262
},
{
""box_id"": ""F3"",
""donor_id"": ""C"",
""donor_detour_cost"": 84
},
{
""box_id"": ""F3"",
""donor_id"": ""D"",
""donor_detour_cost"": 580
},
{
""box_id"": ""F3"",
""donor_id"": ""E"",
""donor_detour_cost"": 390
},
{
""box_id"": ""F3"",
""donor_id"": ""F"",
""donor_detour_cost"": 56
},
{
""box_id"": ""F3"",
""donor_id"": ""G"",
""donor_detour_cost"": 970
},
{
""box_id"": ""F3"",
""donor_id"": ""H"",
""donor_detour_cost"": 893
},
{
""box_id"": ""F3"",
""donor_id"": ""I"",
""donor_detour_cost"": 555
},
{
""box_id"": ""F3"",
""donor_id"": ""J"",
""donor_detour_cost"": 540
},
{
""box_id"": ""F3"",
""donor_id"": ""K"",
""donor_detour_cost"": 453
},
{
""box_id"": ""F3"",
""donor_id"": ""L"",
""donor_detour_cost"": 839
},
{
""box_id"": ""F3"",
""donor_id"": ""M"",
""donor_detour_cost"": 20
},
{
""box_id"": ""F4"",
""donor_id"": ""A"",
""donor_detour_cost"": 289
},
{
""box_id"": ""F4"",
""donor_id"": ""B"",
""donor_detour_cost"": 86
},
{
""box_id"": ""F4"",
""donor_id"": ""C"",
""donor_detour_cost"": 8
},
{
""box_id"": ""F4"",
""donor_id"": ""D"",
""donor_detour_cost"": 244
},
{
""box_id"": ""F4"",
""donor_id"": ""E"",
""donor_detour_cost"": 860
},
{
""box_id"": ""F4"",
""donor_id"": ""F"",
""donor_detour_cost"": 398
},
{
""box_id"": ""F4"",
""donor_id"": ""G"",
""donor_detour_cost"": 528
},
{
""box_id"": ""F4"",
""donor_id"": ""H"",
""donor_detour_cost"": 217
},
{
""box_id"": ""F4"",
""donor_id"": ""I"",
""donor_detour_cost"": 863
},
{
""box_id"": ""F4"",
""donor_id"": ""J"",
""donor_detour_cost"": 105
},
{
""box_id"": ""F4"",
""donor_id"": ""K"",
""donor_detour_cost"": 516
},
{
""box_id"": ""F4"",
""donor_id"": ""L"",
""donor_detour_cost"": 656
},
{
""box_id"": ""F4"",
""donor_id"": ""M"",
""donor_detour_cost"": 622
},
{
""box_id"": ""F5"",
""donor_id"": ""A"",
""donor_detour_cost"": 79
},
{
""box_id"": ""F5"",
""donor_id"": ""B"",
""donor_detour_cost"": 652
},
{
""box_id"": ""F5"",
""donor_id"": ""C"",
""donor_detour_cost"": 735
},
{
""box_id"": ""F5"",
""donor_id"": ""D"",
""donor_detour_cost"": 489
},
{
""box_id"": ""F5"",
""donor_id"": ""E"",
""donor_detour_cost"": 646
},
{
""box_id"": ""F5"",
""donor_id"": ""F"",
""donor_detour_cost"": 955
},
{
""box_id"": ""F5"",
""donor_id"": ""G"",
""donor_detour_cost"": 886
},
{
""box_id"": ""F5"",
""donor_id"": ""H"",
""donor_detour_cost"": 960
},
{
""box_id"": ""F5"",
""donor_id"": ""I"",
""donor_detour_cost"": 781
},
{
""box_id"": ""F5"",
""donor_id"": ""J"",
""donor_detour_cost"": 328
},
{
""box_id"": ""F5"",
""donor_id"": ""K"",
""donor_detour_cost"": 923
},
{
""box_id"": ""F5"",
""donor_id"": ""L"",
""donor_detour_cost"": 986
},
{
""box_id"": ""F5"",
""donor_id"": ""M"",
""donor_detour_cost"": 207
},
{
""box_id"": ""F6"",
""donor_id"": ""A"",
""donor_detour_cost"": 963
},
{
""box_id"": ""F6"",
""donor_id"": ""B"",
""donor_detour_cost"": 83
},
{
""box_id"": ""F6"",
""donor_id"": ""C"",
""donor_detour_cost"": 798
},
{
""box_id"": ""F6"",
""donor_id"": ""D"",
""donor_detour_cost"": 336
},
{
""box_id"": ""F6"",
""donor_id"": ""E"",
""donor_detour_cost"": 740
},
{
""box_id"": ""F6"",
""donor_id"": ""F"",
""donor_detour_cost"": 410
},
{
""box_id"": ""F6"",
""donor_id"": ""G"",
""donor_detour_cost"": 559
},
{
""box_id"": ""F6"",
""donor_id"": ""H"",
""donor_detour_cost"": 318
},
{
""box_id"": ""F6"",
""donor_id"": ""I"",
""donor_detour_cost"": 393
},
{
""box_id"": ""F6"",
""donor_id"": ""J"",
""donor_detour_cost"": 49
},
{
""box_id"": ""F6"",
""donor_id"": ""K"",
""donor_detour_cost"": 4
},
{
""box_id"": ""F6"",
""donor_id"": ""L"",
""donor_detour_cost"": 349
},
{
""box_id"": ""F6"",
""donor_id"": ""M"",
""donor_detour_cost"": 271
}
]
}
Oh, and one more practical thing β when you send the plan back, a tiny JSON sketch like the one below is perfect for me. It just lists which boxes we actually install and then, for each donor, which installed box they should go to.
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_dropbox>, <chosen_dropbox>, ...]
}
}
""selected"" is the list of drop-off box locations you decide to install. ""assignments"" is a list with one entry per donor saying which installed box they should use. Super casual: think of ""selected"" as the checklist of boxes we put out, and ""assignments"" as the little directions we hand each donor. This is just the expected shape β not the final plan itself.
Please use the exact identifiers from the instance input when filling those lists β do not rename identifiers or invent new ones.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1510, 1032, 1160, 1687, 1227, 1784], 'connection_costs': [[459, 41, 923, 381, 150, 812, 635, 744, 272, 673, 422, 241, 206], [103, 200, 749, 78, 735, 729, 984, 893, 198, 738, 53, 433, 268], [468, 262, 84, 580, 390, 56, 970, 893, 555, 540, 453, 839, 20], [289, 86, 8, 244, 860, 398, 528, 217, 863, 105, 516, 656, 622], [79, 652, 735, 489, 646, 955, 886, 960, 781, 328, 923, 986, 207], [963, 83, 798, 336, 740, 410, 559, 318, 393, 49, 4, 349, 271]], 'objective': 5929.0}","{'open_facilities': [1, 3], 'assignments': [1, 3, 3, 1, 1, 3, 3, 3, 1, 3, 1, 1, 1]}",5929.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 13, 'facilities': [{'id': 'F1', 'opening_cost': 1510}, {'id': 'F2', 'opening_cost': 1032}, {'id': 'F3', 'opening_cost': 1160}, {'id': 'F4', 'opening_cost': 1687}, {'id': 'F5', 'opening_cost': 1227}, {'id': 'F6', 'opening_cost': 1784}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}, {'id': 'L'}, {'id': 'M'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 459}, {'facility': 'F1', 'customer': 'B', 'cost': 41}, {'facility': 'F1', 'customer': 'C', 'cost': 923}, {'facility': 'F1', 'customer': 'D', 'cost': 381}, {'facility': 'F1', 'customer': 'E', 'cost': 150}, {'facility': 'F1', 'customer': 'F', 'cost': 812}, {'facility': 'F1', 'customer': 'G', 'cost': 635}, {'facility': 'F1', 'customer': 'H', 'cost': 744}, {'facility': 'F1', 'customer': 'I', 'cost': 272}, {'facility': 'F1', 'customer': 'J', 'cost': 673}, {'facility': 'F1', 'customer': 'K', 'cost': 422}, {'facility': 'F1', 'customer': 'L', 'cost': 241}, {'facility': 'F1', 'customer': 'M', 'cost': 206}, {'facility': 'F2', 'customer': 'A', 'cost': 103}, {'facility': 'F2', 'customer': 'B', 'cost': 200}, {'facility': 'F2', 'customer': 'C', 'cost': 749}, {'facility': 'F2', 'customer': 'D', 'cost': 78}, {'facility': 'F2', 'customer': 'E', 'cost': 735}, {'facility': 'F2', 'customer': 'F', 'cost': 729}, {'facility': 'F2', 'customer': 'G', 'cost': 984}, {'facility': 'F2', 'customer': 'H', 'cost': 893}, {'facility': 'F2', 'customer': 'I', 'cost': 198}, {'facility': 'F2', 'customer': 'J', 'cost': 738}, {'facility': 'F2', 'customer': 'K', 'cost': 53}, {'facility': 'F2', 'customer': 'L', 'cost': 433}, {'facility': 'F2', 'customer': 'M', 'cost': 268}, {'facility': 'F3', 'customer': 'A', 'cost': 468}, {'facility': 'F3', 'customer': 'B', 'cost': 262}, {'facility': 'F3', 'customer': 'C', 'cost': 84}, {'facility': 'F3', 'customer': 'D', 'cost': 580}, {'facility': 'F3', 'customer': 'E', 'cost': 390}, {'facility': 'F3', 'customer': 'F', 'cost': 56}, {'facility': 'F3', 'customer': 'G', 'cost': 970}, {'facility': 'F3', 'customer': 'H', 'cost': 893}, {'facility': 'F3', 'customer': 'I', 'cost': 555}, {'facility': 'F3', 'customer': 'J', 'cost': 540}, {'facility': 'F3', 'customer': 'K', 'cost': 453}, {'facility': 'F3', 'customer': 'L', 'cost': 839}, {'facility': 'F3', 'customer': 'M', 'cost': 20}, {'facility': 'F4', 'customer': 'A', 'cost': 289}, {'facility': 'F4', 'customer': 'B', 'cost': 86}, {'facility': 'F4', 'customer': 'C', 'cost': 8}, {'facility': 'F4', 'customer': 'D', 'cost': 244}, {'facility': 'F4', 'customer': 'E', 'cost': 860}, {'facility': 'F4', 'customer': 'F', 'cost': 398}, {'facility': 'F4', 'customer': 'G', 'cost': 528}, {'facility': 'F4', 'customer': 'H', 'cost': 217}, {'facility': 'F4', 'customer': 'I', 'cost': 863}, {'facility': 'F4', 'customer': 'J', 'cost': 105}, {'facility': 'F4', 'customer': 'K', 'cost': 516}, {'facility': 'F4', 'customer': 'L', 'cost': 656}, {'facility': 'F4', 'customer': 'M', 'cost': 622}, {'facility': 'F5', 'customer': 'A', 'cost': 79}, {'facility': 'F5', 'customer': 'B', 'cost': 652}, {'facility': 'F5', 'customer': 'C', 'cost': 735}, {'facility': 'F5', 'customer': 'D', 'cost': 489}, {'facility': 'F5', 'customer': 'E', 'cost': 646}, {'facility': 'F5', 'customer': 'F', 'cost': 955}, {'facility': 'F5', 'customer': 'G', 'cost': 886}, {'facility': 'F5', 'customer': 'H', 'cost': 960}, {'facility': 'F5', 'customer': 'I', 'cost': 781}, {'facility': 'F5', 'customer': 'J', 'cost': 328}, {'facility': 'F5', 'customer': 'K', 'cost': 923}, {'facility': 'F5', 'customer': 'L', 'cost': 986}, {'facility': 'F5', 'customer': 'M', 'cost': 207}, {'facility': 'F6', 'customer': 'A', 'cost': 963}, {'facility': 'F6', 'customer': 'B', 'cost': 83}, {'facility': 'F6', 'customer': 'C', 'cost': 798}, {'facility': 'F6', 'customer': 'D', 'cost': 336}, {'facility': 'F6', 'customer': 'E', 'cost': 740}, {'facility': 'F6', 'customer': 'F', 'cost': 410}, {'facility': 'F6', 'customer': 'G', 'cost': 559}, {'facility': 'F6', 'customer': 'H', 'cost': 318}, {'facility': 'F6', 'customer': 'I', 'cost': 393}, {'facility': 'F6', 'customer': 'J', 'cost': 49}, {'facility': 'F6', 'customer': 'K', 'cost': 4}, {'facility': 'F6', 'customer': 'L', 'cost': 349}, {'facility': 'F6', 'customer': 'M', 'cost': 271}], 'objective': 5929.0}","{'selected': ['F2', 'F4'], 'assignments': ['F2', 'F4', 'F4', 'F2', 'F2', 'F4', 'F4', 'F4', 'F2', 'F4', 'F2', 'F2', 'F2']}",18,json,names
UFLP,UFLP,"Recently the social services office was tasked with picking which evening soup kitchens to fund and assigning every nearby person in need to one of the funded kitchens. The rule is clear: only funded kitchens can receive people, everyone must be sent to one and only one kitchen, and any funded kitchen can serve as many people as needed. What they want is the cheapest overall arrangement β total up the funding commitments plus each personβs travel cost to their assigned kitchen, and keep that total as low as possible. Detailed numbers and locations are shown below.
There are 5 candidate evening soup kitchens, 11 nearby people in need, and the kitchen funding costs are 1000, 1000, 1000, 1000, 1000.
Kitchen F1 requires a funding commitment of 1000 to open.
Kitchen F2 requires a funding commitment of 1000 to open.
Kitchen F3 requires a funding commitment of 1000 to open.
Kitchen F4 requires a funding commitment of 1000 to open.
Kitchen F5 requires a funding commitment of 1000 to open.
Person 1 would incur a travel cost of 394 to go to kitchen F1.
Person 2 would incur a travel cost of 431 to go to kitchen F1.
Person 3 would incur a travel cost of 608 to go to kitchen F1.
Person 4 would incur a travel cost of 929 to go to kitchen F1.
Person 5 would incur a travel cost of 393 to go to kitchen F1.
Person 6 would incur a travel cost of 118 to go to kitchen F1.
Person 7 would incur a travel cost of 724 to go to kitchen F1.
Person 8 would incur a travel cost of 235 to go to kitchen F1.
Person 9 would incur a travel cost of 676 to go to kitchen F1.
Person 10 would incur a travel cost of 949 to go to kitchen F1.
Person 11 would incur a travel cost of 209 to go to kitchen F1.
Person 1 would incur a travel cost of 288 to go to kitchen F2.
Person 2 would incur a travel cost of 754 to go to kitchen F2.
Person 3 would incur a travel cost of 601 to go to kitchen F2.
Person 4 would incur a travel cost of 534 to go to kitchen F2.
Person 5 would incur a travel cost of 86 to go to kitchen F2.
Person 6 would incur a travel cost of 529 to go to kitchen F2.
Person 7 would incur a travel cost of 748 to go to kitchen F2.
Person 8 would incur a travel cost of 792 to go to kitchen F2.
Person 9 would incur a travel cost of 961 to go to kitchen F2.
Person 10 would incur a travel cost of 296 to go to kitchen F2.
Person 11 would incur a travel cost of 956 to go to kitchen F2.
Person 1 would incur a travel cost of 175 to go to kitchen F3.
Person 2 would incur a travel cost of 538 to go to kitchen F3.
Person 3 would incur a travel cost of 935 to go to kitchen F3.
Person 4 would incur a travel cost of 665 to go to kitchen F3.
Person 5 would incur a travel cost of 855 to go to kitchen F3.
Person 6 would incur a travel cost of 94 to go to kitchen F3.
Person 7 would incur a travel cost of 139 to go to kitchen F3.
Person 8 would incur a travel cost of 896 to go to kitchen F3.
Person 9 would incur a travel cost of 780 to go to kitchen F3.
Person 10 would incur a travel cost of 190 to go to kitchen F3.
Person 11 would incur a travel cost of 335 to go to kitchen F3.
Person 1 would incur a travel cost of 295 to go to kitchen F4.
Person 2 would incur a travel cost of 15 to go to kitchen F4.
Person 3 would incur a travel cost of 567 to go to kitchen F4.
Person 4 would incur a travel cost of 271 to go to kitchen F4.
Person 5 would incur a travel cost of 186 to go to kitchen F4.
Person 6 would incur a travel cost of 693 to go to kitchen F4.
Person 7 would incur a travel cost of 413 to go to kitchen F4.
Person 8 would incur a travel cost of 470 to go to kitchen F4.
Person 9 would incur a travel cost of 222 to go to kitchen F4.
Person 10 would incur a travel cost of 31 to go to kitchen F4.
Person 11 would incur a travel cost of 403 to go to kitchen F4.
Person 1 would incur a travel cost of 944 to go to kitchen F5.
Person 2 would incur a travel cost of 475 to go to kitchen F5.
Person 3 would incur a travel cost of 482 to go to kitchen F5.
Person 4 would incur a travel cost of 611 to go to kitchen F5.
Person 5 would incur a travel cost of 770 to go to kitchen F5.
Person 6 would incur a travel cost of 488 to go to kitchen F5.
Person 7 would incur a travel cost of 457 to go to kitchen F5.
Person 8 would incur a travel cost of 905 to go to kitchen F5.
Person 9 would incur a travel cost of 609 to go to kitchen F5.
Person 10 would incur a travel cost of 838 to go to kitchen F5.
Person 11 would incur a travel cost of 623 to go to kitchen F5.
The office will use these figures to choose which kitchens to fund and assign every person so the sum of funding commitments plus travel costs is minimized.
One quick thing before you go: it'd be great if you could return the final choice in a tiny JSON form so it's easy to read. Here's the relaxed shape I'm expecting β just a small sketch showing which kitchens we fund and which funded kitchen each person is sent to.
{
""solution"": {
""selected"": [<kitchen_to_fund>, <kitchen_to_fund>, ...],
""assignments"": [<assigned_kitchen>, <assigned_kitchen>, ...]
}
}
Think of it like a simple form: ""selected"" is the list of soup kitchens we decide to fund, and ""assignments"" lists, in the same order as the people in the instance, the funded kitchen each person is assigned to. This is only the expected shape β not the actual answer itself.
Please make sure all identifiers are used exactly as they appear in the instance input β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1000, 1000, 1000, 1000, 1000], 'connection_costs': [[394, 431, 608, 929, 393, 118, 724, 235, 676, 949, 209], [288, 754, 601, 534, 86, 529, 748, 792, 961, 296, 956], [175, 538, 935, 665, 855, 94, 139, 896, 780, 190, 335], [295, 15, 567, 271, 186, 693, 413, 470, 222, 31, 403], [944, 475, 482, 611, 770, 488, 457, 905, 609, 838, 623]], 'objective': 4505.0}","{'open_facilities': [2, 3], 'assignments': [2, 3, 3, 3, 3, 2, 2, 3, 3, 3, 2]}",4505.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}, {'id': 'F5', 'opening_cost': 1000}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 394}, {'facility': 'F1', 'customer': 2, 'cost': 431}, {'facility': 'F1', 'customer': 3, 'cost': 608}, {'facility': 'F1', 'customer': 4, 'cost': 929}, {'facility': 'F1', 'customer': 5, 'cost': 393}, {'facility': 'F1', 'customer': 6, 'cost': 118}, {'facility': 'F1', 'customer': 7, 'cost': 724}, {'facility': 'F1', 'customer': 8, 'cost': 235}, {'facility': 'F1', 'customer': 9, 'cost': 676}, {'facility': 'F1', 'customer': 10, 'cost': 949}, {'facility': 'F1', 'customer': 11, 'cost': 209}, {'facility': 'F2', 'customer': 1, 'cost': 288}, {'facility': 'F2', 'customer': 2, 'cost': 754}, {'facility': 'F2', 'customer': 3, 'cost': 601}, {'facility': 'F2', 'customer': 4, 'cost': 534}, {'facility': 'F2', 'customer': 5, 'cost': 86}, {'facility': 'F2', 'customer': 6, 'cost': 529}, {'facility': 'F2', 'customer': 7, 'cost': 748}, {'facility': 'F2', 'customer': 8, 'cost': 792}, {'facility': 'F2', 'customer': 9, 'cost': 961}, {'facility': 'F2', 'customer': 10, 'cost': 296}, {'facility': 'F2', 'customer': 11, 'cost': 956}, {'facility': 'F3', 'customer': 1, 'cost': 175}, {'facility': 'F3', 'customer': 2, 'cost': 538}, {'facility': 'F3', 'customer': 3, 'cost': 935}, {'facility': 'F3', 'customer': 4, 'cost': 665}, {'facility': 'F3', 'customer': 5, 'cost': 855}, {'facility': 'F3', 'customer': 6, 'cost': 94}, {'facility': 'F3', 'customer': 7, 'cost': 139}, {'facility': 'F3', 'customer': 8, 'cost': 896}, {'facility': 'F3', 'customer': 9, 'cost': 780}, {'facility': 'F3', 'customer': 10, 'cost': 190}, {'facility': 'F3', 'customer': 11, 'cost': 335}, {'facility': 'F4', 'customer': 1, 'cost': 295}, {'facility': 'F4', 'customer': 2, 'cost': 15}, {'facility': 'F4', 'customer': 3, 'cost': 567}, {'facility': 'F4', 'customer': 4, 'cost': 271}, {'facility': 'F4', 'customer': 5, 'cost': 186}, {'facility': 'F4', 'customer': 6, 'cost': 693}, {'facility': 'F4', 'customer': 7, 'cost': 413}, {'facility': 'F4', 'customer': 8, 'cost': 470}, {'facility': 'F4', 'customer': 9, 'cost': 222}, {'facility': 'F4', 'customer': 10, 'cost': 31}, {'facility': 'F4', 'customer': 11, 'cost': 403}, {'facility': 'F5', 'customer': 1, 'cost': 944}, {'facility': 'F5', 'customer': 2, 'cost': 475}, {'facility': 'F5', 'customer': 3, 'cost': 482}, {'facility': 'F5', 'customer': 4, 'cost': 611}, {'facility': 'F5', 'customer': 5, 'cost': 770}, {'facility': 'F5', 'customer': 6, 'cost': 488}, {'facility': 'F5', 'customer': 7, 'cost': 457}, {'facility': 'F5', 'customer': 8, 'cost': 905}, {'facility': 'F5', 'customer': 9, 'cost': 609}, {'facility': 'F5', 'customer': 10, 'cost': 838}, {'facility': 'F5', 'customer': 11, 'cost': 623}], 'objective': 4505.0}","{'selected': ['F3', 'F4'], 'assignments': ['F3', 'F4', 'F4', 'F4', 'F4', 'F3', 'F3', 'F4', 'F4', 'F4', 'F3']}",19,nl,1
UFLP,UFLP,"Someone in charge of the buildingβs network has to pick which of the small servers around the floor to power, then bind each device to a single powered server. Each server has a startup cost and each device-server pair has a delay cost; the winning setup is simply the one with the lowest combined total of server power costs plus all the devicesβ latency penalties. Every device must be attached to exactly one turned-on server, and the real numbers and map follow below.
They must choose among 4 candidate servers to power for 10 devices, with server startup costs 9895, 2122, 7733, 7070.
Candidate server F1 can be powered at startup cost 9895.
Candidate server F2 can be powered at startup cost 2122.
Candidate server F3 can be powered at startup cost 7733.
Candidate server F4 can be powered at startup cost 7070.
If device 0 is attached to server F1, it incurs latency cost 128.
If device 1 is attached to server F1, it incurs latency cost 22.
If device 2 is attached to server F1, it incurs latency cost 890.
If device 3 is attached to server F1, it incurs latency cost 707.
If device 4 is attached to server F1, it incurs latency cost 603.
If device 5 is attached to server F1, it incurs latency cost 436.
If device 6 is attached to server F1, it incurs latency cost 622.
If device 7 is attached to server F1, it incurs latency cost 727.
If device 8 is attached to server F1, it incurs latency cost 849.
If device 9 is attached to server F1, it incurs latency cost 254.
If device 0 is attached to server F2, it incurs latency cost 319.
If device 1 is attached to server F2, it incurs latency cost 400.
If device 2 is attached to server F2, it incurs latency cost 374.
If device 3 is attached to server F2, it incurs latency cost 803.
If device 4 is attached to server F2, it incurs latency cost 250.
If device 5 is attached to server F2, it incurs latency cost 410.
If device 6 is attached to server F2, it incurs latency cost 931.
If device 7 is attached to server F2, it incurs latency cost 464.
If device 8 is attached to server F2, it incurs latency cost 829.
If device 9 is attached to server F2, it incurs latency cost 622.
If device 0 is attached to server F3, it incurs latency cost 82.
If device 1 is attached to server F3, it incurs latency cost 793.
If device 2 is attached to server F3, it incurs latency cost 54.
If device 3 is attached to server F3, it incurs latency cost 21.
If device 4 is attached to server F3, it incurs latency cost 857.
If device 5 is attached to server F3, it incurs latency cost 625.
If device 6 is attached to server F3, it incurs latency cost 145.
If device 7 is attached to server F3, it incurs latency cost 347.
If device 8 is attached to server F3, it incurs latency cost 193.
If device 9 is attached to server F3, it incurs latency cost 565.
If device 0 is attached to server F4, it incurs latency cost 815.
If device 1 is attached to server F4, it incurs latency cost 793.
If device 2 is attached to server F4, it incurs latency cost 951.
If device 3 is attached to server F4, it incurs latency cost 12.
If device 4 is attached to server F4, it incurs latency cost 328.
If device 5 is attached to server F4, it incurs latency cost 339.
If device 6 is attached to server F4, it incurs latency cost 932.
If device 7 is attached to server F4, it incurs latency cost 132.
If device 8 is attached to server F4, it incurs latency cost 568.
If device 9 is attached to server F4, it incurs latency cost 53.
They will pick the powered servers and device attachments that minimize the total of the listed startup costs and latency penalties.
You can just hand me the answer in a tiny JSON form like this β nothing fancy, just which sites you flip on and then, for every device in order, which powered site it uses:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
""selected"" is the short list of servers (sites) you decide to power up. ""assignments"" lists, in the same order as the devices were given in the instance, the site each device is bound to. Think of it like filling out a simple form: first pick the open sites, then say where each device goes. This JSON is just the shape I need β not the real answer.
Please make sure to use the exact identifiers from the instance input β don't rename or invent labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [9895, 2122, 7733, 7070], 'connection_costs': [[128, 22, 890, 707, 603, 436, 622, 727, 849, 254], [319, 400, 374, 803, 250, 410, 931, 464, 829, 622], [82, 793, 54, 21, 857, 625, 145, 347, 193, 565], [815, 793, 951, 12, 328, 339, 932, 132, 568, 53]], 'objective': 7524.0}","{'open_facilities': [1], 'assignments': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]}",7524.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 10, 'facilities': [{'id': 'F1', 'opening_cost': 9895}, {'id': 'F2', 'opening_cost': 2122}, {'id': 'F3', 'opening_cost': 7733}, {'id': 'F4', 'opening_cost': 7070}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 128}, {'facility': 'F1', 'customer': 1, 'cost': 22}, {'facility': 'F1', 'customer': 2, 'cost': 890}, {'facility': 'F1', 'customer': 3, 'cost': 707}, {'facility': 'F1', 'customer': 4, 'cost': 603}, {'facility': 'F1', 'customer': 5, 'cost': 436}, {'facility': 'F1', 'customer': 6, 'cost': 622}, {'facility': 'F1', 'customer': 7, 'cost': 727}, {'facility': 'F1', 'customer': 8, 'cost': 849}, {'facility': 'F1', 'customer': 9, 'cost': 254}, {'facility': 'F2', 'customer': 0, 'cost': 319}, {'facility': 'F2', 'customer': 1, 'cost': 400}, {'facility': 'F2', 'customer': 2, 'cost': 374}, {'facility': 'F2', 'customer': 3, 'cost': 803}, {'facility': 'F2', 'customer': 4, 'cost': 250}, {'facility': 'F2', 'customer': 5, 'cost': 410}, {'facility': 'F2', 'customer': 6, 'cost': 931}, {'facility': 'F2', 'customer': 7, 'cost': 464}, {'facility': 'F2', 'customer': 8, 'cost': 829}, {'facility': 'F2', 'customer': 9, 'cost': 622}, {'facility': 'F3', 'customer': 0, 'cost': 82}, {'facility': 'F3', 'customer': 1, 'cost': 793}, {'facility': 'F3', 'customer': 2, 'cost': 54}, {'facility': 'F3', 'customer': 3, 'cost': 21}, {'facility': 'F3', 'customer': 4, 'cost': 857}, {'facility': 'F3', 'customer': 5, 'cost': 625}, {'facility': 'F3', 'customer': 6, 'cost': 145}, {'facility': 'F3', 'customer': 7, 'cost': 347}, {'facility': 'F3', 'customer': 8, 'cost': 193}, {'facility': 'F3', 'customer': 9, 'cost': 565}, {'facility': 'F4', 'customer': 0, 'cost': 815}, {'facility': 'F4', 'customer': 1, 'cost': 793}, {'facility': 'F4', 'customer': 2, 'cost': 951}, {'facility': 'F4', 'customer': 3, 'cost': 12}, {'facility': 'F4', 'customer': 4, 'cost': 328}, {'facility': 'F4', 'customer': 5, 'cost': 339}, {'facility': 'F4', 'customer': 6, 'cost': 932}, {'facility': 'F4', 'customer': 7, 'cost': 132}, {'facility': 'F4', 'customer': 8, 'cost': 568}, {'facility': 'F4', 'customer': 9, 'cost': 53}], 'objective': 7524.0}","{'selected': ['F2'], 'assignments': ['F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2']}",20,nl,0
UFLP,UFLP,"Out on the road the charging crew chooses which stations to fire up and which active station each customer will visit. Switching on a station costs money, and sending a customer there causes a detour cost β every customer needs exactly one station and canβt be split between stations. The smartest choice is the one that yields the lowest total bill: total activation costs plus total customer detour costs, and the scenarioβs exact details are shown below.
There are 4 stations and 11 users in this instance.
**Stations**
| station_id | activation_cost |
|---|---|
| F1 | 1419 |
| F2 | 8670 |
| F3 | 4009 |
| F4 | 8389 |
**Users**
| user_id |
|---|
| 0 |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
**Detour Cost**
| station_id | user_id | detour_cost |
|---|---|---|
| F1 | 0 | 38 |
| F1 | 1 | 901 |
| F1 | 2 | 549 |
| F1 | 3 | 898 |
| F1 | 4 | 412 |
| F1 | 5 | 934 |
| F1 | 6 | 46 |
| F1 | 7 | 736 |
| F1 | 8 | 834 |
| F1 | 9 | 800 |
| F1 | 10 | 604 |
| F2 | 0 | 65 |
| F2 | 1 | 102 |
| F2 | 2 | 130 |
| F2 | 3 | 617 |
| F2 | 4 | 802 |
| F2 | 5 | 149 |
| F2 | 6 | 595 |
| F2 | 7 | 252 |
| F2 | 8 | 61 |
| F2 | 9 | 310 |
| F2 | 10 | 899 |
| F3 | 0 | 210 |
| F3 | 1 | 70 |
| F3 | 2 | 603 |
| F3 | 3 | 983 |
| F3 | 4 | 698 |
| F3 | 5 | 660 |
| F3 | 6 | 863 |
| F3 | 7 | 752 |
| F3 | 8 | 663 |
| F3 | 9 | 95 |
| F3 | 10 | 466 |
| F4 | 0 | 805 |
| F4 | 1 | 209 |
| F4 | 2 | 695 |
| F4 | 3 | 994 |
| F4 | 4 | 697 |
| F4 | 5 | 113 |
| F4 | 6 | 774 |
| F4 | 7 | 278 |
| F4 | 8 | 614 |
| F4 | 9 | 878 |
| F4 | 10 | 368 |
Also, to keep things tidy, please return your pick in this simple JSON shape β just a quick sketch of the form Iβll read. It should look like this:
{
""solution"": {
""selected"": [<station_to_open>, <station_to_open>, ...],
""assignments"": [<chosen_open_station>, <chosen_open_station>, ...]
}
}
""selected"" is the list of stations the crew decides to switch on. ""assignments"" lists, for each customer in the input order, which opened station that customer will visit. Think of it like a filled-in form: which stations are active, and for each customer where they go.
This JSON is just the expected shape β not the actual solution itself. And one more important note: use the exact identifiers from the instance input, do not rename them or invent new labels. Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".","{'opening_costs': [1419, 8670, 4009, 8389], 'connection_costs': [[38, 901, 549, 898, 412, 934, 46, 736, 834, 800, 604], [65, 102, 130, 617, 802, 149, 595, 252, 61, 310, 899], [210, 70, 603, 983, 698, 660, 863, 752, 663, 95, 466], [805, 209, 695, 994, 697, 113, 774, 278, 614, 878, 368]], 'objective': 8171.0}","{'open_facilities': [0], 'assignments': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}",8171.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 1419}, {'id': 'F2', 'opening_cost': 8670}, {'id': 'F3', 'opening_cost': 4009}, {'id': 'F4', 'opening_cost': 8389}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 38}, {'facility': 'F1', 'customer': 1, 'cost': 901}, {'facility': 'F1', 'customer': 2, 'cost': 549}, {'facility': 'F1', 'customer': 3, 'cost': 898}, {'facility': 'F1', 'customer': 4, 'cost': 412}, {'facility': 'F1', 'customer': 5, 'cost': 934}, {'facility': 'F1', 'customer': 6, 'cost': 46}, {'facility': 'F1', 'customer': 7, 'cost': 736}, {'facility': 'F1', 'customer': 8, 'cost': 834}, {'facility': 'F1', 'customer': 9, 'cost': 800}, {'facility': 'F1', 'customer': 10, 'cost': 604}, {'facility': 'F2', 'customer': 0, 'cost': 65}, {'facility': 'F2', 'customer': 1, 'cost': 102}, {'facility': 'F2', 'customer': 2, 'cost': 130}, {'facility': 'F2', 'customer': 3, 'cost': 617}, {'facility': 'F2', 'customer': 4, 'cost': 802}, {'facility': 'F2', 'customer': 5, 'cost': 149}, {'facility': 'F2', 'customer': 6, 'cost': 595}, {'facility': 'F2', 'customer': 7, 'cost': 252}, {'facility': 'F2', 'customer': 8, 'cost': 61}, {'facility': 'F2', 'customer': 9, 'cost': 310}, {'facility': 'F2', 'customer': 10, 'cost': 899}, {'facility': 'F3', 'customer': 0, 'cost': 210}, {'facility': 'F3', 'customer': 1, 'cost': 70}, {'facility': 'F3', 'customer': 2, 'cost': 603}, {'facility': 'F3', 'customer': 3, 'cost': 983}, {'facility': 'F3', 'customer': 4, 'cost': 698}, {'facility': 'F3', 'customer': 5, 'cost': 660}, {'facility': 'F3', 'customer': 6, 'cost': 863}, {'facility': 'F3', 'customer': 7, 'cost': 752}, {'facility': 'F3', 'customer': 8, 'cost': 663}, {'facility': 'F3', 'customer': 9, 'cost': 95}, {'facility': 'F3', 'customer': 10, 'cost': 466}, {'facility': 'F4', 'customer': 0, 'cost': 805}, {'facility': 'F4', 'customer': 1, 'cost': 209}, {'facility': 'F4', 'customer': 2, 'cost': 695}, {'facility': 'F4', 'customer': 3, 'cost': 994}, {'facility': 'F4', 'customer': 4, 'cost': 697}, {'facility': 'F4', 'customer': 5, 'cost': 113}, {'facility': 'F4', 'customer': 6, 'cost': 774}, {'facility': 'F4', 'customer': 7, 'cost': 278}, {'facility': 'F4', 'customer': 8, 'cost': 614}, {'facility': 'F4', 'customer': 9, 'cost': 878}, {'facility': 'F4', 'customer': 10, 'cost': 368}], 'objective': 8171.0}","{'selected': ['F1'], 'assignments': ['F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1']}",21,markdown_table,0
UFLP,UFLP,"Someone on the school staff is lining up afternoon tutoring and has to pick which rooms to open and where each student will go. What makes one plan better than another is simple: add together the rental charges for the chosen rooms and the travel burden for each student β the plan that gives the smallest combined amount is preferred. No student can be left unassigned or split between rooms; every student goes to one offered room, and rooms donβt have hard capacity limits. The concrete details follow below.
{
""num_rooms"": 5,
""num_students"": 11,
""rooms"": [
{
""room_id"": ""F1"",
""room_rental_cost"": 1525
},
{
""room_id"": ""F2"",
""room_rental_cost"": 1260
},
{
""room_id"": ""F3"",
""room_rental_cost"": 1134
},
{
""room_id"": ""F4"",
""room_rental_cost"": 1076
},
{
""room_id"": ""F5"",
""room_rental_cost"": 1831
}
],
""students"": [
{
""student_id"": 0
},
{
""student_id"": 1
},
{
""student_id"": 2
},
{
""student_id"": 3
},
{
""student_id"": 4
},
{
""student_id"": 5
},
{
""student_id"": 6
},
{
""student_id"": 7
},
{
""student_id"": 8
},
{
""student_id"": 9
},
{
""student_id"": 10
}
],
""student_travels"": [
{
""room_id"": ""F1"",
""student_id"": 0,
""student_travel_cost"": 536
},
{
""room_id"": ""F1"",
""student_id"": 1,
""student_travel_cost"": 917
},
{
""room_id"": ""F1"",
""student_id"": 2,
""student_travel_cost"": 595
},
{
""room_id"": ""F1"",
""student_id"": 3,
""student_travel_cost"": 764
},
{
""room_id"": ""F1"",
""student_id"": 4,
""student_travel_cost"": 521
},
{
""room_id"": ""F1"",
""student_id"": 5,
""student_travel_cost"": 456
},
{
""room_id"": ""F1"",
""student_id"": 6,
""student_travel_cost"": 688
},
{
""room_id"": ""F1"",
""student_id"": 7,
""student_travel_cost"": 291
},
{
""room_id"": ""F1"",
""student_id"": 8,
""student_travel_cost"": 468
},
{
""room_id"": ""F1"",
""student_id"": 9,
""student_travel_cost"": 771
},
{
""room_id"": ""F1"",
""student_id"": 10,
""student_travel_cost"": 285
},
{
""room_id"": ""F2"",
""student_id"": 0,
""student_travel_cost"": 853
},
{
""room_id"": ""F2"",
""student_id"": 1,
""student_travel_cost"": 156
},
{
""room_id"": ""F2"",
""student_id"": 2,
""student_travel_cost"": 118
},
{
""room_id"": ""F2"",
""student_id"": 3,
""student_travel_cost"": 22
},
{
""room_id"": ""F2"",
""student_id"": 4,
""student_travel_cost"": 85
},
{
""room_id"": ""F2"",
""student_id"": 5,
""student_travel_cost"": 220
},
{
""room_id"": ""F2"",
""student_id"": 6,
""student_travel_cost"": 879
},
{
""room_id"": ""F2"",
""student_id"": 7,
""student_travel_cost"": 450
},
{
""room_id"": ""F2"",
""student_id"": 8,
""student_travel_cost"": 89
},
{
""room_id"": ""F2"",
""student_id"": 9,
""student_travel_cost"": 489
},
{
""room_id"": ""F2"",
""student_id"": 10,
""student_travel_cost"": 919
},
{
""room_id"": ""F3"",
""student_id"": 0,
""student_travel_cost"": 345
},
{
""room_id"": ""F3"",
""student_id"": 1,
""student_travel_cost"": 950
},
{
""room_id"": ""F3"",
""student_id"": 2,
""student_travel_cost"": 660
},
{
""room_id"": ""F3"",
""student_id"": 3,
""student_travel_cost"": 210
},
{
""room_id"": ""F3"",
""student_id"": 4,
""student_travel_cost"": 568
},
{
""room_id"": ""F3"",
""student_id"": 5,
""student_travel_cost"": 72
},
{
""room_id"": ""F3"",
""student_id"": 6,
""student_travel_cost"": 790
},
{
""room_id"": ""F3"",
""student_id"": 7,
""student_travel_cost"": 835
},
{
""room_id"": ""F3"",
""student_id"": 8,
""student_travel_cost"": 293
},
{
""room_id"": ""F3"",
""student_id"": 9,
""student_travel_cost"": 827
},
{
""room_id"": ""F3"",
""student_id"": 10,
""student_travel_cost"": 158
},
{
""room_id"": ""F4"",
""student_id"": 0,
""student_travel_cost"": 416
},
{
""room_id"": ""F4"",
""student_id"": 1,
""student_travel_cost"": 90
},
{
""room_id"": ""F4"",
""student_id"": 2,
""student_travel_cost"": 265
},
{
""room_id"": ""F4"",
""student_id"": 3,
""student_travel_cost"": 638
},
{
""room_id"": ""F4"",
""student_id"": 4,
""student_travel_cost"": 283
},
{
""room_id"": ""F4"",
""student_id"": 5,
""student_travel_cost"": 320
},
{
""room_id"": ""F4"",
""student_id"": 6,
""student_travel_cost"": 198
},
{
""room_id"": ""F4"",
""student_id"": 7,
""student_travel_cost"": 149
},
{
""room_id"": ""F4"",
""student_id"": 8,
""student_travel_cost"": 151
},
{
""room_id"": ""F4"",
""student_id"": 9,
""student_travel_cost"": 191
},
{
""room_id"": ""F4"",
""student_id"": 10,
""student_travel_cost"": 644
},
{
""room_id"": ""F5"",
""student_id"": 0,
""student_travel_cost"": 150
},
{
""room_id"": ""F5"",
""student_id"": 1,
""student_travel_cost"": 190
},
{
""room_id"": ""F5"",
""student_id"": 2,
""student_travel_cost"": 552
},
{
""room_id"": ""F5"",
""student_id"": 3,
""student_travel_cost"": 762
},
{
""room_id"": ""F5"",
""student_id"": 4,
""student_travel_cost"": 737
},
{
""room_id"": ""F5"",
""student_id"": 5,
""student_travel_cost"": 284
},
{
""room_id"": ""F5"",
""student_id"": 6,
""student_travel_cost"": 824
},
{
""room_id"": ""F5"",
""student_id"": 7,
""student_travel_cost"": 985
},
{
""room_id"": ""F5"",
""student_id"": 8,
""student_travel_cost"": 201
},
{
""room_id"": ""F5"",
""student_id"": 9,
""student_travel_cost"": 968
},
{
""room_id"": ""F5"",
""student_id"": 10,
""student_travel_cost"": 80
}
]
}
If you want to hand me the plan, a small JSON sketch is easiest β something that lists which rooms you open and, for each student, which opened room they go to. Hereβs the shape I expect:
{
""solution"": {
""selected"": [<room_to_open>, <room_to_open>, ...],
""assignments"": [<chosen_open_room>, <chosen_open_room>, ...]
}
}
""selected"" is just the list of room IDs you decide to open (the rental charges will be counted for those). ""assignments"" gives one entry per student showing the room theyβll attend β so the first entry is the room for the first student, the second for the second student, and so on. Easy, no extra fields needed.
This is just a sketch of the expected shape, not the actual answer β fill it in with the real IDs from the instance input.
Please use the exact identifiers from the instance input β do not rename them or invent new labels. For example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [1525, 1260, 1134, 1076, 1831], 'connection_costs': [[536, 917, 595, 764, 521, 456, 688, 291, 468, 771, 285], [853, 156, 118, 22, 85, 220, 879, 450, 89, 489, 919], [345, 950, 660, 210, 568, 72, 790, 835, 293, 827, 158], [416, 90, 265, 638, 283, 320, 198, 149, 151, 191, 644], [150, 190, 552, 762, 737, 284, 824, 985, 201, 968, 80]], 'objective': 4322.0}","{'open_facilities': [2, 3], 'assignments': [2, 3, 3, 2, 3, 2, 3, 3, 3, 3, 2]}",4322.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 1525}, {'id': 'F2', 'opening_cost': 1260}, {'id': 'F3', 'opening_cost': 1134}, {'id': 'F4', 'opening_cost': 1076}, {'id': 'F5', 'opening_cost': 1831}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 536}, {'facility': 'F1', 'customer': 1, 'cost': 917}, {'facility': 'F1', 'customer': 2, 'cost': 595}, {'facility': 'F1', 'customer': 3, 'cost': 764}, {'facility': 'F1', 'customer': 4, 'cost': 521}, {'facility': 'F1', 'customer': 5, 'cost': 456}, {'facility': 'F1', 'customer': 6, 'cost': 688}, {'facility': 'F1', 'customer': 7, 'cost': 291}, {'facility': 'F1', 'customer': 8, 'cost': 468}, {'facility': 'F1', 'customer': 9, 'cost': 771}, {'facility': 'F1', 'customer': 10, 'cost': 285}, {'facility': 'F2', 'customer': 0, 'cost': 853}, {'facility': 'F2', 'customer': 1, 'cost': 156}, {'facility': 'F2', 'customer': 2, 'cost': 118}, {'facility': 'F2', 'customer': 3, 'cost': 22}, {'facility': 'F2', 'customer': 4, 'cost': 85}, {'facility': 'F2', 'customer': 5, 'cost': 220}, {'facility': 'F2', 'customer': 6, 'cost': 879}, {'facility': 'F2', 'customer': 7, 'cost': 450}, {'facility': 'F2', 'customer': 8, 'cost': 89}, {'facility': 'F2', 'customer': 9, 'cost': 489}, {'facility': 'F2', 'customer': 10, 'cost': 919}, {'facility': 'F3', 'customer': 0, 'cost': 345}, {'facility': 'F3', 'customer': 1, 'cost': 950}, {'facility': 'F3', 'customer': 2, 'cost': 660}, {'facility': 'F3', 'customer': 3, 'cost': 210}, {'facility': 'F3', 'customer': 4, 'cost': 568}, {'facility': 'F3', 'customer': 5, 'cost': 72}, {'facility': 'F3', 'customer': 6, 'cost': 790}, {'facility': 'F3', 'customer': 7, 'cost': 835}, {'facility': 'F3', 'customer': 8, 'cost': 293}, {'facility': 'F3', 'customer': 9, 'cost': 827}, {'facility': 'F3', 'customer': 10, 'cost': 158}, {'facility': 'F4', 'customer': 0, 'cost': 416}, {'facility': 'F4', 'customer': 1, 'cost': 90}, {'facility': 'F4', 'customer': 2, 'cost': 265}, {'facility': 'F4', 'customer': 3, 'cost': 638}, {'facility': 'F4', 'customer': 4, 'cost': 283}, {'facility': 'F4', 'customer': 5, 'cost': 320}, {'facility': 'F4', 'customer': 6, 'cost': 198}, {'facility': 'F4', 'customer': 7, 'cost': 149}, {'facility': 'F4', 'customer': 8, 'cost': 151}, {'facility': 'F4', 'customer': 9, 'cost': 191}, {'facility': 'F4', 'customer': 10, 'cost': 644}, {'facility': 'F5', 'customer': 0, 'cost': 150}, {'facility': 'F5', 'customer': 1, 'cost': 190}, {'facility': 'F5', 'customer': 2, 'cost': 552}, {'facility': 'F5', 'customer': 3, 'cost': 762}, {'facility': 'F5', 'customer': 4, 'cost': 737}, {'facility': 'F5', 'customer': 5, 'cost': 284}, {'facility': 'F5', 'customer': 6, 'cost': 824}, {'facility': 'F5', 'customer': 7, 'cost': 985}, {'facility': 'F5', 'customer': 8, 'cost': 201}, {'facility': 'F5', 'customer': 9, 'cost': 968}, {'facility': 'F5', 'customer': 10, 'cost': 80}], 'objective': 4322.0}","{'selected': ['F3', 'F4'], 'assignments': ['F3', 'F4', 'F4', 'F3', 'F4', 'F3', 'F4', 'F4', 'F4', 'F4', 'F3']}",22,json,0
UFLP,UFLP,"Many people rely on the bookmobile, and the outreach team must pick from a list of possible stops, each with its own price to operate. Patrons are scattered around, so once stops are chosen each patron needs to be assigned to exactly one of those running stops. The smart choice is the one that minimizes the total cost β the running costs for chosen stops plus the combined travel distance of everyone β calculated by simply adding those two parts together. No patron can be assigned to more than one stop or be left out, and assignments only count if the stop is actually running. The specifics are shown below.
{
""num_candidate_stops"": 6,
""num_patrons"": 14,
""stops"": [
{
""stop_id"": ""F1"",
""stop_operating_cost"": 7433
},
{
""stop_id"": ""F2"",
""stop_operating_cost"": 8799
},
{
""stop_id"": ""F3"",
""stop_operating_cost"": 9182
},
{
""stop_id"": ""F4"",
""stop_operating_cost"": 9103
},
{
""stop_id"": ""F5"",
""stop_operating_cost"": 7198
},
{
""stop_id"": ""F6"",
""stop_operating_cost"": 9155
}
],
""patrons"": [
{
""patron_id"": 1
},
{
""patron_id"": 2
},
{
""patron_id"": 3
},
{
""patron_id"": 4
},
{
""patron_id"": 5
},
{
""patron_id"": 6
},
{
""patron_id"": 7
},
{
""patron_id"": 8
},
{
""patron_id"": 9
},
{
""patron_id"": 10
},
{
""patron_id"": 11
},
{
""patron_id"": 12
},
{
""patron_id"": 13
},
{
""patron_id"": 14
}
],
""travel_distances"": [
{
""stop_id"": ""F1"",
""patron_id"": 1,
""travel_distance_cost"": 711
},
{
""stop_id"": ""F1"",
""patron_id"": 2,
""travel_distance_cost"": 855
},
{
""stop_id"": ""F1"",
""patron_id"": 3,
""travel_distance_cost"": 642
},
{
""stop_id"": ""F1"",
""patron_id"": 4,
""travel_distance_cost"": 286
},
{
""stop_id"": ""F1"",
""patron_id"": 5,
""travel_distance_cost"": 639
},
{
""stop_id"": ""F1"",
""patron_id"": 6,
""travel_distance_cost"": 165
},
{
""stop_id"": ""F1"",
""patron_id"": 7,
""travel_distance_cost"": 998
},
{
""stop_id"": ""F1"",
""patron_id"": 8,
""travel_distance_cost"": 761
},
{
""stop_id"": ""F1"",
""patron_id"": 9,
""travel_distance_cost"": 368
},
{
""stop_id"": ""F1"",
""patron_id"": 10,
""travel_distance_cost"": 309
},
{
""stop_id"": ""F1"",
""patron_id"": 11,
""travel_distance_cost"": 772
},
{
""stop_id"": ""F1"",
""patron_id"": 12,
""travel_distance_cost"": 931
},
{
""stop_id"": ""F1"",
""patron_id"": 13,
""travel_distance_cost"": 260
},
{
""stop_id"": ""F1"",
""patron_id"": 14,
""travel_distance_cost"": 839
},
{
""stop_id"": ""F2"",
""patron_id"": 1,
""travel_distance_cost"": 882
},
{
""stop_id"": ""F2"",
""patron_id"": 2,
""travel_distance_cost"": 899
},
{
""stop_id"": ""F2"",
""patron_id"": 3,
""travel_distance_cost"": 880
},
{
""stop_id"": ""F2"",
""patron_id"": 4,
""travel_distance_cost"": 724
},
{
""stop_id"": ""F2"",
""patron_id"": 5,
""travel_distance_cost"": 468
},
{
""stop_id"": ""F2"",
""patron_id"": 6,
""travel_distance_cost"": 571
},
{
""stop_id"": ""F2"",
""patron_id"": 7,
""travel_distance_cost"": 393
},
{
""stop_id"": ""F2"",
""patron_id"": 8,
""travel_distance_cost"": 732
},
{
""stop_id"": ""F2"",
""patron_id"": 9,
""travel_distance_cost"": 757
},
{
""stop_id"": ""F2"",
""patron_id"": 10,
""travel_distance_cost"": 612
},
{
""stop_id"": ""F2"",
""patron_id"": 11,
""travel_distance_cost"": 980
},
{
""stop_id"": ""F2"",
""patron_id"": 12,
""travel_distance_cost"": 375
},
{
""stop_id"": ""F2"",
""patron_id"": 13,
""travel_distance_cost"": 671
},
{
""stop_id"": ""F2"",
""patron_id"": 14,
""travel_distance_cost"": 105
},
{
""stop_id"": ""F3"",
""patron_id"": 1,
""travel_distance_cost"": 390
},
{
""stop_id"": ""F3"",
""patron_id"": 2,
""travel_distance_cost"": 958
},
{
""stop_id"": ""F3"",
""patron_id"": 3,
""travel_distance_cost"": 633
},
{
""stop_id"": ""F3"",
""patron_id"": 4,
""travel_distance_cost"": 211
},
{
""stop_id"": ""F3"",
""patron_id"": 5,
""travel_distance_cost"": 914
},
{
""stop_id"": ""F3"",
""patron_id"": 6,
""travel_distance_cost"": 281
},
{
""stop_id"": ""F3"",
""patron_id"": 7,
""travel_distance_cost"": 352
},
{
""stop_id"": ""F3"",
""patron_id"": 8,
""travel_distance_cost"": 623
},
{
""stop_id"": ""F3"",
""patron_id"": 9,
""travel_distance_cost"": 516
},
{
""stop_id"": ""F3"",
""patron_id"": 10,
""travel_distance_cost"": 20
},
{
""stop_id"": ""F3"",
""patron_id"": 11,
""travel_distance_cost"": 944
},
{
""stop_id"": ""F3"",
""patron_id"": 12,
""travel_distance_cost"": 13
},
{
""stop_id"": ""F3"",
""patron_id"": 13,
""travel_distance_cost"": 287
},
{
""stop_id"": ""F3"",
""patron_id"": 14,
""travel_distance_cost"": 661
},
{
""stop_id"": ""F4"",
""patron_id"": 1,
""travel_distance_cost"": 353
},
{
""stop_id"": ""F4"",
""patron_id"": 2,
""travel_distance_cost"": 327
},
{
""stop_id"": ""F4"",
""patron_id"": 3,
""travel_distance_cost"": 624
},
{
""stop_id"": ""F4"",
""patron_id"": 4,
""travel_distance_cost"": 871
},
{
""stop_id"": ""F4"",
""patron_id"": 5,
""travel_distance_cost"": 864
},
{
""stop_id"": ""F4"",
""patron_id"": 6,
""travel_distance_cost"": 65
},
{
""stop_id"": ""F4"",
""patron_id"": 7,
""travel_distance_cost"": 768
},
{
""stop_id"": ""F4"",
""patron_id"": 8,
""travel_distance_cost"": 250
},
{
""stop_id"": ""F4"",
""patron_id"": 9,
""travel_distance_cost"": 548
},
{
""stop_id"": ""F4"",
""patron_id"": 10,
""travel_distance_cost"": 653
},
{
""stop_id"": ""F4"",
""patron_id"": 11,
""travel_distance_cost"": 357
},
{
""stop_id"": ""F4"",
""patron_id"": 12,
""travel_distance_cost"": 827
},
{
""stop_id"": ""F4"",
""patron_id"": 13,
""travel_distance_cost"": 416
},
{
""stop_id"": ""F4"",
""patron_id"": 14,
""travel_distance_cost"": 608
},
{
""stop_id"": ""F5"",
""patron_id"": 1,
""travel_distance_cost"": 788
},
{
""stop_id"": ""F5"",
""patron_id"": 2,
""travel_distance_cost"": 742
},
{
""stop_id"": ""F5"",
""patron_id"": 3,
""travel_distance_cost"": 55
},
{
""stop_id"": ""F5"",
""patron_id"": 4,
""travel_distance_cost"": 96
},
{
""stop_id"": ""F5"",
""patron_id"": 5,
""travel_distance_cost"": 904
},
{
""stop_id"": ""F5"",
""patron_id"": 6,
""travel_distance_cost"": 387
},
{
""stop_id"": ""F5"",
""patron_id"": 7,
""travel_distance_cost"": 130
},
{
""stop_id"": ""F5"",
""patron_id"": 8,
""travel_distance_cost"": 678
},
{
""stop_id"": ""F5"",
""patron_id"": 9,
""travel_distance_cost"": 424
},
{
""stop_id"": ""F5"",
""patron_id"": 10,
""travel_distance_cost"": 578
},
{
""stop_id"": ""F5"",
""patron_id"": 11,
""travel_distance_cost"": 342
},
{
""stop_id"": ""F5"",
""patron_id"": 12,
""travel_distance_cost"": 550
},
{
""stop_id"": ""F5"",
""patron_id"": 13,
""travel_distance_cost"": 103
},
{
""stop_id"": ""F5"",
""patron_id"": 14,
""travel_distance_cost"": 270
},
{
""stop_id"": ""F6"",
""patron_id"": 1,
""travel_distance_cost"": 669
},
{
""stop_id"": ""F6"",
""patron_id"": 2,
""travel_distance_cost"": 617
},
{
""stop_id"": ""F6"",
""patron_id"": 3,
""travel_distance_cost"": 499
},
{
""stop_id"": ""F6"",
""patron_id"": 4,
""travel_distance_cost"": 362
},
{
""stop_id"": ""F6"",
""patron_id"": 5,
""travel_distance_cost"": 682
},
{
""stop_id"": ""F6"",
""patron_id"": 6,
""travel_distance_cost"": 457
},
{
""stop_id"": ""F6"",
""patron_id"": 7,
""travel_distance_cost"": 609
},
{
""stop_id"": ""F6"",
""patron_id"": 8,
""travel_distance_cost"": 340
},
{
""stop_id"": ""F6"",
""patron_id"": 9,
""travel_distance_cost"": 149
},
{
""stop_id"": ""F6"",
""patron_id"": 10,
""travel_distance_cost"": 674
},
{
""stop_id"": ""F6"",
""patron_id"": 11,
""travel_distance_cost"": 890
},
{
""stop_id"": ""F6"",
""patron_id"": 12,
""travel_distance_cost"": 296
},
{
""stop_id"": ""F6"",
""patron_id"": 13,
""travel_distance_cost"": 495
},
{
""stop_id"": ""F6"",
""patron_id"": 14,
""travel_distance_cost"": 332
}
]
}
When you reply, just stick to this simple JSON layout so it's easy to parse and check.
{
""solution"": {
""selected"": [<stop_to_open>, <stop_to_open>, ...],
""assignments"": [<assigned_stop>, <assigned_stop>, ...]
}
}
""selected"" is where you list the stops you decide to run (the ones you pay to operate). ""assignments"" is a list, in the same order as the patrons in the instance, saying which running stop each patron will use. Think of it like filling out a form: pick the stops, then say for each patron which stop they're going to.
This JSON is just a sketch of the shape I need β not the final answer itself.
Please be careful: use the exact identifiers from the instance input, do not rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [7433, 8799, 9182, 9103, 7198, 9155], 'connection_costs': [[711, 855, 642, 286, 639, 165, 998, 761, 368, 309, 772, 931, 260, 839], [882, 899, 880, 724, 468, 571, 393, 732, 757, 612, 980, 375, 671, 105], [390, 958, 633, 211, 914, 281, 352, 623, 516, 20, 944, 13, 287, 661], [353, 327, 624, 871, 864, 65, 768, 250, 548, 653, 357, 827, 416, 608], [788, 742, 55, 96, 904, 387, 130, 678, 424, 578, 342, 550, 103, 270], [669, 617, 499, 362, 682, 457, 609, 340, 149, 674, 890, 296, 495, 332]], 'objective': 13245.0}","{'open_facilities': [4], 'assignments': [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]}",13245.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 14, 'facilities': [{'id': 'F1', 'opening_cost': 7433}, {'id': 'F2', 'opening_cost': 8799}, {'id': 'F3', 'opening_cost': 9182}, {'id': 'F4', 'opening_cost': 9103}, {'id': 'F5', 'opening_cost': 7198}, {'id': 'F6', 'opening_cost': 9155}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}, {'id': 12}, {'id': 13}, {'id': 14}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 711}, {'facility': 'F1', 'customer': 2, 'cost': 855}, {'facility': 'F1', 'customer': 3, 'cost': 642}, {'facility': 'F1', 'customer': 4, 'cost': 286}, {'facility': 'F1', 'customer': 5, 'cost': 639}, {'facility': 'F1', 'customer': 6, 'cost': 165}, {'facility': 'F1', 'customer': 7, 'cost': 998}, {'facility': 'F1', 'customer': 8, 'cost': 761}, {'facility': 'F1', 'customer': 9, 'cost': 368}, {'facility': 'F1', 'customer': 10, 'cost': 309}, {'facility': 'F1', 'customer': 11, 'cost': 772}, {'facility': 'F1', 'customer': 12, 'cost': 931}, {'facility': 'F1', 'customer': 13, 'cost': 260}, {'facility': 'F1', 'customer': 14, 'cost': 839}, {'facility': 'F2', 'customer': 1, 'cost': 882}, {'facility': 'F2', 'customer': 2, 'cost': 899}, {'facility': 'F2', 'customer': 3, 'cost': 880}, {'facility': 'F2', 'customer': 4, 'cost': 724}, {'facility': 'F2', 'customer': 5, 'cost': 468}, {'facility': 'F2', 'customer': 6, 'cost': 571}, {'facility': 'F2', 'customer': 7, 'cost': 393}, {'facility': 'F2', 'customer': 8, 'cost': 732}, {'facility': 'F2', 'customer': 9, 'cost': 757}, {'facility': 'F2', 'customer': 10, 'cost': 612}, {'facility': 'F2', 'customer': 11, 'cost': 980}, {'facility': 'F2', 'customer': 12, 'cost': 375}, {'facility': 'F2', 'customer': 13, 'cost': 671}, {'facility': 'F2', 'customer': 14, 'cost': 105}, {'facility': 'F3', 'customer': 1, 'cost': 390}, {'facility': 'F3', 'customer': 2, 'cost': 958}, {'facility': 'F3', 'customer': 3, 'cost': 633}, {'facility': 'F3', 'customer': 4, 'cost': 211}, {'facility': 'F3', 'customer': 5, 'cost': 914}, {'facility': 'F3', 'customer': 6, 'cost': 281}, {'facility': 'F3', 'customer': 7, 'cost': 352}, {'facility': 'F3', 'customer': 8, 'cost': 623}, {'facility': 'F3', 'customer': 9, 'cost': 516}, {'facility': 'F3', 'customer': 10, 'cost': 20}, {'facility': 'F3', 'customer': 11, 'cost': 944}, {'facility': 'F3', 'customer': 12, 'cost': 13}, {'facility': 'F3', 'customer': 13, 'cost': 287}, {'facility': 'F3', 'customer': 14, 'cost': 661}, {'facility': 'F4', 'customer': 1, 'cost': 353}, {'facility': 'F4', 'customer': 2, 'cost': 327}, {'facility': 'F4', 'customer': 3, 'cost': 624}, {'facility': 'F4', 'customer': 4, 'cost': 871}, {'facility': 'F4', 'customer': 5, 'cost': 864}, {'facility': 'F4', 'customer': 6, 'cost': 65}, {'facility': 'F4', 'customer': 7, 'cost': 768}, {'facility': 'F4', 'customer': 8, 'cost': 250}, {'facility': 'F4', 'customer': 9, 'cost': 548}, {'facility': 'F4', 'customer': 10, 'cost': 653}, {'facility': 'F4', 'customer': 11, 'cost': 357}, {'facility': 'F4', 'customer': 12, 'cost': 827}, {'facility': 'F4', 'customer': 13, 'cost': 416}, {'facility': 'F4', 'customer': 14, 'cost': 608}, {'facility': 'F5', 'customer': 1, 'cost': 788}, {'facility': 'F5', 'customer': 2, 'cost': 742}, {'facility': 'F5', 'customer': 3, 'cost': 55}, {'facility': 'F5', 'customer': 4, 'cost': 96}, {'facility': 'F5', 'customer': 5, 'cost': 904}, {'facility': 'F5', 'customer': 6, 'cost': 387}, {'facility': 'F5', 'customer': 7, 'cost': 130}, {'facility': 'F5', 'customer': 8, 'cost': 678}, {'facility': 'F5', 'customer': 9, 'cost': 424}, {'facility': 'F5', 'customer': 10, 'cost': 578}, {'facility': 'F5', 'customer': 11, 'cost': 342}, {'facility': 'F5', 'customer': 12, 'cost': 550}, {'facility': 'F5', 'customer': 13, 'cost': 103}, {'facility': 'F5', 'customer': 14, 'cost': 270}, {'facility': 'F6', 'customer': 1, 'cost': 669}, {'facility': 'F6', 'customer': 2, 'cost': 617}, {'facility': 'F6', 'customer': 3, 'cost': 499}, {'facility': 'F6', 'customer': 4, 'cost': 362}, {'facility': 'F6', 'customer': 5, 'cost': 682}, {'facility': 'F6', 'customer': 6, 'cost': 457}, {'facility': 'F6', 'customer': 7, 'cost': 609}, {'facility': 'F6', 'customer': 8, 'cost': 340}, {'facility': 'F6', 'customer': 9, 'cost': 149}, {'facility': 'F6', 'customer': 10, 'cost': 674}, {'facility': 'F6', 'customer': 11, 'cost': 890}, {'facility': 'F6', 'customer': 12, 'cost': 296}, {'facility': 'F6', 'customer': 13, 'cost': 495}, {'facility': 'F6', 'customer': 14, 'cost': 332}], 'objective': 13245.0}","{'selected': ['F5'], 'assignments': ['F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5']}",23,json,1
UFLP,UFLP,"Many people donβt realize how much goes into choosing which distribution points to run for a farmers market network and how to route vendors there. Each candidate point has a cost to bring online, and each vendor has a cost to haul goods to whichever point they use. The goal is to keep the overall expense as small as possible β the total is simply the combined cost of the points we decide to run plus all vendorsβ hauling costs β and every vendor must be sent to exactly one running point, with no duplicates or omissions. The concrete numbers appear below.
{
""num_distribution_points"": 4,
""num_vendors"": 9,
""distribution_points"": [
{
""distribution_point_id"": ""F1"",
""setup_cost"": 2000
},
{
""distribution_point_id"": ""F2"",
""setup_cost"": 2000
},
{
""distribution_point_id"": ""F3"",
""setup_cost"": 2000
},
{
""distribution_point_id"": ""F4"",
""setup_cost"": 2000
}
],
""vendors"": [
{
""vendor_id"": 1
},
{
""vendor_id"": 2
},
{
""vendor_id"": 3
},
{
""vendor_id"": 4
},
{
""vendor_id"": 5
},
{
""vendor_id"": 6
},
{
""vendor_id"": 7
},
{
""vendor_id"": 8
},
{
""vendor_id"": 9
}
],
""haulings"": [
{
""distribution_point_id"": ""F1"",
""vendor_id"": 1,
""hauling_cost"": 758
},
{
""distribution_point_id"": ""F1"",
""vendor_id"": 2,
""hauling_cost"": 457
},
{
""distribution_point_id"": ""F1"",
""vendor_id"": 3,
""hauling_cost"": 153
},
{
""distribution_point_id"": ""F1"",
""vendor_id"": 4,
""hauling_cost"": 36
},
{
""distribution_point_id"": ""F1"",
""vendor_id"": 5,
""hauling_cost"": 323
},
{
""distribution_point_id"": ""F1"",
""vendor_id"": 6,
""hauling_cost"": 853
},
{
""distribution_point_id"": ""F1"",
""vendor_id"": 7,
""hauling_cost"": 85
},
{
""distribution_point_id"": ""F1"",
""vendor_id"": 8,
""hauling_cost"": 117
},
{
""distribution_point_id"": ""F1"",
""vendor_id"": 9,
""hauling_cost"": 403
},
{
""distribution_point_id"": ""F2"",
""vendor_id"": 1,
""hauling_cost"": 624
},
{
""distribution_point_id"": ""F2"",
""vendor_id"": 2,
""hauling_cost"": 855
},
{
""distribution_point_id"": ""F2"",
""vendor_id"": 3,
""hauling_cost"": 382
},
{
""distribution_point_id"": ""F2"",
""vendor_id"": 4,
""hauling_cost"": 563
},
{
""distribution_point_id"": ""F2"",
""vendor_id"": 5,
""hauling_cost"": 409
},
{
""distribution_point_id"": ""F2"",
""vendor_id"": 6,
""hauling_cost"": 228
},
{
""distribution_point_id"": ""F2"",
""vendor_id"": 7,
""hauling_cost"": 742
},
{
""distribution_point_id"": ""F2"",
""vendor_id"": 8,
""hauling_cost"": 25
},
{
""distribution_point_id"": ""F2"",
""vendor_id"": 9,
""hauling_cost"": 559
},
{
""distribution_point_id"": ""F3"",
""vendor_id"": 1,
""hauling_cost"": 73
},
{
""distribution_point_id"": ""F3"",
""vendor_id"": 2,
""hauling_cost"": 55
},
{
""distribution_point_id"": ""F3"",
""vendor_id"": 3,
""hauling_cost"": 379
},
{
""distribution_point_id"": ""F3"",
""vendor_id"": 4,
""hauling_cost"": 963
},
{
""distribution_point_id"": ""F3"",
""vendor_id"": 5,
""hauling_cost"": 301
},
{
""distribution_point_id"": ""F3"",
""vendor_id"": 6,
""hauling_cost"": 270
},
{
""distribution_point_id"": ""F3"",
""vendor_id"": 7,
""hauling_cost"": 947
},
{
""distribution_point_id"": ""F3"",
""vendor_id"": 8,
""hauling_cost"": 11
},
{
""distribution_point_id"": ""F3"",
""vendor_id"": 9,
""hauling_cost"": 837
},
{
""distribution_point_id"": ""F4"",
""vendor_id"": 1,
""hauling_cost"": 631
},
{
""distribution_point_id"": ""F4"",
""vendor_id"": 2,
""hauling_cost"": 990
},
{
""distribution_point_id"": ""F4"",
""vendor_id"": 3,
""hauling_cost"": 161
},
{
""distribution_point_id"": ""F4"",
""vendor_id"": 4,
""hauling_cost"": 471
},
{
""distribution_point_id"": ""F4"",
""vendor_id"": 5,
""hauling_cost"": 934
},
{
""distribution_point_id"": ""F4"",
""vendor_id"": 6,
""hauling_cost"": 329
},
{
""distribution_point_id"": ""F4"",
""vendor_id"": 7,
""hauling_cost"": 475
},
{
""distribution_point_id"": ""F4"",
""vendor_id"": 8,
""hauling_cost"": 644
},
{
""distribution_point_id"": ""F4"",
""vendor_id"": 9,
""hauling_cost"": 320
}
]
}
Also, Iβll keep my reply in a simple JSON layout so itβs easy to fill in β hereβs the shape I expect you to follow:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
""selected"" is the list of market points you decide to run (put the exact identifiers from the instance there). ""assignments"" is a list, one entry per vendor in the same order as the instance, showing which open point that vendor goes to. Itβs just a quick form-like sketch of the expected shape, not the real answer.
Please use the exact identifiers from the instance input β donβt rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000], 'connection_costs': [[758, 457, 153, 36, 323, 853, 85, 117, 403], [624, 855, 382, 563, 409, 228, 742, 25, 559], [73, 55, 379, 963, 301, 270, 947, 11, 837], [631, 990, 161, 471, 934, 329, 475, 644, 320]], 'objective': 5185.0}","{'open_facilities': [0], 'assignments': [0, 0, 0, 0, 0, 0, 0, 0, 0]}",5185.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 9, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 758}, {'facility': 'F1', 'customer': 2, 'cost': 457}, {'facility': 'F1', 'customer': 3, 'cost': 153}, {'facility': 'F1', 'customer': 4, 'cost': 36}, {'facility': 'F1', 'customer': 5, 'cost': 323}, {'facility': 'F1', 'customer': 6, 'cost': 853}, {'facility': 'F1', 'customer': 7, 'cost': 85}, {'facility': 'F1', 'customer': 8, 'cost': 117}, {'facility': 'F1', 'customer': 9, 'cost': 403}, {'facility': 'F2', 'customer': 1, 'cost': 624}, {'facility': 'F2', 'customer': 2, 'cost': 855}, {'facility': 'F2', 'customer': 3, 'cost': 382}, {'facility': 'F2', 'customer': 4, 'cost': 563}, {'facility': 'F2', 'customer': 5, 'cost': 409}, {'facility': 'F2', 'customer': 6, 'cost': 228}, {'facility': 'F2', 'customer': 7, 'cost': 742}, {'facility': 'F2', 'customer': 8, 'cost': 25}, {'facility': 'F2', 'customer': 9, 'cost': 559}, {'facility': 'F3', 'customer': 1, 'cost': 73}, {'facility': 'F3', 'customer': 2, 'cost': 55}, {'facility': 'F3', 'customer': 3, 'cost': 379}, {'facility': 'F3', 'customer': 4, 'cost': 963}, {'facility': 'F3', 'customer': 5, 'cost': 301}, {'facility': 'F3', 'customer': 6, 'cost': 270}, {'facility': 'F3', 'customer': 7, 'cost': 947}, {'facility': 'F3', 'customer': 8, 'cost': 11}, {'facility': 'F3', 'customer': 9, 'cost': 837}, {'facility': 'F4', 'customer': 1, 'cost': 631}, {'facility': 'F4', 'customer': 2, 'cost': 990}, {'facility': 'F4', 'customer': 3, 'cost': 161}, {'facility': 'F4', 'customer': 4, 'cost': 471}, {'facility': 'F4', 'customer': 5, 'cost': 934}, {'facility': 'F4', 'customer': 6, 'cost': 329}, {'facility': 'F4', 'customer': 7, 'cost': 475}, {'facility': 'F4', 'customer': 8, 'cost': 644}, {'facility': 'F4', 'customer': 9, 'cost': 320}], 'objective': 5185.0}","{'selected': ['F1'], 'assignments': ['F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1']}",24,json,1
UFLP,UFLP,"Backstage itβs being decided which candidate info tables to put people at and how to route each festivalgoer to a single staffed table so the combined hit β staffing fees plus everyoneβs walking burden β is as small as possible. To measure a plan, total the staffing costs for the tables that are opened and then add every visitorβs walk cost based on which table theyβre sent to. No one can be left unassigned or sent to an unstaffed table, and any staffed table can serve any number of visitors. The specific details and numbers are listed below.
There are 5 booths and 14 attendees in this instance.
**Booths**
| booth_id | staffing_fee |
|---|---|
| F1 | 1716 |
| F2 | 1060 |
| F3 | 1691 |
| F4 | 1742 |
| F5 | 1031 |
**Attendees**
| attendee_id |
|---|
| A |
| B |
| C |
| D |
| E |
| F |
| G |
| H |
| I |
| J |
| K |
| L |
| M |
| N |
**Walking Cost**
| booth_id | attendee_id | walking_cost |
|---|---|---|
| F1 | A | 677 |
| F1 | B | 698 |
| F1 | C | 48 |
| F1 | D | 791 |
| F1 | E | 709 |
| F1 | F | 39 |
| F1 | G | 733 |
| F1 | H | 670 |
| F1 | I | 413 |
| F1 | J | 983 |
| F1 | K | 675 |
| F1 | L | 908 |
| F1 | M | 756 |
| F1 | N | 568 |
| F2 | A | 95 |
| F2 | B | 222 |
| F2 | C | 530 |
| F2 | D | 949 |
| F2 | E | 236 |
| F2 | F | 113 |
| F2 | G | 464 |
| F2 | H | 360 |
| F2 | I | 872 |
| F2 | J | 224 |
| F2 | K | 449 |
| F2 | L | 565 |
| F2 | M | 233 |
| F2 | N | 687 |
| F3 | A | 168 |
| F3 | B | 464 |
| F3 | C | 192 |
| F3 | D | 247 |
| F3 | E | 470 |
| F3 | F | 434 |
| F3 | G | 888 |
| F3 | H | 716 |
| F3 | I | 963 |
| F3 | J | 429 |
| F3 | K | 937 |
| F3 | L | 857 |
| F3 | M | 465 |
| F3 | N | 43 |
| F4 | A | 104 |
| F4 | B | 121 |
| F4 | C | 517 |
| F4 | D | 893 |
| F4 | E | 964 |
| F4 | F | 497 |
| F4 | G | 443 |
| F4 | H | 611 |
| F4 | I | 115 |
| F4 | J | 524 |
| F4 | K | 912 |
| F4 | L | 201 |
| F4 | M | 407 |
| F4 | N | 812 |
| F5 | A | 471 |
| F5 | B | 405 |
| F5 | C | 729 |
| F5 | D | 349 |
| F5 | E | 507 |
| F5 | F | 148 |
| F5 | G | 739 |
| F5 | H | 99 |
| F5 | I | 594 |
| F5 | J | 674 |
| F5 | K | 250 |
| F5 | L | 973 |
| F5 | M | 154 |
| F5 | N | 207 |
Quick heads-up: when you send back your plan, use this little JSON layout so I can read it reliably.
{
""solution"": {
""selected"": [<info_table_to_open>, <info_table_to_open>, ...],
""assignments"": [<assigned_info_table>, <assigned_info_table>, ...]
}
}
""selected"" is where you list which info tables you're opening, and ""assignments"" is a list that, for each festivalgoer in the order they appear in the instance, says which opened table they get sent to. Think of it as a simple form: open these tables, and these people go to those tables.
This JSON is just the expected shape β a sketch of how your answer should be formatted, not the actual choices.
All identifiers in your actual answer must match the instance input exactly β do not rename them or invent new labels. For example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [1716, 1060, 1691, 1742, 1031], 'connection_costs': [[677, 698, 48, 791, 709, 39, 733, 670, 413, 983, 675, 908, 756, 568], [95, 222, 530, 949, 236, 113, 464, 360, 872, 224, 449, 565, 233, 687], [168, 464, 192, 247, 470, 434, 888, 716, 963, 429, 937, 857, 465, 43], [104, 121, 517, 893, 964, 497, 443, 611, 115, 524, 912, 201, 407, 812], [471, 405, 729, 349, 507, 148, 739, 99, 594, 674, 250, 973, 154, 207]], 'objective': 6193.0}","{'open_facilities': [1, 4], 'assignments': [1, 1, 1, 4, 1, 1, 1, 4, 4, 1, 4, 1, 4, 4]}",6193.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 14, 'facilities': [{'id': 'F1', 'opening_cost': 1716}, {'id': 'F2', 'opening_cost': 1060}, {'id': 'F3', 'opening_cost': 1691}, {'id': 'F4', 'opening_cost': 1742}, {'id': 'F5', 'opening_cost': 1031}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}, {'id': 'L'}, {'id': 'M'}, {'id': 'N'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 677}, {'facility': 'F1', 'customer': 'B', 'cost': 698}, {'facility': 'F1', 'customer': 'C', 'cost': 48}, {'facility': 'F1', 'customer': 'D', 'cost': 791}, {'facility': 'F1', 'customer': 'E', 'cost': 709}, {'facility': 'F1', 'customer': 'F', 'cost': 39}, {'facility': 'F1', 'customer': 'G', 'cost': 733}, {'facility': 'F1', 'customer': 'H', 'cost': 670}, {'facility': 'F1', 'customer': 'I', 'cost': 413}, {'facility': 'F1', 'customer': 'J', 'cost': 983}, {'facility': 'F1', 'customer': 'K', 'cost': 675}, {'facility': 'F1', 'customer': 'L', 'cost': 908}, {'facility': 'F1', 'customer': 'M', 'cost': 756}, {'facility': 'F1', 'customer': 'N', 'cost': 568}, {'facility': 'F2', 'customer': 'A', 'cost': 95}, {'facility': 'F2', 'customer': 'B', 'cost': 222}, {'facility': 'F2', 'customer': 'C', 'cost': 530}, {'facility': 'F2', 'customer': 'D', 'cost': 949}, {'facility': 'F2', 'customer': 'E', 'cost': 236}, {'facility': 'F2', 'customer': 'F', 'cost': 113}, {'facility': 'F2', 'customer': 'G', 'cost': 464}, {'facility': 'F2', 'customer': 'H', 'cost': 360}, {'facility': 'F2', 'customer': 'I', 'cost': 872}, {'facility': 'F2', 'customer': 'J', 'cost': 224}, {'facility': 'F2', 'customer': 'K', 'cost': 449}, {'facility': 'F2', 'customer': 'L', 'cost': 565}, {'facility': 'F2', 'customer': 'M', 'cost': 233}, {'facility': 'F2', 'customer': 'N', 'cost': 687}, {'facility': 'F3', 'customer': 'A', 'cost': 168}, {'facility': 'F3', 'customer': 'B', 'cost': 464}, {'facility': 'F3', 'customer': 'C', 'cost': 192}, {'facility': 'F3', 'customer': 'D', 'cost': 247}, {'facility': 'F3', 'customer': 'E', 'cost': 470}, {'facility': 'F3', 'customer': 'F', 'cost': 434}, {'facility': 'F3', 'customer': 'G', 'cost': 888}, {'facility': 'F3', 'customer': 'H', 'cost': 716}, {'facility': 'F3', 'customer': 'I', 'cost': 963}, {'facility': 'F3', 'customer': 'J', 'cost': 429}, {'facility': 'F3', 'customer': 'K', 'cost': 937}, {'facility': 'F3', 'customer': 'L', 'cost': 857}, {'facility': 'F3', 'customer': 'M', 'cost': 465}, {'facility': 'F3', 'customer': 'N', 'cost': 43}, {'facility': 'F4', 'customer': 'A', 'cost': 104}, {'facility': 'F4', 'customer': 'B', 'cost': 121}, {'facility': 'F4', 'customer': 'C', 'cost': 517}, {'facility': 'F4', 'customer': 'D', 'cost': 893}, {'facility': 'F4', 'customer': 'E', 'cost': 964}, {'facility': 'F4', 'customer': 'F', 'cost': 497}, {'facility': 'F4', 'customer': 'G', 'cost': 443}, {'facility': 'F4', 'customer': 'H', 'cost': 611}, {'facility': 'F4', 'customer': 'I', 'cost': 115}, {'facility': 'F4', 'customer': 'J', 'cost': 524}, {'facility': 'F4', 'customer': 'K', 'cost': 912}, {'facility': 'F4', 'customer': 'L', 'cost': 201}, {'facility': 'F4', 'customer': 'M', 'cost': 407}, {'facility': 'F4', 'customer': 'N', 'cost': 812}, {'facility': 'F5', 'customer': 'A', 'cost': 471}, {'facility': 'F5', 'customer': 'B', 'cost': 405}, {'facility': 'F5', 'customer': 'C', 'cost': 729}, {'facility': 'F5', 'customer': 'D', 'cost': 349}, {'facility': 'F5', 'customer': 'E', 'cost': 507}, {'facility': 'F5', 'customer': 'F', 'cost': 148}, {'facility': 'F5', 'customer': 'G', 'cost': 739}, {'facility': 'F5', 'customer': 'H', 'cost': 99}, {'facility': 'F5', 'customer': 'I', 'cost': 594}, {'facility': 'F5', 'customer': 'J', 'cost': 674}, {'facility': 'F5', 'customer': 'K', 'cost': 250}, {'facility': 'F5', 'customer': 'L', 'cost': 973}, {'facility': 'F5', 'customer': 'M', 'cost': 154}, {'facility': 'F5', 'customer': 'N', 'cost': 207}], 'objective': 6193.0}","{'selected': ['F2', 'F5'], 'assignments': ['F2', 'F2', 'F2', 'F5', 'F2', 'F2', 'F2', 'F5', 'F5', 'F2', 'F5', 'F2', 'F5', 'F5']}",25,markdown_table,names
UFLP,UFLP,"Someone running a neighborhood parcel service is weighing which depots to switch on and which depot should handle each delivery. Each depot has a startup cost and each delivery carries a cost depending on the chosen depot, so decisions are judged by the total spend: depot startup costs plus the sum of all delivery costs. Every single delivery needs to be tied to one opened depot and not more. The full list of depots, costs, and deliveries appears below.
{
""num_depots"": 3,
""num_deliveries"": 9,
""depots"": [
{
""depot_id"": ""F1"",
""depot_startup_cost"": 1424
},
{
""depot_id"": ""F2"",
""depot_startup_cost"": 1477
},
{
""depot_id"": ""F3"",
""depot_startup_cost"": 1106
}
],
""deliverys"": [
{
""depot_id"": ""F1"",
""delivery_id"": 1,
""delivery_cost"": 665
},
{
""depot_id"": ""F1"",
""delivery_id"": 2,
""delivery_cost"": 847
},
{
""depot_id"": ""F1"",
""delivery_id"": 3,
""delivery_cost"": 128
},
{
""depot_id"": ""F1"",
""delivery_id"": 4,
""delivery_cost"": 201
},
{
""depot_id"": ""F1"",
""delivery_id"": 5,
""delivery_cost"": 309
},
{
""depot_id"": ""F1"",
""delivery_id"": 6,
""delivery_cost"": 904
},
{
""depot_id"": ""F1"",
""delivery_id"": 7,
""delivery_cost"": 566
},
{
""depot_id"": ""F1"",
""delivery_id"": 8,
""delivery_cost"": 378
},
{
""depot_id"": ""F1"",
""delivery_id"": 9,
""delivery_cost"": 837
},
{
""depot_id"": ""F2"",
""delivery_id"": 1,
""delivery_cost"": 542
},
{
""depot_id"": ""F2"",
""delivery_id"": 2,
""delivery_cost"": 40
},
{
""depot_id"": ""F2"",
""delivery_id"": 3,
""delivery_cost"": 998
},
{
""depot_id"": ""F2"",
""delivery_id"": 4,
""delivery_cost"": 41
},
{
""depot_id"": ""F2"",
""delivery_id"": 5,
""delivery_cost"": 610
},
{
""depot_id"": ""F2"",
""delivery_id"": 6,
""delivery_cost"": 125
},
{
""depot_id"": ""F2"",
""delivery_id"": 7,
""delivery_cost"": 426
},
{
""depot_id"": ""F2"",
""delivery_id"": 8,
""delivery_cost"": 919
},
{
""depot_id"": ""F2"",
""delivery_id"": 9,
""delivery_cost"": 196
},
{
""depot_id"": ""F3"",
""delivery_id"": 1,
""delivery_cost"": 917
},
{
""depot_id"": ""F3"",
""delivery_id"": 2,
""delivery_cost"": 978
},
{
""depot_id"": ""F3"",
""delivery_id"": 3,
""delivery_cost"": 705
},
{
""depot_id"": ""F3"",
""delivery_id"": 4,
""delivery_cost"": 232
},
{
""depot_id"": ""F3"",
""delivery_id"": 5,
""delivery_cost"": 710
},
{
""depot_id"": ""F3"",
""delivery_id"": 6,
""delivery_cost"": 23
},
{
""depot_id"": ""F3"",
""delivery_id"": 7,
""delivery_cost"": 325
},
{
""depot_id"": ""F3"",
""delivery_id"": 8,
""delivery_cost"": 128
},
{
""depot_id"": ""F3"",
""delivery_id"": 9,
""delivery_cost"": 603
}
]
}
You can just send back the choices in a tiny JSON snippet like this:
{
""solution"": {
""selected"": [<depot_to_open>, <depot_to_open>, ...],
""assignments"": [<chosen_open_depot>, <chosen_open_depot>, ...]
}
}
Think of ""selected"" as the list of depots you decide to switch on, and ""assignments"" as, for each delivery in order, which opened depot will handle it. Super casual sketch β not the final picks, just the shape I need.
Please make sure you use the exact depot and delivery identifiers from the instance input β don't rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [1424, 1477, 1106], 'connection_costs': [[665, 847, 128, 201, 309, 904, 566, 378, 837], [542, 40, 998, 41, 610, 125, 426, 919, 196], [917, 978, 705, 232, 710, 23, 325, 128, 603]], 'objective': 5086.0}","{'open_facilities': [0, 1], 'assignments': [1, 1, 0, 1, 0, 1, 1, 0, 1]}",5086.0,"{'problem_type': 'UFLP', 'num_facilities': 3, 'num_customers': 9, 'facilities': [{'id': 'F1', 'opening_cost': 1424}, {'id': 'F2', 'opening_cost': 1477}, {'id': 'F3', 'opening_cost': 1106}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 665}, {'facility': 'F1', 'customer': 2, 'cost': 847}, {'facility': 'F1', 'customer': 3, 'cost': 128}, {'facility': 'F1', 'customer': 4, 'cost': 201}, {'facility': 'F1', 'customer': 5, 'cost': 309}, {'facility': 'F1', 'customer': 6, 'cost': 904}, {'facility': 'F1', 'customer': 7, 'cost': 566}, {'facility': 'F1', 'customer': 8, 'cost': 378}, {'facility': 'F1', 'customer': 9, 'cost': 837}, {'facility': 'F2', 'customer': 1, 'cost': 542}, {'facility': 'F2', 'customer': 2, 'cost': 40}, {'facility': 'F2', 'customer': 3, 'cost': 998}, {'facility': 'F2', 'customer': 4, 'cost': 41}, {'facility': 'F2', 'customer': 5, 'cost': 610}, {'facility': 'F2', 'customer': 6, 'cost': 125}, {'facility': 'F2', 'customer': 7, 'cost': 426}, {'facility': 'F2', 'customer': 8, 'cost': 919}, {'facility': 'F2', 'customer': 9, 'cost': 196}, {'facility': 'F3', 'customer': 1, 'cost': 917}, {'facility': 'F3', 'customer': 2, 'cost': 978}, {'facility': 'F3', 'customer': 3, 'cost': 705}, {'facility': 'F3', 'customer': 4, 'cost': 232}, {'facility': 'F3', 'customer': 5, 'cost': 710}, {'facility': 'F3', 'customer': 6, 'cost': 23}, {'facility': 'F3', 'customer': 7, 'cost': 325}, {'facility': 'F3', 'customer': 8, 'cost': 128}, {'facility': 'F3', 'customer': 9, 'cost': 603}], 'objective': 5086.0}","{'selected': ['F1', 'F2'], 'assignments': ['F2', 'F2', 'F1', 'F2', 'F1', 'F2', 'F2', 'F1', 'F2']}",26,json,1
UFLP,UFLP,"Thereβs a community project to roll out lending lockers for a local tool library so people can pick up items at convenient spots. The job is to pick which lockers to install and then attach every borrower to exactly one of the installed lockers β nobody should be missing or duplicated in the sign-up list. Effectiveness is judged by the sum of two things: the cost of installing the chosen lockers plus the sum of each borrowerβs effort to fetch their tools; the lower that combined sum, the better the plan. The specific locker locations, installation costs, and borrower list will be shown below.
Details: 5 candidate locker locations, 11 borrowers, installation costs 2000, 2000, 2000, 2000, 2000.
Locker F1: installation cost 2000.
Locker F2: installation cost 2000.
Locker F3: installation cost 2000.
Locker F4: installation cost 2000.
Locker F5: installation cost 2000.
Borrower A to locker F1: retrieval effort 655.
Borrower B to locker F1: retrieval effort 421.
Borrower C to locker F1: retrieval effort 156.
Borrower D to locker F1: retrieval effort 515.
Borrower E to locker F1: retrieval effort 696.
Borrower F to locker F1: retrieval effort 187.
Borrower G to locker F1: retrieval effort 141.
Borrower H to locker F1: retrieval effort 166.
Borrower I to locker F1: retrieval effort 691.
Borrower J to locker F1: retrieval effort 130.
Borrower K to locker F1: retrieval effort 377.
Borrower A to locker F2: retrieval effort 370.
Borrower B to locker F2: retrieval effort 462.
Borrower C to locker F2: retrieval effort 148.
Borrower D to locker F2: retrieval effort 369.
Borrower E to locker F2: retrieval effort 176.
Borrower F to locker F2: retrieval effort 565.
Borrower G to locker F2: retrieval effort 43.
Borrower H to locker F2: retrieval effort 667.
Borrower I to locker F2: retrieval effort 933.
Borrower J to locker F2: retrieval effort 849.
Borrower K to locker F2: retrieval effort 60.
Borrower A to locker F3: retrieval effort 878.
Borrower B to locker F3: retrieval effort 82.
Borrower C to locker F3: retrieval effort 169.
Borrower D to locker F3: retrieval effort 19.
Borrower E to locker F3: retrieval effort 768.
Borrower F to locker F3: retrieval effort 282.
Borrower G to locker F3: retrieval effort 170.
Borrower H to locker F3: retrieval effort 564.
Borrower I to locker F3: retrieval effort 20.
Borrower J to locker F3: retrieval effort 445.
Borrower K to locker F3: retrieval effort 396.
Borrower A to locker F4: retrieval effort 323.
Borrower B to locker F4: retrieval effort 323.
Borrower C to locker F4: retrieval effort 358.
Borrower D to locker F4: retrieval effort 776.
Borrower E to locker F4: retrieval effort 558.
Borrower F to locker F4: retrieval effort 829.
Borrower G to locker F4: retrieval effort 243.
Borrower H to locker F4: retrieval effort 324.
Borrower I to locker F4: retrieval effort 244.
Borrower J to locker F4: retrieval effort 857.
Borrower K to locker F4: retrieval effort 851.
Borrower A to locker F5: retrieval effort 452.
Borrower B to locker F5: retrieval effort 665.
Borrower C to locker F5: retrieval effort 349.
Borrower D to locker F5: retrieval effort 361.
Borrower E to locker F5: retrieval effort 72.
Borrower F to locker F5: retrieval effort 36.
Borrower G to locker F5: retrieval effort 309.
Borrower H to locker F5: retrieval effort 388.
Borrower I to locker F5: retrieval effort 256.
Borrower J to locker F5: retrieval effort 479.
Borrower K to locker F5: retrieval effort 328.
The lists below enumerate each locker and each borrower-locker retrieval effort.
Iβll send the plan back in a simple JSON layout so itβs easy to read and use. It will follow this shape:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_site_to_open>, <chosen_site_to_open>, ...]
}
}
""selected"" is where Iβll list which locker sites we decide to install. ""assignments"" is a list, in borrower order, saying which opened site each borrower is attached to. Think of it as a short form β a sketch of the shape Iβll fill with the actual choices.
Please make sure to use the exact identifiers from the instance input β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000, 2000], 'connection_costs': [[655, 421, 156, 515, 696, 187, 141, 166, 691, 130, 377], [370, 462, 148, 369, 176, 565, 43, 667, 933, 849, 60], [878, 82, 169, 19, 768, 282, 170, 564, 20, 445, 396], [323, 323, 358, 776, 558, 829, 243, 324, 244, 857, 851], [452, 665, 349, 361, 72, 36, 309, 388, 256, 479, 328]], 'objective': 5695.0}","{'open_facilities': [4], 'assignments': [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]}",5695.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 655}, {'facility': 'F1', 'customer': 'B', 'cost': 421}, {'facility': 'F1', 'customer': 'C', 'cost': 156}, {'facility': 'F1', 'customer': 'D', 'cost': 515}, {'facility': 'F1', 'customer': 'E', 'cost': 696}, {'facility': 'F1', 'customer': 'F', 'cost': 187}, {'facility': 'F1', 'customer': 'G', 'cost': 141}, {'facility': 'F1', 'customer': 'H', 'cost': 166}, {'facility': 'F1', 'customer': 'I', 'cost': 691}, {'facility': 'F1', 'customer': 'J', 'cost': 130}, {'facility': 'F1', 'customer': 'K', 'cost': 377}, {'facility': 'F2', 'customer': 'A', 'cost': 370}, {'facility': 'F2', 'customer': 'B', 'cost': 462}, {'facility': 'F2', 'customer': 'C', 'cost': 148}, {'facility': 'F2', 'customer': 'D', 'cost': 369}, {'facility': 'F2', 'customer': 'E', 'cost': 176}, {'facility': 'F2', 'customer': 'F', 'cost': 565}, {'facility': 'F2', 'customer': 'G', 'cost': 43}, {'facility': 'F2', 'customer': 'H', 'cost': 667}, {'facility': 'F2', 'customer': 'I', 'cost': 933}, {'facility': 'F2', 'customer': 'J', 'cost': 849}, {'facility': 'F2', 'customer': 'K', 'cost': 60}, {'facility': 'F3', 'customer': 'A', 'cost': 878}, {'facility': 'F3', 'customer': 'B', 'cost': 82}, {'facility': 'F3', 'customer': 'C', 'cost': 169}, {'facility': 'F3', 'customer': 'D', 'cost': 19}, {'facility': 'F3', 'customer': 'E', 'cost': 768}, {'facility': 'F3', 'customer': 'F', 'cost': 282}, {'facility': 'F3', 'customer': 'G', 'cost': 170}, {'facility': 'F3', 'customer': 'H', 'cost': 564}, {'facility': 'F3', 'customer': 'I', 'cost': 20}, {'facility': 'F3', 'customer': 'J', 'cost': 445}, {'facility': 'F3', 'customer': 'K', 'cost': 396}, {'facility': 'F4', 'customer': 'A', 'cost': 323}, {'facility': 'F4', 'customer': 'B', 'cost': 323}, {'facility': 'F4', 'customer': 'C', 'cost': 358}, {'facility': 'F4', 'customer': 'D', 'cost': 776}, {'facility': 'F4', 'customer': 'E', 'cost': 558}, {'facility': 'F4', 'customer': 'F', 'cost': 829}, {'facility': 'F4', 'customer': 'G', 'cost': 243}, {'facility': 'F4', 'customer': 'H', 'cost': 324}, {'facility': 'F4', 'customer': 'I', 'cost': 244}, {'facility': 'F4', 'customer': 'J', 'cost': 857}, {'facility': 'F4', 'customer': 'K', 'cost': 851}, {'facility': 'F5', 'customer': 'A', 'cost': 452}, {'facility': 'F5', 'customer': 'B', 'cost': 665}, {'facility': 'F5', 'customer': 'C', 'cost': 349}, {'facility': 'F5', 'customer': 'D', 'cost': 361}, {'facility': 'F5', 'customer': 'E', 'cost': 72}, {'facility': 'F5', 'customer': 'F', 'cost': 36}, {'facility': 'F5', 'customer': 'G', 'cost': 309}, {'facility': 'F5', 'customer': 'H', 'cost': 388}, {'facility': 'F5', 'customer': 'I', 'cost': 256}, {'facility': 'F5', 'customer': 'J', 'cost': 479}, {'facility': 'F5', 'customer': 'K', 'cost': 328}], 'objective': 5695.0}","{'selected': ['F5'], 'assignments': ['F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5']}",27,nl,names
UFLP,UFLP,"Recently the county asked us to choose which vaccination sites to operate and to assign each resident to a single chosen site. The winning setup is the one with the smallest total cost β that total comes from the sum of the sitesβ operating costs we use plus the travel cost for each resident to their assigned spot. Make sure everyone has one assigned site and no one is assigned twice; the concrete figures are shown below.
For our decision we have 5 candidate sites, 13 residents, and the sequence of site operating costs 2000, 2000, 2000, 2000, 2000.
Site F1: if we open it its operating cost is 2000.
Site F2: if we open it its operating cost is 2000.
Site F3: if we open it its operating cost is 2000.
Site F4: if we open it its operating cost is 2000.
Site F5: if we open it its operating cost is 2000.
Resident 1 β if we assign them to site F1 β would incur travel cost 942.
Resident 2 β if we assign them to site F1 β would incur travel cost 968.
Resident 3 β if we assign them to site F1 β would incur travel cost 326.
Resident 4 β if we assign them to site F1 β would incur travel cost 930.
Resident 5 β if we assign them to site F1 β would incur travel cost 220.
Resident 6 β if we assign them to site F1 β would incur travel cost 42.
Resident 7 β if we assign them to site F1 β would incur travel cost 762.
Resident 8 β if we assign them to site F1 β would incur travel cost 648.
Resident 9 β if we assign them to site F1 β would incur travel cost 388.
Resident 10 β if we assign them to site F1 β would incur travel cost 762.
Resident 11 β if we assign them to site F1 β would incur travel cost 161.
Resident 12 β if we assign them to site F1 β would incur travel cost 849.
Resident 13 β if we assign them to site F1 β would incur travel cost 271.
Resident 1 β if we assign them to site F2 β would incur travel cost 433.
Resident 2 β if we assign them to site F2 β would incur travel cost 330.
Resident 3 β if we assign them to site F2 β would incur travel cost 625.
Resident 4 β if we assign them to site F2 β would incur travel cost 360.
Resident 5 β if we assign them to site F2 β would incur travel cost 532.
Resident 6 β if we assign them to site F2 β would incur travel cost 740.
Resident 7 β if we assign them to site F2 β would incur travel cost 781.
Resident 8 β if we assign them to site F2 β would incur travel cost 804.
Resident 9 β if we assign them to site F2 β would incur travel cost 858.
Resident 10 β if we assign them to site F2 β would incur travel cost 176.
Resident 11 β if we assign them to site F2 β would incur travel cost 162.
Resident 12 β if we assign them to site F2 β would incur travel cost 694.
Resident 13 β if we assign them to site F2 β would incur travel cost 467.
Resident 1 β if we assign them to site F3 β would incur travel cost 117.
Resident 2 β if we assign them to site F3 β would incur travel cost 238.
Resident 3 β if we assign them to site F3 β would incur travel cost 491.
Resident 4 β if we assign them to site F3 β would incur travel cost 409.
Resident 5 β if we assign them to site F3 β would incur travel cost 20.
Resident 6 β if we assign them to site F3 β would incur travel cost 697.
Resident 7 β if we assign them to site F3 β would incur travel cost 174.
Resident 8 β if we assign them to site F3 β would incur travel cost 239.
Resident 9 β if we assign them to site F3 β would incur travel cost 836.
Resident 10 β if we assign them to site F3 β would incur travel cost 912.
Resident 11 β if we assign them to site F3 β would incur travel cost 501.
Resident 12 β if we assign them to site F3 β would incur travel cost 175.
Resident 13 β if we assign them to site F3 β would incur travel cost 766.
Resident 1 β if we assign them to site F4 β would incur travel cost 177.
Resident 2 β if we assign them to site F4 β would incur travel cost 60.
Resident 3 β if we assign them to site F4 β would incur travel cost 150.
Resident 4 β if we assign them to site F4 β would incur travel cost 703.
Resident 5 β if we assign them to site F4 β would incur travel cost 903.
Resident 6 β if we assign them to site F4 β would incur travel cost 680.
Resident 7 β if we assign them to site F4 β would incur travel cost 58.
Resident 8 β if we assign them to site F4 β would incur travel cost 464.
Resident 9 β if we assign them to site F4 β would incur travel cost 257.
Resident 10 β if we assign them to site F4 β would incur travel cost 509.
Resident 11 β if we assign them to site F4 β would incur travel cost 937.
Resident 12 β if we assign them to site F4 β would incur travel cost 670.
Resident 13 β if we assign them to site F4 β would incur travel cost 606.
Resident 1 β if we assign them to site F5 β would incur travel cost 353.
Resident 2 β if we assign them to site F5 β would incur travel cost 279.
Resident 3 β if we assign them to site F5 β would incur travel cost 843.
Resident 4 β if we assign them to site F5 β would incur travel cost 178.
Resident 5 β if we assign them to site F5 β would incur travel cost 699.
Resident 6 β if we assign them to site F5 β would incur travel cost 783.
Resident 7 β if we assign them to site F5 β would incur travel cost 51.
Resident 8 β if we assign them to site F5 β would incur travel cost 66.
Resident 9 β if we assign them to site F5 β would incur travel cost 392.
Resident 10 β if we assign them to site F5 β would incur travel cost 526.
Resident 11 β if we assign them to site F5 β would incur travel cost 30.
Resident 12 β if we assign them to site F5 β would incur travel cost 240.
Resident 13 β if we assign them to site F5 β would incur travel cost 96.
We'll use these figures to choose which sites to operate and to assign every resident to exactly one opened site.
Just send back your answer in this little JSON shape so I can read it programmatically β nothing fancy, just the keys below.
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
""selected"" is where you list the vaccination sites you choose to operate. ""assignments"" is a list, in the same order as the residents in the instance, saying which chosen site each resident will go to. Think of it like filling out a simple form: which sites are open, and which site each person is assigned to.
This JSON is just a sketch of the expected shape β please return the actual choices and assignments when you answer.
All identifiers must be used exactly as they appear in the instance input β no renaming and no new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000, 2000], 'connection_costs': [[942, 968, 326, 930, 220, 42, 762, 648, 388, 762, 161, 849, 271], [433, 330, 625, 360, 532, 740, 781, 804, 858, 176, 162, 694, 467], [117, 238, 491, 409, 20, 697, 174, 239, 836, 912, 501, 175, 766], [177, 60, 150, 703, 903, 680, 58, 464, 257, 509, 937, 670, 606], [353, 279, 843, 178, 699, 783, 51, 66, 392, 526, 30, 240, 96]], 'objective': 6536.0}","{'open_facilities': [4], 'assignments': [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]}",6536.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 13, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}, {'id': 12}, {'id': 13}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 942}, {'facility': 'F1', 'customer': 2, 'cost': 968}, {'facility': 'F1', 'customer': 3, 'cost': 326}, {'facility': 'F1', 'customer': 4, 'cost': 930}, {'facility': 'F1', 'customer': 5, 'cost': 220}, {'facility': 'F1', 'customer': 6, 'cost': 42}, {'facility': 'F1', 'customer': 7, 'cost': 762}, {'facility': 'F1', 'customer': 8, 'cost': 648}, {'facility': 'F1', 'customer': 9, 'cost': 388}, {'facility': 'F1', 'customer': 10, 'cost': 762}, {'facility': 'F1', 'customer': 11, 'cost': 161}, {'facility': 'F1', 'customer': 12, 'cost': 849}, {'facility': 'F1', 'customer': 13, 'cost': 271}, {'facility': 'F2', 'customer': 1, 'cost': 433}, {'facility': 'F2', 'customer': 2, 'cost': 330}, {'facility': 'F2', 'customer': 3, 'cost': 625}, {'facility': 'F2', 'customer': 4, 'cost': 360}, {'facility': 'F2', 'customer': 5, 'cost': 532}, {'facility': 'F2', 'customer': 6, 'cost': 740}, {'facility': 'F2', 'customer': 7, 'cost': 781}, {'facility': 'F2', 'customer': 8, 'cost': 804}, {'facility': 'F2', 'customer': 9, 'cost': 858}, {'facility': 'F2', 'customer': 10, 'cost': 176}, {'facility': 'F2', 'customer': 11, 'cost': 162}, {'facility': 'F2', 'customer': 12, 'cost': 694}, {'facility': 'F2', 'customer': 13, 'cost': 467}, {'facility': 'F3', 'customer': 1, 'cost': 117}, {'facility': 'F3', 'customer': 2, 'cost': 238}, {'facility': 'F3', 'customer': 3, 'cost': 491}, {'facility': 'F3', 'customer': 4, 'cost': 409}, {'facility': 'F3', 'customer': 5, 'cost': 20}, {'facility': 'F3', 'customer': 6, 'cost': 697}, {'facility': 'F3', 'customer': 7, 'cost': 174}, {'facility': 'F3', 'customer': 8, 'cost': 239}, {'facility': 'F3', 'customer': 9, 'cost': 836}, {'facility': 'F3', 'customer': 10, 'cost': 912}, {'facility': 'F3', 'customer': 11, 'cost': 501}, {'facility': 'F3', 'customer': 12, 'cost': 175}, {'facility': 'F3', 'customer': 13, 'cost': 766}, {'facility': 'F4', 'customer': 1, 'cost': 177}, {'facility': 'F4', 'customer': 2, 'cost': 60}, {'facility': 'F4', 'customer': 3, 'cost': 150}, {'facility': 'F4', 'customer': 4, 'cost': 703}, {'facility': 'F4', 'customer': 5, 'cost': 903}, {'facility': 'F4', 'customer': 6, 'cost': 680}, {'facility': 'F4', 'customer': 7, 'cost': 58}, {'facility': 'F4', 'customer': 8, 'cost': 464}, {'facility': 'F4', 'customer': 9, 'cost': 257}, {'facility': 'F4', 'customer': 10, 'cost': 509}, {'facility': 'F4', 'customer': 11, 'cost': 937}, {'facility': 'F4', 'customer': 12, 'cost': 670}, {'facility': 'F4', 'customer': 13, 'cost': 606}, {'facility': 'F5', 'customer': 1, 'cost': 353}, {'facility': 'F5', 'customer': 2, 'cost': 279}, {'facility': 'F5', 'customer': 3, 'cost': 843}, {'facility': 'F5', 'customer': 4, 'cost': 178}, {'facility': 'F5', 'customer': 5, 'cost': 699}, {'facility': 'F5', 'customer': 6, 'cost': 783}, {'facility': 'F5', 'customer': 7, 'cost': 51}, {'facility': 'F5', 'customer': 8, 'cost': 66}, {'facility': 'F5', 'customer': 9, 'cost': 392}, {'facility': 'F5', 'customer': 10, 'cost': 526}, {'facility': 'F5', 'customer': 11, 'cost': 30}, {'facility': 'F5', 'customer': 12, 'cost': 240}, {'facility': 'F5', 'customer': 13, 'cost': 96}], 'objective': 6536.0}","{'selected': ['F5'], 'assignments': ['F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5', 'F5']}",28,nl,1
UFLP,UFLP,"I run a fleet of mobile pet groomers and have to pick which pop-up grooming tents to put up around town and then send every client to one of those tents. The trick is that each tent costs money to set up, and every client has a travel or pickup cost to get to the tent they use, so the better plan is the one that keeps the overall bill as low as possible β add up the setup fees for the tents that are put up plus the travel/pickup cost for every client. Each client has to be assigned to exactly one of the tents we actually set up (no one gets skipped and nobody goes to two places), and tents can handle as many pets as needed. The concrete details are shown below.
# num_candidate_tents=5
# num_clients=12
# TENTS
tent_id,tent_setup_cost
F1,1000
F2,1000
F3,1000
F4,1000
F5,1000
# CLIENTS
client_id
0
1
2
3
4
5
6
7
8
9
10
11
# CLIENT_TRAVELS
tent_id,client_id,client_travel_cost
F1,0,144
F1,1,51
F1,2,498
F1,3,601
F1,4,254
F1,5,19
F1,6,73
F1,7,892
F1,8,703
F1,9,999
F1,10,673
F1,11,843
F2,0,557
F2,1,600
F2,2,313
F2,3,729
F2,4,312
F2,5,506
F2,6,702
F2,7,437
F2,8,229
F2,9,415
F2,10,50
F2,11,60
F3,0,145
F3,1,609
F3,2,10
F3,3,700
F3,4,61
F3,5,938
F3,6,79
F3,7,139
F3,8,336
F3,9,644
F3,10,30
F3,11,783
F4,0,88
F4,1,654
F4,2,933
F4,3,119
F4,4,671
F4,5,407
F4,6,141
F4,7,384
F4,8,683
F4,9,495
F4,10,137
F4,11,594
F5,0,24
F5,1,732
F5,2,47
F5,3,573
F5,4,986
F5,5,102
F5,6,103
F5,7,402
F5,8,883
F5,9,524
F5,10,715
F5,11,229
Also, just so everything comes back to me in a predictable shape, please put the plan in this little JSON layout when you reply β just the same structure, nice and simple:
{
""solution"": {
""selected"": [<tent_to_open>, <tent_to_open>, ...],
""assignments"": [<chosen_open_tent>, <chosen_open_tent>, ...]
}
}
""selected"" is where you list the tents you decide to set up. ""assignments"" is a client-by-client list (in the same order as the input) saying which opened tent each client will go to. Think of it like filling out a short form: which tents are up, and for every client which tent they use.
This JSON is just a sketch of the expected shape β not the actual answer itself.
Please make sure to use the exact identifiers from the instance input when you fill this in β don't rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1000, 1000, 1000, 1000, 1000], 'connection_costs': [[144, 51, 498, 601, 254, 19, 73, 892, 703, 999, 673, 843], [557, 600, 313, 729, 312, 506, 702, 437, 229, 415, 50, 60], [145, 609, 10, 700, 61, 938, 79, 139, 336, 644, 30, 783], [88, 654, 933, 119, 671, 407, 141, 384, 683, 495, 137, 594], [24, 732, 47, 573, 986, 102, 103, 402, 883, 524, 715, 229]], 'objective': 4646.0}","{'open_facilities': [0, 1], 'assignments': [0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1]}",4646.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 12, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}, {'id': 'F5', 'opening_cost': 1000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 144}, {'facility': 'F1', 'customer': 1, 'cost': 51}, {'facility': 'F1', 'customer': 2, 'cost': 498}, {'facility': 'F1', 'customer': 3, 'cost': 601}, {'facility': 'F1', 'customer': 4, 'cost': 254}, {'facility': 'F1', 'customer': 5, 'cost': 19}, {'facility': 'F1', 'customer': 6, 'cost': 73}, {'facility': 'F1', 'customer': 7, 'cost': 892}, {'facility': 'F1', 'customer': 8, 'cost': 703}, {'facility': 'F1', 'customer': 9, 'cost': 999}, {'facility': 'F1', 'customer': 10, 'cost': 673}, {'facility': 'F1', 'customer': 11, 'cost': 843}, {'facility': 'F2', 'customer': 0, 'cost': 557}, {'facility': 'F2', 'customer': 1, 'cost': 600}, {'facility': 'F2', 'customer': 2, 'cost': 313}, {'facility': 'F2', 'customer': 3, 'cost': 729}, {'facility': 'F2', 'customer': 4, 'cost': 312}, {'facility': 'F2', 'customer': 5, 'cost': 506}, {'facility': 'F2', 'customer': 6, 'cost': 702}, {'facility': 'F2', 'customer': 7, 'cost': 437}, {'facility': 'F2', 'customer': 8, 'cost': 229}, {'facility': 'F2', 'customer': 9, 'cost': 415}, {'facility': 'F2', 'customer': 10, 'cost': 50}, {'facility': 'F2', 'customer': 11, 'cost': 60}, {'facility': 'F3', 'customer': 0, 'cost': 145}, {'facility': 'F3', 'customer': 1, 'cost': 609}, {'facility': 'F3', 'customer': 2, 'cost': 10}, {'facility': 'F3', 'customer': 3, 'cost': 700}, {'facility': 'F3', 'customer': 4, 'cost': 61}, {'facility': 'F3', 'customer': 5, 'cost': 938}, {'facility': 'F3', 'customer': 6, 'cost': 79}, {'facility': 'F3', 'customer': 7, 'cost': 139}, {'facility': 'F3', 'customer': 8, 'cost': 336}, {'facility': 'F3', 'customer': 9, 'cost': 644}, {'facility': 'F3', 'customer': 10, 'cost': 30}, {'facility': 'F3', 'customer': 11, 'cost': 783}, {'facility': 'F4', 'customer': 0, 'cost': 88}, {'facility': 'F4', 'customer': 1, 'cost': 654}, {'facility': 'F4', 'customer': 2, 'cost': 933}, {'facility': 'F4', 'customer': 3, 'cost': 119}, {'facility': 'F4', 'customer': 4, 'cost': 671}, {'facility': 'F4', 'customer': 5, 'cost': 407}, {'facility': 'F4', 'customer': 6, 'cost': 141}, {'facility': 'F4', 'customer': 7, 'cost': 384}, {'facility': 'F4', 'customer': 8, 'cost': 683}, {'facility': 'F4', 'customer': 9, 'cost': 495}, {'facility': 'F4', 'customer': 10, 'cost': 137}, {'facility': 'F4', 'customer': 11, 'cost': 594}, {'facility': 'F5', 'customer': 0, 'cost': 24}, {'facility': 'F5', 'customer': 1, 'cost': 732}, {'facility': 'F5', 'customer': 2, 'cost': 47}, {'facility': 'F5', 'customer': 3, 'cost': 573}, {'facility': 'F5', 'customer': 4, 'cost': 986}, {'facility': 'F5', 'customer': 5, 'cost': 102}, {'facility': 'F5', 'customer': 6, 'cost': 103}, {'facility': 'F5', 'customer': 7, 'cost': 402}, {'facility': 'F5', 'customer': 8, 'cost': 883}, {'facility': 'F5', 'customer': 9, 'cost': 524}, {'facility': 'F5', 'customer': 10, 'cost': 715}, {'facility': 'F5', 'customer': 11, 'cost': 229}], 'objective': 4646.0}","{'selected': ['F1', 'F2'], 'assignments': ['F1', 'F1', 'F2', 'F1', 'F1', 'F1', 'F1', 'F2', 'F2', 'F2', 'F2', 'F2']}",29,csv,0
UFLP,UFLP,"Iβm looking after the cityβs waste dropoff network and need to choose which pickup sites to keep open and which to close. Each site kept costs money to maintain, and every household has some effort or travel distance to get to whichever site they use. A good plan is simply one that costs less overall: add up the upkeep costs for the sites that stay open plus the travel burden for every household to its assigned site, and keep that total as small as possible. Every household has to be assigned to exactly one of the sites that are kept open β nobody can be left without a dropoff or sent to a closed one. The exact list of sites, their maintenance fees, and household travel numbers are shown below.
There are 5 dropoff sites and 12 households in this instance.
**Dropoff Sites**
| dropoff_site_id | site_maintenance_cost |
|---|---|
| F1 | 2000 |
| F2 | 2000 |
| F3 | 2000 |
| F4 | 2000 |
| F5 | 2000 |
**Households**
| household_id |
|---|
| 0 |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
| 11 |
**Household Travel Cost**
| dropoff_site_id | household_id | household_travel_cost |
|---|---|---|
| F1 | 0 | 808 |
| F1 | 1 | 23 |
| F1 | 2 | 582 |
| F1 | 3 | 478 |
| F1 | 4 | 566 |
| F1 | 5 | 190 |
| F1 | 6 | 624 |
| F1 | 7 | 265 |
| F1 | 8 | 549 |
| F1 | 9 | 497 |
| F1 | 10 | 840 |
| F1 | 11 | 18 |
| F2 | 0 | 132 |
| F2 | 1 | 742 |
| F2 | 2 | 728 |
| F2 | 3 | 457 |
| F2 | 4 | 702 |
| F2 | 5 | 219 |
| F2 | 6 | 924 |
| F2 | 7 | 594 |
| F2 | 8 | 923 |
| F2 | 9 | 617 |
| F2 | 10 | 679 |
| F2 | 11 | 983 |
| F3 | 0 | 367 |
| F3 | 1 | 749 |
| F3 | 2 | 787 |
| F3 | 3 | 545 |
| F3 | 4 | 958 |
| F3 | 5 | 423 |
| F3 | 6 | 478 |
| F3 | 7 | 688 |
| F3 | 8 | 952 |
| F3 | 9 | 124 |
| F3 | 10 | 420 |
| F3 | 11 | 367 |
| F4 | 0 | 723 |
| F4 | 1 | 136 |
| F4 | 2 | 317 |
| F4 | 3 | 883 |
| F4 | 4 | 15 |
| F4 | 5 | 689 |
| F4 | 6 | 333 |
| F4 | 7 | 733 |
| F4 | 8 | 162 |
| F4 | 9 | 136 |
| F4 | 10 | 711 |
| F4 | 11 | 12 |
| F5 | 0 | 213 |
| F5 | 1 | 858 |
| F5 | 2 | 792 |
| F5 | 3 | 385 |
| F5 | 4 | 637 |
| F5 | 5 | 849 |
| F5 | 6 | 829 |
| F5 | 7 | 469 |
| F5 | 8 | 909 |
| F5 | 9 | 205 |
| F5 | 10 | 862 |
| F5 | 11 | 684 |
Iβll show the shape I want the answer in so itβs easy to read and plug into whatever tool youβre using. Keep the layout exactly like this:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
""selected"" is the list of pickup sites youβll keep open. ""assignments"" lists, for each household in the same order as the input, which open site that household uses. This is just a sketch of the expected shape β not the real solution.
Please make sure all identifiers come straight from the instance and are not changed or invented. No renaming or new labels β use them exactly as given.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000, 2000], 'connection_costs': [[808, 23, 582, 478, 566, 190, 624, 265, 549, 497, 840, 18], [132, 742, 728, 457, 702, 219, 924, 594, 923, 617, 679, 983], [367, 749, 787, 545, 958, 423, 478, 688, 952, 124, 420, 367], [723, 136, 317, 883, 15, 689, 333, 733, 162, 136, 711, 12], [213, 858, 792, 385, 637, 849, 829, 469, 909, 205, 862, 684]], 'objective': 6850.0}","{'open_facilities': [3], 'assignments': [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]}",6850.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 12, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 808}, {'facility': 'F1', 'customer': 1, 'cost': 23}, {'facility': 'F1', 'customer': 2, 'cost': 582}, {'facility': 'F1', 'customer': 3, 'cost': 478}, {'facility': 'F1', 'customer': 4, 'cost': 566}, {'facility': 'F1', 'customer': 5, 'cost': 190}, {'facility': 'F1', 'customer': 6, 'cost': 624}, {'facility': 'F1', 'customer': 7, 'cost': 265}, {'facility': 'F1', 'customer': 8, 'cost': 549}, {'facility': 'F1', 'customer': 9, 'cost': 497}, {'facility': 'F1', 'customer': 10, 'cost': 840}, {'facility': 'F1', 'customer': 11, 'cost': 18}, {'facility': 'F2', 'customer': 0, 'cost': 132}, {'facility': 'F2', 'customer': 1, 'cost': 742}, {'facility': 'F2', 'customer': 2, 'cost': 728}, {'facility': 'F2', 'customer': 3, 'cost': 457}, {'facility': 'F2', 'customer': 4, 'cost': 702}, {'facility': 'F2', 'customer': 5, 'cost': 219}, {'facility': 'F2', 'customer': 6, 'cost': 924}, {'facility': 'F2', 'customer': 7, 'cost': 594}, {'facility': 'F2', 'customer': 8, 'cost': 923}, {'facility': 'F2', 'customer': 9, 'cost': 617}, {'facility': 'F2', 'customer': 10, 'cost': 679}, {'facility': 'F2', 'customer': 11, 'cost': 983}, {'facility': 'F3', 'customer': 0, 'cost': 367}, {'facility': 'F3', 'customer': 1, 'cost': 749}, {'facility': 'F3', 'customer': 2, 'cost': 787}, {'facility': 'F3', 'customer': 3, 'cost': 545}, {'facility': 'F3', 'customer': 4, 'cost': 958}, {'facility': 'F3', 'customer': 5, 'cost': 423}, {'facility': 'F3', 'customer': 6, 'cost': 478}, {'facility': 'F3', 'customer': 7, 'cost': 688}, {'facility': 'F3', 'customer': 8, 'cost': 952}, {'facility': 'F3', 'customer': 9, 'cost': 124}, {'facility': 'F3', 'customer': 10, 'cost': 420}, {'facility': 'F3', 'customer': 11, 'cost': 367}, {'facility': 'F4', 'customer': 0, 'cost': 723}, {'facility': 'F4', 'customer': 1, 'cost': 136}, {'facility': 'F4', 'customer': 2, 'cost': 317}, {'facility': 'F4', 'customer': 3, 'cost': 883}, {'facility': 'F4', 'customer': 4, 'cost': 15}, {'facility': 'F4', 'customer': 5, 'cost': 689}, {'facility': 'F4', 'customer': 6, 'cost': 333}, {'facility': 'F4', 'customer': 7, 'cost': 733}, {'facility': 'F4', 'customer': 8, 'cost': 162}, {'facility': 'F4', 'customer': 9, 'cost': 136}, {'facility': 'F4', 'customer': 10, 'cost': 711}, {'facility': 'F4', 'customer': 11, 'cost': 12}, {'facility': 'F5', 'customer': 0, 'cost': 213}, {'facility': 'F5', 'customer': 1, 'cost': 858}, {'facility': 'F5', 'customer': 2, 'cost': 792}, {'facility': 'F5', 'customer': 3, 'cost': 385}, {'facility': 'F5', 'customer': 4, 'cost': 637}, {'facility': 'F5', 'customer': 5, 'cost': 849}, {'facility': 'F5', 'customer': 6, 'cost': 829}, {'facility': 'F5', 'customer': 7, 'cost': 469}, {'facility': 'F5', 'customer': 8, 'cost': 909}, {'facility': 'F5', 'customer': 9, 'cost': 205}, {'facility': 'F5', 'customer': 10, 'cost': 862}, {'facility': 'F5', 'customer': 11, 'cost': 684}], 'objective': 6850.0}","{'selected': ['F4'], 'assignments': ['F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4']}",30,markdown_table,0
UFLP,UFLP,"Many people assumed the answer was βturn on everything,β but the ops crew knew better: only some nodes should be enabled, and each user should be assigned to one enabled node. Switching on a node costs money, and each user routed pays a latency cost β the overall amount to watch is the sum of those activation fees plus the usersβ latency costs, so a plan that lowers that sum wins. Each user needs a single assigned active node (no doubling up or leaving anyone out), and capacity isnβt a constraint. The specifics are given below.
# total_edge_nodes=4
# total_users=10
# NODES
node_id,node_activation_cost
F1,2000
F2,2000
F3,2000
F4,2000
# USERS
user_id
0
1
2
3
4
5
6
7
8
9
# LATENCYS
node_id,user_id,latency_cost
F1,0,964
F1,1,973
F1,2,891
F1,3,613
F1,4,258
F1,5,333
F1,6,293
F1,7,22
F1,8,188
F1,9,609
F2,0,293
F2,1,317
F2,2,916
F2,3,880
F2,4,872
F2,5,473
F2,6,548
F2,7,279
F2,8,896
F2,9,894
F3,0,334
F3,1,142
F3,2,185
F3,3,61
F3,4,91
F3,5,420
F3,6,6
F3,7,410
F3,8,963
F3,9,492
F4,0,343
F4,1,166
F4,2,59
F4,3,818
F4,4,9
F4,5,748
F4,6,322
F4,7,23
F4,8,117
F4,9,758
If you want to reply with the plan, please stick to this simple JSON shape so it's easy to parse β just a tiny sketch of which nodes you turn on and who goes where.
{
""solution"": {
""selected"": [<node_to_enable>, <node_to_enable>, ...],
""assignments"": [<assigned_node>, <assigned_node>, ...]
}
}
""selected"" is the list of nodes you switch on (the activation fees you pay). ""assignments"" is a per-user list β for each user in the same order as the input, put the one active node they're routed to. Think of it like filling out a short form: which nodes are enabled, and then, for each user, which enabled node they use. This JSON is just the expected shape β not the actual answer.
Please make sure to use the identifiers exactly as they appear in the instance input β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000], 'connection_costs': [[964, 973, 891, 613, 258, 333, 293, 22, 188, 609], [293, 317, 916, 880, 872, 473, 548, 279, 896, 894], [334, 142, 185, 61, 91, 420, 6, 410, 963, 492], [343, 166, 59, 818, 9, 748, 322, 23, 117, 758]], 'objective': 5104.0}","{'open_facilities': [2], 'assignments': [2, 2, 2, 2, 2, 2, 2, 2, 2, 2]}",5104.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 10, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 964}, {'facility': 'F1', 'customer': 1, 'cost': 973}, {'facility': 'F1', 'customer': 2, 'cost': 891}, {'facility': 'F1', 'customer': 3, 'cost': 613}, {'facility': 'F1', 'customer': 4, 'cost': 258}, {'facility': 'F1', 'customer': 5, 'cost': 333}, {'facility': 'F1', 'customer': 6, 'cost': 293}, {'facility': 'F1', 'customer': 7, 'cost': 22}, {'facility': 'F1', 'customer': 8, 'cost': 188}, {'facility': 'F1', 'customer': 9, 'cost': 609}, {'facility': 'F2', 'customer': 0, 'cost': 293}, {'facility': 'F2', 'customer': 1, 'cost': 317}, {'facility': 'F2', 'customer': 2, 'cost': 916}, {'facility': 'F2', 'customer': 3, 'cost': 880}, {'facility': 'F2', 'customer': 4, 'cost': 872}, {'facility': 'F2', 'customer': 5, 'cost': 473}, {'facility': 'F2', 'customer': 6, 'cost': 548}, {'facility': 'F2', 'customer': 7, 'cost': 279}, {'facility': 'F2', 'customer': 8, 'cost': 896}, {'facility': 'F2', 'customer': 9, 'cost': 894}, {'facility': 'F3', 'customer': 0, 'cost': 334}, {'facility': 'F3', 'customer': 1, 'cost': 142}, {'facility': 'F3', 'customer': 2, 'cost': 185}, {'facility': 'F3', 'customer': 3, 'cost': 61}, {'facility': 'F3', 'customer': 4, 'cost': 91}, {'facility': 'F3', 'customer': 5, 'cost': 420}, {'facility': 'F3', 'customer': 6, 'cost': 6}, {'facility': 'F3', 'customer': 7, 'cost': 410}, {'facility': 'F3', 'customer': 8, 'cost': 963}, {'facility': 'F3', 'customer': 9, 'cost': 492}, {'facility': 'F4', 'customer': 0, 'cost': 343}, {'facility': 'F4', 'customer': 1, 'cost': 166}, {'facility': 'F4', 'customer': 2, 'cost': 59}, {'facility': 'F4', 'customer': 3, 'cost': 818}, {'facility': 'F4', 'customer': 4, 'cost': 9}, {'facility': 'F4', 'customer': 5, 'cost': 748}, {'facility': 'F4', 'customer': 6, 'cost': 322}, {'facility': 'F4', 'customer': 7, 'cost': 23}, {'facility': 'F4', 'customer': 8, 'cost': 117}, {'facility': 'F4', 'customer': 9, 'cost': 758}], 'objective': 5104.0}","{'selected': ['F3'], 'assignments': ['F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3']}",31,csv,0
UFLP,UFLP,"Many people depend on our local meal pickup program, and part of running it is choosing which kitchens to turn on and deciding a single kitchen for each recipient. Turning on a kitchen costs a set amount, and getting a meal from that kitchen to a person has its own cost β the grand total is the sum of the kitchens we open plus all the individual pickup/delivery charges. Every recipient must be paired with one open kitchen (no doubles, no omissions), and open kitchens can take unlimited orders. The concrete numbers and options are listed below.
{
""total_kitchens"": 6,
""total_recipients"": 12,
""kitchens"": [
{
""kitchen_id"": ""F1"",
""kitchen_opening_cost"": 2000
},
{
""kitchen_id"": ""F2"",
""kitchen_opening_cost"": 2000
},
{
""kitchen_id"": ""F3"",
""kitchen_opening_cost"": 2000
},
{
""kitchen_id"": ""F4"",
""kitchen_opening_cost"": 2000
},
{
""kitchen_id"": ""F5"",
""kitchen_opening_cost"": 2000
},
{
""kitchen_id"": ""F6"",
""kitchen_opening_cost"": 2000
}
],
""recipients"": [
{
""recipient_id"": 0
},
{
""recipient_id"": 1
},
{
""recipient_id"": 2
},
{
""recipient_id"": 3
},
{
""recipient_id"": 4
},
{
""recipient_id"": 5
},
{
""recipient_id"": 6
},
{
""recipient_id"": 7
},
{
""recipient_id"": 8
},
{
""recipient_id"": 9
},
{
""recipient_id"": 10
},
{
""recipient_id"": 11
}
],
""pickup_deliverys"": [
{
""kitchen_id"": ""F1"",
""recipient_id"": 0,
""pickup_delivery_cost"": 63
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 1,
""pickup_delivery_cost"": 653
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 2,
""pickup_delivery_cost"": 90
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 3,
""pickup_delivery_cost"": 509
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 4,
""pickup_delivery_cost"": 741
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 5,
""pickup_delivery_cost"": 649
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 6,
""pickup_delivery_cost"": 405
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 7,
""pickup_delivery_cost"": 579
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 8,
""pickup_delivery_cost"": 975
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 9,
""pickup_delivery_cost"": 353
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 10,
""pickup_delivery_cost"": 481
},
{
""kitchen_id"": ""F1"",
""recipient_id"": 11,
""pickup_delivery_cost"": 434
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 0,
""pickup_delivery_cost"": 24
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 1,
""pickup_delivery_cost"": 138
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 2,
""pickup_delivery_cost"": 304
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 3,
""pickup_delivery_cost"": 842
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 4,
""pickup_delivery_cost"": 149
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 5,
""pickup_delivery_cost"": 676
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 6,
""pickup_delivery_cost"": 913
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 7,
""pickup_delivery_cost"": 919
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 8,
""pickup_delivery_cost"": 217
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 9,
""pickup_delivery_cost"": 689
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 10,
""pickup_delivery_cost"": 337
},
{
""kitchen_id"": ""F2"",
""recipient_id"": 11,
""pickup_delivery_cost"": 323
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 0,
""pickup_delivery_cost"": 401
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 1,
""pickup_delivery_cost"": 690
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 2,
""pickup_delivery_cost"": 280
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 3,
""pickup_delivery_cost"": 169
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 4,
""pickup_delivery_cost"": 830
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 5,
""pickup_delivery_cost"": 98
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 6,
""pickup_delivery_cost"": 335
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 7,
""pickup_delivery_cost"": 927
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 8,
""pickup_delivery_cost"": 276
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 9,
""pickup_delivery_cost"": 451
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 10,
""pickup_delivery_cost"": 84
},
{
""kitchen_id"": ""F3"",
""recipient_id"": 11,
""pickup_delivery_cost"": 315
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 0,
""pickup_delivery_cost"": 263
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 1,
""pickup_delivery_cost"": 535
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 2,
""pickup_delivery_cost"": 971
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 3,
""pickup_delivery_cost"": 846
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 4,
""pickup_delivery_cost"": 216
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 5,
""pickup_delivery_cost"": 589
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 6,
""pickup_delivery_cost"": 462
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 7,
""pickup_delivery_cost"": 91
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 8,
""pickup_delivery_cost"": 269
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 9,
""pickup_delivery_cost"": 416
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 10,
""pickup_delivery_cost"": 219
},
{
""kitchen_id"": ""F4"",
""recipient_id"": 11,
""pickup_delivery_cost"": 44
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 0,
""pickup_delivery_cost"": 570
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 1,
""pickup_delivery_cost"": 93
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 2,
""pickup_delivery_cost"": 701
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 3,
""pickup_delivery_cost"": 401
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 4,
""pickup_delivery_cost"": 303
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 5,
""pickup_delivery_cost"": 223
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 6,
""pickup_delivery_cost"": 497
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 7,
""pickup_delivery_cost"": 575
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 8,
""pickup_delivery_cost"": 880
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 9,
""pickup_delivery_cost"": 230
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 10,
""pickup_delivery_cost"": 328
},
{
""kitchen_id"": ""F5"",
""recipient_id"": 11,
""pickup_delivery_cost"": 899
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 0,
""pickup_delivery_cost"": 89
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 1,
""pickup_delivery_cost"": 718
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 2,
""pickup_delivery_cost"": 30
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 3,
""pickup_delivery_cost"": 307
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 4,
""pickup_delivery_cost"": 852
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 5,
""pickup_delivery_cost"": 282
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 6,
""pickup_delivery_cost"": 70
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 7,
""pickup_delivery_cost"": 703
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 8,
""pickup_delivery_cost"": 888
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 9,
""pickup_delivery_cost"": 406
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 10,
""pickup_delivery_cost"": 14
},
{
""kitchen_id"": ""F6"",
""recipient_id"": 11,
""pickup_delivery_cost"": 584
}
]
}
If you prefer a neat, copy-pastable format for the result, I'll use a tiny JSON sketch like this so it's easy to read and check:
{
""solution"": {
""selected"": [<kitchen_to_open>, <kitchen_to_open>, ...],
""assignments"": [<kitchen_chosen_for_recipient>, <kitchen_chosen_for_recipient>, ...]
}
}
""selected"" is where I'll list the kitchens we decide to turn on. ""assignments"" is a list, one entry per recipient in the same order as the instance, showing which open kitchen each person will use. This is just the shape Iβll follow β not the final choices.
Please use the exact identifiers from the instance input for every entry β don't rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000, 2000, 2000], 'connection_costs': [[63, 653, 90, 509, 741, 649, 405, 579, 975, 353, 481, 434], [24, 138, 304, 842, 149, 676, 913, 919, 217, 689, 337, 323], [401, 690, 280, 169, 830, 98, 335, 927, 276, 451, 84, 315], [263, 535, 971, 846, 216, 589, 462, 91, 269, 416, 219, 44], [570, 93, 701, 401, 303, 223, 497, 575, 880, 230, 328, 899], [89, 718, 30, 307, 852, 282, 70, 703, 888, 406, 14, 584]], 'objective': 6353.0}","{'open_facilities': [3, 5], 'assignments': [5, 3, 5, 5, 3, 5, 5, 3, 3, 5, 5, 3]}",6353.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 12, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}, {'id': 'F6', 'opening_cost': 2000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 63}, {'facility': 'F1', 'customer': 1, 'cost': 653}, {'facility': 'F1', 'customer': 2, 'cost': 90}, {'facility': 'F1', 'customer': 3, 'cost': 509}, {'facility': 'F1', 'customer': 4, 'cost': 741}, {'facility': 'F1', 'customer': 5, 'cost': 649}, {'facility': 'F1', 'customer': 6, 'cost': 405}, {'facility': 'F1', 'customer': 7, 'cost': 579}, {'facility': 'F1', 'customer': 8, 'cost': 975}, {'facility': 'F1', 'customer': 9, 'cost': 353}, {'facility': 'F1', 'customer': 10, 'cost': 481}, {'facility': 'F1', 'customer': 11, 'cost': 434}, {'facility': 'F2', 'customer': 0, 'cost': 24}, {'facility': 'F2', 'customer': 1, 'cost': 138}, {'facility': 'F2', 'customer': 2, 'cost': 304}, {'facility': 'F2', 'customer': 3, 'cost': 842}, {'facility': 'F2', 'customer': 4, 'cost': 149}, {'facility': 'F2', 'customer': 5, 'cost': 676}, {'facility': 'F2', 'customer': 6, 'cost': 913}, {'facility': 'F2', 'customer': 7, 'cost': 919}, {'facility': 'F2', 'customer': 8, 'cost': 217}, {'facility': 'F2', 'customer': 9, 'cost': 689}, {'facility': 'F2', 'customer': 10, 'cost': 337}, {'facility': 'F2', 'customer': 11, 'cost': 323}, {'facility': 'F3', 'customer': 0, 'cost': 401}, {'facility': 'F3', 'customer': 1, 'cost': 690}, {'facility': 'F3', 'customer': 2, 'cost': 280}, {'facility': 'F3', 'customer': 3, 'cost': 169}, {'facility': 'F3', 'customer': 4, 'cost': 830}, {'facility': 'F3', 'customer': 5, 'cost': 98}, {'facility': 'F3', 'customer': 6, 'cost': 335}, {'facility': 'F3', 'customer': 7, 'cost': 927}, {'facility': 'F3', 'customer': 8, 'cost': 276}, {'facility': 'F3', 'customer': 9, 'cost': 451}, {'facility': 'F3', 'customer': 10, 'cost': 84}, {'facility': 'F3', 'customer': 11, 'cost': 315}, {'facility': 'F4', 'customer': 0, 'cost': 263}, {'facility': 'F4', 'customer': 1, 'cost': 535}, {'facility': 'F4', 'customer': 2, 'cost': 971}, {'facility': 'F4', 'customer': 3, 'cost': 846}, {'facility': 'F4', 'customer': 4, 'cost': 216}, {'facility': 'F4', 'customer': 5, 'cost': 589}, {'facility': 'F4', 'customer': 6, 'cost': 462}, {'facility': 'F4', 'customer': 7, 'cost': 91}, {'facility': 'F4', 'customer': 8, 'cost': 269}, {'facility': 'F4', 'customer': 9, 'cost': 416}, {'facility': 'F4', 'customer': 10, 'cost': 219}, {'facility': 'F4', 'customer': 11, 'cost': 44}, {'facility': 'F5', 'customer': 0, 'cost': 570}, {'facility': 'F5', 'customer': 1, 'cost': 93}, {'facility': 'F5', 'customer': 2, 'cost': 701}, {'facility': 'F5', 'customer': 3, 'cost': 401}, {'facility': 'F5', 'customer': 4, 'cost': 303}, {'facility': 'F5', 'customer': 5, 'cost': 223}, {'facility': 'F5', 'customer': 6, 'cost': 497}, {'facility': 'F5', 'customer': 7, 'cost': 575}, {'facility': 'F5', 'customer': 8, 'cost': 880}, {'facility': 'F5', 'customer': 9, 'cost': 230}, {'facility': 'F5', 'customer': 10, 'cost': 328}, {'facility': 'F5', 'customer': 11, 'cost': 899}, {'facility': 'F6', 'customer': 0, 'cost': 89}, {'facility': 'F6', 'customer': 1, 'cost': 718}, {'facility': 'F6', 'customer': 2, 'cost': 30}, {'facility': 'F6', 'customer': 3, 'cost': 307}, {'facility': 'F6', 'customer': 4, 'cost': 852}, {'facility': 'F6', 'customer': 5, 'cost': 282}, {'facility': 'F6', 'customer': 6, 'cost': 70}, {'facility': 'F6', 'customer': 7, 'cost': 703}, {'facility': 'F6', 'customer': 8, 'cost': 888}, {'facility': 'F6', 'customer': 9, 'cost': 406}, {'facility': 'F6', 'customer': 10, 'cost': 14}, {'facility': 'F6', 'customer': 11, 'cost': 584}], 'objective': 6353.0}","{'selected': ['F4', 'F6'], 'assignments': ['F6', 'F4', 'F6', 'F6', 'F4', 'F6', 'F6', 'F4', 'F4', 'F6', 'F6', 'F4']}",32,json,0
UFLP,UFLP,"Someone on the events crew has to map out which pop-up booths get rented and then tie each customer group to a single one of those booths. Each group must end up at exactly one open booth (no leftovers, no multiple assignments), and booths can host as many groups as needed. The deciding factor is total cost: take the fees for the booths that are opened and add the travel/service cost for every group to its assigned booth β the configuration with the smallest total is the one to pick. The precise details are shown below.
# num_booths=6
# num_customer_groups=12
# BOOTHS
booth_id,booth_rental_fee
F1,1032
F2,1691
F3,1393
F4,1496
F5,1566
F6,1361
# GROUPS
group_id
1
2
3
4
5
6
7
8
9
10
11
12
# GROUP_TRAVEL_SERVICES
booth_id,group_id,group_travel_service_cost
F1,1,165
F1,2,200
F1,3,839
F1,4,962
F1,5,174
F1,6,417
F1,7,164
F1,8,735
F1,9,985
F1,10,854
F1,11,148
F1,12,268
F2,1,101
F2,2,426
F2,3,929
F2,4,848
F2,5,599
F2,6,888
F2,7,537
F2,8,90
F2,9,963
F2,10,3
F2,11,709
F2,12,738
F3,1,78
F3,2,879
F3,3,30
F3,4,221
F3,5,145
F3,6,596
F3,7,498
F3,8,374
F3,9,936
F3,10,632
F3,11,734
F3,12,267
F4,1,841
F4,2,99
F4,3,274
F4,4,915
F4,5,433
F4,6,92
F4,7,310
F4,8,653
F4,9,973
F4,10,778
F4,11,474
F4,12,971
F5,1,546
F5,2,933
F5,3,953
F5,4,259
F5,5,203
F5,6,65
F5,7,881
F5,8,601
F5,9,680
F5,10,400
F5,11,388
F5,12,204
F6,1,738
F6,2,41
F6,3,721
F6,4,132
F6,5,508
F6,6,177
F6,7,797
F6,8,380
F6,9,589
F6,10,256
F6,11,669
F6,12,437
When you answer, just return the picks in a tiny JSON blob like the one below so it's easy to parse β nothing fancy, just the two lists we need.
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<assigned_site>, <assigned_site>, ...]
}
}
Think of ""selected"" as the booths we decide to rent, and ""assignments"" as a simple one-entry-per-group list saying which rented booth each group goes to. Super casual: selected = which booths are open, assignments = which open booth each group is tied to.
This JSON is just a sketch of the shape I want back β not the real answer. Also, please use the exact identifiers from the instance input with no renaming and no new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1032, 1691, 1393, 1496, 1566, 1361], 'connection_costs': [[165, 200, 839, 962, 174, 417, 164, 735, 985, 854, 148, 268], [101, 426, 929, 848, 599, 888, 537, 90, 963, 3, 709, 738], [78, 879, 30, 221, 145, 596, 498, 374, 936, 632, 734, 267], [841, 99, 274, 915, 433, 92, 310, 653, 973, 778, 474, 971], [546, 933, 953, 259, 203, 65, 881, 601, 680, 400, 388, 204], [738, 41, 721, 132, 508, 177, 797, 380, 589, 256, 669, 437]], 'objective': 5608.0}","{'open_facilities': [0, 5], 'assignments': [0, 5, 5, 5, 0, 5, 0, 5, 5, 5, 0, 0]}",5608.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 12, 'facilities': [{'id': 'F1', 'opening_cost': 1032}, {'id': 'F2', 'opening_cost': 1691}, {'id': 'F3', 'opening_cost': 1393}, {'id': 'F4', 'opening_cost': 1496}, {'id': 'F5', 'opening_cost': 1566}, {'id': 'F6', 'opening_cost': 1361}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}, {'id': 12}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 165}, {'facility': 'F1', 'customer': 2, 'cost': 200}, {'facility': 'F1', 'customer': 3, 'cost': 839}, {'facility': 'F1', 'customer': 4, 'cost': 962}, {'facility': 'F1', 'customer': 5, 'cost': 174}, {'facility': 'F1', 'customer': 6, 'cost': 417}, {'facility': 'F1', 'customer': 7, 'cost': 164}, {'facility': 'F1', 'customer': 8, 'cost': 735}, {'facility': 'F1', 'customer': 9, 'cost': 985}, {'facility': 'F1', 'customer': 10, 'cost': 854}, {'facility': 'F1', 'customer': 11, 'cost': 148}, {'facility': 'F1', 'customer': 12, 'cost': 268}, {'facility': 'F2', 'customer': 1, 'cost': 101}, {'facility': 'F2', 'customer': 2, 'cost': 426}, {'facility': 'F2', 'customer': 3, 'cost': 929}, {'facility': 'F2', 'customer': 4, 'cost': 848}, {'facility': 'F2', 'customer': 5, 'cost': 599}, {'facility': 'F2', 'customer': 6, 'cost': 888}, {'facility': 'F2', 'customer': 7, 'cost': 537}, {'facility': 'F2', 'customer': 8, 'cost': 90}, {'facility': 'F2', 'customer': 9, 'cost': 963}, {'facility': 'F2', 'customer': 10, 'cost': 3}, {'facility': 'F2', 'customer': 11, 'cost': 709}, {'facility': 'F2', 'customer': 12, 'cost': 738}, {'facility': 'F3', 'customer': 1, 'cost': 78}, {'facility': 'F3', 'customer': 2, 'cost': 879}, {'facility': 'F3', 'customer': 3, 'cost': 30}, {'facility': 'F3', 'customer': 4, 'cost': 221}, {'facility': 'F3', 'customer': 5, 'cost': 145}, {'facility': 'F3', 'customer': 6, 'cost': 596}, {'facility': 'F3', 'customer': 7, 'cost': 498}, {'facility': 'F3', 'customer': 8, 'cost': 374}, {'facility': 'F3', 'customer': 9, 'cost': 936}, {'facility': 'F3', 'customer': 10, 'cost': 632}, {'facility': 'F3', 'customer': 11, 'cost': 734}, {'facility': 'F3', 'customer': 12, 'cost': 267}, {'facility': 'F4', 'customer': 1, 'cost': 841}, {'facility': 'F4', 'customer': 2, 'cost': 99}, {'facility': 'F4', 'customer': 3, 'cost': 274}, {'facility': 'F4', 'customer': 4, 'cost': 915}, {'facility': 'F4', 'customer': 5, 'cost': 433}, {'facility': 'F4', 'customer': 6, 'cost': 92}, {'facility': 'F4', 'customer': 7, 'cost': 310}, {'facility': 'F4', 'customer': 8, 'cost': 653}, {'facility': 'F4', 'customer': 9, 'cost': 973}, {'facility': 'F4', 'customer': 10, 'cost': 778}, {'facility': 'F4', 'customer': 11, 'cost': 474}, {'facility': 'F4', 'customer': 12, 'cost': 971}, {'facility': 'F5', 'customer': 1, 'cost': 546}, {'facility': 'F5', 'customer': 2, 'cost': 933}, {'facility': 'F5', 'customer': 3, 'cost': 953}, {'facility': 'F5', 'customer': 4, 'cost': 259}, {'facility': 'F5', 'customer': 5, 'cost': 203}, {'facility': 'F5', 'customer': 6, 'cost': 65}, {'facility': 'F5', 'customer': 7, 'cost': 881}, {'facility': 'F5', 'customer': 8, 'cost': 601}, {'facility': 'F5', 'customer': 9, 'cost': 680}, {'facility': 'F5', 'customer': 10, 'cost': 400}, {'facility': 'F5', 'customer': 11, 'cost': 388}, {'facility': 'F5', 'customer': 12, 'cost': 204}, {'facility': 'F6', 'customer': 1, 'cost': 738}, {'facility': 'F6', 'customer': 2, 'cost': 41}, {'facility': 'F6', 'customer': 3, 'cost': 721}, {'facility': 'F6', 'customer': 4, 'cost': 132}, {'facility': 'F6', 'customer': 5, 'cost': 508}, {'facility': 'F6', 'customer': 6, 'cost': 177}, {'facility': 'F6', 'customer': 7, 'cost': 797}, {'facility': 'F6', 'customer': 8, 'cost': 380}, {'facility': 'F6', 'customer': 9, 'cost': 589}, {'facility': 'F6', 'customer': 10, 'cost': 256}, {'facility': 'F6', 'customer': 11, 'cost': 669}, {'facility': 'F6', 'customer': 12, 'cost': 437}], 'objective': 5608.0}","{'selected': ['F1', 'F6'], 'assignments': ['F1', 'F6', 'F6', 'F6', 'F1', 'F6', 'F1', 'F6', 'F6', 'F6', 'F1', 'F1']}",33,csv,1
UFLP,UFLP,"Recently the bike-share folks have been mapping out which docks to open and which dock every rider should be linked to. Thereβs a cost to open any dock and a separate inconvenience score for each rider depending on which opened dock they use, so the winning plan is simply the one with the smallest combined cost: the total of all dock-opening fees plus the total of all ridersβ access costs. Nobody can be left without a registered dock or assigned to a dock that wasnβt opened, and docks donβt have limits on how many riders they can handle. The concrete details are shown below.
{
""num_stations"": 5,
""num_riders"": 10,
""stations"": [
{
""station_id"": ""F1"",
""station_opening_fee"": 3814
},
{
""station_id"": ""F2"",
""station_opening_fee"": 4790
},
{
""station_id"": ""F3"",
""station_opening_fee"": 4967
},
{
""station_id"": ""F4"",
""station_opening_fee"": 2487
},
{
""station_id"": ""F5"",
""station_opening_fee"": 3191
}
],
""riders"": [
{
""rider_id"": ""A""
},
{
""rider_id"": ""B""
},
{
""rider_id"": ""C""
},
{
""rider_id"": ""D""
},
{
""rider_id"": ""E""
},
{
""rider_id"": ""F""
},
{
""rider_id"": ""G""
},
{
""rider_id"": ""H""
},
{
""rider_id"": ""I""
},
{
""rider_id"": ""J""
}
],
""access_inconveniences"": [
{
""station_id"": ""F1"",
""rider_id"": ""A"",
""access_inconvenience"": 774
},
{
""station_id"": ""F1"",
""rider_id"": ""B"",
""access_inconvenience"": 647
},
{
""station_id"": ""F1"",
""rider_id"": ""C"",
""access_inconvenience"": 850
},
{
""station_id"": ""F1"",
""rider_id"": ""D"",
""access_inconvenience"": 391
},
{
""station_id"": ""F1"",
""rider_id"": ""E"",
""access_inconvenience"": 247
},
{
""station_id"": ""F1"",
""rider_id"": ""F"",
""access_inconvenience"": 25
},
{
""station_id"": ""F1"",
""rider_id"": ""G"",
""access_inconvenience"": 825
},
{
""station_id"": ""F1"",
""rider_id"": ""H"",
""access_inconvenience"": 433
},
{
""station_id"": ""F1"",
""rider_id"": ""I"",
""access_inconvenience"": 9
},
{
""station_id"": ""F1"",
""rider_id"": ""J"",
""access_inconvenience"": 395
},
{
""station_id"": ""F2"",
""rider_id"": ""A"",
""access_inconvenience"": 897
},
{
""station_id"": ""F2"",
""rider_id"": ""B"",
""access_inconvenience"": 563
},
{
""station_id"": ""F2"",
""rider_id"": ""C"",
""access_inconvenience"": 68
},
{
""station_id"": ""F2"",
""rider_id"": ""D"",
""access_inconvenience"": 456
},
{
""station_id"": ""F2"",
""rider_id"": ""E"",
""access_inconvenience"": 138
},
{
""station_id"": ""F2"",
""rider_id"": ""F"",
""access_inconvenience"": 470
},
{
""station_id"": ""F2"",
""rider_id"": ""G"",
""access_inconvenience"": 670
},
{
""station_id"": ""F2"",
""rider_id"": ""H"",
""access_inconvenience"": 686
},
{
""station_id"": ""F2"",
""rider_id"": ""I"",
""access_inconvenience"": 401
},
{
""station_id"": ""F2"",
""rider_id"": ""J"",
""access_inconvenience"": 61
},
{
""station_id"": ""F3"",
""rider_id"": ""A"",
""access_inconvenience"": 986
},
{
""station_id"": ""F3"",
""rider_id"": ""B"",
""access_inconvenience"": 275
},
{
""station_id"": ""F3"",
""rider_id"": ""C"",
""access_inconvenience"": 481
},
{
""station_id"": ""F3"",
""rider_id"": ""D"",
""access_inconvenience"": 1
},
{
""station_id"": ""F3"",
""rider_id"": ""E"",
""access_inconvenience"": 254
},
{
""station_id"": ""F3"",
""rider_id"": ""F"",
""access_inconvenience"": 716
},
{
""station_id"": ""F3"",
""rider_id"": ""G"",
""access_inconvenience"": 115
},
{
""station_id"": ""F3"",
""rider_id"": ""H"",
""access_inconvenience"": 308
},
{
""station_id"": ""F3"",
""rider_id"": ""I"",
""access_inconvenience"": 308
},
{
""station_id"": ""F3"",
""rider_id"": ""J"",
""access_inconvenience"": 665
},
{
""station_id"": ""F4"",
""rider_id"": ""A"",
""access_inconvenience"": 981
},
{
""station_id"": ""F4"",
""rider_id"": ""B"",
""access_inconvenience"": 465
},
{
""station_id"": ""F4"",
""rider_id"": ""C"",
""access_inconvenience"": 40
},
{
""station_id"": ""F4"",
""rider_id"": ""D"",
""access_inconvenience"": 751
},
{
""station_id"": ""F4"",
""rider_id"": ""E"",
""access_inconvenience"": 607
},
{
""station_id"": ""F4"",
""rider_id"": ""F"",
""access_inconvenience"": 262
},
{
""station_id"": ""F4"",
""rider_id"": ""G"",
""access_inconvenience"": 477
},
{
""station_id"": ""F4"",
""rider_id"": ""H"",
""access_inconvenience"": 823
},
{
""station_id"": ""F4"",
""rider_id"": ""I"",
""access_inconvenience"": 586
},
{
""station_id"": ""F4"",
""rider_id"": ""J"",
""access_inconvenience"": 436
},
{
""station_id"": ""F5"",
""rider_id"": ""A"",
""access_inconvenience"": 281
},
{
""station_id"": ""F5"",
""rider_id"": ""B"",
""access_inconvenience"": 105
},
{
""station_id"": ""F5"",
""rider_id"": ""C"",
""access_inconvenience"": 733
},
{
""station_id"": ""F5"",
""rider_id"": ""D"",
""access_inconvenience"": 993
},
{
""station_id"": ""F5"",
""rider_id"": ""E"",
""access_inconvenience"": 54
},
{
""station_id"": ""F5"",
""rider_id"": ""F"",
""access_inconvenience"": 466
},
{
""station_id"": ""F5"",
""rider_id"": ""G"",
""access_inconvenience"": 592
},
{
""station_id"": ""F5"",
""rider_id"": ""H"",
""access_inconvenience"": 47
},
{
""station_id"": ""F5"",
""rider_id"": ""I"",
""access_inconvenience"": 637
},
{
""station_id"": ""F5"",
""rider_id"": ""J"",
""access_inconvenience"": 838
}
]
}
Oh, and when you send the plan back, just use this simple JSON shape so I can read it easily:
{
""solution"": {
""selected"": [<dock_to_open>, <dock_to_open>, ...],
""assignments"": [<assigned_dock>, <assigned_dock>, ...]
}
}
""selected"" is where you list the docks you choose to open. ""assignments"" is a parallel list (one entry per rider, in the same order as the input) saying which opened dock each rider is linked to. Think of it like filling out a form: which docks are active, and who goes to which one.
This is just a sketch of the expected shape, not the actual answerβI'll need the real identifiers from the instance to produce a concrete plan. Please make sure you use the identifiers exactly as they appear in the input β no renaming and no new labels.
For example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [3814, 4790, 4967, 2487, 3191], 'connection_costs': [[774, 647, 850, 391, 247, 25, 825, 433, 9, 395], [897, 563, 68, 456, 138, 470, 670, 686, 401, 61], [986, 275, 481, 1, 254, 716, 115, 308, 308, 665], [981, 465, 40, 751, 607, 262, 477, 823, 586, 436], [281, 105, 733, 993, 54, 466, 592, 47, 637, 838]], 'objective': 7915.0}","{'open_facilities': [3], 'assignments': [3, 3, 3, 3, 3, 3, 3, 3, 3, 3]}",7915.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 10, 'facilities': [{'id': 'F1', 'opening_cost': 3814}, {'id': 'F2', 'opening_cost': 4790}, {'id': 'F3', 'opening_cost': 4967}, {'id': 'F4', 'opening_cost': 2487}, {'id': 'F5', 'opening_cost': 3191}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 774}, {'facility': 'F1', 'customer': 'B', 'cost': 647}, {'facility': 'F1', 'customer': 'C', 'cost': 850}, {'facility': 'F1', 'customer': 'D', 'cost': 391}, {'facility': 'F1', 'customer': 'E', 'cost': 247}, {'facility': 'F1', 'customer': 'F', 'cost': 25}, {'facility': 'F1', 'customer': 'G', 'cost': 825}, {'facility': 'F1', 'customer': 'H', 'cost': 433}, {'facility': 'F1', 'customer': 'I', 'cost': 9}, {'facility': 'F1', 'customer': 'J', 'cost': 395}, {'facility': 'F2', 'customer': 'A', 'cost': 897}, {'facility': 'F2', 'customer': 'B', 'cost': 563}, {'facility': 'F2', 'customer': 'C', 'cost': 68}, {'facility': 'F2', 'customer': 'D', 'cost': 456}, {'facility': 'F2', 'customer': 'E', 'cost': 138}, {'facility': 'F2', 'customer': 'F', 'cost': 470}, {'facility': 'F2', 'customer': 'G', 'cost': 670}, {'facility': 'F2', 'customer': 'H', 'cost': 686}, {'facility': 'F2', 'customer': 'I', 'cost': 401}, {'facility': 'F2', 'customer': 'J', 'cost': 61}, {'facility': 'F3', 'customer': 'A', 'cost': 986}, {'facility': 'F3', 'customer': 'B', 'cost': 275}, {'facility': 'F3', 'customer': 'C', 'cost': 481}, {'facility': 'F3', 'customer': 'D', 'cost': 1}, {'facility': 'F3', 'customer': 'E', 'cost': 254}, {'facility': 'F3', 'customer': 'F', 'cost': 716}, {'facility': 'F3', 'customer': 'G', 'cost': 115}, {'facility': 'F3', 'customer': 'H', 'cost': 308}, {'facility': 'F3', 'customer': 'I', 'cost': 308}, {'facility': 'F3', 'customer': 'J', 'cost': 665}, {'facility': 'F4', 'customer': 'A', 'cost': 981}, {'facility': 'F4', 'customer': 'B', 'cost': 465}, {'facility': 'F4', 'customer': 'C', 'cost': 40}, {'facility': 'F4', 'customer': 'D', 'cost': 751}, {'facility': 'F4', 'customer': 'E', 'cost': 607}, {'facility': 'F4', 'customer': 'F', 'cost': 262}, {'facility': 'F4', 'customer': 'G', 'cost': 477}, {'facility': 'F4', 'customer': 'H', 'cost': 823}, {'facility': 'F4', 'customer': 'I', 'cost': 586}, {'facility': 'F4', 'customer': 'J', 'cost': 436}, {'facility': 'F5', 'customer': 'A', 'cost': 281}, {'facility': 'F5', 'customer': 'B', 'cost': 105}, {'facility': 'F5', 'customer': 'C', 'cost': 733}, {'facility': 'F5', 'customer': 'D', 'cost': 993}, {'facility': 'F5', 'customer': 'E', 'cost': 54}, {'facility': 'F5', 'customer': 'F', 'cost': 466}, {'facility': 'F5', 'customer': 'G', 'cost': 592}, {'facility': 'F5', 'customer': 'H', 'cost': 47}, {'facility': 'F5', 'customer': 'I', 'cost': 637}, {'facility': 'F5', 'customer': 'J', 'cost': 838}], 'objective': 7915.0}","{'selected': ['F4'], 'assignments': ['F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4']}",34,json,names
UFLP,UFLP,"We coordinate a network of volunteer tutoring spots and are deciding which spots to activate and which active spot each student should go to. Activating a spot costs money, and each student has a travel cost depending on which active spot theyβre sent to. Better choices are those where the sum of the activation costs plus all studentsβ travel costs ends up lowest. Each student must go to one, and only one, active spot; nobody gets skipped. The concrete details are listed below.
We have 6 candidate hubs, 13 learners, and hub activation costs 6554, 6022, 6957, 7764, 7198, 2961.
Hub F1 has an activation cost of 6554.
Hub F2 has an activation cost of 6022.
Hub F3 has an activation cost of 6957.
Hub F4 has an activation cost of 7764.
Hub F5 has an activation cost of 7198.
Hub F6 has an activation cost of 2961.
Learner 0 would incur travel cost 299 if assigned to hub F1.
Learner 1 would incur travel cost 276 if assigned to hub F1.
Learner 2 would incur travel cost 194 if assigned to hub F1.
Learner 3 would incur travel cost 948 if assigned to hub F1.
Learner 4 would incur travel cost 842 if assigned to hub F1.
Learner 5 would incur travel cost 406 if assigned to hub F1.
Learner 6 would incur travel cost 252 if assigned to hub F1.
Learner 7 would incur travel cost 463 if assigned to hub F1.
Learner 8 would incur travel cost 160 if assigned to hub F1.
Learner 9 would incur travel cost 43 if assigned to hub F1.
Learner 10 would incur travel cost 404 if assigned to hub F1.
Learner 11 would incur travel cost 461 if assigned to hub F1.
Learner 12 would incur travel cost 219 if assigned to hub F1.
Learner 0 would incur travel cost 288 if assigned to hub F2.
Learner 1 would incur travel cost 855 if assigned to hub F2.
Learner 2 would incur travel cost 402 if assigned to hub F2.
Learner 3 would incur travel cost 597 if assigned to hub F2.
Learner 4 would incur travel cost 225 if assigned to hub F2.
Learner 5 would incur travel cost 474 if assigned to hub F2.
Learner 6 would incur travel cost 144 if assigned to hub F2.
Learner 7 would incur travel cost 131 if assigned to hub F2.
Learner 8 would incur travel cost 101 if assigned to hub F2.
Learner 9 would incur travel cost 463 if assigned to hub F2.
Learner 10 would incur travel cost 637 if assigned to hub F2.
Learner 11 would incur travel cost 578 if assigned to hub F2.
Learner 12 would incur travel cost 211 if assigned to hub F2.
Learner 0 would incur travel cost 954 if assigned to hub F3.
Learner 1 would incur travel cost 215 if assigned to hub F3.
Learner 2 would incur travel cost 83 if assigned to hub F3.
Learner 3 would incur travel cost 970 if assigned to hub F3.
Learner 4 would incur travel cost 28 if assigned to hub F3.
Learner 5 would incur travel cost 519 if assigned to hub F3.
Learner 6 would incur travel cost 776 if assigned to hub F3.
Learner 7 would incur travel cost 10 if assigned to hub F3.
Learner 8 would incur travel cost 857 if assigned to hub F3.
Learner 9 would incur travel cost 454 if assigned to hub F3.
Learner 10 would incur travel cost 948 if assigned to hub F3.
Learner 11 would incur travel cost 273 if assigned to hub F3.
Learner 12 would incur travel cost 166 if assigned to hub F3.
Learner 0 would incur travel cost 112 if assigned to hub F4.
Learner 1 would incur travel cost 391 if assigned to hub F4.
Learner 2 would incur travel cost 855 if assigned to hub F4.
Learner 3 would incur travel cost 911 if assigned to hub F4.
Learner 4 would incur travel cost 529 if assigned to hub F4.
Learner 5 would incur travel cost 332 if assigned to hub F4.
Learner 6 would incur travel cost 648 if assigned to hub F4.
Learner 7 would incur travel cost 126 if assigned to hub F4.
Learner 8 would incur travel cost 623 if assigned to hub F4.
Learner 9 would incur travel cost 143 if assigned to hub F4.
Learner 10 would incur travel cost 97 if assigned to hub F4.
Learner 11 would incur travel cost 169 if assigned to hub F4.
Learner 12 would incur travel cost 505 if assigned to hub F4.
Learner 0 would incur travel cost 273 if assigned to hub F5.
Learner 1 would incur travel cost 266 if assigned to hub F5.
Learner 2 would incur travel cost 398 if assigned to hub F5.
Learner 3 would incur travel cost 515 if assigned to hub F5.
Learner 4 would incur travel cost 365 if assigned to hub F5.
Learner 5 would incur travel cost 833 if assigned to hub F5.
Learner 6 would incur travel cost 895 if assigned to hub F5.
Learner 7 would incur travel cost 578 if assigned to hub F5.
Learner 8 would incur travel cost 89 if assigned to hub F5.
Learner 9 would incur travel cost 7 if assigned to hub F5.
Learner 10 would incur travel cost 103 if assigned to hub F5.
Learner 11 would incur travel cost 756 if assigned to hub F5.
Learner 12 would incur travel cost 984 if assigned to hub F5.
Learner 0 would incur travel cost 523 if assigned to hub F6.
Learner 1 would incur travel cost 222 if assigned to hub F6.
Learner 2 would incur travel cost 883 if assigned to hub F6.
Learner 3 would incur travel cost 7 if assigned to hub F6.
Learner 4 would incur travel cost 648 if assigned to hub F6.
Learner 5 would incur travel cost 322 if assigned to hub F6.
Learner 6 would incur travel cost 271 if assigned to hub F6.
Learner 7 would incur travel cost 260 if assigned to hub F6.
Learner 8 would incur travel cost 541 if assigned to hub F6.
Learner 9 would incur travel cost 870 if assigned to hub F6.
Learner 10 would incur travel cost 672 if assigned to hub F6.
Learner 11 would incur travel cost 700 if assigned to hub F6.
Learner 12 would incur travel cost 108 if assigned to hub F6.
We will use these details to pick which hubs to open and assign each learner so total activation plus travel costs is minimized.
Also, when you send back the actual choices, please use a tiny JSON snippet like this to tell us which spots you activate and which active spot each student goes to.
{
""solution"": {
""selected"": [<spot_to_activate>, <spot_to_activate>, ...],
""assignments"": [<assigned_spot>, <assigned_spot>, ...]
}
}
This just sketches the shape we want: ""selected"" is the list of spots you decide to activate (one placeholder per spot), and ""assignments"" lists, in order, which active spot each student is sent to. Think of it like filling out a short form β which locations are turned on, and for each student which turned-on spot theyβll use.
The JSON above is only an example of the shape we need, not the answer itself.
One more important thing β use the exact identifiers from the instance input, do not rename them or invent new ones. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [6554, 6022, 6957, 7764, 7198, 2961], 'connection_costs': [[299, 276, 194, 948, 842, 406, 252, 463, 160, 43, 404, 461, 219], [288, 855, 402, 597, 225, 474, 144, 131, 101, 463, 637, 578, 211], [954, 215, 83, 970, 28, 519, 776, 10, 857, 454, 948, 273, 166], [112, 391, 855, 911, 529, 332, 648, 126, 623, 143, 97, 169, 505], [273, 266, 398, 515, 365, 833, 895, 578, 89, 7, 103, 756, 984], [523, 222, 883, 7, 648, 322, 271, 260, 541, 870, 672, 700, 108]], 'objective': 8988.0}","{'open_facilities': [5], 'assignments': [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]}",8988.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 13, 'facilities': [{'id': 'F1', 'opening_cost': 6554}, {'id': 'F2', 'opening_cost': 6022}, {'id': 'F3', 'opening_cost': 6957}, {'id': 'F4', 'opening_cost': 7764}, {'id': 'F5', 'opening_cost': 7198}, {'id': 'F6', 'opening_cost': 2961}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}, {'id': 12}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 299}, {'facility': 'F1', 'customer': 1, 'cost': 276}, {'facility': 'F1', 'customer': 2, 'cost': 194}, {'facility': 'F1', 'customer': 3, 'cost': 948}, {'facility': 'F1', 'customer': 4, 'cost': 842}, {'facility': 'F1', 'customer': 5, 'cost': 406}, {'facility': 'F1', 'customer': 6, 'cost': 252}, {'facility': 'F1', 'customer': 7, 'cost': 463}, {'facility': 'F1', 'customer': 8, 'cost': 160}, {'facility': 'F1', 'customer': 9, 'cost': 43}, {'facility': 'F1', 'customer': 10, 'cost': 404}, {'facility': 'F1', 'customer': 11, 'cost': 461}, {'facility': 'F1', 'customer': 12, 'cost': 219}, {'facility': 'F2', 'customer': 0, 'cost': 288}, {'facility': 'F2', 'customer': 1, 'cost': 855}, {'facility': 'F2', 'customer': 2, 'cost': 402}, {'facility': 'F2', 'customer': 3, 'cost': 597}, {'facility': 'F2', 'customer': 4, 'cost': 225}, {'facility': 'F2', 'customer': 5, 'cost': 474}, {'facility': 'F2', 'customer': 6, 'cost': 144}, {'facility': 'F2', 'customer': 7, 'cost': 131}, {'facility': 'F2', 'customer': 8, 'cost': 101}, {'facility': 'F2', 'customer': 9, 'cost': 463}, {'facility': 'F2', 'customer': 10, 'cost': 637}, {'facility': 'F2', 'customer': 11, 'cost': 578}, {'facility': 'F2', 'customer': 12, 'cost': 211}, {'facility': 'F3', 'customer': 0, 'cost': 954}, {'facility': 'F3', 'customer': 1, 'cost': 215}, {'facility': 'F3', 'customer': 2, 'cost': 83}, {'facility': 'F3', 'customer': 3, 'cost': 970}, {'facility': 'F3', 'customer': 4, 'cost': 28}, {'facility': 'F3', 'customer': 5, 'cost': 519}, {'facility': 'F3', 'customer': 6, 'cost': 776}, {'facility': 'F3', 'customer': 7, 'cost': 10}, {'facility': 'F3', 'customer': 8, 'cost': 857}, {'facility': 'F3', 'customer': 9, 'cost': 454}, {'facility': 'F3', 'customer': 10, 'cost': 948}, {'facility': 'F3', 'customer': 11, 'cost': 273}, {'facility': 'F3', 'customer': 12, 'cost': 166}, {'facility': 'F4', 'customer': 0, 'cost': 112}, {'facility': 'F4', 'customer': 1, 'cost': 391}, {'facility': 'F4', 'customer': 2, 'cost': 855}, {'facility': 'F4', 'customer': 3, 'cost': 911}, {'facility': 'F4', 'customer': 4, 'cost': 529}, {'facility': 'F4', 'customer': 5, 'cost': 332}, {'facility': 'F4', 'customer': 6, 'cost': 648}, {'facility': 'F4', 'customer': 7, 'cost': 126}, {'facility': 'F4', 'customer': 8, 'cost': 623}, {'facility': 'F4', 'customer': 9, 'cost': 143}, {'facility': 'F4', 'customer': 10, 'cost': 97}, {'facility': 'F4', 'customer': 11, 'cost': 169}, {'facility': 'F4', 'customer': 12, 'cost': 505}, {'facility': 'F5', 'customer': 0, 'cost': 273}, {'facility': 'F5', 'customer': 1, 'cost': 266}, {'facility': 'F5', 'customer': 2, 'cost': 398}, {'facility': 'F5', 'customer': 3, 'cost': 515}, {'facility': 'F5', 'customer': 4, 'cost': 365}, {'facility': 'F5', 'customer': 5, 'cost': 833}, {'facility': 'F5', 'customer': 6, 'cost': 895}, {'facility': 'F5', 'customer': 7, 'cost': 578}, {'facility': 'F5', 'customer': 8, 'cost': 89}, {'facility': 'F5', 'customer': 9, 'cost': 7}, {'facility': 'F5', 'customer': 10, 'cost': 103}, {'facility': 'F5', 'customer': 11, 'cost': 756}, {'facility': 'F5', 'customer': 12, 'cost': 984}, {'facility': 'F6', 'customer': 0, 'cost': 523}, {'facility': 'F6', 'customer': 1, 'cost': 222}, {'facility': 'F6', 'customer': 2, 'cost': 883}, {'facility': 'F6', 'customer': 3, 'cost': 7}, {'facility': 'F6', 'customer': 4, 'cost': 648}, {'facility': 'F6', 'customer': 5, 'cost': 322}, {'facility': 'F6', 'customer': 6, 'cost': 271}, {'facility': 'F6', 'customer': 7, 'cost': 260}, {'facility': 'F6', 'customer': 8, 'cost': 541}, {'facility': 'F6', 'customer': 9, 'cost': 870}, {'facility': 'F6', 'customer': 10, 'cost': 672}, {'facility': 'F6', 'customer': 11, 'cost': 700}, {'facility': 'F6', 'customer': 12, 'cost': 108}], 'objective': 8988.0}","{'selected': ['F6'], 'assignments': ['F6', 'F6', 'F6', 'F6', 'F6', 'F6', 'F6', 'F6', 'F6', 'F6', 'F6', 'F6', 'F6']}",35,nl,0
UFLP,UFLP,"Recently during the response phase it became clear: decide which depots to activate and assign every affected household to one of the open depots. Activating a depot comes with a price, and every household will incur some effort to reach the depot theyβre sent to. The plan that wins is the one with the lowest overall sum β add together the operating cost for every opened depot and the pickup effort for every household. Every household has to be assigned to exactly one open depot; nothing is omitted or duplicated. The concrete details appear below.
# num_depots=5
# num_households=12
# DEPOTS
depot_id,depot_opening_cost
F1,2000
F2,2000
F3,2000
F4,2000
F5,2000
# HOUSEHOLDS
household_id
0
1
2
3
4
5
6
7
8
9
10
11
# PICKUP_EFFORTS
depot_id,household_id,pickup_effort
F1,0,105
F1,1,418
F1,2,251
F1,3,839
F1,4,733
F1,5,237
F1,6,371
F1,7,86
F1,8,809
F1,9,430
F1,10,63
F1,11,745
F2,0,859
F2,1,313
F2,2,978
F2,3,597
F2,4,309
F2,5,734
F2,6,352
F2,7,198
F2,8,330
F2,9,222
F2,10,816
F2,11,302
F3,0,923
F3,1,216
F3,2,205
F3,3,570
F3,4,386
F3,5,763
F3,6,618
F3,7,214
F3,8,130
F3,9,739
F3,10,278
F3,11,379
F4,0,554
F4,1,989
F4,2,395
F4,3,869
F4,4,675
F4,5,523
F4,6,243
F4,7,228
F4,8,440
F4,9,867
F4,10,561
F4,11,344
F5,0,136
F5,1,825
F5,2,757
F5,3,734
F5,4,616
F5,5,892
F5,6,139
F5,7,345
F5,8,969
F5,9,910
F5,10,259
F5,11,665
Oh, and when you send the plan back, just use a tiny JSON object like this β nothing fancy, just that shape:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
""selected"" is the list of depots/depots-to-activate (the ones we pay to open). ""assignments"" lists, in order, which open depot each household is sent to. Super simple, like filling out a form β which depots, and which depot for each household.
This is just a sketch of the shape I need, not the actual answer. Please make sure all identifiers you use match the instance input exactly β don't rename or invent labels. Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".","{'opening_costs': [2000, 2000, 2000, 2000, 2000], 'connection_costs': [[105, 418, 251, 839, 733, 237, 371, 86, 809, 430, 63, 745], [859, 313, 978, 597, 309, 734, 352, 198, 330, 222, 816, 302], [923, 216, 205, 570, 386, 763, 618, 214, 130, 739, 278, 379], [554, 989, 395, 869, 675, 523, 243, 228, 440, 867, 561, 344], [136, 825, 757, 734, 616, 892, 139, 345, 969, 910, 259, 665]], 'objective': 7087.0}","{'open_facilities': [0], 'assignments': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}",7087.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 12, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 105}, {'facility': 'F1', 'customer': 1, 'cost': 418}, {'facility': 'F1', 'customer': 2, 'cost': 251}, {'facility': 'F1', 'customer': 3, 'cost': 839}, {'facility': 'F1', 'customer': 4, 'cost': 733}, {'facility': 'F1', 'customer': 5, 'cost': 237}, {'facility': 'F1', 'customer': 6, 'cost': 371}, {'facility': 'F1', 'customer': 7, 'cost': 86}, {'facility': 'F1', 'customer': 8, 'cost': 809}, {'facility': 'F1', 'customer': 9, 'cost': 430}, {'facility': 'F1', 'customer': 10, 'cost': 63}, {'facility': 'F1', 'customer': 11, 'cost': 745}, {'facility': 'F2', 'customer': 0, 'cost': 859}, {'facility': 'F2', 'customer': 1, 'cost': 313}, {'facility': 'F2', 'customer': 2, 'cost': 978}, {'facility': 'F2', 'customer': 3, 'cost': 597}, {'facility': 'F2', 'customer': 4, 'cost': 309}, {'facility': 'F2', 'customer': 5, 'cost': 734}, {'facility': 'F2', 'customer': 6, 'cost': 352}, {'facility': 'F2', 'customer': 7, 'cost': 198}, {'facility': 'F2', 'customer': 8, 'cost': 330}, {'facility': 'F2', 'customer': 9, 'cost': 222}, {'facility': 'F2', 'customer': 10, 'cost': 816}, {'facility': 'F2', 'customer': 11, 'cost': 302}, {'facility': 'F3', 'customer': 0, 'cost': 923}, {'facility': 'F3', 'customer': 1, 'cost': 216}, {'facility': 'F3', 'customer': 2, 'cost': 205}, {'facility': 'F3', 'customer': 3, 'cost': 570}, {'facility': 'F3', 'customer': 4, 'cost': 386}, {'facility': 'F3', 'customer': 5, 'cost': 763}, {'facility': 'F3', 'customer': 6, 'cost': 618}, {'facility': 'F3', 'customer': 7, 'cost': 214}, {'facility': 'F3', 'customer': 8, 'cost': 130}, {'facility': 'F3', 'customer': 9, 'cost': 739}, {'facility': 'F3', 'customer': 10, 'cost': 278}, {'facility': 'F3', 'customer': 11, 'cost': 379}, {'facility': 'F4', 'customer': 0, 'cost': 554}, {'facility': 'F4', 'customer': 1, 'cost': 989}, {'facility': 'F4', 'customer': 2, 'cost': 395}, {'facility': 'F4', 'customer': 3, 'cost': 869}, {'facility': 'F4', 'customer': 4, 'cost': 675}, {'facility': 'F4', 'customer': 5, 'cost': 523}, {'facility': 'F4', 'customer': 6, 'cost': 243}, {'facility': 'F4', 'customer': 7, 'cost': 228}, {'facility': 'F4', 'customer': 8, 'cost': 440}, {'facility': 'F4', 'customer': 9, 'cost': 867}, {'facility': 'F4', 'customer': 10, 'cost': 561}, {'facility': 'F4', 'customer': 11, 'cost': 344}, {'facility': 'F5', 'customer': 0, 'cost': 136}, {'facility': 'F5', 'customer': 1, 'cost': 825}, {'facility': 'F5', 'customer': 2, 'cost': 757}, {'facility': 'F5', 'customer': 3, 'cost': 734}, {'facility': 'F5', 'customer': 4, 'cost': 616}, {'facility': 'F5', 'customer': 5, 'cost': 892}, {'facility': 'F5', 'customer': 6, 'cost': 139}, {'facility': 'F5', 'customer': 7, 'cost': 345}, {'facility': 'F5', 'customer': 8, 'cost': 969}, {'facility': 'F5', 'customer': 9, 'cost': 910}, {'facility': 'F5', 'customer': 10, 'cost': 259}, {'facility': 'F5', 'customer': 11, 'cost': 665}], 'objective': 7087.0}","{'selected': ['F1'], 'assignments': ['F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1']}",36,csv,0
UFLP,UFLP,"Recently the team running a neighborhood art rental decided to rethink which pickup spots to offer and who should use each spot. The idea is to balance the cost of running each spot with how much it costs clients to get there β the plan that wins is the one with the lowest sum of the chosen spotsβ operating fees plus all clientsβ connection costs. Itβs important that every client is assigned to one, and only one, open pickup point (no sharing and no leaving anyone out). The concrete details are provided below.
There are 5 candidate pickup points and 12 clients; pickup point operation fees are 1000, 1000, 1000, 1000, 1000.
Pickup point F1 has an operation fee of 1000.
Pickup point F2 has an operation fee of 1000.
Pickup point F3 has an operation fee of 1000.
Pickup point F4 has an operation fee of 1000.
Pickup point F5 has an operation fee of 1000.
For client A, the cost to use pickup point F1 is 559.
For client B, the cost to use pickup point F1 is 405.
For client C, the cost to use pickup point F1 is 403.
For client D, the cost to use pickup point F1 is 859.
For client E, the cost to use pickup point F1 is 522.
For client F, the cost to use pickup point F1 is 335.
For client G, the cost to use pickup point F1 is 90.
For client H, the cost to use pickup point F1 is 697.
For client I, the cost to use pickup point F1 is 223.
For client J, the cost to use pickup point F1 is 276.
For client K, the cost to use pickup point F1 is 372.
For client L, the cost to use pickup point F1 is 457.
For client A, the cost to use pickup point F2 is 202.
For client B, the cost to use pickup point F2 is 275.
For client C, the cost to use pickup point F2 is 302.
For client D, the cost to use pickup point F2 is 453.
For client E, the cost to use pickup point F2 is 700.
For client F, the cost to use pickup point F2 is 905.
For client G, the cost to use pickup point F2 is 638.
For client H, the cost to use pickup point F2 is 19.
For client I, the cost to use pickup point F2 is 536.
For client J, the cost to use pickup point F2 is 245.
For client K, the cost to use pickup point F2 is 867.
For client L, the cost to use pickup point F2 is 827.
For client A, the cost to use pickup point F3 is 371.
For client B, the cost to use pickup point F3 is 489.
For client C, the cost to use pickup point F3 is 495.
For client D, the cost to use pickup point F3 is 621.
For client E, the cost to use pickup point F3 is 146.
For client F, the cost to use pickup point F3 is 413.
For client G, the cost to use pickup point F3 is 939.
For client H, the cost to use pickup point F3 is 373.
For client I, the cost to use pickup point F3 is 375.
For client J, the cost to use pickup point F3 is 320.
For client K, the cost to use pickup point F3 is 709.
For client L, the cost to use pickup point F3 is 857.
For client A, the cost to use pickup point F4 is 457.
For client B, the cost to use pickup point F4 is 320.
For client C, the cost to use pickup point F4 is 353.
For client D, the cost to use pickup point F4 is 280.
For client E, the cost to use pickup point F4 is 225.
For client F, the cost to use pickup point F4 is 659.
For client G, the cost to use pickup point F4 is 747.
For client H, the cost to use pickup point F4 is 767.
For client I, the cost to use pickup point F4 is 870.
For client J, the cost to use pickup point F4 is 629.
For client K, the cost to use pickup point F4 is 2.
For client L, the cost to use pickup point F4 is 517.
For client A, the cost to use pickup point F5 is 487.
For client B, the cost to use pickup point F5 is 393.
For client C, the cost to use pickup point F5 is 588.
For client D, the cost to use pickup point F5 is 570.
For client E, the cost to use pickup point F5 is 447.
For client F, the cost to use pickup point F5 is 675.
For client G, the cost to use pickup point F5 is 876.
For client H, the cost to use pickup point F5 is 619.
For client I, the cost to use pickup point F5 is 38.
For client J, the cost to use pickup point F5 is 826.
For client K, the cost to use pickup point F5 is 423.
For client L, the cost to use pickup point F5 is 481.
Each following line names one pickup point or one client-to-point cost; together they define the inputs for selecting the lowest-cost plan.
Oh, and when you send the final pick of spots and who goes where, please use a simple JSON shape like this so I can read it automatically:
{
""solution"": {
""selected"": [<pickup_spot>, <pickup_spot>, ...],
""assignments"": [<assigned_spot>, <assigned_spot>, ...]
}
}
Pretty straightforward: ""selected"" is the list of pickup spots you choose to open, and ""assignments"" lists, in customer order, which open spot each customer will use. Think of it like filling out a quick form β this is just the expected shape, not the final content.
Important: use the exact identifiers from the instance input β do not rename or invent labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [1000, 1000, 1000, 1000, 1000], 'connection_costs': [[559, 405, 403, 859, 522, 335, 90, 697, 223, 276, 372, 457], [202, 275, 302, 453, 700, 905, 638, 19, 536, 245, 867, 827], [371, 489, 495, 621, 146, 413, 939, 373, 375, 320, 709, 857], [457, 320, 353, 280, 225, 659, 747, 767, 870, 629, 2, 517], [487, 393, 588, 570, 447, 675, 876, 619, 38, 826, 423, 481]], 'objective': 5495.0}","{'open_facilities': [0, 1], 'assignments': [1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 0]}",5495.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 12, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}, {'id': 'F5', 'opening_cost': 1000}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}, {'id': 'L'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 559}, {'facility': 'F1', 'customer': 'B', 'cost': 405}, {'facility': 'F1', 'customer': 'C', 'cost': 403}, {'facility': 'F1', 'customer': 'D', 'cost': 859}, {'facility': 'F1', 'customer': 'E', 'cost': 522}, {'facility': 'F1', 'customer': 'F', 'cost': 335}, {'facility': 'F1', 'customer': 'G', 'cost': 90}, {'facility': 'F1', 'customer': 'H', 'cost': 697}, {'facility': 'F1', 'customer': 'I', 'cost': 223}, {'facility': 'F1', 'customer': 'J', 'cost': 276}, {'facility': 'F1', 'customer': 'K', 'cost': 372}, {'facility': 'F1', 'customer': 'L', 'cost': 457}, {'facility': 'F2', 'customer': 'A', 'cost': 202}, {'facility': 'F2', 'customer': 'B', 'cost': 275}, {'facility': 'F2', 'customer': 'C', 'cost': 302}, {'facility': 'F2', 'customer': 'D', 'cost': 453}, {'facility': 'F2', 'customer': 'E', 'cost': 700}, {'facility': 'F2', 'customer': 'F', 'cost': 905}, {'facility': 'F2', 'customer': 'G', 'cost': 638}, {'facility': 'F2', 'customer': 'H', 'cost': 19}, {'facility': 'F2', 'customer': 'I', 'cost': 536}, {'facility': 'F2', 'customer': 'J', 'cost': 245}, {'facility': 'F2', 'customer': 'K', 'cost': 867}, {'facility': 'F2', 'customer': 'L', 'cost': 827}, {'facility': 'F3', 'customer': 'A', 'cost': 371}, {'facility': 'F3', 'customer': 'B', 'cost': 489}, {'facility': 'F3', 'customer': 'C', 'cost': 495}, {'facility': 'F3', 'customer': 'D', 'cost': 621}, {'facility': 'F3', 'customer': 'E', 'cost': 146}, {'facility': 'F3', 'customer': 'F', 'cost': 413}, {'facility': 'F3', 'customer': 'G', 'cost': 939}, {'facility': 'F3', 'customer': 'H', 'cost': 373}, {'facility': 'F3', 'customer': 'I', 'cost': 375}, {'facility': 'F3', 'customer': 'J', 'cost': 320}, {'facility': 'F3', 'customer': 'K', 'cost': 709}, {'facility': 'F3', 'customer': 'L', 'cost': 857}, {'facility': 'F4', 'customer': 'A', 'cost': 457}, {'facility': 'F4', 'customer': 'B', 'cost': 320}, {'facility': 'F4', 'customer': 'C', 'cost': 353}, {'facility': 'F4', 'customer': 'D', 'cost': 280}, {'facility': 'F4', 'customer': 'E', 'cost': 225}, {'facility': 'F4', 'customer': 'F', 'cost': 659}, {'facility': 'F4', 'customer': 'G', 'cost': 747}, {'facility': 'F4', 'customer': 'H', 'cost': 767}, {'facility': 'F4', 'customer': 'I', 'cost': 870}, {'facility': 'F4', 'customer': 'J', 'cost': 629}, {'facility': 'F4', 'customer': 'K', 'cost': 2}, {'facility': 'F4', 'customer': 'L', 'cost': 517}, {'facility': 'F5', 'customer': 'A', 'cost': 487}, {'facility': 'F5', 'customer': 'B', 'cost': 393}, {'facility': 'F5', 'customer': 'C', 'cost': 588}, {'facility': 'F5', 'customer': 'D', 'cost': 570}, {'facility': 'F5', 'customer': 'E', 'cost': 447}, {'facility': 'F5', 'customer': 'F', 'cost': 675}, {'facility': 'F5', 'customer': 'G', 'cost': 876}, {'facility': 'F5', 'customer': 'H', 'cost': 619}, {'facility': 'F5', 'customer': 'I', 'cost': 38}, {'facility': 'F5', 'customer': 'J', 'cost': 826}, {'facility': 'F5', 'customer': 'K', 'cost': 423}, {'facility': 'F5', 'customer': 'L', 'cost': 481}], 'objective': 5495.0}","{'selected': ['F1', 'F2'], 'assignments': ['F2', 'F2', 'F2', 'F2', 'F1', 'F1', 'F1', 'F2', 'F1', 'F2', 'F1', 'F1']}",37,nl,names
UFLP,UFLP,"Many people in town use a subscription meal-kit, and the business needs to choose which packing locations to run and which location handles each order. Running a location costs a flat fee, and each order has a shipping cost depending on where itβs packed; the total cost to watch is simply the sum of the running fees for chosen locations plus the shipping costs for every assigned order. Every order has to be packed exactly once at an open location. The concrete instance info is below.
There are 6 candidate packing centers and 13 customer orders, and the list of opening fees is 9189, 5205, 5187, 3530, 9452, 9544.
Packing center F1 has an opening fee of 9189.
Packing center F2 has an opening fee of 5205.
Packing center F3 has an opening fee of 5187.
Packing center F4 has an opening fee of 3530.
Packing center F5 has an opening fee of 9452.
Packing center F6 has an opening fee of 9544.
If order 1 is packed at packing center F1, the shipping cost is 370.
If order 2 is packed at packing center F1, the shipping cost is 322.
If order 3 is packed at packing center F1, the shipping cost is 821.
If order 4 is packed at packing center F1, the shipping cost is 972.
If order 5 is packed at packing center F1, the shipping cost is 994.
If order 6 is packed at packing center F1, the shipping cost is 88.
If order 7 is packed at packing center F1, the shipping cost is 266.
If order 8 is packed at packing center F1, the shipping cost is 741.
If order 9 is packed at packing center F1, the shipping cost is 98.
If order 10 is packed at packing center F1, the shipping cost is 260.
If order 11 is packed at packing center F1, the shipping cost is 643.
If order 12 is packed at packing center F1, the shipping cost is 794.
If order 13 is packed at packing center F1, the shipping cost is 15.
If order 1 is packed at packing center F2, the shipping cost is 215.
If order 2 is packed at packing center F2, the shipping cost is 460.
If order 3 is packed at packing center F2, the shipping cost is 768.
If order 4 is packed at packing center F2, the shipping cost is 385.
If order 5 is packed at packing center F2, the shipping cost is 475.
If order 6 is packed at packing center F2, the shipping cost is 774.
If order 7 is packed at packing center F2, the shipping cost is 567.
If order 8 is packed at packing center F2, the shipping cost is 649.
If order 9 is packed at packing center F2, the shipping cost is 559.
If order 10 is packed at packing center F2, the shipping cost is 277.
If order 11 is packed at packing center F2, the shipping cost is 300.
If order 12 is packed at packing center F2, the shipping cost is 972.
If order 13 is packed at packing center F2, the shipping cost is 656.
If order 1 is packed at packing center F3, the shipping cost is 0.
If order 2 is packed at packing center F3, the shipping cost is 736.
If order 3 is packed at packing center F3, the shipping cost is 477.
If order 4 is packed at packing center F3, the shipping cost is 596.
If order 5 is packed at packing center F3, the shipping cost is 639.
If order 6 is packed at packing center F3, the shipping cost is 330.
If order 7 is packed at packing center F3, the shipping cost is 730.
If order 8 is packed at packing center F3, the shipping cost is 792.
If order 9 is packed at packing center F3, the shipping cost is 697.
If order 10 is packed at packing center F3, the shipping cost is 532.
If order 11 is packed at packing center F3, the shipping cost is 393.
If order 12 is packed at packing center F3, the shipping cost is 654.
If order 13 is packed at packing center F3, the shipping cost is 494.
If order 1 is packed at packing center F4, the shipping cost is 590.
If order 2 is packed at packing center F4, the shipping cost is 166.
If order 3 is packed at packing center F4, the shipping cost is 17.
If order 4 is packed at packing center F4, the shipping cost is 39.
If order 5 is packed at packing center F4, the shipping cost is 655.
If order 6 is packed at packing center F4, the shipping cost is 713.
If order 7 is packed at packing center F4, the shipping cost is 599.
If order 8 is packed at packing center F4, the shipping cost is 524.
If order 9 is packed at packing center F4, the shipping cost is 793.
If order 10 is packed at packing center F4, the shipping cost is 431.
If order 11 is packed at packing center F4, the shipping cost is 313.
If order 12 is packed at packing center F4, the shipping cost is 550.
If order 13 is packed at packing center F4, the shipping cost is 277.
If order 1 is packed at packing center F5, the shipping cost is 979.
If order 2 is packed at packing center F5, the shipping cost is 886.
If order 3 is packed at packing center F5, the shipping cost is 626.
If order 4 is packed at packing center F5, the shipping cost is 330.
If order 5 is packed at packing center F5, the shipping cost is 321.
If order 6 is packed at packing center F5, the shipping cost is 409.
If order 7 is packed at packing center F5, the shipping cost is 197.
If order 8 is packed at packing center F5, the shipping cost is 581.
If order 9 is packed at packing center F5, the shipping cost is 989.
If order 10 is packed at packing center F5, the shipping cost is 170.
If order 11 is packed at packing center F5, the shipping cost is 974.
If order 12 is packed at packing center F5, the shipping cost is 273.
If order 13 is packed at packing center F5, the shipping cost is 94.
If order 1 is packed at packing center F6, the shipping cost is 732.
If order 2 is packed at packing center F6, the shipping cost is 660.
If order 3 is packed at packing center F6, the shipping cost is 927.
If order 4 is packed at packing center F6, the shipping cost is 848.
If order 5 is packed at packing center F6, the shipping cost is 74.
If order 6 is packed at packing center F6, the shipping cost is 778.
If order 7 is packed at packing center F6, the shipping cost is 976.
If order 8 is packed at packing center F6, the shipping cost is 612.
If order 9 is packed at packing center F6, the shipping cost is 718.
If order 10 is packed at packing center F6, the shipping cost is 639.
If order 11 is packed at packing center F6, the shipping cost is 250.
If order 12 is packed at packing center F6, the shipping cost is 662.
If order 13 is packed at packing center F6, the shipping cost is 198.
Decisions should minimize the total of chosen opening fees plus the shipping costs for all assigned orders.
Also, when you send back your answer, please follow this simple JSON layout so I can read it easily:
{
""solution"": {
""selected"": [<packing_site_to_open>, <packing_site_to_open>, ...],
""assignments"": [<chosen_packing_location>, <chosen_packing_location>, ...]
}
}
This little sketch is just the shape I need: the selected list is where you say which packing locations weβll run, and the assignments list says, for each order in the instance, which open packing location handles it. Think of it like a short form: ""selected"" = which sites we turn on, ""assignments"" = which site packs each order.
This is only a template of the expected shape β not the final answer itself.
Please be sure to use the identifiers exactly as they appear in the instance input β do not rename them or introduce new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [9189, 5205, 5187, 3530, 9452, 9544], 'connection_costs': [[370, 322, 821, 972, 994, 88, 266, 741, 98, 260, 643, 794, 15], [215, 460, 768, 385, 475, 774, 567, 649, 559, 277, 300, 972, 656], [0, 736, 477, 596, 639, 330, 730, 792, 697, 532, 393, 654, 494], [590, 166, 17, 39, 655, 713, 599, 524, 793, 431, 313, 550, 277], [979, 886, 626, 330, 321, 409, 197, 581, 989, 170, 974, 273, 94], [732, 660, 927, 848, 74, 778, 976, 612, 718, 639, 250, 662, 198]], 'objective': 9197.0}","{'open_facilities': [3], 'assignments': [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]}",9197.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 13, 'facilities': [{'id': 'F1', 'opening_cost': 9189}, {'id': 'F2', 'opening_cost': 5205}, {'id': 'F3', 'opening_cost': 5187}, {'id': 'F4', 'opening_cost': 3530}, {'id': 'F5', 'opening_cost': 9452}, {'id': 'F6', 'opening_cost': 9544}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}, {'id': 12}, {'id': 13}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 370}, {'facility': 'F1', 'customer': 2, 'cost': 322}, {'facility': 'F1', 'customer': 3, 'cost': 821}, {'facility': 'F1', 'customer': 4, 'cost': 972}, {'facility': 'F1', 'customer': 5, 'cost': 994}, {'facility': 'F1', 'customer': 6, 'cost': 88}, {'facility': 'F1', 'customer': 7, 'cost': 266}, {'facility': 'F1', 'customer': 8, 'cost': 741}, {'facility': 'F1', 'customer': 9, 'cost': 98}, {'facility': 'F1', 'customer': 10, 'cost': 260}, {'facility': 'F1', 'customer': 11, 'cost': 643}, {'facility': 'F1', 'customer': 12, 'cost': 794}, {'facility': 'F1', 'customer': 13, 'cost': 15}, {'facility': 'F2', 'customer': 1, 'cost': 215}, {'facility': 'F2', 'customer': 2, 'cost': 460}, {'facility': 'F2', 'customer': 3, 'cost': 768}, {'facility': 'F2', 'customer': 4, 'cost': 385}, {'facility': 'F2', 'customer': 5, 'cost': 475}, {'facility': 'F2', 'customer': 6, 'cost': 774}, {'facility': 'F2', 'customer': 7, 'cost': 567}, {'facility': 'F2', 'customer': 8, 'cost': 649}, {'facility': 'F2', 'customer': 9, 'cost': 559}, {'facility': 'F2', 'customer': 10, 'cost': 277}, {'facility': 'F2', 'customer': 11, 'cost': 300}, {'facility': 'F2', 'customer': 12, 'cost': 972}, {'facility': 'F2', 'customer': 13, 'cost': 656}, {'facility': 'F3', 'customer': 1, 'cost': 0}, {'facility': 'F3', 'customer': 2, 'cost': 736}, {'facility': 'F3', 'customer': 3, 'cost': 477}, {'facility': 'F3', 'customer': 4, 'cost': 596}, {'facility': 'F3', 'customer': 5, 'cost': 639}, {'facility': 'F3', 'customer': 6, 'cost': 330}, {'facility': 'F3', 'customer': 7, 'cost': 730}, {'facility': 'F3', 'customer': 8, 'cost': 792}, {'facility': 'F3', 'customer': 9, 'cost': 697}, {'facility': 'F3', 'customer': 10, 'cost': 532}, {'facility': 'F3', 'customer': 11, 'cost': 393}, {'facility': 'F3', 'customer': 12, 'cost': 654}, {'facility': 'F3', 'customer': 13, 'cost': 494}, {'facility': 'F4', 'customer': 1, 'cost': 590}, {'facility': 'F4', 'customer': 2, 'cost': 166}, {'facility': 'F4', 'customer': 3, 'cost': 17}, {'facility': 'F4', 'customer': 4, 'cost': 39}, {'facility': 'F4', 'customer': 5, 'cost': 655}, {'facility': 'F4', 'customer': 6, 'cost': 713}, {'facility': 'F4', 'customer': 7, 'cost': 599}, {'facility': 'F4', 'customer': 8, 'cost': 524}, {'facility': 'F4', 'customer': 9, 'cost': 793}, {'facility': 'F4', 'customer': 10, 'cost': 431}, {'facility': 'F4', 'customer': 11, 'cost': 313}, {'facility': 'F4', 'customer': 12, 'cost': 550}, {'facility': 'F4', 'customer': 13, 'cost': 277}, {'facility': 'F5', 'customer': 1, 'cost': 979}, {'facility': 'F5', 'customer': 2, 'cost': 886}, {'facility': 'F5', 'customer': 3, 'cost': 626}, {'facility': 'F5', 'customer': 4, 'cost': 330}, {'facility': 'F5', 'customer': 5, 'cost': 321}, {'facility': 'F5', 'customer': 6, 'cost': 409}, {'facility': 'F5', 'customer': 7, 'cost': 197}, {'facility': 'F5', 'customer': 8, 'cost': 581}, {'facility': 'F5', 'customer': 9, 'cost': 989}, {'facility': 'F5', 'customer': 10, 'cost': 170}, {'facility': 'F5', 'customer': 11, 'cost': 974}, {'facility': 'F5', 'customer': 12, 'cost': 273}, {'facility': 'F5', 'customer': 13, 'cost': 94}, {'facility': 'F6', 'customer': 1, 'cost': 732}, {'facility': 'F6', 'customer': 2, 'cost': 660}, {'facility': 'F6', 'customer': 3, 'cost': 927}, {'facility': 'F6', 'customer': 4, 'cost': 848}, {'facility': 'F6', 'customer': 5, 'cost': 74}, {'facility': 'F6', 'customer': 6, 'cost': 778}, {'facility': 'F6', 'customer': 7, 'cost': 976}, {'facility': 'F6', 'customer': 8, 'cost': 612}, {'facility': 'F6', 'customer': 9, 'cost': 718}, {'facility': 'F6', 'customer': 10, 'cost': 639}, {'facility': 'F6', 'customer': 11, 'cost': 250}, {'facility': 'F6', 'customer': 12, 'cost': 662}, {'facility': 'F6', 'customer': 13, 'cost': 198}], 'objective': 9197.0}","{'selected': ['F4'], 'assignments': ['F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4']}",38,nl,1
UFLP,UFLP,"Thereβs a town shuttle plan on my desk: a list of possible stops with activation prices and a list of commuters with how far theyβd have to travel to each stop. The trick is to decide which stops to switch on and then pair every commuter with one of the switched-on stops so the combined bill β paying for the stops we turned on plus the travel cost for everyone β ends up as small as it can be. Everyone must be assigned to a single active stop (no one gets skipped or sent to multiple stops), and active stops can handle unlimited riders. The concrete data appear below.
There are 6 stops and 13 commuters in this instance.
**Stops**
| stop_id | activation_cost |
|---|---|
| F1 | 1985 |
| F2 | 1494 |
| F3 | 1648 |
| F4 | 1484 |
| F5 | 1992 |
| F6 | 1189 |
**Commuters**
| commuter_id |
|---|
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
| 11 |
| 12 |
| 13 |
**Travel Cost**
| stop_id | commuter_id | travel_cost |
|---|---|---|
| F1 | 1 | 451 |
| F1 | 2 | 727 |
| F1 | 3 | 543 |
| F1 | 4 | 561 |
| F1 | 5 | 435 |
| F1 | 6 | 439 |
| F1 | 7 | 720 |
| F1 | 8 | 852 |
| F1 | 9 | 967 |
| F1 | 10 | 843 |
| F1 | 11 | 132 |
| F1 | 12 | 355 |
| F1 | 13 | 643 |
| F2 | 1 | 139 |
| F2 | 2 | 398 |
| F2 | 3 | 561 |
| F2 | 4 | 162 |
| F2 | 5 | 438 |
| F2 | 6 | 627 |
| F2 | 7 | 700 |
| F2 | 8 | 820 |
| F2 | 9 | 288 |
| F2 | 10 | 316 |
| F2 | 11 | 583 |
| F2 | 12 | 9 |
| F2 | 13 | 691 |
| F3 | 1 | 803 |
| F3 | 2 | 409 |
| F3 | 3 | 211 |
| F3 | 4 | 292 |
| F3 | 5 | 619 |
| F3 | 6 | 406 |
| F3 | 7 | 129 |
| F3 | 8 | 256 |
| F3 | 9 | 592 |
| F3 | 10 | 674 |
| F3 | 11 | 215 |
| F3 | 12 | 27 |
| F3 | 13 | 34 |
| F4 | 1 | 452 |
| F4 | 2 | 951 |
| F4 | 3 | 776 |
| F4 | 4 | 235 |
| F4 | 5 | 623 |
| F4 | 6 | 158 |
| F4 | 7 | 384 |
| F4 | 8 | 557 |
| F4 | 9 | 800 |
| F4 | 10 | 449 |
| F4 | 11 | 841 |
| F4 | 12 | 701 |
| F4 | 13 | 445 |
| F5 | 1 | 939 |
| F5 | 2 | 770 |
| F5 | 3 | 321 |
| F5 | 4 | 462 |
| F5 | 5 | 933 |
| F5 | 6 | 842 |
| F5 | 7 | 624 |
| F5 | 8 | 186 |
| F5 | 9 | 690 |
| F5 | 10 | 495 |
| F5 | 11 | 56 |
| F5 | 12 | 516 |
| F5 | 13 | 678 |
| F6 | 1 | 824 |
| F6 | 2 | 251 |
| F6 | 3 | 938 |
| F6 | 4 | 823 |
| F6 | 5 | 100 |
| F6 | 6 | 960 |
| F6 | 7 | 264 |
| F6 | 8 | 160 |
| F6 | 9 | 373 |
| F6 | 10 | 209 |
| F6 | 11 | 780 |
| F6 | 12 | 610 |
| F6 | 13 | 490 |
I'll give the result in a small, predictable JSON shape so it's easy to read β nothing fancy, just the two things we need to report.
{
""solution"": {
""selected"": [<stop_to_open>, <stop_to_open>, ...],
""assignments"": [<chosen_open_stop>, <chosen_open_stop>, ...]
}
}
Pretty straightforward: ""selected"" is the list of stops we switch on (the activation purchases), and ""assignments"" tells which active stop each commuter uses, in the same order the commuters appear in the input. This is just the sketch of the expected shape, not the actual answer.
Please use identifiers exactly as they appear in the instance input β no renaming and no new labels. For example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1985, 1494, 1648, 1484, 1992, 1189], 'connection_costs': [[451, 727, 543, 561, 435, 439, 720, 852, 967, 843, 132, 355, 643], [139, 398, 561, 162, 438, 627, 700, 820, 288, 316, 583, 9, 691], [803, 409, 211, 292, 619, 406, 129, 256, 592, 674, 215, 27, 34], [452, 951, 776, 235, 623, 158, 384, 557, 800, 449, 841, 701, 445], [939, 770, 321, 462, 933, 842, 624, 186, 690, 495, 56, 516, 678], [824, 251, 938, 823, 100, 960, 264, 160, 373, 209, 780, 610, 490]], 'objective': 6047.0}","{'open_facilities': [2, 5], 'assignments': [2, 5, 2, 2, 5, 2, 2, 5, 5, 5, 2, 2, 2]}",6047.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 13, 'facilities': [{'id': 'F1', 'opening_cost': 1985}, {'id': 'F2', 'opening_cost': 1494}, {'id': 'F3', 'opening_cost': 1648}, {'id': 'F4', 'opening_cost': 1484}, {'id': 'F5', 'opening_cost': 1992}, {'id': 'F6', 'opening_cost': 1189}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}, {'id': 12}, {'id': 13}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 451}, {'facility': 'F1', 'customer': 2, 'cost': 727}, {'facility': 'F1', 'customer': 3, 'cost': 543}, {'facility': 'F1', 'customer': 4, 'cost': 561}, {'facility': 'F1', 'customer': 5, 'cost': 435}, {'facility': 'F1', 'customer': 6, 'cost': 439}, {'facility': 'F1', 'customer': 7, 'cost': 720}, {'facility': 'F1', 'customer': 8, 'cost': 852}, {'facility': 'F1', 'customer': 9, 'cost': 967}, {'facility': 'F1', 'customer': 10, 'cost': 843}, {'facility': 'F1', 'customer': 11, 'cost': 132}, {'facility': 'F1', 'customer': 12, 'cost': 355}, {'facility': 'F1', 'customer': 13, 'cost': 643}, {'facility': 'F2', 'customer': 1, 'cost': 139}, {'facility': 'F2', 'customer': 2, 'cost': 398}, {'facility': 'F2', 'customer': 3, 'cost': 561}, {'facility': 'F2', 'customer': 4, 'cost': 162}, {'facility': 'F2', 'customer': 5, 'cost': 438}, {'facility': 'F2', 'customer': 6, 'cost': 627}, {'facility': 'F2', 'customer': 7, 'cost': 700}, {'facility': 'F2', 'customer': 8, 'cost': 820}, {'facility': 'F2', 'customer': 9, 'cost': 288}, {'facility': 'F2', 'customer': 10, 'cost': 316}, {'facility': 'F2', 'customer': 11, 'cost': 583}, {'facility': 'F2', 'customer': 12, 'cost': 9}, {'facility': 'F2', 'customer': 13, 'cost': 691}, {'facility': 'F3', 'customer': 1, 'cost': 803}, {'facility': 'F3', 'customer': 2, 'cost': 409}, {'facility': 'F3', 'customer': 3, 'cost': 211}, {'facility': 'F3', 'customer': 4, 'cost': 292}, {'facility': 'F3', 'customer': 5, 'cost': 619}, {'facility': 'F3', 'customer': 6, 'cost': 406}, {'facility': 'F3', 'customer': 7, 'cost': 129}, {'facility': 'F3', 'customer': 8, 'cost': 256}, {'facility': 'F3', 'customer': 9, 'cost': 592}, {'facility': 'F3', 'customer': 10, 'cost': 674}, {'facility': 'F3', 'customer': 11, 'cost': 215}, {'facility': 'F3', 'customer': 12, 'cost': 27}, {'facility': 'F3', 'customer': 13, 'cost': 34}, {'facility': 'F4', 'customer': 1, 'cost': 452}, {'facility': 'F4', 'customer': 2, 'cost': 951}, {'facility': 'F4', 'customer': 3, 'cost': 776}, {'facility': 'F4', 'customer': 4, 'cost': 235}, {'facility': 'F4', 'customer': 5, 'cost': 623}, {'facility': 'F4', 'customer': 6, 'cost': 158}, {'facility': 'F4', 'customer': 7, 'cost': 384}, {'facility': 'F4', 'customer': 8, 'cost': 557}, {'facility': 'F4', 'customer': 9, 'cost': 800}, {'facility': 'F4', 'customer': 10, 'cost': 449}, {'facility': 'F4', 'customer': 11, 'cost': 841}, {'facility': 'F4', 'customer': 12, 'cost': 701}, {'facility': 'F4', 'customer': 13, 'cost': 445}, {'facility': 'F5', 'customer': 1, 'cost': 939}, {'facility': 'F5', 'customer': 2, 'cost': 770}, {'facility': 'F5', 'customer': 3, 'cost': 321}, {'facility': 'F5', 'customer': 4, 'cost': 462}, {'facility': 'F5', 'customer': 5, 'cost': 933}, {'facility': 'F5', 'customer': 6, 'cost': 842}, {'facility': 'F5', 'customer': 7, 'cost': 624}, {'facility': 'F5', 'customer': 8, 'cost': 186}, {'facility': 'F5', 'customer': 9, 'cost': 690}, {'facility': 'F5', 'customer': 10, 'cost': 495}, {'facility': 'F5', 'customer': 11, 'cost': 56}, {'facility': 'F5', 'customer': 12, 'cost': 516}, {'facility': 'F5', 'customer': 13, 'cost': 678}, {'facility': 'F6', 'customer': 1, 'cost': 824}, {'facility': 'F6', 'customer': 2, 'cost': 251}, {'facility': 'F6', 'customer': 3, 'cost': 938}, {'facility': 'F6', 'customer': 4, 'cost': 823}, {'facility': 'F6', 'customer': 5, 'cost': 100}, {'facility': 'F6', 'customer': 6, 'cost': 960}, {'facility': 'F6', 'customer': 7, 'cost': 264}, {'facility': 'F6', 'customer': 8, 'cost': 160}, {'facility': 'F6', 'customer': 9, 'cost': 373}, {'facility': 'F6', 'customer': 10, 'cost': 209}, {'facility': 'F6', 'customer': 11, 'cost': 780}, {'facility': 'F6', 'customer': 12, 'cost': 610}, {'facility': 'F6', 'customer': 13, 'cost': 490}], 'objective': 6047.0}","{'selected': ['F3', 'F6'], 'assignments': ['F3', 'F6', 'F3', 'F3', 'F6', 'F3', 'F3', 'F6', 'F6', 'F6', 'F3', 'F3', 'F3']}",39,markdown_table,1
UFLP,UFLP,"Many people on the planning team are debating which neighborhood outlets to start and how to attach each block to a single open outlet. The choice is which outlets to pay to open (each has a setup price) and then making sure each block is linked to exactly one of those opened outlets β no block left unassigned and no double assignments β with each link costing a delivery or customer-travel amount. The best option is the one with the lowest combined expense: add up the setup costs for opened outlets and the travel/delivery costs for every blockβs assignment. The instance details are presented below.
There are 4 candidate outlets and 9 blocks; the outlet setup costs are 1000, 1000, 1000, 1000.
Candidate outlet F1 has a setup cost of 1000.
Candidate outlet F2 has a setup cost of 1000.
Candidate outlet F3 has a setup cost of 1000.
Candidate outlet F4 has a setup cost of 1000.
Block 1 can be served by outlet F1 at delivery/travel cost 186.
Block 2 can be served by outlet F1 at delivery/travel cost 604.
Block 3 can be served by outlet F1 at delivery/travel cost 890.
Block 4 can be served by outlet F1 at delivery/travel cost 352.
Block 5 can be served by outlet F1 at delivery/travel cost 680.
Block 6 can be served by outlet F1 at delivery/travel cost 928.
Block 7 can be served by outlet F1 at delivery/travel cost 839.
Block 8 can be served by outlet F1 at delivery/travel cost 768.
Block 9 can be served by outlet F1 at delivery/travel cost 853.
Block 1 can be served by outlet F2 at delivery/travel cost 823.
Block 2 can be served by outlet F2 at delivery/travel cost 775.
Block 3 can be served by outlet F2 at delivery/travel cost 290.
Block 4 can be served by outlet F2 at delivery/travel cost 614.
Block 5 can be served by outlet F2 at delivery/travel cost 652.
Block 6 can be served by outlet F2 at delivery/travel cost 632.
Block 7 can be served by outlet F2 at delivery/travel cost 636.
Block 8 can be served by outlet F2 at delivery/travel cost 572.
Block 9 can be served by outlet F2 at delivery/travel cost 686.
Block 1 can be served by outlet F3 at delivery/travel cost 479.
Block 2 can be served by outlet F3 at delivery/travel cost 745.
Block 3 can be served by outlet F3 at delivery/travel cost 17.
Block 4 can be served by outlet F3 at delivery/travel cost 167.
Block 5 can be served by outlet F3 at delivery/travel cost 851.
Block 6 can be served by outlet F3 at delivery/travel cost 86.
Block 7 can be served by outlet F3 at delivery/travel cost 723.
Block 8 can be served by outlet F3 at delivery/travel cost 593.
Block 9 can be served by outlet F3 at delivery/travel cost 133.
Block 1 can be served by outlet F4 at delivery/travel cost 637.
Block 2 can be served by outlet F4 at delivery/travel cost 348.
Block 3 can be served by outlet F4 at delivery/travel cost 450.
Block 4 can be served by outlet F4 at delivery/travel cost 348.
Block 5 can be served by outlet F4 at delivery/travel cost 815.
Block 6 can be served by outlet F4 at delivery/travel cost 981.
Block 7 can be served by outlet F4 at delivery/travel cost 43.
Block 8 can be served by outlet F4 at delivery/travel cost 261.
Block 9 can be served by outlet F4 at delivery/travel cost 194.
The planning team will use these figures to decide which outlets to open and how to assign each block so the total of setup fees plus delivery/travel costs is minimized.
Just so we're all on the same page about how to give the final pick-and-link info, please use this simple JSON layout when you reply. It's just the shape I need β nothing fancy.
{
""solution"": {
""selected"": [<outlet_to_open>, <outlet_to_open>, ...],
""assignments"": [<assigned_outlet>, <assigned_outlet>, ...]
}
}
""selected"" is where you list the outlets you decide to open. ""assignments"" is a list, one entry per block, saying which opened outlet that block is attached to. Think of it like filling out a form: the first part names the open outlets, the second part maps every block to one of those outlets.
This JSON is only a sketch of the expected shape, not the actual solution. And please use the exact identifiers from the instance input β do not rename or invent labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [1000, 1000, 1000, 1000], 'connection_costs': [[186, 604, 890, 352, 680, 928, 839, 768, 853], [823, 775, 290, 614, 652, 632, 636, 572, 686], [479, 745, 17, 167, 851, 86, 723, 593, 133], [637, 348, 450, 348, 815, 981, 43, 261, 194]], 'objective': 4349.0}","{'open_facilities': [2, 3], 'assignments': [2, 3, 2, 2, 3, 2, 3, 3, 2]}",4349.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 9, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 186}, {'facility': 'F1', 'customer': 2, 'cost': 604}, {'facility': 'F1', 'customer': 3, 'cost': 890}, {'facility': 'F1', 'customer': 4, 'cost': 352}, {'facility': 'F1', 'customer': 5, 'cost': 680}, {'facility': 'F1', 'customer': 6, 'cost': 928}, {'facility': 'F1', 'customer': 7, 'cost': 839}, {'facility': 'F1', 'customer': 8, 'cost': 768}, {'facility': 'F1', 'customer': 9, 'cost': 853}, {'facility': 'F2', 'customer': 1, 'cost': 823}, {'facility': 'F2', 'customer': 2, 'cost': 775}, {'facility': 'F2', 'customer': 3, 'cost': 290}, {'facility': 'F2', 'customer': 4, 'cost': 614}, {'facility': 'F2', 'customer': 5, 'cost': 652}, {'facility': 'F2', 'customer': 6, 'cost': 632}, {'facility': 'F2', 'customer': 7, 'cost': 636}, {'facility': 'F2', 'customer': 8, 'cost': 572}, {'facility': 'F2', 'customer': 9, 'cost': 686}, {'facility': 'F3', 'customer': 1, 'cost': 479}, {'facility': 'F3', 'customer': 2, 'cost': 745}, {'facility': 'F3', 'customer': 3, 'cost': 17}, {'facility': 'F3', 'customer': 4, 'cost': 167}, {'facility': 'F3', 'customer': 5, 'cost': 851}, {'facility': 'F3', 'customer': 6, 'cost': 86}, {'facility': 'F3', 'customer': 7, 'cost': 723}, {'facility': 'F3', 'customer': 8, 'cost': 593}, {'facility': 'F3', 'customer': 9, 'cost': 133}, {'facility': 'F4', 'customer': 1, 'cost': 637}, {'facility': 'F4', 'customer': 2, 'cost': 348}, {'facility': 'F4', 'customer': 3, 'cost': 450}, {'facility': 'F4', 'customer': 4, 'cost': 348}, {'facility': 'F4', 'customer': 5, 'cost': 815}, {'facility': 'F4', 'customer': 6, 'cost': 981}, {'facility': 'F4', 'customer': 7, 'cost': 43}, {'facility': 'F4', 'customer': 8, 'cost': 261}, {'facility': 'F4', 'customer': 9, 'cost': 194}], 'objective': 4349.0}","{'selected': ['F3', 'F4'], 'assignments': ['F3', 'F4', 'F3', 'F3', 'F4', 'F3', 'F4', 'F4', 'F3']}",40,nl,1
UFLP,UFLP,"Many people will be at the block party, and the organizers must choose which food truck locations to pay for and tell each attendee area which staffed location to use. Every staffed spot requires a rental fee, and every area adds up walking distance depending on which spot itβs sent to, so the combined totalβstall fees plus total walking distanceβis what the team wants to keep low. Each area needs exactly one assignment; no area can be unassigned or assigned to multiple spots. The specific data for spots, fees, and attendee areas are listed below.
# num_spots=6
# num_attendee_areas=12
# SPOTS
spot_id,rental_fee
F1,2000
F2,2000
F3,2000
F4,2000
F5,2000
F6,2000
# AREAS
area_id
0
1
2
3
4
5
6
7
8
9
10
11
# WALKING_DISTANCES
spot_id,area_id,walking_distance
F1,0,327
F1,1,551
F1,2,814
F1,3,252
F1,4,749
F1,5,679
F1,6,411
F1,7,328
F1,8,968
F1,9,720
F1,10,300
F1,11,485
F2,0,120
F2,1,584
F2,2,499
F2,3,699
F2,4,843
F2,5,241
F2,6,223
F2,7,497
F2,8,113
F2,9,606
F2,10,617
F2,11,627
F3,0,613
F3,1,366
F3,2,282
F3,3,812
F3,4,4
F3,5,448
F3,6,588
F3,7,627
F3,8,673
F3,9,336
F3,10,236
F3,11,439
F4,0,467
F4,1,293
F4,2,162
F4,3,61
F4,4,50
F4,5,187
F4,6,600
F4,7,903
F4,8,972
F4,9,111
F4,10,530
F4,11,749
F5,0,676
F5,1,442
F5,2,458
F5,3,437
F5,4,147
F5,5,834
F5,6,510
F5,7,46
F5,8,534
F5,9,877
F5,10,473
F5,11,506
F6,0,155
F6,1,140
F6,2,148
F6,3,305
F6,4,960
F6,5,935
F6,6,340
F6,7,940
F6,8,215
F6,9,823
F6,10,122
F6,11,93
You can just send the final choices in a small JSON snippet like this so it's easy to read and parse. Here's the shape I expect:
{
""solution"": {
""selected"": [<stall_to_rent>, <stall_to_rent>, ...],
""assignments"": [<assigned_spot>, <assigned_spot>, ...]
}
}
""selected"" is the list of staffed spots you decide to pay for (the rental fees). ""assignments"" is, for each attendee area in the same order as the input, which staffed spot that area should use. Super casual: think of ""selected"" as the stalls you're booking, and ""assignments"" as the directions you'd hand out to each group.
This JSON is just a sketch of the expected shape β not the actual answer. Please make sure to use the exact identifiers from the instance input (do not rename them and donβt invent new labels).
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000, 2000, 2000], 'connection_costs': [[327, 551, 814, 252, 749, 679, 411, 328, 968, 720, 300, 485], [120, 584, 499, 699, 843, 241, 223, 497, 113, 606, 617, 627], [613, 366, 282, 812, 4, 448, 588, 627, 673, 336, 236, 439], [467, 293, 162, 61, 50, 187, 600, 903, 972, 111, 530, 749], [676, 442, 458, 437, 147, 834, 510, 46, 534, 877, 473, 506], [155, 140, 148, 305, 960, 935, 340, 940, 215, 823, 122, 93]], 'objective': 6525.0}","{'open_facilities': [3, 5], 'assignments': [5, 5, 5, 3, 3, 3, 5, 3, 5, 3, 5, 5]}",6525.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 12, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}, {'id': 'F6', 'opening_cost': 2000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 327}, {'facility': 'F1', 'customer': 1, 'cost': 551}, {'facility': 'F1', 'customer': 2, 'cost': 814}, {'facility': 'F1', 'customer': 3, 'cost': 252}, {'facility': 'F1', 'customer': 4, 'cost': 749}, {'facility': 'F1', 'customer': 5, 'cost': 679}, {'facility': 'F1', 'customer': 6, 'cost': 411}, {'facility': 'F1', 'customer': 7, 'cost': 328}, {'facility': 'F1', 'customer': 8, 'cost': 968}, {'facility': 'F1', 'customer': 9, 'cost': 720}, {'facility': 'F1', 'customer': 10, 'cost': 300}, {'facility': 'F1', 'customer': 11, 'cost': 485}, {'facility': 'F2', 'customer': 0, 'cost': 120}, {'facility': 'F2', 'customer': 1, 'cost': 584}, {'facility': 'F2', 'customer': 2, 'cost': 499}, {'facility': 'F2', 'customer': 3, 'cost': 699}, {'facility': 'F2', 'customer': 4, 'cost': 843}, {'facility': 'F2', 'customer': 5, 'cost': 241}, {'facility': 'F2', 'customer': 6, 'cost': 223}, {'facility': 'F2', 'customer': 7, 'cost': 497}, {'facility': 'F2', 'customer': 8, 'cost': 113}, {'facility': 'F2', 'customer': 9, 'cost': 606}, {'facility': 'F2', 'customer': 10, 'cost': 617}, {'facility': 'F2', 'customer': 11, 'cost': 627}, {'facility': 'F3', 'customer': 0, 'cost': 613}, {'facility': 'F3', 'customer': 1, 'cost': 366}, {'facility': 'F3', 'customer': 2, 'cost': 282}, {'facility': 'F3', 'customer': 3, 'cost': 812}, {'facility': 'F3', 'customer': 4, 'cost': 4}, {'facility': 'F3', 'customer': 5, 'cost': 448}, {'facility': 'F3', 'customer': 6, 'cost': 588}, {'facility': 'F3', 'customer': 7, 'cost': 627}, {'facility': 'F3', 'customer': 8, 'cost': 673}, {'facility': 'F3', 'customer': 9, 'cost': 336}, {'facility': 'F3', 'customer': 10, 'cost': 236}, {'facility': 'F3', 'customer': 11, 'cost': 439}, {'facility': 'F4', 'customer': 0, 'cost': 467}, {'facility': 'F4', 'customer': 1, 'cost': 293}, {'facility': 'F4', 'customer': 2, 'cost': 162}, {'facility': 'F4', 'customer': 3, 'cost': 61}, {'facility': 'F4', 'customer': 4, 'cost': 50}, {'facility': 'F4', 'customer': 5, 'cost': 187}, {'facility': 'F4', 'customer': 6, 'cost': 600}, {'facility': 'F4', 'customer': 7, 'cost': 903}, {'facility': 'F4', 'customer': 8, 'cost': 972}, {'facility': 'F4', 'customer': 9, 'cost': 111}, {'facility': 'F4', 'customer': 10, 'cost': 530}, {'facility': 'F4', 'customer': 11, 'cost': 749}, {'facility': 'F5', 'customer': 0, 'cost': 676}, {'facility': 'F5', 'customer': 1, 'cost': 442}, {'facility': 'F5', 'customer': 2, 'cost': 458}, {'facility': 'F5', 'customer': 3, 'cost': 437}, {'facility': 'F5', 'customer': 4, 'cost': 147}, {'facility': 'F5', 'customer': 5, 'cost': 834}, {'facility': 'F5', 'customer': 6, 'cost': 510}, {'facility': 'F5', 'customer': 7, 'cost': 46}, {'facility': 'F5', 'customer': 8, 'cost': 534}, {'facility': 'F5', 'customer': 9, 'cost': 877}, {'facility': 'F5', 'customer': 10, 'cost': 473}, {'facility': 'F5', 'customer': 11, 'cost': 506}, {'facility': 'F6', 'customer': 0, 'cost': 155}, {'facility': 'F6', 'customer': 1, 'cost': 140}, {'facility': 'F6', 'customer': 2, 'cost': 148}, {'facility': 'F6', 'customer': 3, 'cost': 305}, {'facility': 'F6', 'customer': 4, 'cost': 960}, {'facility': 'F6', 'customer': 5, 'cost': 935}, {'facility': 'F6', 'customer': 6, 'cost': 340}, {'facility': 'F6', 'customer': 7, 'cost': 940}, {'facility': 'F6', 'customer': 8, 'cost': 215}, {'facility': 'F6', 'customer': 9, 'cost': 823}, {'facility': 'F6', 'customer': 10, 'cost': 122}, {'facility': 'F6', 'customer': 11, 'cost': 93}], 'objective': 6525.0}","{'selected': ['F4', 'F6'], 'assignments': ['F6', 'F6', 'F6', 'F4', 'F4', 'F4', 'F6', 'F4', 'F6', 'F4', 'F6', 'F6']}",41,csv,0
UFLP,UFLP,"Someone on the logistics team has to choose which cold depots to open and then point each clinic to exactly one of those open depots so vaccines and supplies can be sent. Every clinic must be tied to a single operating depot β no clinic gets left out and none is linked to a depot thatβs closed. The way to tell which choice is preferable is to add the operating fees for the depots that are open and the transport cost for each clinic to its depot; the lower that sum, the better. The concrete numbers follow below.
Someone on the logistics team sees 5 candidate depots, 13 clinics, and the depot operating fees are 1000, 1000, 1000, 1000, 1000.
Someone on the logistics team can open depot F1 at a fixed operating fee of 1000.
Someone on the logistics team can open depot F2 at a fixed operating fee of 1000.
Someone on the logistics team can open depot F3 at a fixed operating fee of 1000.
Someone on the logistics team can open depot F4 at a fixed operating fee of 1000.
Someone on the logistics team can open depot F5 at a fixed operating fee of 1000.
Someone on the logistics team would assign clinic A to depot F1 with a transport cost of 930.
Someone on the logistics team would assign clinic B to depot F1 with a transport cost of 809.
Someone on the logistics team would assign clinic C to depot F1 with a transport cost of 127.
Someone on the logistics team would assign clinic D to depot F1 with a transport cost of 509.
Someone on the logistics team would assign clinic E to depot F1 with a transport cost of 82.
Someone on the logistics team would assign clinic F to depot F1 with a transport cost of 847.
Someone on the logistics team would assign clinic G to depot F1 with a transport cost of 156.
Someone on the logistics team would assign clinic H to depot F1 with a transport cost of 482.
Someone on the logistics team would assign clinic I to depot F1 with a transport cost of 565.
Someone on the logistics team would assign clinic J to depot F1 with a transport cost of 274.
Someone on the logistics team would assign clinic K to depot F1 with a transport cost of 251.
Someone on the logistics team would assign clinic L to depot F1 with a transport cost of 407.
Someone on the logistics team would assign clinic M to depot F1 with a transport cost of 627.
Someone on the logistics team would assign clinic A to depot F2 with a transport cost of 928.
Someone on the logistics team would assign clinic B to depot F2 with a transport cost of 334.
Someone on the logistics team would assign clinic C to depot F2 with a transport cost of 884.
Someone on the logistics team would assign clinic D to depot F2 with a transport cost of 462.
Someone on the logistics team would assign clinic E to depot F2 with a transport cost of 461.
Someone on the logistics team would assign clinic F to depot F2 with a transport cost of 259.
Someone on the logistics team would assign clinic G to depot F2 with a transport cost of 286.
Someone on the logistics team would assign clinic H to depot F2 with a transport cost of 781.
Someone on the logistics team would assign clinic I to depot F2 with a transport cost of 770.
Someone on the logistics team would assign clinic J to depot F2 with a transport cost of 369.
Someone on the logistics team would assign clinic K to depot F2 with a transport cost of 875.
Someone on the logistics team would assign clinic L to depot F2 with a transport cost of 486.
Someone on the logistics team would assign clinic M to depot F2 with a transport cost of 709.
Someone on the logistics team would assign clinic A to depot F3 with a transport cost of 502.
Someone on the logistics team would assign clinic B to depot F3 with a transport cost of 405.
Someone on the logistics team would assign clinic C to depot F3 with a transport cost of 758.
Someone on the logistics team would assign clinic D to depot F3 with a transport cost of 397.
Someone on the logistics team would assign clinic E to depot F3 with a transport cost of 159.
Someone on the logistics team would assign clinic F to depot F3 with a transport cost of 431.
Someone on the logistics team would assign clinic G to depot F3 with a transport cost of 426.
Someone on the logistics team would assign clinic H to depot F3 with a transport cost of 497.
Someone on the logistics team would assign clinic I to depot F3 with a transport cost of 923.
Someone on the logistics team would assign clinic J to depot F3 with a transport cost of 570.
Someone on the logistics team would assign clinic K to depot F3 with a transport cost of 79.
Someone on the logistics team would assign clinic L to depot F3 with a transport cost of 39.
Someone on the logistics team would assign clinic M to depot F3 with a transport cost of 125.
Someone on the logistics team would assign clinic A to depot F4 with a transport cost of 794.
Someone on the logistics team would assign clinic B to depot F4 with a transport cost of 79.
Someone on the logistics team would assign clinic C to depot F4 with a transport cost of 26.
Someone on the logistics team would assign clinic D to depot F4 with a transport cost of 346.
Someone on the logistics team would assign clinic E to depot F4 with a transport cost of 298.
Someone on the logistics team would assign clinic F to depot F4 with a transport cost of 439.
Someone on the logistics team would assign clinic G to depot F4 with a transport cost of 322.
Someone on the logistics team would assign clinic H to depot F4 with a transport cost of 51.
Someone on the logistics team would assign clinic I to depot F4 with a transport cost of 418.
Someone on the logistics team would assign clinic J to depot F4 with a transport cost of 76.
Someone on the logistics team would assign clinic K to depot F4 with a transport cost of 520.
Someone on the logistics team would assign clinic L to depot F4 with a transport cost of 306.
Someone on the logistics team would assign clinic M to depot F4 with a transport cost of 708.
Someone on the logistics team would assign clinic A to depot F5 with a transport cost of 124.
Someone on the logistics team would assign clinic B to depot F5 with a transport cost of 479.
Someone on the logistics team would assign clinic C to depot F5 with a transport cost of 263.
Someone on the logistics team would assign clinic D to depot F5 with a transport cost of 545.
Someone on the logistics team would assign clinic E to depot F5 with a transport cost of 397.
Someone on the logistics team would assign clinic F to depot F5 with a transport cost of 612.
Someone on the logistics team would assign clinic G to depot F5 with a transport cost of 127.
Someone on the logistics team would assign clinic H to depot F5 with a transport cost of 14.
Someone on the logistics team would assign clinic I to depot F5 with a transport cost of 789.
Someone on the logistics team would assign clinic J to depot F5 with a transport cost of 231.
Someone on the logistics team would assign clinic K to depot F5 with a transport cost of 54.
Someone on the logistics team would assign clinic L to depot F5 with a transport cost of 183.
Someone on the logistics team would assign clinic M to depot F5 with a transport cost of 802.
Someone on the logistics team will use these numbers to sum opened depots' operating fees and assigned transport costs and choose the lowest total.
Also, when you send back the actual choices, please use this simple JSON layout so itβs easy to read and plug into our tools β hereβs the shape we expect:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
Quick note on what those fields mean in plain terms: selected is the list of depot ids you decide to open; assignments lists, for each clinic (in the same order as the instance), the id of the open depot that clinic will use. Think of it like a short form: which depots open, and who goes where.
This JSON is just a sketch of the expected shape β not the actual answer. Please make sure all identifiers are used exactly as they appear in the instance input β no renaming and no new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1000, 1000, 1000, 1000, 1000], 'connection_costs': [[930, 809, 127, 509, 82, 847, 156, 482, 565, 274, 251, 407, 627], [928, 334, 884, 462, 461, 259, 286, 781, 770, 369, 875, 486, 709], [502, 405, 758, 397, 159, 431, 426, 497, 923, 570, 79, 39, 125], [794, 79, 26, 346, 298, 439, 322, 51, 418, 76, 520, 306, 708], [124, 479, 263, 545, 397, 612, 127, 14, 789, 231, 54, 183, 802]], 'objective': 4653.0}","{'open_facilities': [2, 3], 'assignments': [2, 3, 3, 3, 2, 2, 3, 3, 3, 3, 2, 2, 2]}",4653.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 13, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}, {'id': 'F5', 'opening_cost': 1000}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}, {'id': 'L'}, {'id': 'M'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 930}, {'facility': 'F1', 'customer': 'B', 'cost': 809}, {'facility': 'F1', 'customer': 'C', 'cost': 127}, {'facility': 'F1', 'customer': 'D', 'cost': 509}, {'facility': 'F1', 'customer': 'E', 'cost': 82}, {'facility': 'F1', 'customer': 'F', 'cost': 847}, {'facility': 'F1', 'customer': 'G', 'cost': 156}, {'facility': 'F1', 'customer': 'H', 'cost': 482}, {'facility': 'F1', 'customer': 'I', 'cost': 565}, {'facility': 'F1', 'customer': 'J', 'cost': 274}, {'facility': 'F1', 'customer': 'K', 'cost': 251}, {'facility': 'F1', 'customer': 'L', 'cost': 407}, {'facility': 'F1', 'customer': 'M', 'cost': 627}, {'facility': 'F2', 'customer': 'A', 'cost': 928}, {'facility': 'F2', 'customer': 'B', 'cost': 334}, {'facility': 'F2', 'customer': 'C', 'cost': 884}, {'facility': 'F2', 'customer': 'D', 'cost': 462}, {'facility': 'F2', 'customer': 'E', 'cost': 461}, {'facility': 'F2', 'customer': 'F', 'cost': 259}, {'facility': 'F2', 'customer': 'G', 'cost': 286}, {'facility': 'F2', 'customer': 'H', 'cost': 781}, {'facility': 'F2', 'customer': 'I', 'cost': 770}, {'facility': 'F2', 'customer': 'J', 'cost': 369}, {'facility': 'F2', 'customer': 'K', 'cost': 875}, {'facility': 'F2', 'customer': 'L', 'cost': 486}, {'facility': 'F2', 'customer': 'M', 'cost': 709}, {'facility': 'F3', 'customer': 'A', 'cost': 502}, {'facility': 'F3', 'customer': 'B', 'cost': 405}, {'facility': 'F3', 'customer': 'C', 'cost': 758}, {'facility': 'F3', 'customer': 'D', 'cost': 397}, {'facility': 'F3', 'customer': 'E', 'cost': 159}, {'facility': 'F3', 'customer': 'F', 'cost': 431}, {'facility': 'F3', 'customer': 'G', 'cost': 426}, {'facility': 'F3', 'customer': 'H', 'cost': 497}, {'facility': 'F3', 'customer': 'I', 'cost': 923}, {'facility': 'F3', 'customer': 'J', 'cost': 570}, {'facility': 'F3', 'customer': 'K', 'cost': 79}, {'facility': 'F3', 'customer': 'L', 'cost': 39}, {'facility': 'F3', 'customer': 'M', 'cost': 125}, {'facility': 'F4', 'customer': 'A', 'cost': 794}, {'facility': 'F4', 'customer': 'B', 'cost': 79}, {'facility': 'F4', 'customer': 'C', 'cost': 26}, {'facility': 'F4', 'customer': 'D', 'cost': 346}, {'facility': 'F4', 'customer': 'E', 'cost': 298}, {'facility': 'F4', 'customer': 'F', 'cost': 439}, {'facility': 'F4', 'customer': 'G', 'cost': 322}, {'facility': 'F4', 'customer': 'H', 'cost': 51}, {'facility': 'F4', 'customer': 'I', 'cost': 418}, {'facility': 'F4', 'customer': 'J', 'cost': 76}, {'facility': 'F4', 'customer': 'K', 'cost': 520}, {'facility': 'F4', 'customer': 'L', 'cost': 306}, {'facility': 'F4', 'customer': 'M', 'cost': 708}, {'facility': 'F5', 'customer': 'A', 'cost': 124}, {'facility': 'F5', 'customer': 'B', 'cost': 479}, {'facility': 'F5', 'customer': 'C', 'cost': 263}, {'facility': 'F5', 'customer': 'D', 'cost': 545}, {'facility': 'F5', 'customer': 'E', 'cost': 397}, {'facility': 'F5', 'customer': 'F', 'cost': 612}, {'facility': 'F5', 'customer': 'G', 'cost': 127}, {'facility': 'F5', 'customer': 'H', 'cost': 14}, {'facility': 'F5', 'customer': 'I', 'cost': 789}, {'facility': 'F5', 'customer': 'J', 'cost': 231}, {'facility': 'F5', 'customer': 'K', 'cost': 54}, {'facility': 'F5', 'customer': 'L', 'cost': 183}, {'facility': 'F5', 'customer': 'M', 'cost': 802}], 'objective': 4653.0}","{'selected': ['F3', 'F4'], 'assignments': ['F3', 'F4', 'F4', 'F4', 'F3', 'F3', 'F4', 'F4', 'F4', 'F4', 'F3', 'F3', 'F3']}",42,nl,names
UFLP,UFLP,"I run the distribution side of a retail network and need to pick which micro-warehouses to switch on and which hub will serve each shop. The idea is simple: every shop has to be tied to oneβand only oneβopen hub, and the total bill is the sum of the opening fees for the hubs chosen plus all the shipment costs from hubs to shops. A plan is better when that combined bill is smaller, so the challenge is to turn on a smart set of hubs and link each shop to one of them without leaving any shop out or giving any shop two homes. The concrete details (locations, fees and shipping costs) are shown below.
# total_candidate_hubs=6
# total_shops=14
# HUBS
hub_id,activation_fee
F1,2000
F2,2000
F3,2000
F4,2000
F5,2000
F6,2000
# SHOPS
shop_id
0
1
2
3
4
5
6
7
8
9
10
11
12
13
# SHIPMENTS
hub_id,shop_id,shipment_cost
F1,0,108
F1,1,33
F1,2,158
F1,3,52
F1,4,49
F1,5,199
F1,6,658
F1,7,280
F1,8,876
F1,9,859
F1,10,747
F1,11,388
F1,12,173
F1,13,319
F2,0,921
F2,1,372
F2,2,559
F2,3,9
F2,4,906
F2,5,799
F2,6,891
F2,7,915
F2,8,222
F2,9,361
F2,10,77
F2,11,223
F2,12,877
F2,13,691
F3,0,981
F3,1,337
F3,2,829
F3,3,874
F3,4,337
F3,5,925
F3,6,580
F3,7,128
F3,8,239
F3,9,201
F3,10,329
F3,11,668
F3,12,239
F3,13,655
F4,0,967
F4,1,185
F4,2,395
F4,3,517
F4,4,981
F4,5,823
F4,6,485
F4,7,979
F4,8,164
F4,9,611
F4,10,363
F4,11,659
F4,12,621
F4,13,919
F5,0,615
F5,1,618
F5,2,516
F5,3,75
F5,4,79
F5,5,925
F5,6,557
F5,7,86
F5,8,279
F5,9,942
F5,10,984
F5,11,764
F5,12,396
F5,13,394
F6,0,450
F6,1,845
F6,2,998
F6,3,443
F6,4,100
F6,5,749
F6,6,881
F6,7,631
F6,8,180
F6,9,182
F6,10,775
F6,11,499
F6,12,585
F6,13,536
Also, when you hand back the plan, please use this little JSON layout so I can read it automatically β nothing fancy, just two lists: which micro-warehouses you flip on, and which open micro-warehouse serves each shop.
{
""solution"": {
""selected"": [<microwarehouse_to_open>, <microwarehouse_to_open>, ...],
""assignments"": [<chosen_open_microwarehouse>, <chosen_open_microwarehouse>, ...]
}
}
Think of ""selected"" as the checklist of micro-warehouses you plan to switch on (their IDs), and ""assignments"" as a one-to-one list that says, in the same order as the shops in the instance, which open micro-warehouse will serve that shop. This JSON is just a sketch of the shape I need β not the actual answer.
Please make sure you use the exact identifiers from the instance input β do not rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [2000, 2000, 2000, 2000, 2000, 2000], 'connection_costs': [[108, 33, 158, 52, 49, 199, 658, 280, 876, 859, 747, 388, 173, 319], [921, 372, 559, 9, 906, 799, 891, 915, 222, 361, 77, 223, 877, 691], [981, 337, 829, 874, 337, 925, 580, 128, 239, 201, 329, 668, 239, 655], [967, 185, 395, 517, 981, 823, 485, 979, 164, 611, 363, 659, 621, 919], [615, 618, 516, 75, 79, 925, 557, 86, 279, 942, 984, 764, 396, 394], [450, 845, 998, 443, 100, 749, 881, 631, 180, 182, 775, 499, 585, 536]], 'objective': 6869.0}","{'open_facilities': [0, 1], 'assignments': [0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0]}",6869.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 14, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}, {'id': 'F6', 'opening_cost': 2000}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}, {'id': 11}, {'id': 12}, {'id': 13}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 108}, {'facility': 'F1', 'customer': 1, 'cost': 33}, {'facility': 'F1', 'customer': 2, 'cost': 158}, {'facility': 'F1', 'customer': 3, 'cost': 52}, {'facility': 'F1', 'customer': 4, 'cost': 49}, {'facility': 'F1', 'customer': 5, 'cost': 199}, {'facility': 'F1', 'customer': 6, 'cost': 658}, {'facility': 'F1', 'customer': 7, 'cost': 280}, {'facility': 'F1', 'customer': 8, 'cost': 876}, {'facility': 'F1', 'customer': 9, 'cost': 859}, {'facility': 'F1', 'customer': 10, 'cost': 747}, {'facility': 'F1', 'customer': 11, 'cost': 388}, {'facility': 'F1', 'customer': 12, 'cost': 173}, {'facility': 'F1', 'customer': 13, 'cost': 319}, {'facility': 'F2', 'customer': 0, 'cost': 921}, {'facility': 'F2', 'customer': 1, 'cost': 372}, {'facility': 'F2', 'customer': 2, 'cost': 559}, {'facility': 'F2', 'customer': 3, 'cost': 9}, {'facility': 'F2', 'customer': 4, 'cost': 906}, {'facility': 'F2', 'customer': 5, 'cost': 799}, {'facility': 'F2', 'customer': 6, 'cost': 891}, {'facility': 'F2', 'customer': 7, 'cost': 915}, {'facility': 'F2', 'customer': 8, 'cost': 222}, {'facility': 'F2', 'customer': 9, 'cost': 361}, {'facility': 'F2', 'customer': 10, 'cost': 77}, {'facility': 'F2', 'customer': 11, 'cost': 223}, {'facility': 'F2', 'customer': 12, 'cost': 877}, {'facility': 'F2', 'customer': 13, 'cost': 691}, {'facility': 'F3', 'customer': 0, 'cost': 981}, {'facility': 'F3', 'customer': 1, 'cost': 337}, {'facility': 'F3', 'customer': 2, 'cost': 829}, {'facility': 'F3', 'customer': 3, 'cost': 874}, {'facility': 'F3', 'customer': 4, 'cost': 337}, {'facility': 'F3', 'customer': 5, 'cost': 925}, {'facility': 'F3', 'customer': 6, 'cost': 580}, {'facility': 'F3', 'customer': 7, 'cost': 128}, {'facility': 'F3', 'customer': 8, 'cost': 239}, {'facility': 'F3', 'customer': 9, 'cost': 201}, {'facility': 'F3', 'customer': 10, 'cost': 329}, {'facility': 'F3', 'customer': 11, 'cost': 668}, {'facility': 'F3', 'customer': 12, 'cost': 239}, {'facility': 'F3', 'customer': 13, 'cost': 655}, {'facility': 'F4', 'customer': 0, 'cost': 967}, {'facility': 'F4', 'customer': 1, 'cost': 185}, {'facility': 'F4', 'customer': 2, 'cost': 395}, {'facility': 'F4', 'customer': 3, 'cost': 517}, {'facility': 'F4', 'customer': 4, 'cost': 981}, {'facility': 'F4', 'customer': 5, 'cost': 823}, {'facility': 'F4', 'customer': 6, 'cost': 485}, {'facility': 'F4', 'customer': 7, 'cost': 979}, {'facility': 'F4', 'customer': 8, 'cost': 164}, {'facility': 'F4', 'customer': 9, 'cost': 611}, {'facility': 'F4', 'customer': 10, 'cost': 363}, {'facility': 'F4', 'customer': 11, 'cost': 659}, {'facility': 'F4', 'customer': 12, 'cost': 621}, {'facility': 'F4', 'customer': 13, 'cost': 919}, {'facility': 'F5', 'customer': 0, 'cost': 615}, {'facility': 'F5', 'customer': 1, 'cost': 618}, {'facility': 'F5', 'customer': 2, 'cost': 516}, {'facility': 'F5', 'customer': 3, 'cost': 75}, {'facility': 'F5', 'customer': 4, 'cost': 79}, {'facility': 'F5', 'customer': 5, 'cost': 925}, {'facility': 'F5', 'customer': 6, 'cost': 557}, {'facility': 'F5', 'customer': 7, 'cost': 86}, {'facility': 'F5', 'customer': 8, 'cost': 279}, {'facility': 'F5', 'customer': 9, 'cost': 942}, {'facility': 'F5', 'customer': 10, 'cost': 984}, {'facility': 'F5', 'customer': 11, 'cost': 764}, {'facility': 'F5', 'customer': 12, 'cost': 396}, {'facility': 'F5', 'customer': 13, 'cost': 394}, {'facility': 'F6', 'customer': 0, 'cost': 450}, {'facility': 'F6', 'customer': 1, 'cost': 845}, {'facility': 'F6', 'customer': 2, 'cost': 998}, {'facility': 'F6', 'customer': 3, 'cost': 443}, {'facility': 'F6', 'customer': 4, 'cost': 100}, {'facility': 'F6', 'customer': 5, 'cost': 749}, {'facility': 'F6', 'customer': 6, 'cost': 881}, {'facility': 'F6', 'customer': 7, 'cost': 631}, {'facility': 'F6', 'customer': 8, 'cost': 180}, {'facility': 'F6', 'customer': 9, 'cost': 182}, {'facility': 'F6', 'customer': 10, 'cost': 775}, {'facility': 'F6', 'customer': 11, 'cost': 499}, {'facility': 'F6', 'customer': 12, 'cost': 585}, {'facility': 'F6', 'customer': 13, 'cost': 536}], 'objective': 6869.0}","{'selected': ['F1', 'F2'], 'assignments': ['F1', 'F1', 'F1', 'F2', 'F1', 'F1', 'F1', 'F1', 'F2', 'F2', 'F2', 'F2', 'F1', 'F1']}",43,csv,0
UFLP,UFLP,"Iβm lining up which library-style book branches the district should actually open and then signing each neighborhood school up with one of those open branches. The idea is simple: every branch costs money to start, and each school has a delivery or pickup cost to be served from a particular branch, so the total bill is the sum of the branch opening fees plus all the delivery/pickup charges. The job is to pick which branches to open and make sure every school is assigned to exactly one open branch (no school left unassigned and no school registered to two branches), while keeping that total bill as small as possible. The concrete entriesβbranch options, opening fees, and school delivery costsβare listed below.
There are 6 branchs and 14 schools in this instance.
**Branchs**
| branch_id | branch_opening_fee |
|---|---|
| F1 | 1000 |
| F2 | 1000 |
| F3 | 1000 |
| F4 | 1000 |
| F5 | 1000 |
| F6 | 1000 |
**Schools**
| school_id |
|---|
| A |
| B |
| C |
| D |
| E |
| F |
| G |
| H |
| I |
| J |
| K |
| L |
| M |
| N |
**Delivery Cost**
| branch_id | school_id | delivery_cost |
|---|---|---|
| F1 | A | 292 |
| F1 | B | 880 |
| F1 | C | 546 |
| F1 | D | 62 |
| F1 | E | 429 |
| F1 | F | 692 |
| F1 | G | 596 |
| F1 | H | 126 |
| F1 | I | 424 |
| F1 | J | 254 |
| F1 | K | 378 |
| F1 | L | 152 |
| F1 | M | 732 |
| F1 | N | 848 |
| F2 | A | 449 |
| F2 | B | 869 |
| F2 | C | 355 |
| F2 | D | 12 |
| F2 | E | 579 |
| F2 | F | 786 |
| F2 | G | 404 |
| F2 | H | 710 |
| F2 | I | 262 |
| F2 | J | 383 |
| F2 | K | 308 |
| F2 | L | 404 |
| F2 | M | 583 |
| F2 | N | 354 |
| F3 | A | 79 |
| F3 | B | 996 |
| F3 | C | 217 |
| F3 | D | 52 |
| F3 | E | 905 |
| F3 | F | 608 |
| F3 | G | 729 |
| F3 | H | 396 |
| F3 | I | 144 |
| F3 | J | 408 |
| F3 | K | 838 |
| F3 | L | 927 |
| F3 | M | 85 |
| F3 | N | 148 |
| F4 | A | 729 |
| F4 | B | 486 |
| F4 | C | 535 |
| F4 | D | 913 |
| F4 | E | 4 |
| F4 | F | 120 |
| F4 | G | 63 |
| F4 | H | 64 |
| F4 | I | 203 |
| F4 | J | 299 |
| F4 | K | 839 |
| F4 | L | 27 |
| F4 | M | 293 |
| F4 | N | 799 |
| F5 | A | 966 |
| F5 | B | 422 |
| F5 | C | 404 |
| F5 | D | 868 |
| F5 | E | 899 |
| F5 | F | 744 |
| F5 | G | 527 |
| F5 | H | 250 |
| F5 | I | 913 |
| F5 | J | 978 |
| F5 | K | 498 |
| F5 | L | 453 |
| F5 | M | 60 |
| F5 | N | 338 |
| F6 | A | 115 |
| F6 | B | 887 |
| F6 | C | 294 |
| F6 | D | 513 |
| F6 | E | 969 |
| F6 | F | 322 |
| F6 | G | 681 |
| F6 | H | 542 |
| F6 | I | 711 |
| F6 | J | 843 |
| F6 | K | 874 |
| F6 | L | 718 |
| F6 | M | 704 |
| F6 | N | 966 |
Also, when you send the solution back, just stick to this little JSON shape so itβs easy to read and parse:
{
""solution"": {
""selected"": [<branch_to_open>, <branch_to_open>, ...],
""assignments"": [<chosen_open_branch>, <chosen_open_branch>, ...]
}
}
This is just a sketch of the shape Iβm expecting β nothing filled in yet. ""selected"" is the list of branches the district will open, and ""assignments"" is a list (in the same order as the schools were given in the instance) saying which opened branch each school signs up with.
Please note: all identifiers in your actual answer must match the instance input exactly β donβt rename them and donβt invent new labels. For example: Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'opening_costs': [1000, 1000, 1000, 1000, 1000, 1000], 'connection_costs': [[292, 880, 546, 62, 429, 692, 596, 126, 424, 254, 378, 152, 732, 848], [449, 869, 355, 12, 579, 786, 404, 710, 262, 383, 308, 404, 583, 354], [79, 996, 217, 52, 905, 608, 729, 396, 144, 408, 838, 927, 85, 148], [729, 486, 535, 913, 4, 120, 63, 64, 203, 299, 839, 27, 293, 799], [966, 422, 404, 868, 899, 744, 527, 250, 913, 978, 498, 453, 60, 338], [115, 887, 294, 513, 969, 322, 681, 542, 711, 843, 874, 718, 704, 966]], 'objective': 4626.0}","{'open_facilities': [2, 3], 'assignments': [2, 3, 2, 2, 3, 3, 3, 3, 2, 3, 2, 3, 2, 2]}",4626.0,"{'problem_type': 'UFLP', 'num_facilities': 6, 'num_customers': 14, 'facilities': [{'id': 'F1', 'opening_cost': 1000}, {'id': 'F2', 'opening_cost': 1000}, {'id': 'F3', 'opening_cost': 1000}, {'id': 'F4', 'opening_cost': 1000}, {'id': 'F5', 'opening_cost': 1000}, {'id': 'F6', 'opening_cost': 1000}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}, {'id': 'L'}, {'id': 'M'}, {'id': 'N'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 292}, {'facility': 'F1', 'customer': 'B', 'cost': 880}, {'facility': 'F1', 'customer': 'C', 'cost': 546}, {'facility': 'F1', 'customer': 'D', 'cost': 62}, {'facility': 'F1', 'customer': 'E', 'cost': 429}, {'facility': 'F1', 'customer': 'F', 'cost': 692}, {'facility': 'F1', 'customer': 'G', 'cost': 596}, {'facility': 'F1', 'customer': 'H', 'cost': 126}, {'facility': 'F1', 'customer': 'I', 'cost': 424}, {'facility': 'F1', 'customer': 'J', 'cost': 254}, {'facility': 'F1', 'customer': 'K', 'cost': 378}, {'facility': 'F1', 'customer': 'L', 'cost': 152}, {'facility': 'F1', 'customer': 'M', 'cost': 732}, {'facility': 'F1', 'customer': 'N', 'cost': 848}, {'facility': 'F2', 'customer': 'A', 'cost': 449}, {'facility': 'F2', 'customer': 'B', 'cost': 869}, {'facility': 'F2', 'customer': 'C', 'cost': 355}, {'facility': 'F2', 'customer': 'D', 'cost': 12}, {'facility': 'F2', 'customer': 'E', 'cost': 579}, {'facility': 'F2', 'customer': 'F', 'cost': 786}, {'facility': 'F2', 'customer': 'G', 'cost': 404}, {'facility': 'F2', 'customer': 'H', 'cost': 710}, {'facility': 'F2', 'customer': 'I', 'cost': 262}, {'facility': 'F2', 'customer': 'J', 'cost': 383}, {'facility': 'F2', 'customer': 'K', 'cost': 308}, {'facility': 'F2', 'customer': 'L', 'cost': 404}, {'facility': 'F2', 'customer': 'M', 'cost': 583}, {'facility': 'F2', 'customer': 'N', 'cost': 354}, {'facility': 'F3', 'customer': 'A', 'cost': 79}, {'facility': 'F3', 'customer': 'B', 'cost': 996}, {'facility': 'F3', 'customer': 'C', 'cost': 217}, {'facility': 'F3', 'customer': 'D', 'cost': 52}, {'facility': 'F3', 'customer': 'E', 'cost': 905}, {'facility': 'F3', 'customer': 'F', 'cost': 608}, {'facility': 'F3', 'customer': 'G', 'cost': 729}, {'facility': 'F3', 'customer': 'H', 'cost': 396}, {'facility': 'F3', 'customer': 'I', 'cost': 144}, {'facility': 'F3', 'customer': 'J', 'cost': 408}, {'facility': 'F3', 'customer': 'K', 'cost': 838}, {'facility': 'F3', 'customer': 'L', 'cost': 927}, {'facility': 'F3', 'customer': 'M', 'cost': 85}, {'facility': 'F3', 'customer': 'N', 'cost': 148}, {'facility': 'F4', 'customer': 'A', 'cost': 729}, {'facility': 'F4', 'customer': 'B', 'cost': 486}, {'facility': 'F4', 'customer': 'C', 'cost': 535}, {'facility': 'F4', 'customer': 'D', 'cost': 913}, {'facility': 'F4', 'customer': 'E', 'cost': 4}, {'facility': 'F4', 'customer': 'F', 'cost': 120}, {'facility': 'F4', 'customer': 'G', 'cost': 63}, {'facility': 'F4', 'customer': 'H', 'cost': 64}, {'facility': 'F4', 'customer': 'I', 'cost': 203}, {'facility': 'F4', 'customer': 'J', 'cost': 299}, {'facility': 'F4', 'customer': 'K', 'cost': 839}, {'facility': 'F4', 'customer': 'L', 'cost': 27}, {'facility': 'F4', 'customer': 'M', 'cost': 293}, {'facility': 'F4', 'customer': 'N', 'cost': 799}, {'facility': 'F5', 'customer': 'A', 'cost': 966}, {'facility': 'F5', 'customer': 'B', 'cost': 422}, {'facility': 'F5', 'customer': 'C', 'cost': 404}, {'facility': 'F5', 'customer': 'D', 'cost': 868}, {'facility': 'F5', 'customer': 'E', 'cost': 899}, {'facility': 'F5', 'customer': 'F', 'cost': 744}, {'facility': 'F5', 'customer': 'G', 'cost': 527}, {'facility': 'F5', 'customer': 'H', 'cost': 250}, {'facility': 'F5', 'customer': 'I', 'cost': 913}, {'facility': 'F5', 'customer': 'J', 'cost': 978}, {'facility': 'F5', 'customer': 'K', 'cost': 498}, {'facility': 'F5', 'customer': 'L', 'cost': 453}, {'facility': 'F5', 'customer': 'M', 'cost': 60}, {'facility': 'F5', 'customer': 'N', 'cost': 338}, {'facility': 'F6', 'customer': 'A', 'cost': 115}, {'facility': 'F6', 'customer': 'B', 'cost': 887}, {'facility': 'F6', 'customer': 'C', 'cost': 294}, {'facility': 'F6', 'customer': 'D', 'cost': 513}, {'facility': 'F6', 'customer': 'E', 'cost': 969}, {'facility': 'F6', 'customer': 'F', 'cost': 322}, {'facility': 'F6', 'customer': 'G', 'cost': 681}, {'facility': 'F6', 'customer': 'H', 'cost': 542}, {'facility': 'F6', 'customer': 'I', 'cost': 711}, {'facility': 'F6', 'customer': 'J', 'cost': 843}, {'facility': 'F6', 'customer': 'K', 'cost': 874}, {'facility': 'F6', 'customer': 'L', 'cost': 718}, {'facility': 'F6', 'customer': 'M', 'cost': 704}, {'facility': 'F6', 'customer': 'N', 'cost': 966}], 'objective': 4626.0}","{'selected': ['F3', 'F4'], 'assignments': ['F3', 'F4', 'F3', 'F3', 'F4', 'F4', 'F4', 'F4', 'F3', 'F4', 'F3', 'F4', 'F3', 'F3']}",44,markdown_table,names
UFLP,UFLP,"Recently the food bank had to tighten the budget, so the director needed to decide which distribution points to keep open. Each candidate point has a running fee, and getting food to a community group from a point costs volunteer time or transport money. The task is to pick the set of points to operate and assign each group to exactly one of those points so that the total expense β the sum of the operating fees plus every groupβs delivery cost β is as small as possible; every group must be assigned once and sites can serve any number of groups. The detailed list of sites, their operating costs, and group-by-group delivery costs is shown below.
There are 5 distribution points and 11 community groups in this instance.
**Distribution Points**
| distribution_point_id | running_fee |
|---|---|
| F1 | 1940 |
| F2 | 1747 |
| F3 | 1358 |
| F4 | 1881 |
| F5 | 1043 |
**Community Groups**
| community_group_id |
|---|
| 0 |
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
**Delivery Cost**
| distribution_point_id | community_group_id | delivery_cost |
|---|---|---|
| F1 | 0 | 280 |
| F1 | 1 | 691 |
| F1 | 2 | 718 |
| F1 | 3 | 459 |
| F1 | 4 | 572 |
| F1 | 5 | 483 |
| F1 | 6 | 164 |
| F1 | 7 | 609 |
| F1 | 8 | 232 |
| F1 | 9 | 779 |
| F1 | 10 | 651 |
| F2 | 0 | 909 |
| F2 | 1 | 972 |
| F2 | 2 | 973 |
| F2 | 3 | 960 |
| F2 | 4 | 209 |
| F2 | 5 | 362 |
| F2 | 6 | 849 |
| F2 | 7 | 835 |
| F2 | 8 | 989 |
| F2 | 9 | 180 |
| F2 | 10 | 531 |
| F3 | 0 | 449 |
| F3 | 1 | 527 |
| F3 | 2 | 584 |
| F3 | 3 | 319 |
| F3 | 4 | 193 |
| F3 | 5 | 897 |
| F3 | 6 | 966 |
| F3 | 7 | 72 |
| F3 | 8 | 473 |
| F3 | 9 | 767 |
| F3 | 10 | 479 |
| F4 | 0 | 927 |
| F4 | 1 | 691 |
| F4 | 2 | 381 |
| F4 | 3 | 967 |
| F4 | 4 | 140 |
| F4 | 5 | 750 |
| F4 | 6 | 589 |
| F4 | 7 | 648 |
| F4 | 8 | 403 |
| F4 | 9 | 226 |
| F4 | 10 | 994 |
| F5 | 0 | 246 |
| F5 | 1 | 69 |
| F5 | 2 | 954 |
| F5 | 3 | 55 |
| F5 | 4 | 981 |
| F5 | 5 | 439 |
| F5 | 6 | 815 |
| F5 | 7 | 116 |
| F5 | 8 | 263 |
| F5 | 9 | 792 |
| F5 | 10 | 681 |
Oh, and when you send the decision back, please follow this little JSON layout so it's easy to read and process. For our story it might look like this:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<site_assigned>, <site_assigned>, ...]
}
}
""selected"" is where you list the site IDs you'll keep operating (those are the sites we pay the running fee for). ""assignments"" gives, in the same order as the community groups appear in the instance, which open site each group is assigned to. Think of it as a simple form β a list of open sites and then a list that points each group to one of those sites.
This JSON is just the sketch of the shape I expect, not the actual solution.
Please make sure to use the exact identifiers from the instance input β do not rename them or create new labels.
- for example: ""Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".""","{'opening_costs': [1940, 1747, 1358, 1881, 1043], 'connection_costs': [[280, 691, 718, 459, 572, 483, 164, 609, 232, 779, 651], [909, 972, 973, 960, 209, 362, 849, 835, 989, 180, 531], [449, 527, 584, 319, 193, 897, 966, 72, 473, 767, 479], [927, 691, 381, 967, 140, 750, 589, 648, 403, 226, 994], [246, 69, 954, 55, 981, 439, 815, 116, 263, 792, 681]], 'objective': 6129.0}","{'open_facilities': [3, 4], 'assignments': [4, 4, 3, 4, 3, 4, 3, 4, 4, 3, 4]}",6129.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 1940}, {'id': 'F2', 'opening_cost': 1747}, {'id': 'F3', 'opening_cost': 1358}, {'id': 'F4', 'opening_cost': 1881}, {'id': 'F5', 'opening_cost': 1043}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 280}, {'facility': 'F1', 'customer': 1, 'cost': 691}, {'facility': 'F1', 'customer': 2, 'cost': 718}, {'facility': 'F1', 'customer': 3, 'cost': 459}, {'facility': 'F1', 'customer': 4, 'cost': 572}, {'facility': 'F1', 'customer': 5, 'cost': 483}, {'facility': 'F1', 'customer': 6, 'cost': 164}, {'facility': 'F1', 'customer': 7, 'cost': 609}, {'facility': 'F1', 'customer': 8, 'cost': 232}, {'facility': 'F1', 'customer': 9, 'cost': 779}, {'facility': 'F1', 'customer': 10, 'cost': 651}, {'facility': 'F2', 'customer': 0, 'cost': 909}, {'facility': 'F2', 'customer': 1, 'cost': 972}, {'facility': 'F2', 'customer': 2, 'cost': 973}, {'facility': 'F2', 'customer': 3, 'cost': 960}, {'facility': 'F2', 'customer': 4, 'cost': 209}, {'facility': 'F2', 'customer': 5, 'cost': 362}, {'facility': 'F2', 'customer': 6, 'cost': 849}, {'facility': 'F2', 'customer': 7, 'cost': 835}, {'facility': 'F2', 'customer': 8, 'cost': 989}, {'facility': 'F2', 'customer': 9, 'cost': 180}, {'facility': 'F2', 'customer': 10, 'cost': 531}, {'facility': 'F3', 'customer': 0, 'cost': 449}, {'facility': 'F3', 'customer': 1, 'cost': 527}, {'facility': 'F3', 'customer': 2, 'cost': 584}, {'facility': 'F3', 'customer': 3, 'cost': 319}, {'facility': 'F3', 'customer': 4, 'cost': 193}, {'facility': 'F3', 'customer': 5, 'cost': 897}, {'facility': 'F3', 'customer': 6, 'cost': 966}, {'facility': 'F3', 'customer': 7, 'cost': 72}, {'facility': 'F3', 'customer': 8, 'cost': 473}, {'facility': 'F3', 'customer': 9, 'cost': 767}, {'facility': 'F3', 'customer': 10, 'cost': 479}, {'facility': 'F4', 'customer': 0, 'cost': 927}, {'facility': 'F4', 'customer': 1, 'cost': 691}, {'facility': 'F4', 'customer': 2, 'cost': 381}, {'facility': 'F4', 'customer': 3, 'cost': 967}, {'facility': 'F4', 'customer': 4, 'cost': 140}, {'facility': 'F4', 'customer': 5, 'cost': 750}, {'facility': 'F4', 'customer': 6, 'cost': 589}, {'facility': 'F4', 'customer': 7, 'cost': 648}, {'facility': 'F4', 'customer': 8, 'cost': 403}, {'facility': 'F4', 'customer': 9, 'cost': 226}, {'facility': 'F4', 'customer': 10, 'cost': 994}, {'facility': 'F5', 'customer': 0, 'cost': 246}, {'facility': 'F5', 'customer': 1, 'cost': 69}, {'facility': 'F5', 'customer': 2, 'cost': 954}, {'facility': 'F5', 'customer': 3, 'cost': 55}, {'facility': 'F5', 'customer': 4, 'cost': 981}, {'facility': 'F5', 'customer': 5, 'cost': 439}, {'facility': 'F5', 'customer': 6, 'cost': 815}, {'facility': 'F5', 'customer': 7, 'cost': 116}, {'facility': 'F5', 'customer': 8, 'cost': 263}, {'facility': 'F5', 'customer': 9, 'cost': 792}, {'facility': 'F5', 'customer': 10, 'cost': 681}], 'objective': 6129.0}","{'selected': ['F4', 'F5'], 'assignments': ['F5', 'F5', 'F4', 'F5', 'F4', 'F5', 'F4', 'F5', 'F5', 'F4', 'F5']}",45,markdown_table,0
UFLP,UFLP,"Many neighborhoods are waiting for pop-up clinic visits, so the coordinator has to decide which health posts to staff and which staffed post each residential cluster will use. The rule is straightforward: each cluster must go to exactly one staffed post (not zero, not two), and any staffed post can take unlimited clusters. The aim is to keep overall expenses as low as possible by adding up the staffing costs for the posts that are opened and the travel cost for all patients to reach their assigned post β lower total is better. The concrete details and numbers are provided below.
There are 4 posts and 9 clusters in this instance.
**Posts**
| post_id | staffing_cost |
|---|---|
| F1 | 2000 |
| F2 | 2000 |
| F3 | 2000 |
| F4 | 2000 |
**Clusters**
| cluster_id |
|---|
| A |
| B |
| C |
| D |
| E |
| F |
| G |
| H |
| I |
**Travel Cost**
| post_id | cluster_id | travel_cost |
|---|---|---|
| F1 | A | 69 |
| F1 | B | 961 |
| F1 | C | 185 |
| F1 | D | 624 |
| F1 | E | 117 |
| F1 | F | 927 |
| F1 | G | 947 |
| F1 | H | 39 |
| F1 | I | 449 |
| F2 | A | 702 |
| F2 | B | 345 |
| F2 | C | 968 |
| F2 | D | 960 |
| F2 | E | 0 |
| F2 | F | 754 |
| F2 | G | 194 |
| F2 | H | 811 |
| F2 | I | 839 |
| F3 | A | 890 |
| F3 | B | 607 |
| F3 | C | 741 |
| F3 | D | 817 |
| F3 | E | 151 |
| F3 | F | 104 |
| F3 | G | 74 |
| F3 | H | 532 |
| F3 | I | 625 |
| F4 | A | 374 |
| F4 | B | 281 |
| F4 | C | 3 |
| F4 | D | 696 |
| F4 | E | 436 |
| F4 | F | 217 |
| F4 | G | 245 |
| F4 | H | 265 |
| F4 | I | 152 |
Oh, and when you send the actual plan back, please stick to this JSON layout so it's easy to parse:
{
""solution"": {
""selected"": [<post_to_staff>, <post_to_staff>, ...],
""assignments"": [<chosen_staffed_post>, <chosen_staffed_post>, ...]
}
}
Think of ""selected"" as the list of posts you'll staff, and ""assignments"" as which staffed post each residential cluster will use (one entry per cluster, in the same order as the instance's cluster list). This JSON is just a sketch of the shape I expect, not the final answer.
Please also be sure to use the exact identifiers from the instance input β do not rename them or invent new labels. Valid identifiers look like plain numbers such as ""1"" or ""23"", single capital letters like ""A"" or ""B"", or a capital letter followed by digits like ""A1"" or ""X7"".","{'opening_costs': [2000, 2000, 2000, 2000], 'connection_costs': [[69, 961, 185, 624, 117, 927, 947, 39, 449], [702, 345, 968, 960, 0, 754, 194, 811, 839], [890, 607, 741, 817, 151, 104, 74, 532, 625], [374, 281, 3, 696, 436, 217, 245, 265, 152]], 'objective': 4669.0}","{'open_facilities': [3], 'assignments': [3, 3, 3, 3, 3, 3, 3, 3, 3]}",4669.0,"{'problem_type': 'UFLP', 'num_facilities': 4, 'num_customers': 9, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 69}, {'facility': 'F1', 'customer': 'B', 'cost': 961}, {'facility': 'F1', 'customer': 'C', 'cost': 185}, {'facility': 'F1', 'customer': 'D', 'cost': 624}, {'facility': 'F1', 'customer': 'E', 'cost': 117}, {'facility': 'F1', 'customer': 'F', 'cost': 927}, {'facility': 'F1', 'customer': 'G', 'cost': 947}, {'facility': 'F1', 'customer': 'H', 'cost': 39}, {'facility': 'F1', 'customer': 'I', 'cost': 449}, {'facility': 'F2', 'customer': 'A', 'cost': 702}, {'facility': 'F2', 'customer': 'B', 'cost': 345}, {'facility': 'F2', 'customer': 'C', 'cost': 968}, {'facility': 'F2', 'customer': 'D', 'cost': 960}, {'facility': 'F2', 'customer': 'E', 'cost': 0}, {'facility': 'F2', 'customer': 'F', 'cost': 754}, {'facility': 'F2', 'customer': 'G', 'cost': 194}, {'facility': 'F2', 'customer': 'H', 'cost': 811}, {'facility': 'F2', 'customer': 'I', 'cost': 839}, {'facility': 'F3', 'customer': 'A', 'cost': 890}, {'facility': 'F3', 'customer': 'B', 'cost': 607}, {'facility': 'F3', 'customer': 'C', 'cost': 741}, {'facility': 'F3', 'customer': 'D', 'cost': 817}, {'facility': 'F3', 'customer': 'E', 'cost': 151}, {'facility': 'F3', 'customer': 'F', 'cost': 104}, {'facility': 'F3', 'customer': 'G', 'cost': 74}, {'facility': 'F3', 'customer': 'H', 'cost': 532}, {'facility': 'F3', 'customer': 'I', 'cost': 625}, {'facility': 'F4', 'customer': 'A', 'cost': 374}, {'facility': 'F4', 'customer': 'B', 'cost': 281}, {'facility': 'F4', 'customer': 'C', 'cost': 3}, {'facility': 'F4', 'customer': 'D', 'cost': 696}, {'facility': 'F4', 'customer': 'E', 'cost': 436}, {'facility': 'F4', 'customer': 'F', 'cost': 217}, {'facility': 'F4', 'customer': 'G', 'cost': 245}, {'facility': 'F4', 'customer': 'H', 'cost': 265}, {'facility': 'F4', 'customer': 'I', 'cost': 152}], 'objective': 4669.0}","{'selected': ['F4'], 'assignments': ['F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4', 'F4']}",46,markdown_table,names
UFLP,UFLP,"Thereβs a practical problem at the co-op: some central pickup sites could stay active while others could be shut down, and each decision affects how far farmers have to travel. The task is to pick a set of sites to keep running (each incurs its own upkeep cost) and then attach each farm to one of those running sites. The measure of a good plan is the total spending β the sum of the maintenance bills for the active sites plus all farmersβ delivery costs to their chosen site β and that total should be as small as possible. Each farm must be tied to exactly one active site, no exceptions or duplicates. The concrete setup and numbers follow below.
# num_pickup_sites=5
# num_farms=10
# SITES
site_id,site_upkeep_cost
F1,2000
F2,2000
F3,2000
F4,2000
F5,2000
# FARMS
farm_id
A
B
C
D
E
F
G
H
I
J
# DELIVERYS
site_id,farm_id,delivery_cost
F1,A,134
F1,B,688
F1,C,43
F1,D,940
F1,E,348
F1,F,766
F1,G,427
F1,H,82
F1,I,472
F1,J,127
F2,A,873
F2,B,441
F2,C,168
F2,D,323
F2,E,702
F2,F,625
F2,G,397
F2,H,899
F2,I,28
F2,J,78
F3,A,427
F3,B,431
F3,C,85
F3,D,370
F3,E,83
F3,F,16
F3,G,706
F3,H,669
F3,I,692
F3,J,846
F4,A,394
F4,B,373
F4,C,45
F4,D,920
F4,E,662
F4,F,819
F4,G,957
F4,H,440
F4,I,819
F4,J,287
F5,A,498
F5,B,308
F5,C,940
F5,D,946
F5,E,558
F5,F,165
F5,G,35
F5,H,618
F5,I,410
F5,J,697
Also, to keep things simple, please give the final plan in a tiny JSON sketch like this:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
Here ""selected"" is the list of sites you choose to keep running, and ""assignments"" lists, for each farm, the site it's assigned to (use the same order the instance uses for farms). Think of it like filling out a form: first pick which sites stay active, then say which active site each farm goes to.
This is just the expected shape β a sketch to show the layout, not the filled-in answer.
Please make sure to use the exact identifiers from the instance input with no renaming or invented labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000, 2000], 'connection_costs': [[134, 688, 43, 940, 348, 766, 427, 82, 472, 127], [873, 441, 168, 323, 702, 625, 397, 899, 28, 78], [427, 431, 85, 370, 83, 16, 706, 669, 692, 846], [394, 373, 45, 920, 662, 819, 957, 440, 819, 287], [498, 308, 940, 946, 558, 165, 35, 618, 410, 697]], 'objective': 6027.0}","{'open_facilities': [0], 'assignments': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}",6027.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 10, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 134}, {'facility': 'F1', 'customer': 'B', 'cost': 688}, {'facility': 'F1', 'customer': 'C', 'cost': 43}, {'facility': 'F1', 'customer': 'D', 'cost': 940}, {'facility': 'F1', 'customer': 'E', 'cost': 348}, {'facility': 'F1', 'customer': 'F', 'cost': 766}, {'facility': 'F1', 'customer': 'G', 'cost': 427}, {'facility': 'F1', 'customer': 'H', 'cost': 82}, {'facility': 'F1', 'customer': 'I', 'cost': 472}, {'facility': 'F1', 'customer': 'J', 'cost': 127}, {'facility': 'F2', 'customer': 'A', 'cost': 873}, {'facility': 'F2', 'customer': 'B', 'cost': 441}, {'facility': 'F2', 'customer': 'C', 'cost': 168}, {'facility': 'F2', 'customer': 'D', 'cost': 323}, {'facility': 'F2', 'customer': 'E', 'cost': 702}, {'facility': 'F2', 'customer': 'F', 'cost': 625}, {'facility': 'F2', 'customer': 'G', 'cost': 397}, {'facility': 'F2', 'customer': 'H', 'cost': 899}, {'facility': 'F2', 'customer': 'I', 'cost': 28}, {'facility': 'F2', 'customer': 'J', 'cost': 78}, {'facility': 'F3', 'customer': 'A', 'cost': 427}, {'facility': 'F3', 'customer': 'B', 'cost': 431}, {'facility': 'F3', 'customer': 'C', 'cost': 85}, {'facility': 'F3', 'customer': 'D', 'cost': 370}, {'facility': 'F3', 'customer': 'E', 'cost': 83}, {'facility': 'F3', 'customer': 'F', 'cost': 16}, {'facility': 'F3', 'customer': 'G', 'cost': 706}, {'facility': 'F3', 'customer': 'H', 'cost': 669}, {'facility': 'F3', 'customer': 'I', 'cost': 692}, {'facility': 'F3', 'customer': 'J', 'cost': 846}, {'facility': 'F4', 'customer': 'A', 'cost': 394}, {'facility': 'F4', 'customer': 'B', 'cost': 373}, {'facility': 'F4', 'customer': 'C', 'cost': 45}, {'facility': 'F4', 'customer': 'D', 'cost': 920}, {'facility': 'F4', 'customer': 'E', 'cost': 662}, {'facility': 'F4', 'customer': 'F', 'cost': 819}, {'facility': 'F4', 'customer': 'G', 'cost': 957}, {'facility': 'F4', 'customer': 'H', 'cost': 440}, {'facility': 'F4', 'customer': 'I', 'cost': 819}, {'facility': 'F4', 'customer': 'J', 'cost': 287}, {'facility': 'F5', 'customer': 'A', 'cost': 498}, {'facility': 'F5', 'customer': 'B', 'cost': 308}, {'facility': 'F5', 'customer': 'C', 'cost': 940}, {'facility': 'F5', 'customer': 'D', 'cost': 946}, {'facility': 'F5', 'customer': 'E', 'cost': 558}, {'facility': 'F5', 'customer': 'F', 'cost': 165}, {'facility': 'F5', 'customer': 'G', 'cost': 35}, {'facility': 'F5', 'customer': 'H', 'cost': 618}, {'facility': 'F5', 'customer': 'I', 'cost': 410}, {'facility': 'F5', 'customer': 'J', 'cost': 697}], 'objective': 6027.0}","{'selected': ['F1'], 'assignments': ['F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1', 'F1']}",47,csv,names
UFLP,UFLP,"Thereβs a fleet logistics puzzle: the company needs to decide which charging sites to enable and then send each parking zoneβs vehicles to a single enabled site. Enabling a site isnβt free, and drivers spend time and fuel getting cars from their zones to the assigned site, so the total expense is the sum of the enabling fees plus all those repositioning costs β the aim is to keep that combined expense as low as possible. Each zone needs one and only one destination hub, and a hub can accept unlimited zones. The concrete instance details are listed below.
# num_candidate_hubs=5
# num_parking_zones=11
# HUBS
hub_id,enabling_fee
F1,6567
F2,2396
F3,7987
F4,6976
F5,9616
# ZONES
zone_id
0
1
2
3
4
5
6
7
8
9
10
# REPOSITIONINGS
hub_id,zone_id,repositioning_cost
F1,0,179
F1,1,458
F1,2,253
F1,3,660
F1,4,965
F1,5,878
F1,6,932
F1,7,190
F1,8,48
F1,9,234
F1,10,995
F2,0,886
F2,1,599
F2,2,78
F2,3,354
F2,4,664
F2,5,839
F2,6,500
F2,7,782
F2,8,451
F2,9,784
F2,10,743
F3,0,160
F3,1,339
F3,2,90
F3,3,206
F3,4,795
F3,5,628
F3,6,975
F3,7,686
F3,8,915
F3,9,803
F3,10,614
F4,0,960
F4,1,680
F4,2,41
F4,3,678
F4,4,226
F4,5,969
F4,6,2
F4,7,112
F4,8,794
F4,9,855
F4,10,408
F5,0,375
F5,1,890
F5,2,317
F5,3,413
F5,4,692
F5,5,914
F5,6,370
F5,7,149
F5,8,139
F5,9,670
F5,10,247
Oh, and when you send the answer back, just follow this simple JSON shape so I can read it easily:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<assigned_site>, <assigned_site>, ...]
}
}
This only sketches the format I'm expecting: ""selected"" is where you list the sites you decide to enable, and ""assignments"" is a list (one entry per parking zone, in the same order as the instance) saying which enabled site that zone uses. Pretty informal β think of it like filling out a short form, not a full report.
Please use the exact identifiers from the instance input when you fill those placeholders β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [6567, 2396, 7987, 6976, 9616], 'connection_costs': [[179, 458, 253, 660, 965, 878, 932, 190, 48, 234, 995], [886, 599, 78, 354, 664, 839, 500, 782, 451, 784, 743], [160, 339, 90, 206, 795, 628, 975, 686, 915, 803, 614], [960, 680, 41, 678, 226, 969, 2, 112, 794, 855, 408], [375, 890, 317, 413, 692, 914, 370, 149, 139, 670, 247]], 'objective': 9076.0}","{'open_facilities': [1], 'assignments': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]}",9076.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 11, 'facilities': [{'id': 'F1', 'opening_cost': 6567}, {'id': 'F2', 'opening_cost': 2396}, {'id': 'F3', 'opening_cost': 7987}, {'id': 'F4', 'opening_cost': 6976}, {'id': 'F5', 'opening_cost': 9616}], 'customers': [{'id': 0}, {'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}], 'connection_costs': [{'facility': 'F1', 'customer': 0, 'cost': 179}, {'facility': 'F1', 'customer': 1, 'cost': 458}, {'facility': 'F1', 'customer': 2, 'cost': 253}, {'facility': 'F1', 'customer': 3, 'cost': 660}, {'facility': 'F1', 'customer': 4, 'cost': 965}, {'facility': 'F1', 'customer': 5, 'cost': 878}, {'facility': 'F1', 'customer': 6, 'cost': 932}, {'facility': 'F1', 'customer': 7, 'cost': 190}, {'facility': 'F1', 'customer': 8, 'cost': 48}, {'facility': 'F1', 'customer': 9, 'cost': 234}, {'facility': 'F1', 'customer': 10, 'cost': 995}, {'facility': 'F2', 'customer': 0, 'cost': 886}, {'facility': 'F2', 'customer': 1, 'cost': 599}, {'facility': 'F2', 'customer': 2, 'cost': 78}, {'facility': 'F2', 'customer': 3, 'cost': 354}, {'facility': 'F2', 'customer': 4, 'cost': 664}, {'facility': 'F2', 'customer': 5, 'cost': 839}, {'facility': 'F2', 'customer': 6, 'cost': 500}, {'facility': 'F2', 'customer': 7, 'cost': 782}, {'facility': 'F2', 'customer': 8, 'cost': 451}, {'facility': 'F2', 'customer': 9, 'cost': 784}, {'facility': 'F2', 'customer': 10, 'cost': 743}, {'facility': 'F3', 'customer': 0, 'cost': 160}, {'facility': 'F3', 'customer': 1, 'cost': 339}, {'facility': 'F3', 'customer': 2, 'cost': 90}, {'facility': 'F3', 'customer': 3, 'cost': 206}, {'facility': 'F3', 'customer': 4, 'cost': 795}, {'facility': 'F3', 'customer': 5, 'cost': 628}, {'facility': 'F3', 'customer': 6, 'cost': 975}, {'facility': 'F3', 'customer': 7, 'cost': 686}, {'facility': 'F3', 'customer': 8, 'cost': 915}, {'facility': 'F3', 'customer': 9, 'cost': 803}, {'facility': 'F3', 'customer': 10, 'cost': 614}, {'facility': 'F4', 'customer': 0, 'cost': 960}, {'facility': 'F4', 'customer': 1, 'cost': 680}, {'facility': 'F4', 'customer': 2, 'cost': 41}, {'facility': 'F4', 'customer': 3, 'cost': 678}, {'facility': 'F4', 'customer': 4, 'cost': 226}, {'facility': 'F4', 'customer': 5, 'cost': 969}, {'facility': 'F4', 'customer': 6, 'cost': 2}, {'facility': 'F4', 'customer': 7, 'cost': 112}, {'facility': 'F4', 'customer': 8, 'cost': 794}, {'facility': 'F4', 'customer': 9, 'cost': 855}, {'facility': 'F4', 'customer': 10, 'cost': 408}, {'facility': 'F5', 'customer': 0, 'cost': 375}, {'facility': 'F5', 'customer': 1, 'cost': 890}, {'facility': 'F5', 'customer': 2, 'cost': 317}, {'facility': 'F5', 'customer': 3, 'cost': 413}, {'facility': 'F5', 'customer': 4, 'cost': 692}, {'facility': 'F5', 'customer': 5, 'cost': 914}, {'facility': 'F5', 'customer': 6, 'cost': 370}, {'facility': 'F5', 'customer': 7, 'cost': 149}, {'facility': 'F5', 'customer': 8, 'cost': 139}, {'facility': 'F5', 'customer': 9, 'cost': 670}, {'facility': 'F5', 'customer': 10, 'cost': 247}], 'objective': 9076.0}","{'selected': ['F2'], 'assignments': ['F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2', 'F2']}",48,csv,0
UFLP,UFLP,"In our townβs relief planning, the team will choose which clothing distribution centers to activate and then allocate each shelter to one of those active centers. Itβs important that every shelter is assigned to exactly one open center β no shelter can be left out or be assigned to multiple centers. The goal is to minimize the total outlay: sum the opening costs of the centers that are opened and the transportation costs for all shelter assignments. The concrete numbers and locations are listed below.
{
""num_centers"": 5,
""num_shelters"": 12,
""centers"": [
{
""center_id"": ""F1"",
""center_opening_cost"": 2000
},
{
""center_id"": ""F2"",
""center_opening_cost"": 2000
},
{
""center_id"": ""F3"",
""center_opening_cost"": 2000
},
{
""center_id"": ""F4"",
""center_opening_cost"": 2000
},
{
""center_id"": ""F5"",
""center_opening_cost"": 2000
}
],
""shelters"": [
{
""shelter_id"": ""A""
},
{
""shelter_id"": ""B""
},
{
""shelter_id"": ""C""
},
{
""shelter_id"": ""D""
},
{
""shelter_id"": ""E""
},
{
""shelter_id"": ""F""
},
{
""shelter_id"": ""G""
},
{
""shelter_id"": ""H""
},
{
""shelter_id"": ""I""
},
{
""shelter_id"": ""J""
},
{
""shelter_id"": ""K""
},
{
""shelter_id"": ""L""
}
],
""transportations"": [
{
""center_id"": ""F1"",
""shelter_id"": ""A"",
""transportation_cost"": 203
},
{
""center_id"": ""F1"",
""shelter_id"": ""B"",
""transportation_cost"": 487
},
{
""center_id"": ""F1"",
""shelter_id"": ""C"",
""transportation_cost"": 312
},
{
""center_id"": ""F1"",
""shelter_id"": ""D"",
""transportation_cost"": 596
},
{
""center_id"": ""F1"",
""shelter_id"": ""E"",
""transportation_cost"": 559
},
{
""center_id"": ""F1"",
""shelter_id"": ""F"",
""transportation_cost"": 730
},
{
""center_id"": ""F1"",
""shelter_id"": ""G"",
""transportation_cost"": 990
},
{
""center_id"": ""F1"",
""shelter_id"": ""H"",
""transportation_cost"": 810
},
{
""center_id"": ""F1"",
""shelter_id"": ""I"",
""transportation_cost"": 188
},
{
""center_id"": ""F1"",
""shelter_id"": ""J"",
""transportation_cost"": 216
},
{
""center_id"": ""F1"",
""shelter_id"": ""K"",
""transportation_cost"": 895
},
{
""center_id"": ""F1"",
""shelter_id"": ""L"",
""transportation_cost"": 334
},
{
""center_id"": ""F2"",
""shelter_id"": ""A"",
""transportation_cost"": 731
},
{
""center_id"": ""F2"",
""shelter_id"": ""B"",
""transportation_cost"": 439
},
{
""center_id"": ""F2"",
""shelter_id"": ""C"",
""transportation_cost"": 387
},
{
""center_id"": ""F2"",
""shelter_id"": ""D"",
""transportation_cost"": 669
},
{
""center_id"": ""F2"",
""shelter_id"": ""E"",
""transportation_cost"": 828
},
{
""center_id"": ""F2"",
""shelter_id"": ""F"",
""transportation_cost"": 449
},
{
""center_id"": ""F2"",
""shelter_id"": ""G"",
""transportation_cost"": 814
},
{
""center_id"": ""F2"",
""shelter_id"": ""H"",
""transportation_cost"": 765
},
{
""center_id"": ""F2"",
""shelter_id"": ""I"",
""transportation_cost"": 901
},
{
""center_id"": ""F2"",
""shelter_id"": ""J"",
""transportation_cost"": 633
},
{
""center_id"": ""F2"",
""shelter_id"": ""K"",
""transportation_cost"": 687
},
{
""center_id"": ""F2"",
""shelter_id"": ""L"",
""transportation_cost"": 15
},
{
""center_id"": ""F3"",
""shelter_id"": ""A"",
""transportation_cost"": 509
},
{
""center_id"": ""F3"",
""shelter_id"": ""B"",
""transportation_cost"": 891
},
{
""center_id"": ""F3"",
""shelter_id"": ""C"",
""transportation_cost"": 254
},
{
""center_id"": ""F3"",
""shelter_id"": ""D"",
""transportation_cost"": 149
},
{
""center_id"": ""F3"",
""shelter_id"": ""E"",
""transportation_cost"": 21
},
{
""center_id"": ""F3"",
""shelter_id"": ""F"",
""transportation_cost"": 160
},
{
""center_id"": ""F3"",
""shelter_id"": ""G"",
""transportation_cost"": 841
},
{
""center_id"": ""F3"",
""shelter_id"": ""H"",
""transportation_cost"": 924
},
{
""center_id"": ""F3"",
""shelter_id"": ""I"",
""transportation_cost"": 569
},
{
""center_id"": ""F3"",
""shelter_id"": ""J"",
""transportation_cost"": 77
},
{
""center_id"": ""F3"",
""shelter_id"": ""K"",
""transportation_cost"": 810
},
{
""center_id"": ""F3"",
""shelter_id"": ""L"",
""transportation_cost"": 513
},
{
""center_id"": ""F4"",
""shelter_id"": ""A"",
""transportation_cost"": 333
},
{
""center_id"": ""F4"",
""shelter_id"": ""B"",
""transportation_cost"": 257
},
{
""center_id"": ""F4"",
""shelter_id"": ""C"",
""transportation_cost"": 584
},
{
""center_id"": ""F4"",
""shelter_id"": ""D"",
""transportation_cost"": 544
},
{
""center_id"": ""F4"",
""shelter_id"": ""E"",
""transportation_cost"": 911
},
{
""center_id"": ""F4"",
""shelter_id"": ""F"",
""transportation_cost"": 83
},
{
""center_id"": ""F4"",
""shelter_id"": ""G"",
""transportation_cost"": 966
},
{
""center_id"": ""F4"",
""shelter_id"": ""H"",
""transportation_cost"": 951
},
{
""center_id"": ""F4"",
""shelter_id"": ""I"",
""transportation_cost"": 632
},
{
""center_id"": ""F4"",
""shelter_id"": ""J"",
""transportation_cost"": 881
},
{
""center_id"": ""F4"",
""shelter_id"": ""K"",
""transportation_cost"": 205
},
{
""center_id"": ""F4"",
""shelter_id"": ""L"",
""transportation_cost"": 463
},
{
""center_id"": ""F5"",
""shelter_id"": ""A"",
""transportation_cost"": 630
},
{
""center_id"": ""F5"",
""shelter_id"": ""B"",
""transportation_cost"": 562
},
{
""center_id"": ""F5"",
""shelter_id"": ""C"",
""transportation_cost"": 614
},
{
""center_id"": ""F5"",
""shelter_id"": ""D"",
""transportation_cost"": 767
},
{
""center_id"": ""F5"",
""shelter_id"": ""E"",
""transportation_cost"": 46
},
{
""center_id"": ""F5"",
""shelter_id"": ""F"",
""transportation_cost"": 734
},
{
""center_id"": ""F5"",
""shelter_id"": ""G"",
""transportation_cost"": 331
},
{
""center_id"": ""F5"",
""shelter_id"": ""H"",
""transportation_cost"": 580
},
{
""center_id"": ""F5"",
""shelter_id"": ""I"",
""transportation_cost"": 32
},
{
""center_id"": ""F5"",
""shelter_id"": ""J"",
""transportation_cost"": 833
},
{
""center_id"": ""F5"",
""shelter_id"": ""K"",
""transportation_cost"": 641
},
{
""center_id"": ""F5"",
""shelter_id"": ""L"",
""transportation_cost"": 516
}
]
}
Also, please send your answer using a simple JSON shape so it's easy to read and check. Here's the structure I expect:
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_open_site>, <chosen_open_site>, ...]
}
}
""selected"" is where you list which distribution centers you decide to activate. ""assignments"" is a list that, for each shelter in order, names the open center that shelter will use. Think of the JSON as a little form β a sketch of the expected shape, not the actual final choices.
One more thing: use the exact identifiers from the instance input β do not rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [2000, 2000, 2000, 2000, 2000], 'connection_costs': [[203, 487, 312, 596, 559, 730, 990, 810, 188, 216, 895, 334], [731, 439, 387, 669, 828, 449, 814, 765, 901, 633, 687, 15], [509, 891, 254, 149, 21, 160, 841, 924, 569, 77, 810, 513], [333, 257, 584, 544, 911, 83, 966, 951, 632, 881, 205, 463], [630, 562, 614, 767, 46, 734, 331, 580, 32, 833, 641, 516]], 'objective': 7718.0}","{'open_facilities': [2], 'assignments': [2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2]}",7718.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 12, 'facilities': [{'id': 'F1', 'opening_cost': 2000}, {'id': 'F2', 'opening_cost': 2000}, {'id': 'F3', 'opening_cost': 2000}, {'id': 'F4', 'opening_cost': 2000}, {'id': 'F5', 'opening_cost': 2000}], 'customers': [{'id': 'A'}, {'id': 'B'}, {'id': 'C'}, {'id': 'D'}, {'id': 'E'}, {'id': 'F'}, {'id': 'G'}, {'id': 'H'}, {'id': 'I'}, {'id': 'J'}, {'id': 'K'}, {'id': 'L'}], 'connection_costs': [{'facility': 'F1', 'customer': 'A', 'cost': 203}, {'facility': 'F1', 'customer': 'B', 'cost': 487}, {'facility': 'F1', 'customer': 'C', 'cost': 312}, {'facility': 'F1', 'customer': 'D', 'cost': 596}, {'facility': 'F1', 'customer': 'E', 'cost': 559}, {'facility': 'F1', 'customer': 'F', 'cost': 730}, {'facility': 'F1', 'customer': 'G', 'cost': 990}, {'facility': 'F1', 'customer': 'H', 'cost': 810}, {'facility': 'F1', 'customer': 'I', 'cost': 188}, {'facility': 'F1', 'customer': 'J', 'cost': 216}, {'facility': 'F1', 'customer': 'K', 'cost': 895}, {'facility': 'F1', 'customer': 'L', 'cost': 334}, {'facility': 'F2', 'customer': 'A', 'cost': 731}, {'facility': 'F2', 'customer': 'B', 'cost': 439}, {'facility': 'F2', 'customer': 'C', 'cost': 387}, {'facility': 'F2', 'customer': 'D', 'cost': 669}, {'facility': 'F2', 'customer': 'E', 'cost': 828}, {'facility': 'F2', 'customer': 'F', 'cost': 449}, {'facility': 'F2', 'customer': 'G', 'cost': 814}, {'facility': 'F2', 'customer': 'H', 'cost': 765}, {'facility': 'F2', 'customer': 'I', 'cost': 901}, {'facility': 'F2', 'customer': 'J', 'cost': 633}, {'facility': 'F2', 'customer': 'K', 'cost': 687}, {'facility': 'F2', 'customer': 'L', 'cost': 15}, {'facility': 'F3', 'customer': 'A', 'cost': 509}, {'facility': 'F3', 'customer': 'B', 'cost': 891}, {'facility': 'F3', 'customer': 'C', 'cost': 254}, {'facility': 'F3', 'customer': 'D', 'cost': 149}, {'facility': 'F3', 'customer': 'E', 'cost': 21}, {'facility': 'F3', 'customer': 'F', 'cost': 160}, {'facility': 'F3', 'customer': 'G', 'cost': 841}, {'facility': 'F3', 'customer': 'H', 'cost': 924}, {'facility': 'F3', 'customer': 'I', 'cost': 569}, {'facility': 'F3', 'customer': 'J', 'cost': 77}, {'facility': 'F3', 'customer': 'K', 'cost': 810}, {'facility': 'F3', 'customer': 'L', 'cost': 513}, {'facility': 'F4', 'customer': 'A', 'cost': 333}, {'facility': 'F4', 'customer': 'B', 'cost': 257}, {'facility': 'F4', 'customer': 'C', 'cost': 584}, {'facility': 'F4', 'customer': 'D', 'cost': 544}, {'facility': 'F4', 'customer': 'E', 'cost': 911}, {'facility': 'F4', 'customer': 'F', 'cost': 83}, {'facility': 'F4', 'customer': 'G', 'cost': 966}, {'facility': 'F4', 'customer': 'H', 'cost': 951}, {'facility': 'F4', 'customer': 'I', 'cost': 632}, {'facility': 'F4', 'customer': 'J', 'cost': 881}, {'facility': 'F4', 'customer': 'K', 'cost': 205}, {'facility': 'F4', 'customer': 'L', 'cost': 463}, {'facility': 'F5', 'customer': 'A', 'cost': 630}, {'facility': 'F5', 'customer': 'B', 'cost': 562}, {'facility': 'F5', 'customer': 'C', 'cost': 614}, {'facility': 'F5', 'customer': 'D', 'cost': 767}, {'facility': 'F5', 'customer': 'E', 'cost': 46}, {'facility': 'F5', 'customer': 'F', 'cost': 734}, {'facility': 'F5', 'customer': 'G', 'cost': 331}, {'facility': 'F5', 'customer': 'H', 'cost': 580}, {'facility': 'F5', 'customer': 'I', 'cost': 32}, {'facility': 'F5', 'customer': 'J', 'cost': 833}, {'facility': 'F5', 'customer': 'K', 'cost': 641}, {'facility': 'F5', 'customer': 'L', 'cost': 516}], 'objective': 7718.0}","{'selected': ['F3'], 'assignments': ['F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3']}",49,json,names
UFLP,UFLP,"I work with a city planner who's trying to figure out which public lockers to put around town and which neighborhood of commuters should use each installed locker. The idea is simple: every locker that gets installed costs money, and every commuter who has to detour to reach their assigned locker pays a little extra in time or distance. The planner needs to pick which lockers to install and then give each commuter catchment exactly one of those installed lockers to use β nothing left unassigned, and no catchment sent to more than one locker. In the end, the tally is the sum of the installation fees for the chosen lockers plus all the detour costs for commuters, and the plan that keeps that total as small as possible is the one they want. Concrete details about candidate locations, fees, and detour distances are shown below.
{
""num_lockers"": 5,
""num_catchments"": 10,
""lockers"": [
{
""locker_id"": ""F1"",
""installation_fee"": 1965
},
{
""locker_id"": ""F2"",
""installation_fee"": 1681
},
{
""locker_id"": ""F3"",
""installation_fee"": 1562
},
{
""locker_id"": ""F4"",
""installation_fee"": 1224
},
{
""locker_id"": ""F5"",
""installation_fee"": 1594
}
],
""catchments"": [
{
""catchment_id"": 1
},
{
""catchment_id"": 2
},
{
""catchment_id"": 3
},
{
""catchment_id"": 4
},
{
""catchment_id"": 5
},
{
""catchment_id"": 6
},
{
""catchment_id"": 7
},
{
""catchment_id"": 8
},
{
""catchment_id"": 9
},
{
""catchment_id"": 10
}
],
""detours"": [
{
""locker_id"": ""F1"",
""catchment_id"": 1,
""detour_cost"": 963
},
{
""locker_id"": ""F1"",
""catchment_id"": 2,
""detour_cost"": 371
},
{
""locker_id"": ""F1"",
""catchment_id"": 3,
""detour_cost"": 320
},
{
""locker_id"": ""F1"",
""catchment_id"": 4,
""detour_cost"": 547
},
{
""locker_id"": ""F1"",
""catchment_id"": 5,
""detour_cost"": 296
},
{
""locker_id"": ""F1"",
""catchment_id"": 6,
""detour_cost"": 41
},
{
""locker_id"": ""F1"",
""catchment_id"": 7,
""detour_cost"": 526
},
{
""locker_id"": ""F1"",
""catchment_id"": 8,
""detour_cost"": 134
},
{
""locker_id"": ""F1"",
""catchment_id"": 9,
""detour_cost"": 657
},
{
""locker_id"": ""F1"",
""catchment_id"": 10,
""detour_cost"": 810
},
{
""locker_id"": ""F2"",
""catchment_id"": 1,
""detour_cost"": 844
},
{
""locker_id"": ""F2"",
""catchment_id"": 2,
""detour_cost"": 100
},
{
""locker_id"": ""F2"",
""catchment_id"": 3,
""detour_cost"": 469
},
{
""locker_id"": ""F2"",
""catchment_id"": 4,
""detour_cost"": 792
},
{
""locker_id"": ""F2"",
""catchment_id"": 5,
""detour_cost"": 10
},
{
""locker_id"": ""F2"",
""catchment_id"": 6,
""detour_cost"": 354
},
{
""locker_id"": ""F2"",
""catchment_id"": 7,
""detour_cost"": 839
},
{
""locker_id"": ""F2"",
""catchment_id"": 8,
""detour_cost"": 814
},
{
""locker_id"": ""F2"",
""catchment_id"": 9,
""detour_cost"": 819
},
{
""locker_id"": ""F2"",
""catchment_id"": 10,
""detour_cost"": 191
},
{
""locker_id"": ""F3"",
""catchment_id"": 1,
""detour_cost"": 75
},
{
""locker_id"": ""F3"",
""catchment_id"": 2,
""detour_cost"": 844
},
{
""locker_id"": ""F3"",
""catchment_id"": 3,
""detour_cost"": 384
},
{
""locker_id"": ""F3"",
""catchment_id"": 4,
""detour_cost"": 31
},
{
""locker_id"": ""F3"",
""catchment_id"": 5,
""detour_cost"": 184
},
{
""locker_id"": ""F3"",
""catchment_id"": 6,
""detour_cost"": 44
},
{
""locker_id"": ""F3"",
""catchment_id"": 7,
""detour_cost"": 814
},
{
""locker_id"": ""F3"",
""catchment_id"": 8,
""detour_cost"": 354
},
{
""locker_id"": ""F3"",
""catchment_id"": 9,
""detour_cost"": 486
},
{
""locker_id"": ""F3"",
""catchment_id"": 10,
""detour_cost"": 474
},
{
""locker_id"": ""F4"",
""catchment_id"": 1,
""detour_cost"": 155
},
{
""locker_id"": ""F4"",
""catchment_id"": 2,
""detour_cost"": 756
},
{
""locker_id"": ""F4"",
""catchment_id"": 3,
""detour_cost"": 468
},
{
""locker_id"": ""F4"",
""catchment_id"": 4,
""detour_cost"": 521
},
{
""locker_id"": ""F4"",
""catchment_id"": 5,
""detour_cost"": 931
},
{
""locker_id"": ""F4"",
""catchment_id"": 6,
""detour_cost"": 159
},
{
""locker_id"": ""F4"",
""catchment_id"": 7,
""detour_cost"": 754
},
{
""locker_id"": ""F4"",
""catchment_id"": 8,
""detour_cost"": 837
},
{
""locker_id"": ""F4"",
""catchment_id"": 9,
""detour_cost"": 100
},
{
""locker_id"": ""F4"",
""catchment_id"": 10,
""detour_cost"": 408
},
{
""locker_id"": ""F5"",
""catchment_id"": 1,
""detour_cost"": 359
},
{
""locker_id"": ""F5"",
""catchment_id"": 2,
""detour_cost"": 762
},
{
""locker_id"": ""F5"",
""catchment_id"": 3,
""detour_cost"": 911
},
{
""locker_id"": ""F5"",
""catchment_id"": 4,
""detour_cost"": 907
},
{
""locker_id"": ""F5"",
""catchment_id"": 5,
""detour_cost"": 11
},
{
""locker_id"": ""F5"",
""catchment_id"": 6,
""detour_cost"": 27
},
{
""locker_id"": ""F5"",
""catchment_id"": 7,
""detour_cost"": 874
},
{
""locker_id"": ""F5"",
""catchment_id"": 8,
""detour_cost"": 554
},
{
""locker_id"": ""F5"",
""catchment_id"": 9,
""detour_cost"": 53
},
{
""locker_id"": ""F5"",
""catchment_id"": 10,
""detour_cost"": 809
}
]
}
Oh, and to make it easy for me to read your plan, please send the final pick and the commuter assignments in this little JSON shape β nothing fancy, just a consistent form I can parse.
{
""solution"": {
""selected"": [<site_to_open>, <site_to_open>, ...],
""assignments"": [<chosen_site>, <chosen_site>, ...]
}
}
Pretty simple: ""selected"" is the list of locker sites you want installed, and ""assignments"" lists, in the same order as the commuter catchments are given in the instance, which installed site each catchment should use. Think of it like a short form β not the real answer, just the shape I expect.
Please make sure to use the exact identifiers from the instance input β don't rename them or invent new labels.
- for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'opening_costs': [1965, 1681, 1562, 1224, 1594], 'connection_costs': [[963, 371, 320, 547, 296, 41, 526, 134, 657, 810], [844, 100, 469, 792, 10, 354, 839, 814, 819, 191], [75, 844, 384, 31, 184, 44, 814, 354, 486, 474], [155, 756, 468, 521, 931, 159, 754, 837, 100, 408], [359, 762, 911, 907, 11, 27, 874, 554, 53, 809]], 'objective': 5252.0}","{'open_facilities': [2], 'assignments': [2, 2, 2, 2, 2, 2, 2, 2, 2, 2]}",5252.0,"{'problem_type': 'UFLP', 'num_facilities': 5, 'num_customers': 10, 'facilities': [{'id': 'F1', 'opening_cost': 1965}, {'id': 'F2', 'opening_cost': 1681}, {'id': 'F3', 'opening_cost': 1562}, {'id': 'F4', 'opening_cost': 1224}, {'id': 'F5', 'opening_cost': 1594}], 'customers': [{'id': 1}, {'id': 2}, {'id': 3}, {'id': 4}, {'id': 5}, {'id': 6}, {'id': 7}, {'id': 8}, {'id': 9}, {'id': 10}], 'connection_costs': [{'facility': 'F1', 'customer': 1, 'cost': 963}, {'facility': 'F1', 'customer': 2, 'cost': 371}, {'facility': 'F1', 'customer': 3, 'cost': 320}, {'facility': 'F1', 'customer': 4, 'cost': 547}, {'facility': 'F1', 'customer': 5, 'cost': 296}, {'facility': 'F1', 'customer': 6, 'cost': 41}, {'facility': 'F1', 'customer': 7, 'cost': 526}, {'facility': 'F1', 'customer': 8, 'cost': 134}, {'facility': 'F1', 'customer': 9, 'cost': 657}, {'facility': 'F1', 'customer': 10, 'cost': 810}, {'facility': 'F2', 'customer': 1, 'cost': 844}, {'facility': 'F2', 'customer': 2, 'cost': 100}, {'facility': 'F2', 'customer': 3, 'cost': 469}, {'facility': 'F2', 'customer': 4, 'cost': 792}, {'facility': 'F2', 'customer': 5, 'cost': 10}, {'facility': 'F2', 'customer': 6, 'cost': 354}, {'facility': 'F2', 'customer': 7, 'cost': 839}, {'facility': 'F2', 'customer': 8, 'cost': 814}, {'facility': 'F2', 'customer': 9, 'cost': 819}, {'facility': 'F2', 'customer': 10, 'cost': 191}, {'facility': 'F3', 'customer': 1, 'cost': 75}, {'facility': 'F3', 'customer': 2, 'cost': 844}, {'facility': 'F3', 'customer': 3, 'cost': 384}, {'facility': 'F3', 'customer': 4, 'cost': 31}, {'facility': 'F3', 'customer': 5, 'cost': 184}, {'facility': 'F3', 'customer': 6, 'cost': 44}, {'facility': 'F3', 'customer': 7, 'cost': 814}, {'facility': 'F3', 'customer': 8, 'cost': 354}, {'facility': 'F3', 'customer': 9, 'cost': 486}, {'facility': 'F3', 'customer': 10, 'cost': 474}, {'facility': 'F4', 'customer': 1, 'cost': 155}, {'facility': 'F4', 'customer': 2, 'cost': 756}, {'facility': 'F4', 'customer': 3, 'cost': 468}, {'facility': 'F4', 'customer': 4, 'cost': 521}, {'facility': 'F4', 'customer': 5, 'cost': 931}, {'facility': 'F4', 'customer': 6, 'cost': 159}, {'facility': 'F4', 'customer': 7, 'cost': 754}, {'facility': 'F4', 'customer': 8, 'cost': 837}, {'facility': 'F4', 'customer': 9, 'cost': 100}, {'facility': 'F4', 'customer': 10, 'cost': 408}, {'facility': 'F5', 'customer': 1, 'cost': 359}, {'facility': 'F5', 'customer': 2, 'cost': 762}, {'facility': 'F5', 'customer': 3, 'cost': 911}, {'facility': 'F5', 'customer': 4, 'cost': 907}, {'facility': 'F5', 'customer': 5, 'cost': 11}, {'facility': 'F5', 'customer': 6, 'cost': 27}, {'facility': 'F5', 'customer': 7, 'cost': 874}, {'facility': 'F5', 'customer': 8, 'cost': 554}, {'facility': 'F5', 'customer': 9, 'cost': 53}, {'facility': 'F5', 'customer': 10, 'cost': 809}], 'objective': 5252.0}","{'selected': ['F3'], 'assignments': ['F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3', 'F3']}",50,json,1
|