[ { "task_name": "QKP", "problem_type": "QKP", "instruction": "Many people know that packing for a hike isn’t just about individual items—each piece has its own weight and usefulness, and some two-item combos give an extra perk when both are carried. The task here is to select a subset of those unique items so the total usefulness (sum of the usefulness values of the selected items plus any extra bonuses for specific pairs that are both in the pack) is as big as possible, while keeping the total weight inside the backpack’s limit. Items are singletons—can’t take duplicates or fractions. The exact items, weights, usefulness scores, and pair bonuses are shown below.\n\nBelow are the 21 available items (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21) and the backpack weight limit 29308.\n\n| gear_id | base_usefulness |\n|---|---|\n| 1 | 3088 |\n| 2 | 5301 |\n| 3 | 4441 |\n| 4 | 393 |\n| 5 | 5478 |\n| 6 | 6001 |\n| 7 | 5974 |\n| 8 | 4107 |\n| 9 | 3437 |\n| 10 | 2609 |\n| 11 | 2557 |\n| 12 | 487 |\n| 13 | 729 |\n| 14 | 480 |\n| 15 | 6049 |\n| 16 | 3798 |\n| 17 | 4514 |\n| 18 | 6432 |\n| 19 | 1475 |\n| 20 | 6481 |\n| 21 | 963 |\n\n| gear_id | item_weight |\n|---|---|\n| 1 | 713 |\n| 2 | 2461 |\n| 3 | 5656 |\n| 4 | 3265 |\n| 5 | 5832 |\n| 6 | 3638 |\n| 7 | 960 |\n| 8 | 6311 |\n| 9 | 1663 |\n| 10 | 3973 |\n| 11 | 2118 |\n| 12 | 672 |\n| 13 | 2144 |\n| 14 | 1411 |\n| 15 | 2489 |\n| 16 | 3373 |\n| 17 | 1756 |\n| 18 | 225 |\n| 19 | 4157 |\n| 20 | 6260 |\n| 21 | 4962 |\n\n| gear_i_id | gear_j_id | pair_bonus |\n|---|---|---|\n| 1 | 2 | 1364 |\n| 1 | 3 | 1131 |\n| 1 | 4 | 2027 |\n| 1 | 5 | 1610 |\n| 1 | 6 | 1274 |\n| 1 | 7 | 1451 |\n| 1 | 8 | 1382 |\n| 1 | 9 | 1855 |\n| 1 | 10 | 669 |\n| 1 | 11 | 1110 |\n| 1 | 12 | 1687 |\n| 1 | 13 | 1253 |\n| 1 | 14 | 462 |\n| 1 | 15 | 1667 |\n| 1 | 16 | 1073 |\n| 1 | 17 | 400 |\n| 1 | 18 | 1677 |\n| 1 | 19 | 1958 |\n| 1 | 20 | 1801 |\n| 1 | 21 | 4037 |\n| 2 | 3 | 3007 |\n| 2 | 4 | 3661 |\n| 2 | 5 | 1048 |\n| 2 | 6 | 1618 |\n| 2 | 7 | 1768 |\n| 2 | 8 | 2453 |\n| 2 | 9 | 3948 |\n| 2 | 10 | 3969 |\n| 2 | 11 | 2660 |\n| 2 | 12 | 3619 |\n| 2 | 13 | 2227 |\n| 2 | 14 | 2844 |\n| 2 | 15 | 3683 |\n| 2 | 16 | 744 |\n| 2 | 17 | 2137 |\n| 2 | 18 | 3901 |\n| 2 | 19 | 3153 |\n| 2 | 20 | 4611 |\n| 2 | 21 | 4812 |\n| 3 | 4 | 2078 |\n| 3 | 5 | 1674 |\n| 3 | 6 | 2914 |\n| 3 | 7 | 5323 |\n| 3 | 8 | 5225 |\n| 3 | 9 | 5470 |\n| 3 | 10 | 2481 |\n| 3 | 11 | 4747 |\n| 3 | 12 | 3482 |\n| 3 | 13 | 2278 |\n| 3 | 14 | 2644 |\n| 3 | 15 | 5155 |\n| 3 | 16 | 1779 |\n| 3 | 17 | 5751 |\n| 3 | 18 | 1456 |\n| 3 | 19 | 4925 |\n| 3 | 20 | 2028 |\n| 3 | 21 | 1911 |\n| 4 | 5 | 4111 |\n| 4 | 6 | 2320 |\n| 4 | 7 | 2751 |\n| 4 | 8 | 4212 |\n| 4 | 9 | 1530 |\n| 4 | 10 | 3030 |\n| 4 | 11 | 4018 |\n| 4 | 12 | 2888 |\n| 4 | 13 | 3832 |\n| 4 | 14 | 3976 |\n| 4 | 15 | 4493 |\n| 4 | 16 | 3684 |\n| 4 | 17 | 3202 |\n| 4 | 18 | 3631 |\n| 4 | 19 | 3854 |\n| 4 | 20 | 3322 |\n| 4 | 21 | 3789 |\n| 5 | 6 | 3234 |\n| 5 | 7 | 5267 |\n| 5 | 8 | 5554 |\n| 5 | 9 | 5348 |\n| 5 | 10 | 3745 |\n| 5 | 11 | 2196 |\n| 5 | 12 | 4320 |\n| 5 | 13 | 2862 |\n| 5 | 14 | 4969 |\n| 5 | 15 | 3769 |\n| 5 | 16 | 5458 |\n| 5 | 17 | 4632 |\n| 5 | 18 | 4121 |\n| 5 | 19 | 3427 |\n| 5 | 20 | 2946 |\n| 5 | 21 | 4476 |\n| 6 | 7 | 4801 |\n| 6 | 8 | 2714 |\n| 6 | 9 | 4203 |\n| 6 | 10 | 4242 |\n| 6 | 11 | 4400 |\n| 6 | 12 | 1827 |\n| 6 | 13 | 3018 |\n| 6 | 14 | 4772 |\n| 6 | 15 | 3173 |\n| 6 | 16 | 3322 |\n| 6 | 17 | 3255 |\n| 6 | 18 | 2864 |\n| 6 | 19 | 4958 |\n| 6 | 20 | 4941 |\n| 6 | 21 | 5100 |\n| 7 | 8 | 1939 |\n| 7 | 9 | 1425 |\n| 7 | 10 | 353 |\n| 7 | 11 | 577 |\n| 7 | 12 | 2271 |\n| 7 | 13 | 2337 |\n| 7 | 14 | 1928 |\n| 7 | 15 | 1879 |\n| 7 | 16 | 1932 |\n| 7 | 17 | 2089 |\n| 7 | 18 | 1625 |\n| 7 | 19 | 1956 |\n| 7 | 20 | 1307 |\n| 7 | 21 | 571 |\n| 8 | 9 | 4937 |\n| 8 | 10 | 3947 |\n| 8 | 11 | 6137 |\n| 8 | 12 | 5613 |\n| 8 | 13 | 2614 |\n| 8 | 14 | 5121 |\n| 8 | 15 | 2929 |\n| 8 | 16 | 2393 |\n| 8 | 17 | 3747 |\n| 8 | 18 | 1837 |\n| 8 | 19 | 5176 |\n| 8 | 20 | 4430 |\n| 8 | 21 | 1978 |\n| 9 | 10 | 2696 |\n| 9 | 11 | 2990 |\n| 9 | 12 | 1639 |\n| 9 | 13 | 3121 |\n| 9 | 14 | 2902 |\n| 9 | 15 | 3913 |\n| 9 | 16 | 977 |\n| 9 | 17 | 1172 |\n| 9 | 18 | 2015 |\n| 9 | 19 | 1422 |\n| 9 | 20 | 3009 |\n| 9 | 21 | 1470 |\n| 10 | 11 | 1491 |\n| 10 | 12 | 4626 |\n| 10 | 13 | 956 |\n| 10 | 14 | 2406 |\n| 10 | 15 | 2309 |\n| 10 | 16 | 1605 |\n| 10 | 17 | 2987 |\n| 10 | 18 | 2156 |\n| 10 | 19 | 1641 |\n| 10 | 20 | 1719 |\n| 10 | 21 | 2572 |\n| 11 | 12 | 3357 |\n| 11 | 13 | 2158 |\n| 11 | 14 | 1881 |\n| 11 | 15 | 1296 |\n| 11 | 16 | 3362 |\n| 11 | 17 | 4387 |\n| 11 | 18 | 1769 |\n| 11 | 19 | 4934 |\n| 11 | 20 | 5262 |\n| 11 | 21 | 4445 |\n| 12 | 13 | 3852 |\n| 12 | 14 | 4168 |\n| 12 | 15 | 871 |\n| 12 | 16 | 4372 |\n| 12 | 17 | 3950 |\n| 12 | 18 | 3747 |\n| 12 | 19 | 4242 |\n| 12 | 20 | 1382 |\n| 12 | 21 | 216 |\n| 13 | 14 | 4542 |\n| 13 | 15 | 2877 |\n| 13 | 16 | 2073 |\n| 13 | 17 | 704 |\n| 13 | 18 | 1373 |\n| 13 | 19 | 1315 |\n| 13 | 20 | 1693 |\n| 13 | 21 | 2931 |\n| 14 | 15 | 4925 |\n| 14 | 16 | 1700 |\n| 14 | 17 | 5495 |\n| 14 | 18 | 1391 |\n| 14 | 19 | 4706 |\n| 14 | 20 | 608 |\n| 14 | 21 | 1010 |\n| 15 | 16 | 3083 |\n| 15 | 17 | 4446 |\n| 15 | 18 | 4091 |\n| 15 | 19 | 1616 |\n| 15 | 20 | 1984 |\n| 15 | 21 | 2545 |\n| 16 | 17 | 2169 |\n| 16 | 18 | 1908 |\n| 16 | 19 | 2946 |\n| 16 | 20 | 2974 |\n| 16 | 21 | 5279 |\n| 17 | 18 | 2267 |\n| 17 | 19 | 2959 |\n| 17 | 20 | 1605 |\n| 17 | 21 | 2702 |\n| 18 | 19 | 1404 |\n| 18 | 20 | 3337 |\n| 18 | 21 | 3199 |\n| 19 | 20 | 2282 |\n| 19 | 21 | 2891 |\n\nChoose a subset that stays within the 29308 limit to maximize total usefulness.\n\nWhen you give the final pick, just drop it into a tiny JSON snippet so it's easy to read and parse, like this:\n\n{\n \"solution\": [, , ...]\n}\n\n\"solution\" is simply the list of item IDs you choose to bring in your backpack. Think of each entry in the array as the exact label for one item — that's it. This JSON is just the expected shape (a sketch of the answer format), not the actual solution itself.\n\nAlso, please make sure to use the item identifiers exactly as they appear in the instance input — don't rename them or invent new labels. \n- 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”.\"", "instance": { "linear_coeffs": [ 3088, 5301, 4441, 393, 5478, 6001, 5974, 4107, 3437, 2609, 2557, 487, 729, 480, 6049, 3798, 4514, 6432, 1475, 6481, 963 ], "quadratic_coeffs": [ [ 1611, 1364, 1131, 2027, 1610, 1274, 1451, 1382, 1855, 669, 1110, 1687, 1253, 462, 1667, 1073, 400, 1677, 1958, 1801, 4037 ], [ 0, 3839, 3007, 3661, 1048, 1618, 1768, 2453, 3948, 3969, 2660, 3619, 2227, 2844, 3683, 744, 2137, 3901, 3153, 4611, 4812 ], [ 0, 0, 4536, 2078, 1674, 2914, 5323, 5225, 5470, 2481, 4747, 3482, 2278, 2644, 5155, 1779, 5751, 1456, 4925, 2028, 1911 ], [ 0, 0, 0, 3374, 4111, 2320, 2751, 4212, 1530, 3030, 4018, 2888, 3832, 3976, 4493, 3684, 3202, 3631, 3854, 3322, 3789 ], [ 0, 0, 0, 0, 5339, 3234, 5267, 5554, 5348, 3745, 2196, 4320, 2862, 4969, 3769, 5458, 4632, 4121, 3427, 2946, 4476 ], [ 0, 0, 0, 0, 0, 4325, 4801, 2714, 4203, 4242, 4400, 1827, 3018, 4772, 3173, 3322, 3255, 2864, 4958, 4941, 5100 ], [ 0, 0, 0, 0, 0, 0, 640, 1939, 1425, 353, 577, 2271, 2337, 1928, 1879, 1932, 2089, 1625, 1956, 1307, 571 ], [ 0, 0, 0, 0, 0, 0, 0, 2413, 4937, 3947, 6137, 5613, 2614, 5121, 2929, 2393, 3747, 1837, 5176, 4430, 1978 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1057, 2696, 2990, 1639, 3121, 2902, 3913, 977, 1172, 2015, 1422, 3009, 1470 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 4254, 1491, 4626, 956, 2406, 2309, 1605, 2987, 2156, 1641, 1719, 2572 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3127, 3357, 2158, 1881, 1296, 3362, 4387, 1769, 4934, 5262, 4445 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4676, 3852, 4168, 871, 4372, 3950, 3747, 4242, 1382, 216 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4260, 4542, 2877, 2073, 704, 1373, 1315, 1693, 2931 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2526, 4925, 1700, 5495, 1391, 4706, 608, 1010 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1209, 3083, 4446, 4091, 1616, 1984, 2545 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2214, 2169, 1908, 2946, 2974, 5279 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3572, 2267, 2959, 1605, 2702 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1774, 1404, 3337, 3199 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3268, 2282, 2891 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 713, 2461, 5656, 3265, 5832, 3638, 960, 6311, 1663, 3973, 2118, 672, 2144, 1411, 2489, 3373, 1756, 225, 4157, 6260, 4962 ], "capacity": 29308, "solution": [ 0, 1, 2, 3, 5, 6, 8, 10, 11, 12, 13, 14, 16, 17 ], "obj": 303996.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 5, 6, 8, 10, 11, 12, 13, 14, 16, 17 ], "obj": 303996.0, "instance_variant": { "problem_type": "QKP", "num_items": 21, "capacity": 29308, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 3088 }, { "item_id": 2, "linear_profit": 5301 }, { "item_id": 3, "linear_profit": 4441 }, { "item_id": 4, "linear_profit": 393 }, { "item_id": 5, "linear_profit": 5478 }, { "item_id": 6, "linear_profit": 6001 }, { "item_id": 7, "linear_profit": 5974 }, { "item_id": 8, "linear_profit": 4107 }, { "item_id": 9, "linear_profit": 3437 }, { "item_id": 10, "linear_profit": 2609 }, { "item_id": 11, "linear_profit": 2557 }, { "item_id": 12, "linear_profit": 487 }, { "item_id": 13, "linear_profit": 729 }, { "item_id": 14, "linear_profit": 480 }, { "item_id": 15, "linear_profit": 6049 }, { "item_id": 16, "linear_profit": 3798 }, { "item_id": 17, "linear_profit": 4514 }, { "item_id": 18, "linear_profit": 6432 }, { "item_id": 19, "linear_profit": 1475 }, { "item_id": 20, "linear_profit": 6481 }, { "item_id": 21, "linear_profit": 963 } ], "weight_pairs": [ { "item_id": 1, "weight": 713 }, { "item_id": 2, "weight": 2461 }, { "item_id": 3, "weight": 5656 }, { "item_id": 4, "weight": 3265 }, { "item_id": 5, "weight": 5832 }, { "item_id": 6, "weight": 3638 }, { "item_id": 7, "weight": 960 }, { "item_id": 8, "weight": 6311 }, { "item_id": 9, "weight": 1663 }, { "item_id": 10, "weight": 3973 }, { "item_id": 11, "weight": 2118 }, { "item_id": 12, "weight": 672 }, { "item_id": 13, "weight": 2144 }, { "item_id": 14, "weight": 1411 }, { "item_id": 15, "weight": 2489 }, { "item_id": 16, "weight": 3373 }, { "item_id": 17, "weight": 1756 }, { "item_id": 18, "weight": 225 }, { "item_id": 19, "weight": 4157 }, { "item_id": 20, "weight": 6260 }, { "item_id": 21, "weight": 4962 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 1611 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 1364 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 1131 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 2027 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 1610 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 1274 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 1451 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 1382 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 1855 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 669 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 1110 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 1687 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 1253 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 462 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 1667 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 1073 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 400 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 1677 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 1958 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 1801 }, { "item_i_id": 1, "item_j_id": 21, "quadratic_profit": 4037 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 3839 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 3007 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 3661 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 1048 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 1618 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 1768 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 2453 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 3948 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 3969 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 2660 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 3619 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 2227 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 2844 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 3683 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 744 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 2137 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 3901 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 3153 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 4611 }, { "item_i_id": 2, "item_j_id": 21, "quadratic_profit": 4812 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 4536 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 2078 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 1674 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 2914 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 5323 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 5225 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 5470 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 2481 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 4747 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 3482 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 2278 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 2644 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 5155 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 1779 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 5751 }, { "item_i_id": 3, "item_j_id": 18, "quadratic_profit": 1456 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 4925 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 2028 }, { "item_i_id": 3, "item_j_id": 21, "quadratic_profit": 1911 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 3374 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 4111 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 2320 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 2751 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 4212 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 1530 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 3030 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 4018 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 2888 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 3832 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 3976 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 4493 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 3684 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 3202 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 3631 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 3854 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 3322 }, { "item_i_id": 4, "item_j_id": 21, "quadratic_profit": 3789 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 5339 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 3234 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 5267 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 5554 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 5348 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 3745 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 2196 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 4320 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 2862 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 4969 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 3769 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 5458 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 4632 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 4121 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 3427 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 2946 }, { "item_i_id": 5, "item_j_id": 21, "quadratic_profit": 4476 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 4325 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 4801 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 2714 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 4203 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 4242 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 4400 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 1827 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 3018 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 4772 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 3173 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 3322 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 3255 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 2864 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 4958 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 4941 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 5100 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 640 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 1939 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 1425 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 353 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 577 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 2271 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 2337 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 1928 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 1879 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 1932 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 2089 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 1625 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 1956 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 1307 }, { "item_i_id": 7, "item_j_id": 21, "quadratic_profit": 571 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 2413 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 4937 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 3947 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 6137 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 5613 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 2614 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 5121 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 2929 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 2393 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 3747 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 1837 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 5176 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 4430 }, { "item_i_id": 8, "item_j_id": 21, "quadratic_profit": 1978 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 1057 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 2696 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 2990 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 1639 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 3121 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 2902 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 3913 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 977 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 1172 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 2015 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 1422 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 3009 }, { "item_i_id": 9, "item_j_id": 21, "quadratic_profit": 1470 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 4254 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 1491 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 4626 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 956 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 2406 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 2309 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 1605 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 2987 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 2156 }, { "item_i_id": 10, "item_j_id": 19, "quadratic_profit": 1641 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 1719 }, { "item_i_id": 10, "item_j_id": 21, "quadratic_profit": 2572 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 3127 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 3357 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 2158 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 1881 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 1296 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 3362 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 4387 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 1769 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 4934 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 5262 }, { "item_i_id": 11, "item_j_id": 21, "quadratic_profit": 4445 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 4676 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 3852 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 4168 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 871 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 4372 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 3950 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 3747 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 4242 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 1382 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 216 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 4260 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 4542 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 2877 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 2073 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 704 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 1373 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 1315 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 1693 }, { "item_i_id": 13, "item_j_id": 21, "quadratic_profit": 2931 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 2526 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 4925 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 1700 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 5495 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 1391 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 4706 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 608 }, { "item_i_id": 14, "item_j_id": 21, "quadratic_profit": 1010 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 1209 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 3083 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 4446 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 4091 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 1616 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 1984 }, { "item_i_id": 15, "item_j_id": 21, "quadratic_profit": 2545 }, { "item_i_id": 16, "item_j_id": 16, "quadratic_profit": 2214 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 2169 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 1908 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 2946 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 2974 }, { "item_i_id": 16, "item_j_id": 21, "quadratic_profit": 5279 }, { "item_i_id": 17, "item_j_id": 17, "quadratic_profit": 3572 }, { "item_i_id": 17, "item_j_id": 18, "quadratic_profit": 2267 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 2959 }, { "item_i_id": 17, "item_j_id": 20, "quadratic_profit": 1605 }, { "item_i_id": 17, "item_j_id": 21, "quadratic_profit": 2702 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 1774 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 1404 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 3337 }, { "item_i_id": 18, "item_j_id": 21, "quadratic_profit": 3199 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 3268 }, { "item_i_id": 19, "item_j_id": 20, "quadratic_profit": 2282 }, { "item_i_id": 19, "item_j_id": 21, "quadratic_profit": 2891 } ] }, "solution_variant": [ 1, 2, 3, 4, 6, 7, 9, 11, 12, 13, 14, 15, 17, 18 ], "context_index": 1, "input_format": "markdown_table", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Someone in the events crew is balancing a menu for a corporate lunch: every dish counts for its own popularity, and certain combinations add bonus appeal when they’re both present. The task is to choose which dishes to include (each dish only once, either included or not) so the combined oven load doesn’t exceed what’s available, and the final guest satisfaction — the sum of individual dish appeals plus any pair bonuses for dishes that appear together — is as large as possible. Concrete details about the dishes, their oven requirements, and the extra pair points follow below.\n\nThey are weighing 22 candidate dishes 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 against an oven capacity of 5501.\n\n| dish_id | dish_appeal |\n|---|---|\n| 0 | 380 |\n| 1 | 287 |\n| 2 | 330 |\n| 3 | 498 |\n| 4 | 294 |\n| 5 | 359 |\n| 6 | 207 |\n| 7 | 144 |\n| 8 | 130 |\n| 9 | 355 |\n| 10 | 240 |\n| 11 | 310 |\n| 12 | 107 |\n| 13 | 404 |\n| 14 | 152 |\n| 15 | 410 |\n| 16 | 379 |\n| 17 | 399 |\n| 18 | 238 |\n| 19 | 234 |\n| 20 | 248 |\n| 21 | 112 |\n\n| dish_id | oven_load |\n|---|---|\n| 0 | 290 |\n| 1 | 293 |\n| 2 | 354 |\n| 3 | 138 |\n| 4 | 471 |\n| 5 | 163 |\n| 6 | 180 |\n| 7 | 253 |\n| 8 | 189 |\n| 9 | 407 |\n| 10 | 287 |\n| 11 | 222 |\n| 12 | 268 |\n| 13 | 475 |\n| 14 | 366 |\n| 15 | 145 |\n| 16 | 358 |\n| 17 | 419 |\n| 18 | 407 |\n| 19 | 152 |\n| 20 | 142 |\n| 21 | 488 |\n\n| dish_i_id | dish_j_id | pair_bonus_appeal |\n|---|---|---|\n| 0 | 3 | 238 |\n| 0 | 7 | 226 |\n| 0 | 10 | 358 |\n| 0 | 11 | 179 |\n| 0 | 14 | 348 |\n| 0 | 16 | 261 |\n| 1 | 2 | 213 |\n| 1 | 5 | 326 |\n| 1 | 15 | 293 |\n| 1 | 18 | 252 |\n| 2 | 3 | 285 |\n| 2 | 4 | 237 |\n| 2 | 6 | 336 |\n| 2 | 12 | 395 |\n| 2 | 18 | 348 |\n| 3 | 21 | 210 |\n| 4 | 8 | 301 |\n| 4 | 9 | 361 |\n| 4 | 13 | 321 |\n| 5 | 7 | 177 |\n| 5 | 8 | 182 |\n| 5 | 12 | 240 |\n| 5 | 17 | 280 |\n| 5 | 18 | 171 |\n| 5 | 21 | 269 |\n| 6 | 19 | 218 |\n| 6 | 20 | 294 |\n| 7 | 9 | 206 |\n| 7 | 15 | 225 |\n| 8 | 10 | 171 |\n| 8 | 16 | 304 |\n| 9 | 10 | 403 |\n| 9 | 14 | 231 |\n| 9 | 16 | 219 |\n| 9 | 18 | 227 |\n| 9 | 19 | 218 |\n| 10 | 12 | 366 |\n| 10 | 13 | 215 |\n| 10 | 17 | 176 |\n| 10 | 21 | 266 |\n| 11 | 12 | 179 |\n| 12 | 13 | 412 |\n| 12 | 19 | 188 |\n| 12 | 20 | 214 |\n| 13 | 17 | 112 |\n| 14 | 17 | 465 |\n| 15 | 17 | 396 |\n| 15 | 19 | 453 |\n| 16 | 19 | 415 |\n| 18 | 20 | 263 |\n| 20 | 21 | 384 |\n\nThe aim is to select a subset within the 5501 oven limit that maximizes total guest satisfaction across the 22 dishes.\n\nOh, and when you send back your choice, please stick to this simple JSON layout so it's easy to read and process:\n\n{\n \"solution\": [, , ...]\n}\n\n\"solution\" is just a list of the dishes you decide to include — each entry is the exact dish identifier from the instance (one per chosen dish). Think of the placeholders like little checkboxes: replace each with the ID of a dish you want on the menu. This block is just a sketch of the shape we expect, not the actual answer.\n\nPlease 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”.\"", "instance": { "linear_coeffs": [ 380, 287, 330, 498, 294, 359, 207, 144, 130, 355, 240, 310, 107, 404, 152, 410, 379, 399, 238, 234, 248, 112 ], "quadratic_coeffs": [ [ 0, 0, 0, 238, 0, 0, 0, 226, 0, 0, 358, 179, 0, 0, 348, 0, 261, 0, 0, 0, 0, 0 ], [ 0, 0, 213, 0, 0, 326, 0, 0, 0, 0, 0, 0, 0, 0, 0, 293, 0, 0, 252, 0, 0, 0 ], [ 0, 0, 0, 285, 237, 0, 336, 0, 0, 0, 0, 0, 395, 0, 0, 0, 0, 0, 348, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 301, 361, 0, 0, 0, 321, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 268, 0, 177, 182, 0, 0, 0, 240, 0, 0, 0, 0, 280, 171, 0, 0, 269 ], [ 0, 0, 0, 0, 0, 0, 141, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 218, 294, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 0, 0, 0, 0, 0, 225, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 264, 0, 171, 0, 0, 0, 0, 0, 304, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 403, 0, 0, 0, 231, 0, 219, 0, 227, 218, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 366, 215, 0, 0, 0, 176, 0, 0, 0, 266 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 412, 0, 0, 0, 0, 0, 188, 214, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 0, 112, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 213, 0, 0, 465, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 396, 0, 453, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 263, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 384 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 290, 293, 354, 138, 471, 163, 180, 253, 189, 407, 287, 222, 268, 475, 366, 145, 358, 419, 407, 152, 142, 488 ], "capacity": 5501, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20 ], "obj": 17139.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20 ], "obj": 17139.0, "instance_variant": { "problem_type": "QKP", "num_items": 22, "capacity": 5501, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 380 }, { "item_id": 1, "linear_profit": 287 }, { "item_id": 2, "linear_profit": 330 }, { "item_id": 3, "linear_profit": 498 }, { "item_id": 4, "linear_profit": 294 }, { "item_id": 5, "linear_profit": 359 }, { "item_id": 6, "linear_profit": 207 }, { "item_id": 7, "linear_profit": 144 }, { "item_id": 8, "linear_profit": 130 }, { "item_id": 9, "linear_profit": 355 }, { "item_id": 10, "linear_profit": 240 }, { "item_id": 11, "linear_profit": 310 }, { "item_id": 12, "linear_profit": 107 }, { "item_id": 13, "linear_profit": 404 }, { "item_id": 14, "linear_profit": 152 }, { "item_id": 15, "linear_profit": 410 }, { "item_id": 16, "linear_profit": 379 }, { "item_id": 17, "linear_profit": 399 }, { "item_id": 18, "linear_profit": 238 }, { "item_id": 19, "linear_profit": 234 }, { "item_id": 20, "linear_profit": 248 }, { "item_id": 21, "linear_profit": 112 } ], "weight_pairs": [ { "item_id": 0, "weight": 290 }, { "item_id": 1, "weight": 293 }, { "item_id": 2, "weight": 354 }, { "item_id": 3, "weight": 138 }, { "item_id": 4, "weight": 471 }, { "item_id": 5, "weight": 163 }, { "item_id": 6, "weight": 180 }, { "item_id": 7, "weight": 253 }, { "item_id": 8, "weight": 189 }, { "item_id": 9, "weight": 407 }, { "item_id": 10, "weight": 287 }, { "item_id": 11, "weight": 222 }, { "item_id": 12, "weight": 268 }, { "item_id": 13, "weight": 475 }, { "item_id": 14, "weight": 366 }, { "item_id": 15, "weight": 145 }, { "item_id": 16, "weight": 358 }, { "item_id": 17, "weight": 419 }, { "item_id": 18, "weight": 407 }, { "item_id": 19, "weight": 152 }, { "item_id": 20, "weight": 142 }, { "item_id": 21, "weight": 488 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 238 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 226 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 358 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 179 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 348 }, { "item_i_id": 0, "item_j_id": 16, "quadratic_profit": 261 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 213 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 326 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 293 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 252 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 285 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 237 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 336 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 395 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 348 }, { "item_i_id": 3, "item_j_id": 21, "quadratic_profit": 210 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 301 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 361 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 321 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 268 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 177 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 182 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 240 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 280 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 171 }, { "item_i_id": 5, "item_j_id": 21, "quadratic_profit": 269 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 141 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 218 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 294 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 206 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 225 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 264 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 171 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 304 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 403 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 231 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 219 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 227 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 218 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 366 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 215 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 176 }, { "item_i_id": 10, "item_j_id": 21, "quadratic_profit": 266 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 179 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 412 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 188 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 214 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 213 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 112 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 213 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 465 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 396 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 453 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 415 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 263 }, { "item_i_id": 20, "item_j_id": 21, "quadratic_profit": 384 } ] }, "solution_variant": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 15, 16, 17, 18, 19, 20 ], "context_index": 2, "input_format": "markdown_table", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Recently there was a move where the problem was choosing which boxes to cram into a single car so the trip hauled the most value. Each box brings its own value and uses up some of the trunk’s capacity, and some specific pairs of boxes add extra value when they’re together, so what’s counted is the sum of individual box values plus any bonuses from those pairs. Since the trunk can’t be overloaded and every box is unique (no duplicates), the aim is to pick the combination that yields the highest total worth without exceeding the weight allowance. The detailed list of boxes, weights, values, and pairwise bonuses follows below.\n\n{\n \"total_boxes\": 25,\n \"trunk_weight_capacity\": 1068,\n \"box_ids\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"E\",\n \"F\",\n \"G\",\n \"H\",\n \"I\",\n \"J\",\n \"K\",\n \"L\",\n \"M\",\n \"N\",\n \"O\",\n \"P\",\n \"Q\",\n \"R\",\n \"S\",\n \"T\",\n \"U\",\n \"V\",\n \"W\",\n \"X\",\n \"Y\"\n ],\n \"linear\": [\n {\n \"box_id\": \"A\",\n \"box_value\": 105\n },\n {\n \"box_id\": \"B\",\n \"box_value\": 98\n },\n {\n \"box_id\": \"C\",\n \"box_value\": 100\n },\n {\n \"box_id\": \"D\",\n \"box_value\": 101\n },\n {\n \"box_id\": \"E\",\n \"box_value\": 102\n },\n {\n \"box_id\": \"F\",\n \"box_value\": 97\n },\n {\n \"box_id\": \"G\",\n \"box_value\": 104\n },\n {\n \"box_id\": \"H\",\n \"box_value\": 100\n },\n {\n \"box_id\": \"I\",\n \"box_value\": 99\n },\n {\n \"box_id\": \"J\",\n \"box_value\": 99\n },\n {\n \"box_id\": \"K\",\n \"box_value\": 110\n },\n {\n \"box_id\": \"L\",\n \"box_value\": 101\n },\n {\n \"box_id\": \"M\",\n \"box_value\": 98\n },\n {\n \"box_id\": \"N\",\n \"box_value\": 95\n },\n {\n \"box_id\": \"O\",\n \"box_value\": 99\n },\n {\n \"box_id\": \"P\",\n \"box_value\": 108\n },\n {\n \"box_id\": \"Q\",\n \"box_value\": 98\n },\n {\n \"box_id\": \"R\",\n \"box_value\": 107\n },\n {\n \"box_id\": \"S\",\n \"box_value\": 104\n },\n {\n \"box_id\": \"T\",\n \"box_value\": 108\n },\n {\n \"box_id\": \"U\",\n \"box_value\": 100\n },\n {\n \"box_id\": \"V\",\n \"box_value\": 98\n },\n {\n \"box_id\": \"W\",\n \"box_value\": 105\n },\n {\n \"box_id\": \"X\",\n \"box_value\": 98\n },\n {\n \"box_id\": \"Y\",\n \"box_value\": 100\n }\n ],\n \"weights\": [\n {\n \"box_id\": \"A\",\n \"box_weight\": 105\n },\n {\n \"box_id\": \"B\",\n \"box_weight\": 103\n },\n {\n \"box_id\": \"C\",\n \"box_weight\": 102\n },\n {\n \"box_id\": \"D\",\n \"box_weight\": 101\n },\n {\n \"box_id\": \"E\",\n \"box_weight\": 103\n },\n {\n \"box_id\": \"F\",\n \"box_weight\": 101\n },\n {\n \"box_id\": \"G\",\n \"box_weight\": 103\n },\n {\n \"box_id\": \"H\",\n \"box_weight\": 102\n },\n {\n \"box_id\": \"I\",\n \"box_weight\": 102\n },\n {\n \"box_id\": \"J\",\n \"box_weight\": 101\n },\n {\n \"box_id\": \"K\",\n \"box_weight\": 105\n },\n {\n \"box_id\": \"L\",\n \"box_weight\": 101\n },\n {\n \"box_id\": \"M\",\n \"box_weight\": 102\n },\n {\n \"box_id\": \"N\",\n \"box_weight\": 100\n },\n {\n \"box_id\": \"O\",\n \"box_weight\": 100\n },\n {\n \"box_id\": \"P\",\n \"box_weight\": 104\n },\n {\n \"box_id\": \"Q\",\n \"box_weight\": 103\n },\n {\n \"box_id\": \"R\",\n \"box_weight\": 102\n },\n {\n \"box_id\": \"S\",\n \"box_weight\": 104\n },\n {\n \"box_id\": \"T\",\n \"box_weight\": 104\n },\n {\n \"box_id\": \"U\",\n \"box_weight\": 105\n },\n {\n \"box_id\": \"V\",\n \"box_weight\": 103\n },\n {\n \"box_id\": \"W\",\n \"box_weight\": 103\n },\n {\n \"box_id\": \"X\",\n \"box_weight\": 102\n },\n {\n \"box_id\": \"Y\",\n \"box_weight\": 101\n }\n ],\n \"quadratic\": [\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"D\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"E\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"G\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"H\",\n \"pair_bonus_value\": 105\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"I\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"J\",\n \"pair_bonus_value\": 105\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"K\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"L\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"N\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"A\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"C\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"E\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"I\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"J\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"K\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"L\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"N\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"B\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"D\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"E\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"F\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"G\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"I\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"J\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"K\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"C\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"E\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"F\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"G\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"H\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"I\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"J\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"K\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"D\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"F\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"G\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"H\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"I\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"J\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"N\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"E\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"G\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"H\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"I\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"J\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"K\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"N\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"F\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"H\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"I\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"J\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"K\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"N\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"G\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"I\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"J\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"L\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"H\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"I\",\n \"box_j_id\": \"J\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"I\",\n \"box_j_id\": \"K\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"I\",\n \"box_j_id\": \"L\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"I\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"I\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"I\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"I\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"I\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"I\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"K\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"L\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"N\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 105\n },\n {\n \"box_i_id\": \"J\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"L\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"M\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"N\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"K\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"L\",\n \"box_j_id\": \"N\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"L\",\n \"box_j_id\": \"O\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"L\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"L\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"L\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"L\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"L\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"L\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"L\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"M\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"M\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"M\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"M\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"M\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"M\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"M\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"N\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"N\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"N\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"N\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"N\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"N\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"N\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"N\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"P\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"O\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"P\",\n \"box_j_id\": \"Q\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"P\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"P\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"P\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"P\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"P\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"P\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"Q\",\n \"box_j_id\": \"R\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"Q\",\n \"box_j_id\": \"S\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"Q\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"Q\",\n \"box_j_id\": \"U\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"Q\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"Q\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"Q\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 103\n },\n {\n \"box_i_id\": \"R\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"R\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"R\",\n \"box_j_id\": \"W\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"R\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"R\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 100\n },\n {\n \"box_i_id\": \"S\",\n \"box_j_id\": \"T\",\n \"pair_bonus_value\": 104\n },\n {\n \"box_i_id\": \"S\",\n \"box_j_id\": \"V\",\n \"pair_bonus_value\": 102\n },\n {\n \"box_i_id\": \"S\",\n \"box_j_id\": \"X\",\n \"pair_bonus_value\": 101\n },\n {\n \"box_i_id\": \"S\",\n \"box_j_id\": \"Y\",\n \"pair_bonus_value\": 100\n }\n ]\n}\n\nOh, and when you send back your pick, please stick to a tiny JSON snippet so it's easy to read and validate. It should follow this shape:\n\n{\n \"solution\": [, , ...]\n}\n\nHere the \"solution\" array is just a list of the box ids you decided to load into the trunk — one entry per chosen box. This is only a sketch of the expected shape, not the actual selection.\n\nPlease make sure you use the identifiers exactly as they appear in the instance input — do not rename them or invent new labels.\n\nFor 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”.\"", "instance": { "linear_coeffs": [ 105, 98, 100, 101, 102, 97, 104, 100, 99, 99, 110, 101, 98, 95, 99, 108, 98, 107, 104, 108, 100, 98, 105, 98, 100 ], "quadratic_coeffs": [ [ 0, 0, 0, 101, 101, 0, 101, 105, 101, 105, 101, 104, 104, 104, 0, 104, 104, 0, 100, 104, 103, 102, 104, 0, 100 ], [ 0, 103, 103, 0, 103, 0, 0, 0, 103, 101, 102, 100, 100, 103, 103, 100, 103, 100, 100, 103, 0, 102, 0, 104, 0 ], [ 0, 0, 102, 102, 101, 102, 101, 0, 102, 102, 100, 0, 102, 0, 100, 102, 102, 0, 102, 101, 100, 0, 101, 100, 101 ], [ 0, 0, 0, 101, 101, 101, 101, 101, 101, 101, 100, 0, 101, 0, 101, 0, 0, 101, 0, 101, 104, 0, 0, 0, 103 ], [ 0, 0, 0, 0, 100, 103, 103, 103, 102, 100, 0, 0, 103, 103, 103, 100, 103, 0, 101, 100, 100, 100, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 101, 101, 101, 100, 100, 101, 0, 101, 100, 101, 100, 101, 101, 0, 103, 0, 100, 102, 103, 102 ], [ 0, 0, 0, 0, 0, 0, 102, 100, 103, 102, 103, 0, 100, 100, 103, 103, 103, 103, 102, 0, 101, 101, 101, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 102, 102, 102, 0, 101, 102, 0, 0, 0, 103, 102, 101, 100, 0, 0, 103, 0, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 101, 102, 102, 102, 0, 0, 102, 101, 101, 101, 0, 0, 0, 0, 0, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 101, 101, 101, 101, 104, 0, 101, 104, 104, 102, 102, 101, 104, 105, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 103, 101, 104, 100, 103, 100, 100, 100, 0, 104, 104, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 104, 103, 0, 103, 104, 102, 103, 104, 0, 0, 100, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 100, 102, 101, 0, 100, 100, 0, 102, 101, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 102, 103, 104, 100, 104, 100, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 100, 101, 100, 100, 101, 103, 102, 104, 104, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 104, 100, 0, 101, 0, 103, 100, 103, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 103, 103, 100, 101, 104, 0, 104, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 100, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 104, 0, 102, 0, 101, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 105, 103, 102, 101, 103, 101, 103, 102, 102, 101, 105, 101, 102, 100, 100, 104, 103, 102, 104, 104, 105, 103, 103, 102, 101 ], "capacity": 1068, "solution": [ 5, 6, 8, 9, 10, 14, 15, 16, 17, 23 ], "obj": 5499.0, "problem_type": "QKP" }, "solution": [ 5, 6, 8, 9, 10, 14, 15, 16, 17, 23 ], "obj": 5499.0, "instance_variant": { "problem_type": "QKP", "num_items": 25, "capacity": 1068, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 105 }, { "item_id": "B", "linear_profit": 98 }, { "item_id": "C", "linear_profit": 100 }, { "item_id": "D", "linear_profit": 101 }, { "item_id": "E", "linear_profit": 102 }, { "item_id": "F", "linear_profit": 97 }, { "item_id": "G", "linear_profit": 104 }, { "item_id": "H", "linear_profit": 100 }, { "item_id": "I", "linear_profit": 99 }, { "item_id": "J", "linear_profit": 99 }, { "item_id": "K", "linear_profit": 110 }, { "item_id": "L", "linear_profit": 101 }, { "item_id": "M", "linear_profit": 98 }, { "item_id": "N", "linear_profit": 95 }, { "item_id": "O", "linear_profit": 99 }, { "item_id": "P", "linear_profit": 108 }, { "item_id": "Q", "linear_profit": 98 }, { "item_id": "R", "linear_profit": 107 }, { "item_id": "S", "linear_profit": 104 }, { "item_id": "T", "linear_profit": 108 }, { "item_id": "U", "linear_profit": 100 }, { "item_id": "V", "linear_profit": 98 }, { "item_id": "W", "linear_profit": 105 }, { "item_id": "X", "linear_profit": 98 }, { "item_id": "Y", "linear_profit": 100 } ], "weight_pairs": [ { "item_id": "A", "weight": 105 }, { "item_id": "B", "weight": 103 }, { "item_id": "C", "weight": 102 }, { "item_id": "D", "weight": 101 }, { "item_id": "E", "weight": 103 }, { "item_id": "F", "weight": 101 }, { "item_id": "G", "weight": 103 }, { "item_id": "H", "weight": 102 }, { "item_id": "I", "weight": 102 }, { "item_id": "J", "weight": 101 }, { "item_id": "K", "weight": 105 }, { "item_id": "L", "weight": 101 }, { "item_id": "M", "weight": 102 }, { "item_id": "N", "weight": 100 }, { "item_id": "O", "weight": 100 }, { "item_id": "P", "weight": 104 }, { "item_id": "Q", "weight": 103 }, { "item_id": "R", "weight": 102 }, { "item_id": "S", "weight": 104 }, { "item_id": "T", "weight": 104 }, { "item_id": "U", "weight": 105 }, { "item_id": "V", "weight": 103 }, { "item_id": "W", "weight": 103 }, { "item_id": "X", "weight": 102 }, { "item_id": "Y", "weight": 101 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 105 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 105 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "W", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "Y", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "X", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "Y", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "U", "quadratic_profit": 104 }, { "item_i_id": "D", "item_j_id": "Y", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "Y", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "X", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "Y", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "V", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "Y", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "W", "quadratic_profit": 103 }, { "item_i_id": "H", "item_j_id": "Y", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "Y", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 104 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 104 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "W", "quadratic_profit": 104 }, { "item_i_id": "J", "item_j_id": "X", "quadratic_profit": 105 }, { "item_i_id": "J", "item_j_id": "Y", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 104 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "K", "item_j_id": "W", "quadratic_profit": 104 }, { "item_i_id": "K", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "Y", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 104 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "U", "quadratic_profit": 104 }, { "item_i_id": "L", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "Y", "quadratic_profit": 104 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 104 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "W", "quadratic_profit": 104 }, { "item_i_id": "N", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "Y", "quadratic_profit": 104 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "O", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 104 }, { "item_i_id": "O", "item_j_id": "X", "quadratic_profit": 104 }, { "item_i_id": "O", "item_j_id": "Y", "quadratic_profit": 104 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 104 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 103 }, { "item_i_id": "P", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "P", "item_j_id": "X", "quadratic_profit": 103 }, { "item_i_id": "P", "item_j_id": "Y", "quadratic_profit": 100 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "Q", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "X", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "Y", "quadratic_profit": 103 }, { "item_i_id": "R", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "R", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "R", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "R", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "R", "item_j_id": "Y", "quadratic_profit": 100 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "S", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "S", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "S", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "S", "item_j_id": "Y", "quadratic_profit": 100 } ] }, "solution_variant": [ "F", "G", "I", "J", "K", "O", "P", "Q", "R", "X" ], "context_index": 3, "input_format": "json", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Out in the studio someone’s curating a compact show and balancing fun against minutes: choose which songs to play so the entire set feels as enjoyable as possible. Each track contributes a base chunk of enjoyment, and if certain tracks are both included they add a little extra because they transition nicely. The final score is the sum of every chosen song’s enjoyment plus any of those pairwise extras, and the chosen tracks must not exceed the show’s time limit or be repeated. The exact options and timings are given below.\n\n# num_tracks=19\n# total_show_runtime=27264\n# track_ids=A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S\n\ntrack_id,track_enjoyment\nA,343\nB,4088\nC,4451\nD,6001\nE,2843\nF,1289\nG,2557\nH,6003\nI,5120\nJ,5738\nK,291\nL,3132\nM,1995\nN,1182\nO,4111\nP,1937\nQ,4340\nR,5332\nS,6481\n\ntrack_id,track_runtime\nA,527\nB,824\nC,1795\nD,3638\nE,3219\nF,849\nG,2118\nH,6403\nI,359\nJ,1064\nK,3044\nL,5163\nM,1891\nN,1616\nO,5861\nP,5328\nQ,4290\nR,5323\nS,6260\n\ntrack_i_id,track_j_id,transition_bonus\nA,B,1209\nA,C,1753\nA,D,1349\nA,E,1827\nA,F,1551\nA,G,726\nA,H,1561\nA,I,1847\nA,J,1474\nA,K,998\nA,L,1646\nA,M,1344\nA,N,999\nA,O,1640\nA,P,1617\nA,Q,2534\nA,R,3730\nA,S,2153\nB,C,2111\nB,D,1869\nB,E,2088\nB,F,1193\nB,G,2200\nB,H,1668\nB,I,1739\nB,J,1449\nB,K,1436\nB,L,1585\nB,M,1793\nB,N,1064\nB,O,2080\nB,P,5818\nB,Q,1878\nB,R,1962\nB,S,2174\nC,D,2502\nC,E,2003\nC,F,3390\nC,G,2247\nC,H,2602\nC,I,2105\nC,J,1824\nC,K,3156\nC,L,3196\nC,M,1394\nC,N,702\nC,O,2513\nC,P,4420\nC,Q,4689\nC,R,5908\nC,S,4141\nD,E,1832\nD,F,3320\nD,G,4400\nD,H,2540\nD,I,3988\nD,J,4550\nD,K,2411\nD,L,904\nD,M,4617\nD,N,4528\nD,O,4068\nD,P,2535\nD,Q,2006\nD,R,2887\nD,S,4941\nE,F,2547\nE,G,3805\nE,H,4009\nE,I,1867\nE,J,4160\nE,K,4164\nE,L,3716\nE,M,3520\nE,N,2107\nE,O,1069\nE,P,1616\nE,Q,774\nE,R,2784\nE,S,1097\nF,G,1221\nF,H,1997\nF,I,1532\nF,J,2773\nF,K,1831\nF,L,3183\nF,M,1259\nF,N,2225\nF,O,2664\nF,P,1076\nF,Q,2811\nF,R,1991\nF,S,2198\nG,H,891\nG,I,2185\nG,J,1510\nG,K,1652\nG,L,1666\nG,M,2755\nG,N,4325\nG,O,4691\nG,P,4856\nG,Q,4109\nG,R,1547\nG,S,5262\nH,I,5636\nH,J,2974\nH,K,3765\nH,L,1040\nH,M,2790\nH,N,2702\nH,O,2498\nH,P,2678\nH,Q,4007\nH,R,3556\nH,S,3424\nI,J,4633\nI,K,3623\nI,L,3688\nI,M,2540\nI,N,4838\nI,O,4745\nI,P,2658\nI,Q,1410\nI,R,1249\nI,S,2971\nJ,K,2999\nJ,L,2728\nJ,M,3999\nJ,N,2438\nJ,O,2827\nJ,P,1790\nJ,Q,800\nJ,R,2080\nJ,S,3540\nK,L,1128\nK,M,1502\nK,N,1047\nK,O,1781\nK,P,1912\nK,Q,966\nK,R,1626\nK,S,924\nL,M,2018\nL,N,3431\nL,O,3594\nL,P,4203\nL,Q,1859\nL,R,4050\nL,S,1976\nM,N,2455\nM,O,3903\nM,P,4843\nM,Q,5409\nM,R,5301\nM,S,4555\nN,O,2646\nN,P,3163\nN,Q,2677\nN,R,2998\nN,S,2000\nO,P,4130\nO,Q,4201\nO,R,4448\nO,S,4046\n\nAlso, when you hand in your final playlist, it'd be handy if you put the chosen tracks into a tiny JSON snippet so it's easy to read by whoever's cuing the set. Something like this will do:\n\n{\n \"solution\": [, , ...]\n}\n\nPretty simple: \"solution\" is the list of tracks you plan to play (in any order). Think of each array entry as the exact track identifier from the instance — that's the only thing the scheduler needs from you. This JSON is just a sketch of the shape I expect, not your actual answer.\n\nPlease make sure every identifier you use matches the instance exactly — no renaming, no made-up labels. For example:\n- \"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”.\"", "instance": { "linear_coeffs": [ 343, 4088, 4451, 6001, 2843, 1289, 2557, 6003, 5120, 5738, 291, 3132, 1995, 1182, 4111, 1937, 4340, 5332, 6481 ], "quadratic_coeffs": [ [ 1702, 1209, 1753, 1349, 1827, 1551, 726, 1561, 1847, 1474, 998, 1646, 1344, 999, 1640, 1617, 2534, 3730, 2153 ], [ 0, 1838, 2111, 1869, 2088, 1193, 2200, 1668, 1739, 1449, 1436, 1585, 1793, 1064, 2080, 5818, 1878, 1962, 2174 ], [ 0, 0, 2395, 2502, 2003, 3390, 2247, 2602, 2105, 1824, 3156, 3196, 1394, 702, 2513, 4420, 4689, 5908, 4141 ], [ 0, 0, 0, 4325, 1832, 3320, 4400, 2540, 3988, 4550, 2411, 904, 4617, 4528, 4068, 2535, 2006, 2887, 4941 ], [ 0, 0, 0, 0, 1074, 2547, 3805, 4009, 1867, 4160, 4164, 3716, 3520, 2107, 1069, 1616, 774, 2784, 1097 ], [ 0, 0, 0, 0, 0, 1360, 1221, 1997, 1532, 2773, 1831, 3183, 1259, 2225, 2664, 1076, 2811, 1991, 2198 ], [ 0, 0, 0, 0, 0, 0, 3127, 891, 2185, 1510, 1652, 1666, 2755, 4325, 4691, 4856, 4109, 1547, 5262 ], [ 0, 0, 0, 0, 0, 0, 0, 5800, 5636, 2974, 3765, 1040, 2790, 2702, 2498, 2678, 4007, 3556, 3424 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 2661, 4633, 3623, 3688, 2540, 4838, 4745, 2658, 1410, 1249, 2971 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 978, 2999, 2728, 3999, 2438, 2827, 1790, 800, 2080, 3540 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 818, 1128, 1502, 1047, 1781, 1912, 966, 1626, 924 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1361, 2018, 3431, 3594, 4203, 1859, 4050, 1976 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2416, 2455, 3903, 4843, 5409, 5301, 4555 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2249, 2646, 3163, 2677, 2998, 2000 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4837, 4130, 4201, 4448, 4046 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 527, 824, 1795, 3638, 3219, 849, 2118, 6403, 359, 1064, 3044, 5163, 1891, 1616, 5861, 5328, 4290, 5323, 6260 ], "capacity": 27264, "solution": [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 13, 18 ], "obj": 234835.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 13, 18 ], "obj": 234835.0, "instance_variant": { "problem_type": "QKP", "num_items": 19, "capacity": 27264, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 343 }, { "item_id": "B", "linear_profit": 4088 }, { "item_id": "C", "linear_profit": 4451 }, { "item_id": "D", "linear_profit": 6001 }, { "item_id": "E", "linear_profit": 2843 }, { "item_id": "F", "linear_profit": 1289 }, { "item_id": "G", "linear_profit": 2557 }, { "item_id": "H", "linear_profit": 6003 }, { "item_id": "I", "linear_profit": 5120 }, { "item_id": "J", "linear_profit": 5738 }, { "item_id": "K", "linear_profit": 291 }, { "item_id": "L", "linear_profit": 3132 }, { "item_id": "M", "linear_profit": 1995 }, { "item_id": "N", "linear_profit": 1182 }, { "item_id": "O", "linear_profit": 4111 }, { "item_id": "P", "linear_profit": 1937 }, { "item_id": "Q", "linear_profit": 4340 }, { "item_id": "R", "linear_profit": 5332 }, { "item_id": "S", "linear_profit": 6481 } ], "weight_pairs": [ { "item_id": "A", "weight": 527 }, { "item_id": "B", "weight": 824 }, { "item_id": "C", "weight": 1795 }, { "item_id": "D", "weight": 3638 }, { "item_id": "E", "weight": 3219 }, { "item_id": "F", "weight": 849 }, { "item_id": "G", "weight": 2118 }, { "item_id": "H", "weight": 6403 }, { "item_id": "I", "weight": 359 }, { "item_id": "J", "weight": 1064 }, { "item_id": "K", "weight": 3044 }, { "item_id": "L", "weight": 5163 }, { "item_id": "M", "weight": 1891 }, { "item_id": "N", "weight": 1616 }, { "item_id": "O", "weight": 5861 }, { "item_id": "P", "weight": 5328 }, { "item_id": "Q", "weight": 4290 }, { "item_id": "R", "weight": 5323 }, { "item_id": "S", "weight": 6260 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 1702 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 1209 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 1753 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 1349 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 1827 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 1551 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 726 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 1561 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 1847 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 1474 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 998 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 1646 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 1344 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 999 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 1640 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 1617 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 2534 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 3730 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 2153 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 1838 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 2111 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 1869 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 2088 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 1193 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 2200 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 1668 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 1739 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 1449 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 1436 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 1585 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 1793 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 1064 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 2080 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 5818 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 1878 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 1962 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 2174 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 2395 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 2502 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 2003 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 3390 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 2247 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 2602 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 2105 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 1824 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 3156 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 3196 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 1394 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 702 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 2513 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 4420 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 4689 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 5908 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 4141 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 4325 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 1832 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 3320 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 4400 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 2540 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 3988 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 4550 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 2411 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 904 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 4617 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 4528 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 4068 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 2535 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 2006 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 2887 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 4941 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 1074 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 2547 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 3805 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 4009 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 1867 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 4160 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 4164 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 3716 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 3520 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 2107 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 1069 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 1616 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 774 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 2784 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 1097 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 1360 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 1221 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 1997 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 1532 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 2773 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 1831 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 3183 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 1259 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 2225 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 2664 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 1076 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 2811 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 1991 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 2198 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 3127 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 891 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 2185 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 1510 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 1652 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 1666 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 2755 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 4325 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 4691 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 4856 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 4109 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 1547 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 5262 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 5800 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 5636 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 2974 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 3765 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 1040 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 2790 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 2702 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 2498 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 2678 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 4007 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 3556 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 3424 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 2661 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 4633 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 3623 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 3688 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 2540 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 4838 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 4745 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 2658 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 1410 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 1249 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 2971 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 978 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 2999 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 2728 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 3999 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 2438 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 2827 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 1790 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 800 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 2080 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 3540 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 818 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 1128 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 1502 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 1047 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 1781 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 1912 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 966 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 1626 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 924 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 1361 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 2018 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 3431 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 3594 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 4203 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 1859 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 4050 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 1976 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 2416 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 2455 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 3903 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 4843 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 5409 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 5301 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 4555 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 2249 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 2646 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 3163 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 2677 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 2998 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 2000 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 4837 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 4130 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 4201 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 4448 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 4046 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "G", "I", "J", "K", "M", "N", "S" ], "context_index": 4, "input_format": "csv", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Recently a photographer had to trim a massive gear list into one bag for a fast-paced shoot, and the goal was clear: keep things light but versatile. Every lens or accessory adds a basic usefulness score, and some pairings add extra usefulness when both are included, so the final usefulness is calculated by adding each chosen item’s base score and then tacking on any pair bonuses. Weight is the limiter — the bag has a cap — and each item is either taken or not, no duplicates. The exact items, weights, and bonus pairings appear below.\n\nThere are 17 distinct lenses and accessories listed as A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, and the bag's weight capacity is 61323.\nItem A provides a base usefulness score of 526.\nItem B provides a base usefulness score of 1890.\nItem C provides a base usefulness score of 3034.\nItem D provides a base usefulness score of 3869.\nItem E provides a base usefulness score of 5107.\nItem F provides a base usefulness score of 1329.\nItem G provides a base usefulness score of 5553.\nItem H provides a base usefulness score of 474.\nItem I provides a base usefulness score of 5563.\nItem J provides a base usefulness score of 2358.\nItem K provides a base usefulness score of 4160.\nItem L provides a base usefulness score of 5634.\nItem M provides a base usefulness score of 3908.\nItem N provides a base usefulness score of 5834.\nItem O provides a base usefulness score of 2557.\nItem P provides a base usefulness score of 315.\nItem Q provides a base usefulness score of 1737.\nItem A has a weight of 2959.\nItem B has a weight of 5270.\nItem C has a weight of 721.\nItem D has a weight of 5818.\nItem E has a weight of 1018.\nItem F has a weight of 4853.\nItem G has a weight of 4286.\nItem H has a weight of 3635.\nItem I has a weight of 4189.\nItem J has a weight of 755.\nItem K has a weight of 778.\nItem L has a weight of 5660.\nItem M has a weight of 5795.\nItem N has a weight of 3329.\nItem O has a weight of 5435.\nItem P has a weight of 4794.\nItem Q has a weight of 2056.\nIf both A and E are packed, they add an extra usefulness of 2959.\nIf both A and G are packed, they add an extra usefulness of 1050.\nIf both A and L are packed, they add an extra usefulness of 707.\nIf both B and E are packed, they add an extra usefulness of 1691.\nIf both B and F are packed, they add an extra usefulness of 5038.\nIf both B and G are packed, they add an extra usefulness of 4534.\nIf both B and K are packed, they add an extra usefulness of 5270.\nIf both C and D are packed, they add an extra usefulness of 721.\nIf both C and F are packed, they add an extra usefulness of 721.\nIf both C and M are packed, they add an extra usefulness of 721.\nIf both C and N are packed, they add an extra usefulness of 3504.\nIf both D and G are packed, they add an extra usefulness of 3745.\nIf both D and J are packed, they add an extra usefulness of 853.\nIf both D and Q are packed, they add an extra usefulness of 2463.\nIf both E and F are packed, they add an extra usefulness of 1018.\nIf both E and G are packed, they add an extra usefulness of 1018.\nIf both E and J are packed, they add an extra usefulness of 1340.\nIf both E and L are packed, they add an extra usefulness of 1050.\nIf both E and M are packed, they add an extra usefulness of 4853.\nIf both E and O are packed, they add an extra usefulness of 4853.\nIf both E and Q are packed, they add an extra usefulness of 463.\nIf both F and H are packed, they add an extra usefulness of 281.\nIf both F and K are packed, they add an extra usefulness of 2002.\nIf both F and M are packed, they add an extra usefulness of 437.\nIf both F and O are packed, they add an extra usefulness of 3401.\nIf both F and P are packed, they add an extra usefulness of 2875.\nIf both F and Q are packed, they add an extra usefulness of 4435.\nIf both G and O are packed, they add an extra usefulness of 4435.\nIf both H and O are packed, they add an extra usefulness of 540.\nIf both H and Q are packed, they add an extra usefulness of 2169.\nIf both I and J are packed, they add an extra usefulness of 3147.\nIf both I and K are packed, they add an extra usefulness of 2732.\nIf both I and Q are packed, they add an extra usefulness of 334.\nIf both J and K are packed, they add an extra usefulness of 778.\nIf both J and L are packed, they add an extra usefulness of 2761.\nIf both K and M are packed, they add an extra usefulness of 404.\nIf both K and N are packed, they add an extra usefulness of 404.\nIf both K and Q are packed, they add an extra usefulness of 404.\nIf both M and Q are packed, they add an extra usefulness of 367.\nSelections must stay within the 61323 limit to maximize overall usefulness across the 17 candidates.\n\nYou can just reply with the chosen gear in a tiny JSON snippet like this — handy and simple.\n\n{\n \"solution\": [, , ...]\n}\n\nThink of \"solution\" as the list of items you're packing for the shoot; each is a placeholder for one exact item identifier from the problem instance. This JSON is just a sketch of the shape I want, not the actual selection.\n\nPlease use the identifiers exactly as they appear in the instance input — no renaming and no new labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 526, 1890, 3034, 3869, 5107, 1329, 5553, 474, 5563, 2358, 4160, 5634, 3908, 5834, 2557, 315, 1737 ], "quadratic_coeffs": [ [ 0, 0, 0, 0, 2959, 0, 1050, 0, 0, 0, 0, 707, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 1691, 5038, 4534, 0, 0, 0, 5270, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 721, 721, 0, 721, 0, 0, 0, 0, 0, 0, 721, 3504, 0, 0, 0 ], [ 0, 0, 0, 2531, 0, 0, 3745, 0, 0, 853, 0, 0, 0, 0, 0, 0, 2463 ], [ 0, 0, 0, 0, 0, 1018, 1018, 0, 0, 1340, 0, 1050, 4853, 0, 4853, 0, 463 ], [ 0, 0, 0, 0, 0, 4143, 0, 281, 0, 0, 2002, 0, 437, 0, 3401, 2875, 4435 ], [ 0, 0, 0, 0, 0, 0, 2590, 0, 0, 0, 0, 0, 0, 0, 4435, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 540, 0, 2169 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3147, 2732, 0, 0, 0, 0, 0, 334 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 778, 2761, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 404, 404, 0, 0, 404 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4511, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 367 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 281, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 2959, 5270, 721, 5818, 1018, 4853, 4286, 3635, 4189, 755, 778, 5660, 5795, 3329, 5435, 4794, 2056 ], "capacity": 61323, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16 ], "obj": 131136.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 16 ], "obj": 131136.0, "instance_variant": { "problem_type": "QKP", "num_items": 17, "capacity": 61323, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 526 }, { "item_id": "B", "linear_profit": 1890 }, { "item_id": "C", "linear_profit": 3034 }, { "item_id": "D", "linear_profit": 3869 }, { "item_id": "E", "linear_profit": 5107 }, { "item_id": "F", "linear_profit": 1329 }, { "item_id": "G", "linear_profit": 5553 }, { "item_id": "H", "linear_profit": 474 }, { "item_id": "I", "linear_profit": 5563 }, { "item_id": "J", "linear_profit": 2358 }, { "item_id": "K", "linear_profit": 4160 }, { "item_id": "L", "linear_profit": 5634 }, { "item_id": "M", "linear_profit": 3908 }, { "item_id": "N", "linear_profit": 5834 }, { "item_id": "O", "linear_profit": 2557 }, { "item_id": "P", "linear_profit": 315 }, { "item_id": "Q", "linear_profit": 1737 } ], "weight_pairs": [ { "item_id": "A", "weight": 2959 }, { "item_id": "B", "weight": 5270 }, { "item_id": "C", "weight": 721 }, { "item_id": "D", "weight": 5818 }, { "item_id": "E", "weight": 1018 }, { "item_id": "F", "weight": 4853 }, { "item_id": "G", "weight": 4286 }, { "item_id": "H", "weight": 3635 }, { "item_id": "I", "weight": 4189 }, { "item_id": "J", "weight": 755 }, { "item_id": "K", "weight": 778 }, { "item_id": "L", "weight": 5660 }, { "item_id": "M", "weight": 5795 }, { "item_id": "N", "weight": 3329 }, { "item_id": "O", "weight": 5435 }, { "item_id": "P", "weight": 4794 }, { "item_id": "Q", "weight": 2056 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 2959 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 1050 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 707 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 1691 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 5038 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 4534 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 5270 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 721 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 721 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 721 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 721 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 3504 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 2531 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 3745 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 853 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 2463 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 1018 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 1018 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 1340 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 1050 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 4853 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 4853 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 463 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 4143 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 281 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 2002 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 437 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 3401 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 2875 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 4435 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 2590 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 4435 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 540 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 2169 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 3147 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 2732 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 334 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 778 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 2761 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 404 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 404 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 404 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 4511 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 367 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 281 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "Q" ], "context_index": 5, "input_format": "nl", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "I inherited a small raised bed and now have to pick which plants to put in it. Each plant takes up a bit of root space, and every choice brings a base harvest of veggies or flowers. Some combinations give a little extra — certain pairs are better buddies and boost each other’s output when they’re both planted. The trick is to choose a group of different plants whose total root space fits inside the bed, and whose overall harvest (each plant’s own yield plus any pairwise boosts) is as big as possible. The exact plant sizes, base yields and companion boosts are shown below.\n\n{\n \"plant_count\": 16,\n \"root_space_capacity\": 3459,\n \"plant_ids\": [\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15\n ],\n \"linear\": [\n {\n \"plant_id\": 0,\n \"base_yield\": 292\n },\n {\n \"plant_id\": 1,\n \"base_yield\": 154\n },\n {\n \"plant_id\": 2,\n \"base_yield\": 166\n },\n {\n \"plant_id\": 3,\n \"base_yield\": 240\n },\n {\n \"plant_id\": 4,\n \"base_yield\": 202\n },\n {\n \"plant_id\": 5,\n \"base_yield\": 144\n },\n {\n \"plant_id\": 6,\n \"base_yield\": 109\n },\n {\n \"plant_id\": 7,\n \"base_yield\": 219\n },\n {\n \"plant_id\": 8,\n \"base_yield\": 213\n },\n {\n \"plant_id\": 9,\n \"base_yield\": 116\n },\n {\n \"plant_id\": 10,\n \"base_yield\": 299\n },\n {\n \"plant_id\": 11,\n \"base_yield\": 126\n },\n {\n \"plant_id\": 12,\n \"base_yield\": 253\n },\n {\n \"plant_id\": 13,\n \"base_yield\": 164\n },\n {\n \"plant_id\": 14,\n \"base_yield\": 226\n },\n {\n \"plant_id\": 15,\n \"base_yield\": 151\n }\n ],\n \"weights\": [\n {\n \"plant_id\": 0,\n \"root_space\": 175\n },\n {\n \"plant_id\": 1,\n \"root_space\": 220\n },\n {\n \"plant_id\": 2,\n \"root_space\": 241\n },\n {\n \"plant_id\": 3,\n \"root_space\": 291\n },\n {\n \"plant_id\": 4,\n \"root_space\": 204\n },\n {\n \"plant_id\": 5,\n \"root_space\": 112\n },\n {\n \"plant_id\": 6,\n \"root_space\": 247\n },\n {\n \"plant_id\": 7,\n \"root_space\": 242\n },\n {\n \"plant_id\": 8,\n \"root_space\": 205\n },\n {\n \"plant_id\": 9,\n \"root_space\": 257\n },\n {\n \"plant_id\": 10,\n \"root_space\": 240\n },\n {\n \"plant_id\": 11,\n \"root_space\": 241\n },\n {\n \"plant_id\": 12,\n \"root_space\": 278\n },\n {\n \"plant_id\": 13,\n \"root_space\": 104\n },\n {\n \"plant_id\": 14,\n \"root_space\": 280\n },\n {\n \"plant_id\": 15,\n \"root_space\": 233\n }\n ],\n \"quadratic\": [\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 1,\n \"companion_bonus\": 229\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 2,\n \"companion_bonus\": 278\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 3,\n \"companion_bonus\": 125\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 4,\n \"companion_bonus\": 147\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 5,\n \"companion_bonus\": 196\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 6,\n \"companion_bonus\": 222\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 7,\n \"companion_bonus\": 198\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 8,\n \"companion_bonus\": 282\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 9,\n \"companion_bonus\": 197\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 10,\n \"companion_bonus\": 123\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 11,\n \"companion_bonus\": 145\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 12,\n \"companion_bonus\": 255\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 13,\n \"companion_bonus\": 137\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 14,\n \"companion_bonus\": 107\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 15,\n \"companion_bonus\": 177\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 2,\n \"companion_bonus\": 247\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 3,\n \"companion_bonus\": 195\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 4,\n \"companion_bonus\": 175\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 5,\n \"companion_bonus\": 130\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 6,\n \"companion_bonus\": 172\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 7,\n \"companion_bonus\": 294\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 8,\n \"companion_bonus\": 227\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 9,\n \"companion_bonus\": 139\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 10,\n \"companion_bonus\": 130\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 11,\n \"companion_bonus\": 238\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 12,\n \"companion_bonus\": 249\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 13,\n \"companion_bonus\": 178\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 14,\n \"companion_bonus\": 252\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 15,\n \"companion_bonus\": 231\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 3,\n \"companion_bonus\": 214\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 4,\n \"companion_bonus\": 286\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 5,\n \"companion_bonus\": 211\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 6,\n \"companion_bonus\": 278\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 7,\n \"companion_bonus\": 212\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 8,\n \"companion_bonus\": 263\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 9,\n \"companion_bonus\": 156\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 10,\n \"companion_bonus\": 119\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 11,\n \"companion_bonus\": 297\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 12,\n \"companion_bonus\": 254\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 13,\n \"companion_bonus\": 234\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 14,\n \"companion_bonus\": 275\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 15,\n \"companion_bonus\": 207\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 4,\n \"companion_bonus\": 278\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 5,\n \"companion_bonus\": 150\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 6,\n \"companion_bonus\": 174\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 7,\n \"companion_bonus\": 126\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 8,\n \"companion_bonus\": 289\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 9,\n \"companion_bonus\": 246\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 10,\n \"companion_bonus\": 161\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 11,\n \"companion_bonus\": 222\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 12,\n \"companion_bonus\": 170\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 13,\n \"companion_bonus\": 101\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 14,\n \"companion_bonus\": 203\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 15,\n \"companion_bonus\": 170\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 5,\n \"companion_bonus\": 135\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 6,\n \"companion_bonus\": 173\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 7,\n \"companion_bonus\": 189\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 8,\n \"companion_bonus\": 103\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 9,\n \"companion_bonus\": 229\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 10,\n \"companion_bonus\": 209\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 11,\n \"companion_bonus\": 181\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 12,\n \"companion_bonus\": 140\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 13,\n \"companion_bonus\": 148\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 14,\n \"companion_bonus\": 220\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 15,\n \"companion_bonus\": 245\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 6,\n \"companion_bonus\": 191\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 7,\n \"companion_bonus\": 263\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 8,\n \"companion_bonus\": 104\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 9,\n \"companion_bonus\": 256\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 10,\n \"companion_bonus\": 198\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 11,\n \"companion_bonus\": 251\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 12,\n \"companion_bonus\": 122\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 13,\n \"companion_bonus\": 295\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 14,\n \"companion_bonus\": 290\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 15,\n \"companion_bonus\": 249\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 7,\n \"companion_bonus\": 228\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 8,\n \"companion_bonus\": 197\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 9,\n \"companion_bonus\": 132\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 10,\n \"companion_bonus\": 264\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 11,\n \"companion_bonus\": 291\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 12,\n \"companion_bonus\": 165\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 13,\n \"companion_bonus\": 127\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 14,\n \"companion_bonus\": 190\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 15,\n \"companion_bonus\": 126\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 8,\n \"companion_bonus\": 264\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 9,\n \"companion_bonus\": 146\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 10,\n \"companion_bonus\": 270\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 11,\n \"companion_bonus\": 201\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 12,\n \"companion_bonus\": 225\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 13,\n \"companion_bonus\": 114\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 14,\n \"companion_bonus\": 136\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 15,\n \"companion_bonus\": 139\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 9,\n \"companion_bonus\": 123\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 10,\n \"companion_bonus\": 198\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 11,\n \"companion_bonus\": 189\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 12,\n \"companion_bonus\": 242\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 13,\n \"companion_bonus\": 222\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 14,\n \"companion_bonus\": 151\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 15,\n \"companion_bonus\": 143\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 10,\n \"companion_bonus\": 247\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 11,\n \"companion_bonus\": 258\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 12,\n \"companion_bonus\": 298\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 13,\n \"companion_bonus\": 154\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 14,\n \"companion_bonus\": 142\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 15,\n \"companion_bonus\": 215\n },\n {\n \"plant_i_id\": 10,\n \"plant_j_id\": 11,\n \"companion_bonus\": 185\n },\n {\n \"plant_i_id\": 10,\n \"plant_j_id\": 12,\n \"companion_bonus\": 251\n },\n {\n \"plant_i_id\": 10,\n \"plant_j_id\": 13,\n \"companion_bonus\": 203\n },\n {\n \"plant_i_id\": 10,\n \"plant_j_id\": 14,\n \"companion_bonus\": 114\n },\n {\n \"plant_i_id\": 10,\n \"plant_j_id\": 15,\n \"companion_bonus\": 126\n },\n {\n \"plant_i_id\": 11,\n \"plant_j_id\": 12,\n \"companion_bonus\": 118\n },\n {\n \"plant_i_id\": 11,\n \"plant_j_id\": 13,\n \"companion_bonus\": 218\n },\n {\n \"plant_i_id\": 11,\n \"plant_j_id\": 14,\n \"companion_bonus\": 219\n },\n {\n \"plant_i_id\": 11,\n \"plant_j_id\": 15,\n \"companion_bonus\": 273\n },\n {\n \"plant_i_id\": 12,\n \"plant_j_id\": 13,\n \"companion_bonus\": 273\n },\n {\n \"plant_i_id\": 12,\n \"plant_j_id\": 14,\n \"companion_bonus\": 272\n },\n {\n \"plant_i_id\": 12,\n \"plant_j_id\": 15,\n \"companion_bonus\": 268\n },\n {\n \"plant_i_id\": 13,\n \"plant_j_id\": 14,\n \"companion_bonus\": 205\n },\n {\n \"plant_i_id\": 13,\n \"plant_j_id\": 15,\n \"companion_bonus\": 241\n },\n {\n \"plant_i_id\": 14,\n \"plant_j_id\": 15,\n \"companion_bonus\": 118\n }\n ]\n}\n\nOh, and when you're ready to tell me which plants to plant, just pop your pick into this tiny JSON layout so it's straightforward to read:\n\n{\n \"solution\": [, , ...]\n}\n\nPretty simple: \"solution\" is just a list of the plant IDs you want in the bed. Think of it like a short shopping list — put each plant's identifier in the array, nothing else. This JSON is just a sketch of the shape I expect, not the actual answer itself.\n\nPlease make sure to use the 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”.\"", "instance": { "linear_coeffs": [ 292, 154, 166, 240, 202, 144, 109, 219, 213, 116, 299, 126, 253, 164, 226, 151 ], "quadratic_coeffs": [ [ 226, 229, 278, 125, 147, 196, 222, 198, 282, 197, 123, 145, 255, 137, 107, 177 ], [ 0, 273, 247, 195, 175, 130, 172, 294, 227, 139, 130, 238, 249, 178, 252, 231 ], [ 0, 0, 190, 214, 286, 211, 278, 212, 263, 156, 119, 297, 254, 234, 275, 207 ], [ 0, 0, 0, 255, 278, 150, 174, 126, 289, 246, 161, 222, 170, 101, 203, 170 ], [ 0, 0, 0, 0, 288, 135, 173, 189, 103, 229, 209, 181, 140, 148, 220, 245 ], [ 0, 0, 0, 0, 0, 261, 191, 263, 104, 256, 198, 251, 122, 295, 290, 249 ], [ 0, 0, 0, 0, 0, 0, 222, 228, 197, 132, 264, 291, 165, 127, 190, 126 ], [ 0, 0, 0, 0, 0, 0, 0, 176, 264, 146, 270, 201, 225, 114, 136, 139 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 212, 123, 198, 189, 242, 222, 151, 143 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 133, 247, 258, 298, 154, 142, 215 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 185, 251, 203, 114, 126 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 118, 218, 219, 273 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 264, 273, 272, 268 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 198, 205, 241 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 118 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 175, 220, 241, 291, 204, 112, 247, 242, 205, 257, 240, 241, 278, 104, 280, 233 ], "capacity": 3459, "solution": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "obj": 24078.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "obj": 24078.0, "instance_variant": { "problem_type": "QKP", "num_items": 16, "capacity": 3459, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 292 }, { "item_id": 1, "linear_profit": 154 }, { "item_id": 2, "linear_profit": 166 }, { "item_id": 3, "linear_profit": 240 }, { "item_id": 4, "linear_profit": 202 }, { "item_id": 5, "linear_profit": 144 }, { "item_id": 6, "linear_profit": 109 }, { "item_id": 7, "linear_profit": 219 }, { "item_id": 8, "linear_profit": 213 }, { "item_id": 9, "linear_profit": 116 }, { "item_id": 10, "linear_profit": 299 }, { "item_id": 11, "linear_profit": 126 }, { "item_id": 12, "linear_profit": 253 }, { "item_id": 13, "linear_profit": 164 }, { "item_id": 14, "linear_profit": 226 }, { "item_id": 15, "linear_profit": 151 } ], "weight_pairs": [ { "item_id": 0, "weight": 175 }, { "item_id": 1, "weight": 220 }, { "item_id": 2, "weight": 241 }, { "item_id": 3, "weight": 291 }, { "item_id": 4, "weight": 204 }, { "item_id": 5, "weight": 112 }, { "item_id": 6, "weight": 247 }, { "item_id": 7, "weight": 242 }, { "item_id": 8, "weight": 205 }, { "item_id": 9, "weight": 257 }, { "item_id": 10, "weight": 240 }, { "item_id": 11, "weight": 241 }, { "item_id": 12, "weight": 278 }, { "item_id": 13, "weight": 104 }, { "item_id": 14, "weight": 280 }, { "item_id": 15, "weight": 233 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 226 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 229 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 278 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 125 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 147 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 196 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 222 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 198 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 282 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 197 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 123 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 145 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 255 }, { "item_i_id": 0, "item_j_id": 13, "quadratic_profit": 137 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 107 }, { "item_i_id": 0, "item_j_id": 15, "quadratic_profit": 177 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 273 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 247 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 195 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 175 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 130 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 172 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 294 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 227 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 139 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 130 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 238 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 249 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 178 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 252 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 231 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 190 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 214 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 286 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 211 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 278 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 212 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 263 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 156 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 119 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 297 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 254 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 234 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 275 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 207 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 255 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 278 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 150 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 174 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 126 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 289 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 246 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 161 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 222 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 170 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 203 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 170 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 288 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 135 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 173 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 189 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 229 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 209 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 181 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 140 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 148 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 220 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 245 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 261 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 191 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 263 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 256 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 198 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 251 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 122 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 295 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 290 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 249 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 222 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 228 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 197 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 132 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 264 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 291 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 165 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 127 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 190 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 126 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 176 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 264 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 146 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 270 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 201 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 225 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 114 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 136 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 139 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 212 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 123 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 198 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 189 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 242 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 222 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 151 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 143 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 133 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 247 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 258 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 298 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 154 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 142 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 215 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 131 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 185 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 251 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 203 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 114 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 126 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 157 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 118 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 218 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 219 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 273 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 264 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 273 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 272 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 268 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 198 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 205 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 241 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 134 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 118 } ] }, "solution_variant": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "context_index": 6, "input_format": "json", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Recently the team had to prioritize features for a tight release, and the conversation boiled down to picking a set that actually fits the sprint. Each feature takes a chunk of time and delivers a baseline user value; on top of that, certain feature pairs multiply the perceived value when they’re both delivered. The trick is to assemble features so the total time stays inside the sprint budget and the total user value equals the sum of chosen features’ base values plus any extra pair bonuses for combinations. Nothing can be split or chosen twice, and the precise numbers are shown below.\n\n{\n \"num_features\": 18,\n \"sprint_effort_budget\": 2297,\n \"feature_ids\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"E\",\n \"F\",\n \"G\",\n \"H\",\n \"I\",\n \"J\",\n \"K\",\n \"L\",\n \"M\",\n \"N\",\n \"O\",\n \"P\",\n \"Q\",\n \"R\"\n ],\n \"linear\": [\n {\n \"feature_id\": \"A\",\n \"base_user_value\": 412\n },\n {\n \"feature_id\": \"B\",\n \"base_user_value\": 431\n },\n {\n \"feature_id\": \"C\",\n \"base_user_value\": 580\n },\n {\n \"feature_id\": \"D\",\n \"base_user_value\": 900\n },\n {\n \"feature_id\": \"E\",\n \"base_user_value\": 492\n },\n {\n \"feature_id\": \"F\",\n \"base_user_value\": 852\n },\n {\n \"feature_id\": \"G\",\n \"base_user_value\": 902\n },\n {\n \"feature_id\": \"H\",\n \"base_user_value\": 537\n },\n {\n \"feature_id\": \"I\",\n \"base_user_value\": 739\n },\n {\n \"feature_id\": \"J\",\n \"base_user_value\": 558\n },\n {\n \"feature_id\": \"K\",\n \"base_user_value\": 356\n },\n {\n \"feature_id\": \"L\",\n \"base_user_value\": 219\n },\n {\n \"feature_id\": \"M\",\n \"base_user_value\": 780\n },\n {\n \"feature_id\": \"N\",\n \"base_user_value\": 146\n },\n {\n \"feature_id\": \"O\",\n \"base_user_value\": 634\n },\n {\n \"feature_id\": \"P\",\n \"base_user_value\": 262\n },\n {\n \"feature_id\": \"Q\",\n \"base_user_value\": 826\n },\n {\n \"feature_id\": \"R\",\n \"base_user_value\": 632\n }\n ],\n \"weights\": [\n {\n \"feature_id\": \"A\",\n \"development_effort\": 415\n },\n {\n \"feature_id\": \"B\",\n \"development_effort\": 397\n },\n {\n \"feature_id\": \"C\",\n \"development_effort\": 590\n },\n {\n \"feature_id\": \"D\",\n \"development_effort\": 887\n },\n {\n \"feature_id\": \"E\",\n \"development_effort\": 455\n },\n {\n \"feature_id\": \"F\",\n \"development_effort\": 837\n },\n {\n \"feature_id\": \"G\",\n \"development_effort\": 899\n },\n {\n \"feature_id\": \"H\",\n \"development_effort\": 575\n },\n {\n \"feature_id\": \"I\",\n \"development_effort\": 726\n },\n {\n \"feature_id\": \"J\",\n \"development_effort\": 555\n },\n {\n \"feature_id\": \"K\",\n \"development_effort\": 359\n },\n {\n \"feature_id\": \"L\",\n \"development_effort\": 255\n },\n {\n \"feature_id\": \"M\",\n \"development_effort\": 774\n },\n {\n \"feature_id\": \"N\",\n \"development_effort\": 118\n },\n {\n \"feature_id\": \"O\",\n \"development_effort\": 661\n },\n {\n \"feature_id\": \"P\",\n \"development_effort\": 304\n },\n {\n \"feature_id\": \"Q\",\n \"development_effort\": 853\n },\n {\n \"feature_id\": \"R\",\n \"development_effort\": 671\n }\n ],\n \"quadratic\": [\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"B\",\n \"interaction_value\": 605\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"C\",\n \"interaction_value\": 553\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"D\",\n \"interaction_value\": 559\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"E\",\n \"interaction_value\": 255\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"F\",\n \"interaction_value\": 275\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"G\",\n \"interaction_value\": 463\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"H\",\n \"interaction_value\": 448\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"I\",\n \"interaction_value\": 425\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"J\",\n \"interaction_value\": 401\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 603\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 604\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 269\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 594\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 307\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 503\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 433\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 438\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"C\",\n \"interaction_value\": 355\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"D\",\n \"interaction_value\": 415\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"E\",\n \"interaction_value\": 269\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"F\",\n \"interaction_value\": 477\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"G\",\n \"interaction_value\": 489\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"H\",\n \"interaction_value\": 321\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"I\",\n \"interaction_value\": 469\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"J\",\n \"interaction_value\": 253\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 591\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 504\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 381\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 492\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 347\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 477\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 537\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 453\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"D\",\n \"interaction_value\": 681\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"E\",\n \"interaction_value\": 572\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"F\",\n \"interaction_value\": 640\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"G\",\n \"interaction_value\": 453\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"H\",\n \"interaction_value\": 684\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"I\",\n \"interaction_value\": 400\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"J\",\n \"interaction_value\": 268\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 387\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 553\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 301\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 718\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 710\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 453\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 458\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 657\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"E\",\n \"interaction_value\": 770\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"F\",\n \"interaction_value\": 330\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"G\",\n \"interaction_value\": 839\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"H\",\n \"interaction_value\": 300\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"I\",\n \"interaction_value\": 836\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"J\",\n \"interaction_value\": 376\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 330\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 537\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 339\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 686\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 794\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 755\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 382\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 619\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"F\",\n \"interaction_value\": 264\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"G\",\n \"interaction_value\": 516\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"H\",\n \"interaction_value\": 567\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"I\",\n \"interaction_value\": 548\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"J\",\n \"interaction_value\": 371\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 605\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 469\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 328\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 230\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 330\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 352\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 344\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 339\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"G\",\n \"interaction_value\": 436\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"H\",\n \"interaction_value\": 399\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"I\",\n \"interaction_value\": 701\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"J\",\n \"interaction_value\": 445\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 637\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 597\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 248\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 218\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 283\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 395\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 158\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 215\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"H\",\n \"interaction_value\": 741\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"I\",\n \"interaction_value\": 541\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"J\",\n \"interaction_value\": 788\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 537\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 449\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 558\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 289\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 670\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 617\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 495\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 452\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"I\",\n \"interaction_value\": 369\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"J\",\n \"interaction_value\": 273\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 656\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 319\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 301\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 411\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 524\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 659\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 657\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 568\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"J\",\n \"interaction_value\": 787\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 348\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 371\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 285\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 490\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 606\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 581\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 319\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 506\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"K\",\n \"interaction_value\": 589\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 212\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 381\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 435\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 378\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 231\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 559\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 247\n },\n {\n \"feature_i_id\": \"K\",\n \"feature_j_id\": \"L\",\n \"interaction_value\": 535\n },\n {\n \"feature_i_id\": \"K\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 337\n },\n {\n \"feature_i_id\": \"K\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 683\n },\n {\n \"feature_i_id\": \"K\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 790\n },\n {\n \"feature_i_id\": \"K\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 751\n },\n {\n \"feature_i_id\": \"K\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 561\n },\n {\n \"feature_i_id\": \"K\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 512\n },\n {\n \"feature_i_id\": \"L\",\n \"feature_j_id\": \"M\",\n \"interaction_value\": 684\n },\n {\n \"feature_i_id\": \"L\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 585\n },\n {\n \"feature_i_id\": \"L\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 416\n },\n {\n \"feature_i_id\": \"L\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 383\n },\n {\n \"feature_i_id\": \"L\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 325\n },\n {\n \"feature_i_id\": \"L\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 362\n },\n {\n \"feature_i_id\": \"M\",\n \"feature_j_id\": \"N\",\n \"interaction_value\": 291\n },\n {\n \"feature_i_id\": \"M\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 779\n },\n {\n \"feature_i_id\": \"M\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 647\n },\n {\n \"feature_i_id\": \"M\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 770\n },\n {\n \"feature_i_id\": \"M\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 487\n },\n {\n \"feature_i_id\": \"N\",\n \"feature_j_id\": \"O\",\n \"interaction_value\": 608\n },\n {\n \"feature_i_id\": \"N\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 267\n },\n {\n \"feature_i_id\": \"N\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 608\n },\n {\n \"feature_i_id\": \"N\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 421\n },\n {\n \"feature_i_id\": \"O\",\n \"feature_j_id\": \"P\",\n \"interaction_value\": 173\n },\n {\n \"feature_i_id\": \"O\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 402\n },\n {\n \"feature_i_id\": \"O\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 392\n },\n {\n \"feature_i_id\": \"P\",\n \"feature_j_id\": \"Q\",\n \"interaction_value\": 299\n },\n {\n \"feature_i_id\": \"P\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 212\n },\n {\n \"feature_i_id\": \"Q\",\n \"feature_j_id\": \"R\",\n \"interaction_value\": 330\n }\n ]\n}\n\nOh, and when you send back the chosen set, a tiny JSON snippet like this works great:\n\n{\n \"solution\": [, , ...]\n}\n\nThink of \"solution\" as just a list of the features you want in the sprint — put each feature's identifier in that array, that's all. This JSON is just the shape I expect, not the final picks.\n\nPlease 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”.\"", "instance": { "linear_coeffs": [ 412, 431, 580, 900, 492, 852, 902, 537, 739, 558, 356, 219, 780, 146, 634, 262, 826, 632 ], "quadratic_coeffs": [ [ 543, 605, 553, 559, 255, 275, 463, 448, 425, 401, 603, 604, 269, 594, 307, 503, 433, 438 ], [ 0, 337, 355, 415, 269, 477, 489, 321, 469, 253, 591, 504, 381, 492, 347, 477, 537, 453 ], [ 0, 0, 694, 681, 572, 640, 453, 684, 400, 268, 387, 553, 301, 718, 710, 453, 458, 657 ], [ 0, 0, 0, 482, 770, 330, 839, 300, 836, 376, 330, 537, 339, 686, 794, 755, 382, 619 ], [ 0, 0, 0, 0, 518, 264, 516, 567, 548, 371, 605, 469, 328, 230, 330, 352, 344, 339 ], [ 0, 0, 0, 0, 0, 820, 436, 399, 701, 445, 637, 597, 248, 218, 283, 395, 158, 215 ], [ 0, 0, 0, 0, 0, 0, 727, 741, 541, 788, 537, 449, 558, 289, 670, 617, 495, 452 ], [ 0, 0, 0, 0, 0, 0, 0, 466, 369, 273, 656, 319, 301, 411, 524, 659, 657, 568 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 450, 787, 348, 371, 285, 490, 606, 581, 319, 506 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 440, 589, 212, 381, 435, 378, 231, 559, 247 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 535, 337, 683, 790, 751, 561, 512 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 867, 684, 585, 416, 383, 325, 362 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 266, 291, 779, 647, 770, 487 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 517, 608, 267, 608, 421 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 393, 173, 402, 392 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 232, 299, 212 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 546, 330 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 415, 397, 590, 887, 455, 837, 899, 575, 726, 555, 359, 255, 774, 118, 661, 304, 853, 671 ], "capacity": 2297, "solution": [ 0, 1, 2, 10, 11, 13 ], "obj": 10506.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 10, 11, 13 ], "obj": 10506.0, "instance_variant": { "problem_type": "QKP", "num_items": 18, "capacity": 2297, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 412 }, { "item_id": "B", "linear_profit": 431 }, { "item_id": "C", "linear_profit": 580 }, { "item_id": "D", "linear_profit": 900 }, { "item_id": "E", "linear_profit": 492 }, { "item_id": "F", "linear_profit": 852 }, { "item_id": "G", "linear_profit": 902 }, { "item_id": "H", "linear_profit": 537 }, { "item_id": "I", "linear_profit": 739 }, { "item_id": "J", "linear_profit": 558 }, { "item_id": "K", "linear_profit": 356 }, { "item_id": "L", "linear_profit": 219 }, { "item_id": "M", "linear_profit": 780 }, { "item_id": "N", "linear_profit": 146 }, { "item_id": "O", "linear_profit": 634 }, { "item_id": "P", "linear_profit": 262 }, { "item_id": "Q", "linear_profit": 826 }, { "item_id": "R", "linear_profit": 632 } ], "weight_pairs": [ { "item_id": "A", "weight": 415 }, { "item_id": "B", "weight": 397 }, { "item_id": "C", "weight": 590 }, { "item_id": "D", "weight": 887 }, { "item_id": "E", "weight": 455 }, { "item_id": "F", "weight": 837 }, { "item_id": "G", "weight": 899 }, { "item_id": "H", "weight": 575 }, { "item_id": "I", "weight": 726 }, { "item_id": "J", "weight": 555 }, { "item_id": "K", "weight": 359 }, { "item_id": "L", "weight": 255 }, { "item_id": "M", "weight": 774 }, { "item_id": "N", "weight": 118 }, { "item_id": "O", "weight": 661 }, { "item_id": "P", "weight": 304 }, { "item_id": "Q", "weight": 853 }, { "item_id": "R", "weight": 671 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 543 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 605 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 553 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 559 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 255 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 275 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 463 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 448 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 425 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 401 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 603 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 604 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 269 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 594 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 307 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 503 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 433 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 438 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 337 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 355 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 415 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 269 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 477 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 489 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 321 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 469 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 253 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 591 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 504 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 381 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 492 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 347 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 477 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 537 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 453 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 694 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 681 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 572 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 640 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 453 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 684 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 400 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 268 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 387 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 553 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 301 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 718 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 710 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 453 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 458 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 657 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 482 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 770 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 330 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 839 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 300 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 836 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 376 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 330 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 537 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 339 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 686 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 794 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 755 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 382 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 619 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 518 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 264 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 516 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 567 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 548 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 371 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 605 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 469 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 328 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 230 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 330 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 352 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 344 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 339 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 820 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 436 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 399 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 701 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 445 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 637 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 597 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 248 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 218 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 283 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 395 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 158 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 215 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 727 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 741 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 541 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 788 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 537 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 449 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 558 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 289 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 670 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 617 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 495 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 452 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 466 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 369 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 273 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 656 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 319 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 301 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 411 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 524 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 659 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 657 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 568 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 450 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 787 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 348 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 371 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 285 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 490 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 606 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 581 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 319 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 506 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 440 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 589 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 212 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 381 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 435 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 378 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 231 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 559 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 247 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 328 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 535 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 337 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 683 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 790 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 751 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 561 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 512 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 867 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 684 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 585 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 416 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 383 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 325 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 362 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 266 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 291 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 779 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 647 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 770 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 487 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 517 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 608 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 267 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 608 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 421 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 393 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 173 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 402 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 392 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 232 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 299 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 212 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 546 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 330 } ] }, "solution_variant": [ "A", "B", "C", "K", "L", "N" ], "context_index": 7, "input_format": "json", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Many people don’t realize how much thought goes into a tasting menu: each plate has its own pull, certain combinations amplify that pull, and the kitchen can only handle a certain amount of prep and plating. With no dish duplicated, the challenge is to decide which courses to include so the guests’ total delight — the sum of every dish’s base delight plus any extra boost for pairs that appear together — is maximized without exceeding the kitchen’s capacity. The concrete course list, prep loads, and pairwise boosts are provided below.\n\n{\n \"num_courses\": 22,\n \"kitchen_capacity\": 1096,\n \"course_ids\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"E\",\n \"F\",\n \"G\",\n \"H\",\n \"I\",\n \"J\",\n \"K\",\n \"L\",\n \"M\",\n \"N\",\n \"O\",\n \"P\",\n \"Q\",\n \"R\",\n \"S\",\n \"T\",\n \"U\",\n \"V\"\n ],\n \"linear\": [\n {\n \"course_id\": \"A\",\n \"base_delight\": 126\n },\n {\n \"course_id\": \"B\",\n \"base_delight\": 116\n },\n {\n \"course_id\": \"C\",\n \"base_delight\": 140\n },\n {\n \"course_id\": \"D\",\n \"base_delight\": 152\n },\n {\n \"course_id\": \"E\",\n \"base_delight\": 103\n },\n {\n \"course_id\": \"F\",\n \"base_delight\": 117\n },\n {\n \"course_id\": \"G\",\n \"base_delight\": 119\n },\n {\n \"course_id\": \"H\",\n \"base_delight\": 121\n },\n {\n \"course_id\": \"I\",\n \"base_delight\": 124\n },\n {\n \"course_id\": \"J\",\n \"base_delight\": 112\n },\n {\n \"course_id\": \"K\",\n \"base_delight\": 142\n },\n {\n \"course_id\": \"L\",\n \"base_delight\": 138\n },\n {\n \"course_id\": \"M\",\n \"base_delight\": 133\n },\n {\n \"course_id\": \"N\",\n \"base_delight\": 120\n },\n {\n \"course_id\": \"O\",\n \"base_delight\": 119\n },\n {\n \"course_id\": \"P\",\n \"base_delight\": 111\n },\n {\n \"course_id\": \"Q\",\n \"base_delight\": 116\n },\n {\n \"course_id\": \"R\",\n \"base_delight\": 119\n },\n {\n \"course_id\": \"S\",\n \"base_delight\": 148\n },\n {\n \"course_id\": \"T\",\n \"base_delight\": 106\n },\n {\n \"course_id\": \"U\",\n \"base_delight\": 138\n },\n {\n \"course_id\": \"V\",\n \"base_delight\": 139\n }\n ],\n \"weights\": [\n {\n \"course_id\": \"A\",\n \"prep_plating_load\": 118\n },\n {\n \"course_id\": \"B\",\n \"prep_plating_load\": 123\n },\n {\n \"course_id\": \"C\",\n \"prep_plating_load\": 142\n },\n {\n \"course_id\": \"D\",\n \"prep_plating_load\": 147\n },\n {\n \"course_id\": \"E\",\n \"prep_plating_load\": 101\n },\n {\n \"course_id\": \"F\",\n \"prep_plating_load\": 116\n },\n {\n \"course_id\": \"G\",\n \"prep_plating_load\": 115\n },\n {\n \"course_id\": \"H\",\n \"prep_plating_load\": 119\n },\n {\n \"course_id\": \"I\",\n \"prep_plating_load\": 119\n },\n {\n \"course_id\": \"J\",\n \"prep_plating_load\": 112\n },\n {\n \"course_id\": \"K\",\n \"prep_plating_load\": 134\n },\n {\n \"course_id\": \"L\",\n \"prep_plating_load\": 136\n },\n {\n \"course_id\": \"M\",\n \"prep_plating_load\": 132\n },\n {\n \"course_id\": \"N\",\n \"prep_plating_load\": 126\n },\n {\n \"course_id\": \"O\",\n \"prep_plating_load\": 118\n },\n {\n \"course_id\": \"P\",\n \"prep_plating_load\": 108\n },\n {\n \"course_id\": \"Q\",\n \"prep_plating_load\": 118\n },\n {\n \"course_id\": \"R\",\n \"prep_plating_load\": 111\n },\n {\n \"course_id\": \"S\",\n \"prep_plating_load\": 145\n },\n {\n \"course_id\": \"T\",\n \"prep_plating_load\": 105\n },\n {\n \"course_id\": \"U\",\n \"prep_plating_load\": 138\n },\n {\n \"course_id\": \"V\",\n \"prep_plating_load\": 133\n }\n ],\n \"quadratic\": [\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"B\",\n \"pair_complement_boost\": 125\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"C\",\n \"pair_complement_boost\": 115\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"E\",\n \"pair_complement_boost\": 123\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 125\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 109\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 114\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 129\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 123\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 118\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 121\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 129\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 119\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 121\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 110\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 120\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 121\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 127\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 115\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"C\",\n \"pair_complement_boost\": 131\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"D\",\n \"pair_complement_boost\": 111\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"E\",\n \"pair_complement_boost\": 121\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"F\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 118\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 117\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 131\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 123\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 121\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 129\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 130\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 123\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 129\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 115\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 117\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 110\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 134\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"D\",\n \"pair_complement_boost\": 128\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"E\",\n \"pair_complement_boost\": 119\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 122\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 128\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 143\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 138\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 129\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 131\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 142\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 120\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 120\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 139\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 128\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 140\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"E\",\n \"pair_complement_boost\": 138\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"F\",\n \"pair_complement_boost\": 144\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 135\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 141\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 139\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 133\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 126\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 123\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 140\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 147\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 136\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 141\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 147\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 116\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 109\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 119\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 111\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 117\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 111\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 115\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 122\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 120\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 122\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 131\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 127\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 117\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 124\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 118\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 108\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 113\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 112\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 110\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 134\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 127\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 112\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 125\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 130\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 125\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 126\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 130\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 121\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 130\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 122\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 126\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 126\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 139\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 130\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 119\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 123\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 121\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 107\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 114\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 124\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 124\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 122\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 130\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 115\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 129\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 108\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 126\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 122\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 128\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 126\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 110\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 108\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 128\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 110\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 127\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 133\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 133\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 132\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 127\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 120\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 140\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 125\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 121\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 144\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 137\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 125\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 125\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 143\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 133\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 115\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 118\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 120\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 126\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 134\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 122\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 137\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 123\n },\n {\n \"course_i_id\": \"N\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 120\n },\n {\n \"course_i_id\": \"N\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 131\n },\n {\n \"course_i_id\": \"N\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 129\n },\n {\n \"course_i_id\": \"N\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 114\n },\n {\n \"course_i_id\": \"N\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 131\n },\n {\n \"course_i_id\": \"N\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 125\n },\n {\n \"course_i_id\": \"O\",\n \"course_j_id\": \"P\",\n \"pair_complement_boost\": 111\n },\n {\n \"course_i_id\": \"O\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 124\n },\n {\n \"course_i_id\": \"O\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"O\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 129\n },\n {\n \"course_i_id\": \"O\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 127\n },\n {\n \"course_i_id\": \"O\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 119\n },\n {\n \"course_i_id\": \"P\",\n \"course_j_id\": \"Q\",\n \"pair_complement_boost\": 119\n },\n {\n \"course_i_id\": \"P\",\n \"course_j_id\": \"R\",\n \"pair_complement_boost\": 123\n },\n {\n \"course_i_id\": \"P\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 111\n },\n {\n \"course_i_id\": \"P\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 114\n },\n {\n \"course_i_id\": \"P\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 112\n },\n {\n \"course_i_id\": \"P\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 114\n },\n {\n \"course_i_id\": \"Q\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 119\n },\n {\n \"course_i_id\": \"Q\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 111\n },\n {\n \"course_i_id\": \"Q\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 113\n },\n {\n \"course_i_id\": \"R\",\n \"course_j_id\": \"S\",\n \"pair_complement_boost\": 128\n },\n {\n \"course_i_id\": \"R\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 138\n },\n {\n \"course_i_id\": \"R\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 144\n },\n {\n \"course_i_id\": \"S\",\n \"course_j_id\": \"T\",\n \"pair_complement_boost\": 130\n },\n {\n \"course_i_id\": \"S\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 127\n },\n {\n \"course_i_id\": \"T\",\n \"course_j_id\": \"U\",\n \"pair_complement_boost\": 120\n },\n {\n \"course_i_id\": \"U\",\n \"course_j_id\": \"V\",\n \"pair_complement_boost\": 119\n }\n ]\n}\n\nIf you want to send back a pick, a simple JSON snippet is perfect — something casual like this will do:\n\n{\n \"solution\": [, , ...]\n}\n\nHere \"solution\" is just the list of course IDs you want on the tasting menu — each is a placeholder for whatever identifier the instance uses for a dish. Think of it like filling out a tiny form: list the courses you choose in that array, and that’s your answer. This is just a sketch of the shape I expect, not the final selection itself.\n\nPlease make sure you use the exact identifiers from the instance input — don’t rename them or invent new labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 126, 116, 140, 152, 103, 117, 119, 121, 124, 112, 142, 138, 133, 120, 119, 111, 116, 119, 148, 106, 138, 139 ], "quadratic_coeffs": [ [ 119, 125, 115, 0, 123, 0, 125, 109, 114, 129, 123, 118, 121, 0, 129, 119, 121, 110, 120, 121, 127, 115 ], [ 0, 0, 131, 111, 121, 132, 0, 118, 117, 131, 123, 121, 0, 129, 130, 123, 129, 0, 115, 117, 110, 134 ], [ 0, 0, 121, 128, 119, 0, 122, 0, 128, 143, 138, 129, 131, 142, 0, 120, 132, 120, 139, 0, 128, 140 ], [ 0, 0, 0, 141, 138, 144, 135, 132, 141, 132, 139, 133, 126, 123, 0, 140, 147, 136, 132, 141, 147, 0 ], [ 0, 0, 0, 0, 0, 0, 116, 109, 119, 111, 0, 117, 0, 111, 115, 122, 120, 0, 0, 0, 122, 131 ], [ 0, 0, 0, 0, 0, 126, 127, 117, 124, 0, 118, 0, 0, 108, 0, 113, 112, 110, 0, 134, 0, 127 ], [ 0, 0, 0, 0, 0, 0, 110, 0, 112, 125, 130, 125, 126, 0, 130, 0, 121, 130, 122, 126, 126, 139 ], [ 0, 0, 0, 0, 0, 0, 0, 130, 0, 130, 0, 132, 0, 0, 119, 123, 121, 107, 114, 0, 124, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 122, 132, 130, 115, 129, 0, 0, 108, 0, 0, 126 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 122, 128, 126, 110, 108, 0, 128, 0, 0, 0, 110, 127 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 118, 133, 132, 0, 133, 132, 0, 132, 0, 127, 120, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 140, 140, 125, 0, 121, 144, 0, 137, 125, 125, 143 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 133, 115, 118, 120, 126, 134, 122, 137, 123 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, 120, 0, 131, 129, 114, 0, 131, 125 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 111, 124, 102, 0, 129, 127, 119 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 119, 123, 111, 114, 112, 114 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 111, 113 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 128, 0, 138, 144 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 130, 0, 127 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 120, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 119 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 118, 123, 142, 147, 101, 116, 115, 119, 119, 112, 134, 136, 132, 126, 118, 108, 118, 111, 145, 105, 138, 133 ], "capacity": 1096, "solution": [ 0, 1, 2, 4, 9, 11, 15, 16, 21 ], "obj": 5477.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 4, 9, 11, 15, 16, 21 ], "obj": 5477.0, "instance_variant": { "problem_type": "QKP", "num_items": 22, "capacity": 1096, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 126 }, { "item_id": "B", "linear_profit": 116 }, { "item_id": "C", "linear_profit": 140 }, { "item_id": "D", "linear_profit": 152 }, { "item_id": "E", "linear_profit": 103 }, { "item_id": "F", "linear_profit": 117 }, { "item_id": "G", "linear_profit": 119 }, { "item_id": "H", "linear_profit": 121 }, { "item_id": "I", "linear_profit": 124 }, { "item_id": "J", "linear_profit": 112 }, { "item_id": "K", "linear_profit": 142 }, { "item_id": "L", "linear_profit": 138 }, { "item_id": "M", "linear_profit": 133 }, { "item_id": "N", "linear_profit": 120 }, { "item_id": "O", "linear_profit": 119 }, { "item_id": "P", "linear_profit": 111 }, { "item_id": "Q", "linear_profit": 116 }, { "item_id": "R", "linear_profit": 119 }, { "item_id": "S", "linear_profit": 148 }, { "item_id": "T", "linear_profit": 106 }, { "item_id": "U", "linear_profit": 138 }, { "item_id": "V", "linear_profit": 139 } ], "weight_pairs": [ { "item_id": "A", "weight": 118 }, { "item_id": "B", "weight": 123 }, { "item_id": "C", "weight": 142 }, { "item_id": "D", "weight": 147 }, { "item_id": "E", "weight": 101 }, { "item_id": "F", "weight": 116 }, { "item_id": "G", "weight": 115 }, { "item_id": "H", "weight": 119 }, { "item_id": "I", "weight": 119 }, { "item_id": "J", "weight": 112 }, { "item_id": "K", "weight": 134 }, { "item_id": "L", "weight": 136 }, { "item_id": "M", "weight": 132 }, { "item_id": "N", "weight": 126 }, { "item_id": "O", "weight": 118 }, { "item_id": "P", "weight": 108 }, { "item_id": "Q", "weight": 118 }, { "item_id": "R", "weight": 111 }, { "item_id": "S", "weight": 145 }, { "item_id": "T", "weight": 105 }, { "item_id": "U", "weight": 138 }, { "item_id": "V", "weight": 133 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 119 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 125 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 115 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 123 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 125 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 109 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 114 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 129 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 123 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 118 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 121 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 129 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 119 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 121 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 110 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 120 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 121 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 127 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 115 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 131 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 121 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 132 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 118 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 117 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 131 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 123 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 121 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 129 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 130 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 123 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 129 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 115 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 117 }, { "item_i_id": "B", "item_j_id": "U", "quadratic_profit": 110 }, { "item_i_id": "B", "item_j_id": "V", "quadratic_profit": 134 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 121 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 128 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 119 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 122 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 128 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 143 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 138 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 129 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 131 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 142 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 120 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 132 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 120 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 139 }, { "item_i_id": "C", "item_j_id": "U", "quadratic_profit": 128 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 140 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 141 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 138 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 144 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 135 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 132 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 141 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 132 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 139 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 133 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 126 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 123 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 140 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 147 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 136 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 132 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 141 }, { "item_i_id": "D", "item_j_id": "U", "quadratic_profit": 147 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 116 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 109 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 119 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 111 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 117 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 111 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 115 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 122 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 120 }, { "item_i_id": "E", "item_j_id": "U", "quadratic_profit": 122 }, { "item_i_id": "E", "item_j_id": "V", "quadratic_profit": 131 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 126 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 127 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 117 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 124 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 118 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 108 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 113 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 112 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 110 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 134 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 127 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 110 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 112 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 125 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 130 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 125 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 126 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 130 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 121 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 130 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 122 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 126 }, { "item_i_id": "G", "item_j_id": "U", "quadratic_profit": 126 }, { "item_i_id": "G", "item_j_id": "V", "quadratic_profit": 139 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 130 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 130 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 132 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 119 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 123 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 121 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 107 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 114 }, { "item_i_id": "H", "item_j_id": "U", "quadratic_profit": 124 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 124 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 122 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 132 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 130 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 115 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 129 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 108 }, { "item_i_id": "I", "item_j_id": "V", "quadratic_profit": 126 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 119 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 122 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 128 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 126 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 110 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 108 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 128 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 110 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 127 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 118 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 133 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 132 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 133 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 132 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 132 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 127 }, { "item_i_id": "K", "item_j_id": "U", "quadratic_profit": 120 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 140 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 140 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 125 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 121 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 144 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 137 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 125 }, { "item_i_id": "L", "item_j_id": "U", "quadratic_profit": 125 }, { "item_i_id": "L", "item_j_id": "V", "quadratic_profit": 143 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 137 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 133 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 115 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 118 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 120 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 126 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 134 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 122 }, { "item_i_id": "M", "item_j_id": "U", "quadratic_profit": 137 }, { "item_i_id": "M", "item_j_id": "V", "quadratic_profit": 123 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 122 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 120 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 131 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 129 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 114 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 131 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 125 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 123 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 111 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 124 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 129 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 127 }, { "item_i_id": "O", "item_j_id": "V", "quadratic_profit": 119 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 115 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 119 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 123 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 111 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 114 }, { "item_i_id": "P", "item_j_id": "U", "quadratic_profit": 112 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 114 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 119 }, { "item_i_id": "Q", "item_j_id": "U", "quadratic_profit": 111 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 113 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 113 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 128 }, { "item_i_id": "R", "item_j_id": "U", "quadratic_profit": 138 }, { "item_i_id": "R", "item_j_id": "V", "quadratic_profit": 144 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 111 }, { "item_i_id": "S", "item_j_id": "T", "quadratic_profit": 130 }, { "item_i_id": "S", "item_j_id": "V", "quadratic_profit": 127 }, { "item_i_id": "T", "item_j_id": "T", "quadratic_profit": 121 }, { "item_i_id": "T", "item_j_id": "U", "quadratic_profit": 120 }, { "item_i_id": "U", "item_j_id": "U", "quadratic_profit": 120 }, { "item_i_id": "U", "item_j_id": "V", "quadratic_profit": 119 } ] }, "solution_variant": [ "A", "B", "C", "E", "J", "L", "P", "Q", "V" ], "context_index": 8, "input_format": "json", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Recently the design team challenged themselves to build the perfect gift box that feels greater than the sum of its parts but still ships cheaply. Every piece has a weight and a basic value, and some duos create extra value when they’re both included. The task is to pick a subset of items so the total box weight stays under the shipping threshold and the overall perceived value equals adding up each chosen item’s base value plus any bonuses for included pairs; nothing can be split or doubled. The concrete details for the items and the pair bonuses are given below.\n\nThere are 24 available, listed as A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, and the shipping threshold is 95160.\n\n| item_ref_for_weight | base_value |\n|---|---|\n| A | 4325 |\n| B | 5357 |\n| C | 6782 |\n| D | 5127 |\n| E | 5539 |\n| F | 4709 |\n| G | 2461 |\n| H | 5824 |\n| I | 4261 |\n| J | 3744 |\n| K | 6734 |\n| L | 1041 |\n| M | 6510 |\n| N | 5249 |\n| O | 6171 |\n| P | 5948 |\n| Q | 6931 |\n| R | 5831 |\n| S | 6722 |\n| T | 3196 |\n| U | 6854 |\n| V | 5299 |\n| W | 2279 |\n| X | 1125 |\n\n| item_ref_for_weight | item_weight |\n|---|---|\n| A | 3675 |\n| B | 4707 |\n| C | 6132 |\n| D | 4477 |\n| E | 4889 |\n| F | 4059 |\n| G | 1811 |\n| H | 5174 |\n| I | 3611 |\n| J | 3094 |\n| K | 6084 |\n| L | 391 |\n| M | 5860 |\n| N | 4599 |\n| O | 5521 |\n| P | 5298 |\n| Q | 6281 |\n| R | 5181 |\n| S | 6072 |\n| T | 2546 |\n| U | 6204 |\n| V | 4649 |\n| W | 1629 |\n| X | 475 |\n\n| pair_item_i | pair_item_j | pair_synergy_value |\n|---|---|---|\n| A | D | 2902 |\n| A | E | 3675 |\n| A | F | 347 |\n| A | G | 3675 |\n| A | I | 1442 |\n| A | J | 3675 |\n| A | K | 1480 |\n| A | O | 1763 |\n| A | Q | 2276 |\n| A | R | 1738 |\n| A | S | 1992 |\n| A | T | 3675 |\n| A | U | 576 |\n| A | V | 2002 |\n| A | W | 2002 |\n| A | X | 946 |\n| B | F | 3156 |\n| B | G | 3677 |\n| B | J | 4707 |\n| B | N | 1763 |\n| B | O | 4707 |\n| B | P | 1629 |\n| B | Q | 946 |\n| B | S | 3008 |\n| B | T | 2458 |\n| B | U | 2116 |\n| B | V | 3261 |\n| B | X | 934 |\n| C | D | 1741 |\n| C | E | 3156 |\n| C | F | 3677 |\n| C | G | 6132 |\n| C | H | 3938 |\n| C | I | 4370 |\n| C | K | 1750 |\n| C | L | 2440 |\n| C | N | 139 |\n| C | O | 1738 |\n| C | P | 2918 |\n| C | Q | 6132 |\n| C | R | 1309 |\n| C | S | 1309 |\n| C | T | 1309 |\n| C | U | 320 |\n| C | V | 1309 |\n| C | W | 1309 |\n| C | X | 1309 |\n| D | E | 936 |\n| D | F | 4477 |\n| D | H | 4477 |\n| D | J | 4477 |\n| D | L | 1999 |\n| D | M | 4477 |\n| D | Q | 4149 |\n| D | R | 4149 |\n| D | S | 4149 |\n| D | T | 1668 |\n| D | V | 282 |\n| D | W | 3322 |\n| E | G | 2980 |\n| E | H | 4889 |\n| E | J | 4889 |\n| E | K | 1629 |\n| E | L | 4889 |\n| E | N | 983 |\n| E | O | 2664 |\n| E | P | 4037 |\n| E | Q | 2085 |\n| E | R | 1963 |\n| E | T | 279 |\n| E | V | 2611 |\n| E | X | 1750 |\n| F | H | 1999 |\n| F | I | 2387 |\n| F | J | 1055 |\n| F | K | 2918 |\n| F | L | 4059 |\n| F | M | 4059 |\n| F | O | 1824 |\n| F | P | 734 |\n| F | Q | 4442 |\n| F | R | 279 |\n| F | S | 4210 |\n| F | T | 159 |\n| F | U | 4442 |\n| F | V | 1480 |\n| F | W | 2440 |\n| F | X | 2333 |\n| G | I | 1811 |\n| G | K | 1577 |\n| G | L | 1811 |\n| G | M | 410 |\n| G | N | 410 |\n| G | O | 410 |\n| G | R | 159 |\n| G | S | 361 |\n| G | T | 410 |\n| G | U | 186 |\n| G | V | 410 |\n| H | I | 1629 |\n| H | J | 2080 |\n| H | L | 1402 |\n| H | M | 2704 |\n| H | N | 2704 |\n| H | O | 1512 |\n| H | Q | 2611 |\n| H | S | 2704 |\n| H | T | 2207 |\n| H | V | 455 |\n| H | W | 2704 |\n| I | J | 576 |\n| I | L | 1824 |\n| I | N | 3156 |\n| I | O | 3971 |\n| I | R | 902 |\n| I | S | 4799 |\n| I | U | 3805 |\n| I | V | 6176 |\n| I | X | 2918 |\n| J | L | 2229 |\n| J | N | 2229 |\n| J | O | 1839 |\n| J | Q | 2207 |\n| J | R | 2229 |\n| J | T | 2229 |\n| J | U | 2229 |\n| J | V | 2229 |\n| J | W | 430 |\n| J | X | 2229 |\n| K | L | 1741 |\n| K | M | 780 |\n| K | N | 1741 |\n| K | P | 1741 |\n| K | Q | 1741 |\n| K | R | 1741 |\n| K | S | 917 |\n| K | U | 1738 |\n| K | W | 3823 |\n| K | X | 1442 |\n| L | M | 1386 |\n| L | O | 2183 |\n| L | P | 2183 |\n| L | Q | 985 |\n| L | R | 2183 |\n| L | T | 2183 |\n| L | U | 2183 |\n| L | X | 3779 |\n| M | N | 347 |\n| M | O | 347 |\n| M | P | 347 |\n| M | S | 347 |\n| M | U | 347 |\n| M | V | 734 |\n| M | X | 734 |\n| N | P | 1859 |\n| N | S | 5876 |\n| N | T | 3444 |\n| N | V | 5876 |\n| N | W | 3645 |\n| N | X | 5290 |\n| O | P | 1480 |\n| O | Q | 985 |\n| O | R | 1480 |\n| O | S | 1480 |\n| O | T | 1480 |\n| O | U | 1480 |\n| O | V | 576 |\n| O | W | 1750 |\n| O | X | 3805 |\n| P | Q | 4339 |\n| P | R | 2207 |\n| P | S | 2207 |\n| P | V | 2207 |\n| P | W | 1055 |\n| P | X | 430 |\n| Q | R | 1750 |\n| Q | S | 2546 |\n| Q | T | 2333 |\n| Q | V | 3872 |\n| Q | W | 2080 |\n| Q | X | 576 |\n| R | U | 455 |\n| R | X | 4458 |\n| S | U | 2333 |\n| S | V | 2333 |\n| S | W | 3911 |\n| S | X | 3529 |\n| T | U | 4135 |\n| T | V | 2440 |\n| T | X | 2080 |\n| U | W | 475 |\n| U | X | 2162 |\n| V | W | 946 |\n| V | X | 2169 |\n\nSelections must maximize the box’s perceived value while keeping total weight under the shipping threshold.\n\nYou can just send back the chosen items in a small JSON snippet like this — it’s just the shape I expect, nothing fancy.\n\n{\n \"solution\": [, , ...]\n}\n\nHere \"solution\" is simply a list of the items you want in the gift box. Think of each placeholder as the exact item label from the instance (the things you see in the item list). This block is a sketch of the format I want, not your final answer.\n\nPlease use the item identifiers exactly as they appear in the instance input — no renaming, no made-up labels. \n- 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”.\"", "instance": { "linear_coeffs": [ 4325, 5357, 6782, 5127, 5539, 4709, 2461, 5824, 4261, 3744, 6734, 1041, 6510, 5249, 6171, 5948, 6931, 5831, 6722, 3196, 6854, 5299, 2279, 1125 ], "quadratic_coeffs": [ [ 2137, 0, 0, 2902, 3675, 347, 3675, 0, 1442, 3675, 1480, 0, 0, 0, 1763, 0, 2276, 1738, 1992, 3675, 576, 2002, 2002, 946 ], [ 0, 4150, 0, 0, 0, 3156, 3677, 0, 0, 4707, 0, 0, 0, 1763, 4707, 1629, 946, 0, 3008, 2458, 2116, 3261, 0, 934 ], [ 0, 0, 5693, 1741, 3156, 3677, 6132, 3938, 4370, 0, 1750, 2440, 0, 139, 1738, 2918, 6132, 1309, 1309, 1309, 320, 1309, 1309, 1309 ], [ 0, 0, 0, 3399, 936, 4477, 0, 4477, 0, 4477, 0, 1999, 4477, 0, 0, 0, 4149, 4149, 4149, 1668, 0, 282, 3322, 0 ], [ 0, 0, 0, 0, 4212, 0, 2980, 4889, 0, 4889, 1629, 4889, 0, 983, 2664, 4037, 2085, 1963, 0, 279, 0, 2611, 0, 1750 ], [ 0, 0, 0, 0, 0, 2980, 0, 1999, 2387, 1055, 2918, 4059, 4059, 0, 1824, 734, 4442, 279, 4210, 159, 4442, 1480, 2440, 2333 ], [ 0, 0, 0, 0, 0, 0, 1811, 0, 1811, 0, 1577, 1811, 410, 410, 410, 0, 0, 159, 361, 410, 186, 410, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1629, 2080, 0, 1402, 2704, 2704, 1512, 0, 2611, 0, 2704, 2207, 0, 455, 2704, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 576, 0, 1824, 0, 3156, 3971, 0, 0, 902, 4799, 0, 3805, 6176, 0, 2918 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2229, 0, 2229, 1839, 0, 2207, 2229, 0, 2229, 2229, 2229, 430, 2229 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1741, 1741, 780, 1741, 0, 1741, 1741, 1741, 917, 0, 1738, 0, 3823, 1442 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 780, 1386, 0, 2183, 2183, 985, 2183, 0, 2183, 2183, 0, 0, 3779 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 347, 347, 347, 347, 0, 0, 347, 0, 347, 734, 0, 734 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1859, 0, 0, 5876, 3444, 0, 5876, 3645, 5290 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1480, 985, 1480, 1480, 1480, 1480, 576, 1750, 3805 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4339, 2207, 2207, 0, 0, 2207, 1055, 430 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4834, 1750, 2546, 2333, 0, 3872, 2080, 576 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 455, 0, 0, 455, 0, 0, 4458 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1372, 0, 2333, 2333, 3911, 3529 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6150, 4135, 2440, 0, 2080 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 475, 2162 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 139, 946, 2169 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 3675, 4707, 6132, 4477, 4889, 4059, 1811, 5174, 3611, 3094, 6084, 391, 5860, 4599, 5521, 5298, 6281, 5181, 6072, 2546, 6204, 4649, 1629, 475 ], "capacity": 95160, "solution": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "obj": 507963.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "obj": 507963.0, "instance_variant": { "problem_type": "QKP", "num_items": 24, "capacity": 95160, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 4325 }, { "item_id": "B", "linear_profit": 5357 }, { "item_id": "C", "linear_profit": 6782 }, { "item_id": "D", "linear_profit": 5127 }, { "item_id": "E", "linear_profit": 5539 }, { "item_id": "F", "linear_profit": 4709 }, { "item_id": "G", "linear_profit": 2461 }, { "item_id": "H", "linear_profit": 5824 }, { "item_id": "I", "linear_profit": 4261 }, { "item_id": "J", "linear_profit": 3744 }, { "item_id": "K", "linear_profit": 6734 }, { "item_id": "L", "linear_profit": 1041 }, { "item_id": "M", "linear_profit": 6510 }, { "item_id": "N", "linear_profit": 5249 }, { "item_id": "O", "linear_profit": 6171 }, { "item_id": "P", "linear_profit": 5948 }, { "item_id": "Q", "linear_profit": 6931 }, { "item_id": "R", "linear_profit": 5831 }, { "item_id": "S", "linear_profit": 6722 }, { "item_id": "T", "linear_profit": 3196 }, { "item_id": "U", "linear_profit": 6854 }, { "item_id": "V", "linear_profit": 5299 }, { "item_id": "W", "linear_profit": 2279 }, { "item_id": "X", "linear_profit": 1125 } ], "weight_pairs": [ { "item_id": "A", "weight": 3675 }, { "item_id": "B", "weight": 4707 }, { "item_id": "C", "weight": 6132 }, { "item_id": "D", "weight": 4477 }, { "item_id": "E", "weight": 4889 }, { "item_id": "F", "weight": 4059 }, { "item_id": "G", "weight": 1811 }, { "item_id": "H", "weight": 5174 }, { "item_id": "I", "weight": 3611 }, { "item_id": "J", "weight": 3094 }, { "item_id": "K", "weight": 6084 }, { "item_id": "L", "weight": 391 }, { "item_id": "M", "weight": 5860 }, { "item_id": "N", "weight": 4599 }, { "item_id": "O", "weight": 5521 }, { "item_id": "P", "weight": 5298 }, { "item_id": "Q", "weight": 6281 }, { "item_id": "R", "weight": 5181 }, { "item_id": "S", "weight": 6072 }, { "item_id": "T", "weight": 2546 }, { "item_id": "U", "weight": 6204 }, { "item_id": "V", "weight": 4649 }, { "item_id": "W", "weight": 1629 }, { "item_id": "X", "weight": 475 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 2137 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 2902 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 3675 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 347 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 3675 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 1442 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 3675 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 1480 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 1763 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 2276 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 1738 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 1992 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 3675 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 576 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 2002 }, { "item_i_id": "A", "item_j_id": "W", "quadratic_profit": 2002 }, { "item_i_id": "A", "item_j_id": "X", "quadratic_profit": 946 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 4150 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 3156 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 3677 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 4707 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 1763 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 4707 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 1629 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 946 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 3008 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 2458 }, { "item_i_id": "B", "item_j_id": "U", "quadratic_profit": 2116 }, { "item_i_id": "B", "item_j_id": "V", "quadratic_profit": 3261 }, { "item_i_id": "B", "item_j_id": "X", "quadratic_profit": 934 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 5693 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 1741 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 3156 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 3677 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 6132 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 3938 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 4370 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 1750 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 2440 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 139 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 1738 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 2918 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 6132 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 1309 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 1309 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 1309 }, { "item_i_id": "C", "item_j_id": "U", "quadratic_profit": 320 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 1309 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 1309 }, { "item_i_id": "C", "item_j_id": "X", "quadratic_profit": 1309 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 3399 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 936 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 4477 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 4477 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 4477 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 1999 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 4477 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 4149 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 4149 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 4149 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 1668 }, { "item_i_id": "D", "item_j_id": "V", "quadratic_profit": 282 }, { "item_i_id": "D", "item_j_id": "W", "quadratic_profit": 3322 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 4212 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 2980 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 4889 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 4889 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 1629 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 4889 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 983 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 2664 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 4037 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 2085 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 1963 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 279 }, { "item_i_id": "E", "item_j_id": "V", "quadratic_profit": 2611 }, { "item_i_id": "E", "item_j_id": "X", "quadratic_profit": 1750 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 2980 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 1999 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 2387 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 1055 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 2918 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 4059 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 4059 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 1824 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 734 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 4442 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 279 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 4210 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 159 }, { "item_i_id": "F", "item_j_id": "U", "quadratic_profit": 4442 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 1480 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 2440 }, { "item_i_id": "F", "item_j_id": "X", "quadratic_profit": 2333 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 1811 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 1811 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 1577 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 1811 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 410 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 410 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 410 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 159 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 361 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 410 }, { "item_i_id": "G", "item_j_id": "U", "quadratic_profit": 186 }, { "item_i_id": "G", "item_j_id": "V", "quadratic_profit": 410 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 1629 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 2080 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 1402 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 2704 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 2704 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 1512 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 2611 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 2704 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 2207 }, { "item_i_id": "H", "item_j_id": "V", "quadratic_profit": 455 }, { "item_i_id": "H", "item_j_id": "W", "quadratic_profit": 2704 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 576 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 1824 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 3156 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 3971 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 902 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 4799 }, { "item_i_id": "I", "item_j_id": "U", "quadratic_profit": 3805 }, { "item_i_id": "I", "item_j_id": "V", "quadratic_profit": 6176 }, { "item_i_id": "I", "item_j_id": "X", "quadratic_profit": 2918 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 2229 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 2229 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 1839 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 2207 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 2229 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 2229 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 2229 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 2229 }, { "item_i_id": "J", "item_j_id": "W", "quadratic_profit": 430 }, { "item_i_id": "J", "item_j_id": "X", "quadratic_profit": 2229 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 1741 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 1741 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 780 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 1741 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 1741 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 1741 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 1741 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 917 }, { "item_i_id": "K", "item_j_id": "U", "quadratic_profit": 1738 }, { "item_i_id": "K", "item_j_id": "W", "quadratic_profit": 3823 }, { "item_i_id": "K", "item_j_id": "X", "quadratic_profit": 1442 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 780 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 1386 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 2183 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 2183 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 985 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 2183 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 2183 }, { "item_i_id": "L", "item_j_id": "U", "quadratic_profit": 2183 }, { "item_i_id": "L", "item_j_id": "X", "quadratic_profit": 3779 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 347 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 347 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 347 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 347 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 347 }, { "item_i_id": "M", "item_j_id": "U", "quadratic_profit": 347 }, { "item_i_id": "M", "item_j_id": "V", "quadratic_profit": 734 }, { "item_i_id": "M", "item_j_id": "X", "quadratic_profit": 734 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 1859 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 5876 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 3444 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 5876 }, { "item_i_id": "N", "item_j_id": "W", "quadratic_profit": 3645 }, { "item_i_id": "N", "item_j_id": "X", "quadratic_profit": 5290 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 1480 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 985 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 1480 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 1480 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 1480 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 1480 }, { "item_i_id": "O", "item_j_id": "V", "quadratic_profit": 576 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 1750 }, { "item_i_id": "O", "item_j_id": "X", "quadratic_profit": 3805 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 4339 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 2207 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 2207 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 2207 }, { "item_i_id": "P", "item_j_id": "W", "quadratic_profit": 1055 }, { "item_i_id": "P", "item_j_id": "X", "quadratic_profit": 430 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 4834 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 1750 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 2546 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 2333 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 3872 }, { "item_i_id": "Q", "item_j_id": "W", "quadratic_profit": 2080 }, { "item_i_id": "Q", "item_j_id": "X", "quadratic_profit": 576 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 455 }, { "item_i_id": "R", "item_j_id": "U", "quadratic_profit": 455 }, { "item_i_id": "R", "item_j_id": "X", "quadratic_profit": 4458 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 1372 }, { "item_i_id": "S", "item_j_id": "U", "quadratic_profit": 2333 }, { "item_i_id": "S", "item_j_id": "V", "quadratic_profit": 2333 }, { "item_i_id": "S", "item_j_id": "W", "quadratic_profit": 3911 }, { "item_i_id": "S", "item_j_id": "X", "quadratic_profit": 3529 }, { "item_i_id": "T", "item_j_id": "T", "quadratic_profit": 6150 }, { "item_i_id": "T", "item_j_id": "U", "quadratic_profit": 4135 }, { "item_i_id": "T", "item_j_id": "V", "quadratic_profit": 2440 }, { "item_i_id": "T", "item_j_id": "X", "quadratic_profit": 2080 }, { "item_i_id": "U", "item_j_id": "W", "quadratic_profit": 475 }, { "item_i_id": "U", "item_j_id": "X", "quadratic_profit": 2162 }, { "item_i_id": "V", "item_j_id": "V", "quadratic_profit": 139 }, { "item_i_id": "V", "item_j_id": "W", "quadratic_profit": 946 }, { "item_i_id": "V", "item_j_id": "X", "quadratic_profit": 2169 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "H", "I", "J", "K", "L", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X" ], "context_index": 9, "input_format": "markdown_table", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Recently came back from visiting family with too many little gifts to fit in my luggage. Each gift has a small sentimental value and a weight, and a couple of items belong together and create extra value if both are packed. The goal is to maximize the total sentimental pay-off by adding up the chosen items’ individual values plus any pair bonuses, but the suitcase must stay under the airline’s weight allowance, and items can’t be split or duplicated. The detailed item information appears below.\n\n# num_souvenirs=23\n# suitcase_weight_limit=1381\n# souvenir_ids=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23\n\nsouvenir_id,sentimental_value\n1,113\n2,103\n3,107\n4,107\n5,113\n6,100\n7,107\n8,102\n9,103\n10,104\n11,116\n12,109\n13,106\n14,107\n15,102\n16,103\n17,102\n18,101\n19,95\n20,100\n21,108\n22,115\n23,112\n\nsouvenir_id,souvenir_weight\n1,111\n2,106\n3,106\n4,110\n5,108\n6,100\n7,107\n8,105\n9,100\n10,109\n11,110\n12,110\n13,107\n14,108\n15,100\n16,102\n17,101\n18,103\n19,100\n20,102\n21,102\n22,109\n23,107\n\nsouvenir_i_id,souvenir_j_id,pair_bonus_sentimental_value\n1,3,106\n1,16,109\n1,17,104\n1,23,102\n2,5,111\n2,6,108\n2,7,106\n2,9,103\n2,11,101\n2,14,110\n2,16,110\n2,19,104\n3,4,100\n3,6,107\n3,8,101\n3,13,106\n3,14,105\n3,15,108\n4,5,106\n4,6,100\n4,7,106\n4,12,101\n4,14,106\n4,20,105\n4,23,108\n5,13,100\n5,16,102\n5,17,106\n5,19,102\n6,13,102\n6,15,111\n6,16,104\n6,23,110\n7,9,102\n7,12,109\n7,14,101\n7,15,107\n7,17,111\n7,19,110\n8,13,111\n8,17,106\n8,20,108\n9,12,104\n9,15,105\n9,19,101\n10,11,107\n10,12,101\n10,14,107\n10,20,103\n11,12,105\n11,15,104\n11,17,102\n11,19,105\n12,14,106\n12,15,105\n12,17,105\n12,21,109\n13,17,102\n13,23,105\n14,20,107\n15,17,105\n15,22,105\n16,20,111\n16,21,111\n16,22,101\n16,23,107\n18,21,110\n18,22,101\n19,23,110\n\nAlso, when you send back which gifts you want in the suitcase, a tiny JSON snippet like this is perfect:\n\n{\n \"solution\": [, , ...]\n}\n\nThis just lists the items you’d pack. The \"solution\" array should contain the item IDs from the instance (each is a placeholder for one chosen gift). It’s just a sketch of the shape I expect, not your final answer.\n\nPlease use the exact identifiers from the instance input — don’t rename them or invent new labels. \n- 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”.\"", "instance": { "linear_coeffs": [ 113, 103, 107, 107, 113, 100, 107, 102, 103, 104, 116, 109, 106, 107, 102, 103, 102, 101, 95, 100, 108, 115, 112 ], "quadratic_coeffs": [ [ 104, 0, 106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 104, 0, 0, 0, 0, 0, 102 ], [ 0, 0, 0, 0, 111, 108, 106, 0, 103, 0, 101, 0, 0, 110, 0, 110, 0, 0, 104, 0, 0, 0, 0 ], [ 0, 0, 111, 100, 0, 107, 0, 101, 0, 0, 0, 0, 106, 105, 108, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 106, 100, 106, 0, 0, 0, 0, 101, 0, 106, 0, 0, 0, 0, 0, 105, 0, 0, 108 ], [ 0, 0, 0, 0, 108, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 102, 106, 0, 102, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 111, 104, 0, 0, 0, 0, 0, 0, 110 ], [ 0, 0, 0, 0, 0, 0, 110, 0, 102, 0, 0, 109, 0, 101, 107, 0, 111, 0, 110, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 0, 0, 106, 0, 0, 108, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 109, 0, 0, 104, 0, 0, 105, 0, 0, 0, 101, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 101, 0, 107, 0, 0, 0, 0, 0, 103, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 105, 0, 0, 104, 0, 102, 0, 105, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 105, 0, 105, 0, 0, 0, 109, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0, 0, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, 0, 0, 0, 107, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, 0, 0, 105, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 111, 101, 107 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 0, 0, 110, 101, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 111, 106, 106, 110, 108, 100, 107, 105, 100, 109, 110, 110, 107, 108, 100, 102, 101, 103, 100, 102, 102, 109, 107 ], "capacity": 1381, "solution": [ 1, 2, 3, 4, 5, 6, 8, 10, 11, 13, 14, 16, 18 ], "obj": 5159.0, "problem_type": "QKP" }, "solution": [ 1, 2, 3, 4, 5, 6, 8, 10, 11, 13, 14, 16, 18 ], "obj": 5159.0, "instance_variant": { "problem_type": "QKP", "num_items": 23, "capacity": 1381, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 113 }, { "item_id": 2, "linear_profit": 103 }, { "item_id": 3, "linear_profit": 107 }, { "item_id": 4, "linear_profit": 107 }, { "item_id": 5, "linear_profit": 113 }, { "item_id": 6, "linear_profit": 100 }, { "item_id": 7, "linear_profit": 107 }, { "item_id": 8, "linear_profit": 102 }, { "item_id": 9, "linear_profit": 103 }, { "item_id": 10, "linear_profit": 104 }, { "item_id": 11, "linear_profit": 116 }, { "item_id": 12, "linear_profit": 109 }, { "item_id": 13, "linear_profit": 106 }, { "item_id": 14, "linear_profit": 107 }, { "item_id": 15, "linear_profit": 102 }, { "item_id": 16, "linear_profit": 103 }, { "item_id": 17, "linear_profit": 102 }, { "item_id": 18, "linear_profit": 101 }, { "item_id": 19, "linear_profit": 95 }, { "item_id": 20, "linear_profit": 100 }, { "item_id": 21, "linear_profit": 108 }, { "item_id": 22, "linear_profit": 115 }, { "item_id": 23, "linear_profit": 112 } ], "weight_pairs": [ { "item_id": 1, "weight": 111 }, { "item_id": 2, "weight": 106 }, { "item_id": 3, "weight": 106 }, { "item_id": 4, "weight": 110 }, { "item_id": 5, "weight": 108 }, { "item_id": 6, "weight": 100 }, { "item_id": 7, "weight": 107 }, { "item_id": 8, "weight": 105 }, { "item_id": 9, "weight": 100 }, { "item_id": 10, "weight": 109 }, { "item_id": 11, "weight": 110 }, { "item_id": 12, "weight": 110 }, { "item_id": 13, "weight": 107 }, { "item_id": 14, "weight": 108 }, { "item_id": 15, "weight": 100 }, { "item_id": 16, "weight": 102 }, { "item_id": 17, "weight": 101 }, { "item_id": 18, "weight": 103 }, { "item_id": 19, "weight": 100 }, { "item_id": 20, "weight": 102 }, { "item_id": 21, "weight": 102 }, { "item_id": 22, "weight": 109 }, { "item_id": 23, "weight": 107 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 106 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 109 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 23, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 108 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 106 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 107 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 106 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 108 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 106 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 106 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 106 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 23, "quadratic_profit": 108 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 108 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 106 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 23, "quadratic_profit": 110 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 110 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 109 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 107 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 111 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 110 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 111 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 106 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 108 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 109 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 107 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 107 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 110 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 105 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 106 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 105 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 105 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 109 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 23, "quadratic_profit": 105 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 105 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 107 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 105 }, { "item_i_id": 15, "item_j_id": 22, "quadratic_profit": 105 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 111 }, { "item_i_id": 16, "item_j_id": 21, "quadratic_profit": 111 }, { "item_i_id": 16, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 16, "item_j_id": 23, "quadratic_profit": 107 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 107 }, { "item_i_id": 18, "item_j_id": 21, "quadratic_profit": 110 }, { "item_i_id": 18, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 19, "item_j_id": 23, "quadratic_profit": 110 } ] }, "solution_variant": [ 2, 3, 4, 5, 6, 7, 9, 11, 12, 14, 15, 17, 19 ], "context_index": 10, "input_format": "csv", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "There’s a small run of a collector’s edition to pack, and the team is deciding which deluxe components to slip into the box. Each component brings some standalone appeal, some pairs have extra synergy when included together, and every piece adds to the package’s weight. The job is to pick a selection (no duplicates, and nothing partial) that stays within the shipping capacity and gives the biggest total player value — computed as the sum of each chosen item’s base value plus any extra pair bonuses. The full breakdown of parts, weights and bonuses appears below.\n\nBelow are the 16 available deluxe components 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 and the box's shipping capacity 21047.\n\n| component_id | base_player_value |\n|---|---|\n| 0 | 3459 |\n| 1 | 1874 |\n| 2 | 1229 |\n| 3 | 6850 |\n| 4 | 3939 |\n| 5 | 4038 |\n| 6 | 3472 |\n| 7 | 5941 |\n| 8 | 7038 |\n| 9 | 2523 |\n| 10 | 4402 |\n| 11 | 5443 |\n| 12 | 2944 |\n| 13 | 6925 |\n| 14 | 6396 |\n| 15 | 6400 |\n\n| component_id | component_weight |\n|---|---|\n| 0 | 2809 |\n| 1 | 1224 |\n| 2 | 579 |\n| 3 | 6200 |\n| 4 | 3289 |\n| 5 | 3388 |\n| 6 | 2822 |\n| 7 | 5291 |\n| 8 | 6388 |\n| 9 | 1873 |\n| 10 | 3752 |\n| 11 | 4793 |\n| 12 | 2294 |\n| 13 | 6275 |\n| 14 | 5746 |\n| 15 | 5750 |\n\n| component_a_id | component_b_id | pair_synergy_value |\n|---|---|---|\n| 0 | 1 | 1487 |\n| 0 | 2 | 2443 |\n| 0 | 3 | 3792 |\n| 0 | 4 | 659 |\n| 0 | 5 | 1657 |\n| 0 | 6 | 3862 |\n| 0 | 7 | 4002 |\n| 0 | 8 | 3236 |\n| 0 | 9 | 3159 |\n| 0 | 10 | 1083 |\n| 0 | 11 | 956 |\n| 0 | 12 | 2533 |\n| 0 | 13 | 1339 |\n| 0 | 14 | 2830 |\n| 0 | 15 | 2587 |\n| 1 | 2 | 2729 |\n| 1 | 3 | 2036 |\n| 1 | 4 | 2036 |\n| 1 | 5 | 1384 |\n| 1 | 6 | 1245 |\n| 1 | 7 | 1867 |\n| 1 | 8 | 2104 |\n| 1 | 9 | 1350 |\n| 1 | 10 | 1675 |\n| 1 | 11 | 2589 |\n| 1 | 12 | 479 |\n| 1 | 13 | 413 |\n| 1 | 14 | 2517 |\n| 1 | 15 | 5574 |\n| 2 | 3 | 1292 |\n| 2 | 4 | 1466 |\n| 2 | 5 | 1304 |\n| 2 | 6 | 1272 |\n| 2 | 7 | 608 |\n| 2 | 8 | 1030 |\n| 2 | 9 | 1868 |\n| 2 | 10 | 1493 |\n| 2 | 11 | 1548 |\n| 2 | 12 | 5998 |\n| 2 | 13 | 2009 |\n| 2 | 14 | 3890 |\n| 2 | 15 | 6224 |\n| 3 | 4 | 4779 |\n| 3 | 5 | 4558 |\n| 3 | 6 | 5835 |\n| 3 | 7 | 1896 |\n| 3 | 8 | 3352 |\n| 3 | 9 | 5498 |\n| 3 | 10 | 2945 |\n| 3 | 11 | 5970 |\n| 3 | 12 | 3644 |\n| 3 | 13 | 1722 |\n| 3 | 14 | 2048 |\n| 3 | 15 | 3509 |\n| 4 | 5 | 3482 |\n| 4 | 6 | 1262 |\n| 4 | 7 | 2777 |\n| 4 | 8 | 3643 |\n| 4 | 9 | 4125 |\n| 4 | 10 | 2182 |\n| 4 | 11 | 2626 |\n| 4 | 12 | 2041 |\n| 4 | 13 | 4922 |\n| 4 | 14 | 4635 |\n| 4 | 15 | 4651 |\n| 5 | 6 | 4520 |\n| 5 | 7 | 5643 |\n| 5 | 8 | 4424 |\n| 5 | 9 | 6059 |\n| 5 | 10 | 3370 |\n| 5 | 11 | 5329 |\n| 5 | 12 | 4018 |\n| 5 | 13 | 2462 |\n| 5 | 14 | 6394 |\n| 5 | 15 | 5564 |\n| 6 | 7 | 3956 |\n| 6 | 8 | 2605 |\n| 6 | 9 | 4940 |\n| 6 | 10 | 3991 |\n| 6 | 11 | 1790 |\n| 6 | 12 | 3184 |\n| 6 | 13 | 3675 |\n| 6 | 14 | 4423 |\n| 6 | 15 | 622 |\n| 7 | 8 | 1246 |\n| 7 | 9 | 2181 |\n| 7 | 10 | 1200 |\n| 7 | 11 | 1768 |\n| 7 | 12 | 2754 |\n| 7 | 13 | 1559 |\n| 7 | 14 | 1960 |\n| 7 | 15 | 488 |\n| 8 | 9 | 1319 |\n| 8 | 10 | 1076 |\n| 8 | 11 | 2643 |\n| 8 | 12 | 1049 |\n| 8 | 13 | 3507 |\n| 8 | 14 | 1645 |\n| 8 | 15 | 3113 |\n| 9 | 10 | 909 |\n| 9 | 11 | 2264 |\n| 9 | 12 | 1990 |\n| 9 | 13 | 1064 |\n| 9 | 14 | 1918 |\n| 9 | 15 | 2960 |\n| 10 | 11 | 1762 |\n| 10 | 12 | 2454 |\n| 10 | 13 | 2758 |\n| 10 | 14 | 3323 |\n| 10 | 15 | 3639 |\n| 11 | 12 | 4879 |\n| 11 | 13 | 3383 |\n| 11 | 14 | 3594 |\n| 11 | 15 | 765 |\n| 12 | 13 | 3068 |\n| 12 | 14 | 5708 |\n| 12 | 15 | 5146 |\n| 13 | 14 | 3654 |\n| 13 | 15 | 4464 |\n| 14 | 15 | 4305 |\n\nSelections must respect the 21047 and maximize total player value.\n\nOh, and when you’re ready to send your pick, please use this simple JSON layout so I can read it easily:\n\n{\n \"solution\": [, , ...]\n}\n\nThis just means \"solution\" should be a list of the component IDs you want packed into the box. The JSON above is just a sketch of the shape I expect — not the final answer itself.\n\nPlease use the exact identifiers from the instance input — don’t rename them or make up 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”.", "instance": { "linear_coeffs": [ 3459, 1874, 1229, 6850, 3939, 4038, 3472, 5941, 7038, 2523, 4402, 5443, 2944, 6925, 6396, 6400 ], "quadratic_coeffs": [ [ 3671, 1487, 2443, 3792, 659, 1657, 3862, 4002, 3236, 3159, 1083, 956, 2533, 1339, 2830, 2587 ], [ 0, 2680, 2729, 2036, 2036, 1384, 1245, 1867, 2104, 1350, 1675, 2589, 479, 413, 2517, 5574 ], [ 0, 0, 1300, 1292, 1466, 1304, 1272, 608, 1030, 1868, 1493, 1548, 5998, 2009, 3890, 6224 ], [ 0, 0, 0, 2535, 4779, 4558, 5835, 1896, 3352, 5498, 2945, 5970, 3644, 1722, 2048, 3509 ], [ 0, 0, 0, 0, 3345, 3482, 1262, 2777, 3643, 4125, 2182, 2626, 2041, 4922, 4635, 4651 ], [ 0, 0, 0, 0, 0, 1190, 4520, 5643, 4424, 6059, 3370, 5329, 4018, 2462, 6394, 5564 ], [ 0, 0, 0, 0, 0, 0, 5229, 3956, 2605, 4940, 3991, 1790, 3184, 3675, 4423, 622 ], [ 0, 0, 0, 0, 0, 0, 0, 4021, 1246, 2181, 1200, 1768, 2754, 1559, 1960, 488 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 3350, 1319, 1076, 2643, 1049, 3507, 1645, 3113 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1596, 909, 2264, 1990, 1064, 1918, 2960 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2951, 1762, 2454, 2758, 3323, 3639 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3442, 4879, 3383, 3594, 765 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5419, 3068, 5708, 5146 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5953, 3654, 4464 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2245, 4305 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 416 ] ], "weights": [ 2809, 1224, 579, 6200, 3289, 3388, 2822, 5291, 6388, 1873, 3752, 4793, 2294, 6275, 5746, 5750 ], "capacity": 21047, "solution": [ 0, 1, 2, 5, 6, 9, 12, 15 ], "obj": 112097.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 5, 6, 9, 12, 15 ], "obj": 112097.0, "instance_variant": { "problem_type": "QKP", "num_items": 16, "capacity": 21047, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 3459 }, { "item_id": 1, "linear_profit": 1874 }, { "item_id": 2, "linear_profit": 1229 }, { "item_id": 3, "linear_profit": 6850 }, { "item_id": 4, "linear_profit": 3939 }, { "item_id": 5, "linear_profit": 4038 }, { "item_id": 6, "linear_profit": 3472 }, { "item_id": 7, "linear_profit": 5941 }, { "item_id": 8, "linear_profit": 7038 }, { "item_id": 9, "linear_profit": 2523 }, { "item_id": 10, "linear_profit": 4402 }, { "item_id": 11, "linear_profit": 5443 }, { "item_id": 12, "linear_profit": 2944 }, { "item_id": 13, "linear_profit": 6925 }, { "item_id": 14, "linear_profit": 6396 }, { "item_id": 15, "linear_profit": 6400 } ], "weight_pairs": [ { "item_id": 0, "weight": 2809 }, { "item_id": 1, "weight": 1224 }, { "item_id": 2, "weight": 579 }, { "item_id": 3, "weight": 6200 }, { "item_id": 4, "weight": 3289 }, { "item_id": 5, "weight": 3388 }, { "item_id": 6, "weight": 2822 }, { "item_id": 7, "weight": 5291 }, { "item_id": 8, "weight": 6388 }, { "item_id": 9, "weight": 1873 }, { "item_id": 10, "weight": 3752 }, { "item_id": 11, "weight": 4793 }, { "item_id": 12, "weight": 2294 }, { "item_id": 13, "weight": 6275 }, { "item_id": 14, "weight": 5746 }, { "item_id": 15, "weight": 5750 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 3671 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 1487 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 2443 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 3792 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 659 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 1657 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 3862 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 4002 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 3236 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 3159 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 1083 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 956 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 2533 }, { "item_i_id": 0, "item_j_id": 13, "quadratic_profit": 1339 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 2830 }, { "item_i_id": 0, "item_j_id": 15, "quadratic_profit": 2587 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 2680 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 2729 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 2036 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 2036 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 1384 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 1245 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 1867 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 2104 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 1350 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 1675 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 2589 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 479 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 2517 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 5574 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 1300 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 1292 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 1466 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 1304 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 1272 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 608 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 1030 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 1868 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 1493 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 1548 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 5998 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 2009 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 3890 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 6224 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 2535 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 4779 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 4558 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 5835 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 1896 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 3352 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 5498 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 2945 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 5970 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 3644 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 1722 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 2048 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 3509 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 3345 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 3482 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 1262 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 2777 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 3643 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 4125 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 2182 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 2626 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 2041 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 4922 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 4635 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 4651 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 1190 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 4520 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 5643 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 4424 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 6059 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 3370 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 5329 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 4018 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 2462 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 6394 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 5564 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 5229 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 3956 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 2605 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 4940 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 3991 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 1790 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 3184 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 3675 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 4423 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 622 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 4021 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 1246 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 2181 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 1200 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 1768 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 2754 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 1559 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 1960 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 488 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 3350 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 1319 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 1076 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 2643 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 1049 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 3507 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 1645 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 3113 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 1596 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 909 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 2264 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 1990 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 1064 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 1918 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 2960 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 2951 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 1762 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 2454 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 2758 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 3323 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 3639 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 3442 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 4879 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 3383 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 3594 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 765 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 5419 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 3068 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 5708 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 5146 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 5953 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 3654 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 4464 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 2245 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 4305 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 416 } ] }, "solution_variant": [ 0, 1, 2, 5, 6, 9, 12, 15 ], "context_index": 11, "input_format": "markdown_table", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Many people underestimate how much the order and pairing of images change a printed book, so this time the plan is to pick images with both individual strength and good chemistry. Every shot has a baseline effect and a page cost, and some pairs add a special bonus if both are included. The final quality of the portfolio is the total of chosen photos’ base effects plus any added pair bonuses, and the selection can’t exceed the allowed page total or include duplicates. The specific photo sizes, base effects, and pairwise bonuses appear below.\n\n{\n \"total_photos_available\": 18,\n \"page_limit\": 928,\n \"photo_ids\": [\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17\n ],\n \"linear\": [\n {\n \"photo_id\": 0,\n \"baseline_effect\": 100\n },\n {\n \"photo_id\": 1,\n \"baseline_effect\": 106\n },\n {\n \"photo_id\": 2,\n \"baseline_effect\": 116\n },\n {\n \"photo_id\": 3,\n \"baseline_effect\": 106\n },\n {\n \"photo_id\": 4,\n \"baseline_effect\": 100\n },\n {\n \"photo_id\": 5,\n \"baseline_effect\": 106\n },\n {\n \"photo_id\": 6,\n \"baseline_effect\": 109\n },\n {\n \"photo_id\": 7,\n \"baseline_effect\": 110\n },\n {\n \"photo_id\": 8,\n \"baseline_effect\": 107\n },\n {\n \"photo_id\": 9,\n \"baseline_effect\": 100\n },\n {\n \"photo_id\": 10,\n \"baseline_effect\": 112\n },\n {\n \"photo_id\": 11,\n \"baseline_effect\": 112\n },\n {\n \"photo_id\": 12,\n \"baseline_effect\": 110\n },\n {\n \"photo_id\": 13,\n \"baseline_effect\": 110\n },\n {\n \"photo_id\": 14,\n \"baseline_effect\": 108\n },\n {\n \"photo_id\": 15,\n \"baseline_effect\": 114\n },\n {\n \"photo_id\": 16,\n \"baseline_effect\": 109\n },\n {\n \"photo_id\": 17,\n \"baseline_effect\": 108\n }\n ],\n \"weights\": [\n {\n \"photo_id\": 0,\n \"page_cost\": 101\n },\n {\n \"photo_id\": 1,\n \"page_cost\": 101\n },\n {\n \"photo_id\": 2,\n \"page_cost\": 110\n },\n {\n \"photo_id\": 3,\n \"page_cost\": 101\n },\n {\n \"photo_id\": 4,\n \"page_cost\": 103\n },\n {\n \"photo_id\": 5,\n \"page_cost\": 100\n },\n {\n \"photo_id\": 6,\n \"page_cost\": 110\n },\n {\n \"photo_id\": 7,\n \"page_cost\": 108\n },\n {\n \"photo_id\": 8,\n \"page_cost\": 110\n },\n {\n \"photo_id\": 9,\n \"page_cost\": 102\n },\n {\n \"photo_id\": 10,\n \"page_cost\": 108\n },\n {\n \"photo_id\": 11,\n \"page_cost\": 111\n },\n {\n \"photo_id\": 12,\n \"page_cost\": 104\n },\n {\n \"photo_id\": 13,\n \"page_cost\": 105\n },\n {\n \"photo_id\": 14,\n \"page_cost\": 106\n },\n {\n \"photo_id\": 15,\n \"page_cost\": 110\n },\n {\n \"photo_id\": 16,\n \"page_cost\": 107\n },\n {\n \"photo_id\": 17,\n \"page_cost\": 103\n }\n ],\n \"quadratic\": [\n {\n \"photo_i_id\": 0,\n \"photo_j_id\": 11,\n \"pairing_bonus\": 100\n },\n {\n \"photo_i_id\": 0,\n \"photo_j_id\": 14,\n \"pairing_bonus\": 109\n },\n {\n \"photo_i_id\": 0,\n \"photo_j_id\": 17,\n \"pairing_bonus\": 107\n },\n {\n \"photo_i_id\": 1,\n \"photo_j_id\": 7,\n \"pairing_bonus\": 105\n },\n {\n \"photo_i_id\": 1,\n \"photo_j_id\": 10,\n \"pairing_bonus\": 111\n },\n {\n \"photo_i_id\": 1,\n \"photo_j_id\": 11,\n \"pairing_bonus\": 103\n },\n {\n \"photo_i_id\": 1,\n \"photo_j_id\": 16,\n \"pairing_bonus\": 107\n },\n {\n \"photo_i_id\": 1,\n \"photo_j_id\": 17,\n \"pairing_bonus\": 110\n },\n {\n \"photo_i_id\": 2,\n \"photo_j_id\": 5,\n \"pairing_bonus\": 104\n },\n {\n \"photo_i_id\": 2,\n \"photo_j_id\": 9,\n \"pairing_bonus\": 107\n },\n {\n \"photo_i_id\": 2,\n \"photo_j_id\": 12,\n \"pairing_bonus\": 111\n },\n {\n \"photo_i_id\": 3,\n \"photo_j_id\": 4,\n \"pairing_bonus\": 102\n },\n {\n \"photo_i_id\": 3,\n \"photo_j_id\": 9,\n \"pairing_bonus\": 105\n },\n {\n \"photo_i_id\": 4,\n \"photo_j_id\": 8,\n \"pairing_bonus\": 101\n },\n {\n \"photo_i_id\": 4,\n \"photo_j_id\": 16,\n \"pairing_bonus\": 107\n },\n {\n \"photo_i_id\": 5,\n \"photo_j_id\": 8,\n \"pairing_bonus\": 110\n },\n {\n \"photo_i_id\": 5,\n \"photo_j_id\": 12,\n \"pairing_bonus\": 104\n },\n {\n \"photo_i_id\": 5,\n \"photo_j_id\": 15,\n \"pairing_bonus\": 103\n },\n {\n \"photo_i_id\": 6,\n \"photo_j_id\": 7,\n \"pairing_bonus\": 103\n },\n {\n \"photo_i_id\": 6,\n \"photo_j_id\": 10,\n \"pairing_bonus\": 111\n },\n {\n \"photo_i_id\": 6,\n \"photo_j_id\": 13,\n \"pairing_bonus\": 103\n },\n {\n \"photo_i_id\": 6,\n \"photo_j_id\": 15,\n \"pairing_bonus\": 103\n },\n {\n \"photo_i_id\": 6,\n \"photo_j_id\": 16,\n \"pairing_bonus\": 109\n },\n {\n \"photo_i_id\": 7,\n \"photo_j_id\": 9,\n \"pairing_bonus\": 105\n },\n {\n \"photo_i_id\": 7,\n \"photo_j_id\": 10,\n \"pairing_bonus\": 104\n },\n {\n \"photo_i_id\": 7,\n \"photo_j_id\": 15,\n \"pairing_bonus\": 101\n },\n {\n \"photo_i_id\": 8,\n \"photo_j_id\": 10,\n \"pairing_bonus\": 103\n },\n {\n \"photo_i_id\": 8,\n \"photo_j_id\": 14,\n \"pairing_bonus\": 108\n },\n {\n \"photo_i_id\": 9,\n \"photo_j_id\": 12,\n \"pairing_bonus\": 107\n },\n {\n \"photo_i_id\": 9,\n \"photo_j_id\": 13,\n \"pairing_bonus\": 102\n },\n {\n \"photo_i_id\": 9,\n \"photo_j_id\": 14,\n \"pairing_bonus\": 103\n },\n {\n \"photo_i_id\": 9,\n \"photo_j_id\": 16,\n \"pairing_bonus\": 109\n },\n {\n \"photo_i_id\": 9,\n \"photo_j_id\": 17,\n \"pairing_bonus\": 100\n },\n {\n \"photo_i_id\": 10,\n \"photo_j_id\": 13,\n \"pairing_bonus\": 103\n },\n {\n \"photo_i_id\": 10,\n \"photo_j_id\": 15,\n \"pairing_bonus\": 109\n },\n {\n \"photo_i_id\": 11,\n \"photo_j_id\": 12,\n \"pairing_bonus\": 106\n },\n {\n \"photo_i_id\": 12,\n \"photo_j_id\": 13,\n \"pairing_bonus\": 101\n },\n {\n \"photo_i_id\": 13,\n \"photo_j_id\": 15,\n \"pairing_bonus\": 102\n },\n {\n \"photo_i_id\": 16,\n \"photo_j_id\": 17,\n \"pairing_bonus\": 109\n }\n ]\n}\n\nOh, and when you send back your pick, a little JSON like the one below is perfect — nice and tidy so I can read which photos you chose.\n\n{\n \"solution\": [, , ...]\n}\n\nNothing fancy: the \"solution\" array is where you list the photo IDs you want in the final spread. This is just a sketch of the shape I expect, not the actual answer — fill it with the exact IDs from the instance when you're ready.\n\nPlease use the identifiers exactly as they appear in the instance input — no renaming and no new labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 100, 106, 116, 106, 100, 106, 109, 110, 107, 100, 112, 112, 110, 110, 108, 114, 109, 108 ], "quadratic_coeffs": [ [ 108, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 109, 0, 0, 107 ], [ 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, 111, 103, 0, 0, 0, 0, 107, 110 ], [ 0, 0, 0, 0, 0, 104, 0, 0, 0, 107, 0, 0, 111, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 102, 0, 0, 0, 0, 105, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 107, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 0, 0, 104, 0, 0, 103, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 111, 0, 0, 103, 0, 103, 109, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 104, 0, 0, 0, 0, 101, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 0, 108, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 102, 103, 0, 109, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 103, 0, 109, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 101, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 0, 102, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 101, 101, 110, 101, 103, 100, 110, 108, 110, 102, 108, 111, 104, 105, 106, 110, 107, 103 ], "capacity": 928, "solution": [ 1, 6, 7, 9, 10, 13, 15, 16 ], "obj": 2557.0, "problem_type": "QKP" }, "solution": [ 1, 6, 7, 9, 10, 13, 15, 16 ], "obj": 2557.0, "instance_variant": { "problem_type": "QKP", "num_items": 18, "capacity": 928, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 100 }, { "item_id": 1, "linear_profit": 106 }, { "item_id": 2, "linear_profit": 116 }, { "item_id": 3, "linear_profit": 106 }, { "item_id": 4, "linear_profit": 100 }, { "item_id": 5, "linear_profit": 106 }, { "item_id": 6, "linear_profit": 109 }, { "item_id": 7, "linear_profit": 110 }, { "item_id": 8, "linear_profit": 107 }, { "item_id": 9, "linear_profit": 100 }, { "item_id": 10, "linear_profit": 112 }, { "item_id": 11, "linear_profit": 112 }, { "item_id": 12, "linear_profit": 110 }, { "item_id": 13, "linear_profit": 110 }, { "item_id": 14, "linear_profit": 108 }, { "item_id": 15, "linear_profit": 114 }, { "item_id": 16, "linear_profit": 109 }, { "item_id": 17, "linear_profit": 108 } ], "weight_pairs": [ { "item_id": 0, "weight": 101 }, { "item_id": 1, "weight": 101 }, { "item_id": 2, "weight": 110 }, { "item_id": 3, "weight": 101 }, { "item_id": 4, "weight": 103 }, { "item_id": 5, "weight": 100 }, { "item_id": 6, "weight": 110 }, { "item_id": 7, "weight": 108 }, { "item_id": 8, "weight": 110 }, { "item_id": 9, "weight": 102 }, { "item_id": 10, "weight": 108 }, { "item_id": 11, "weight": 111 }, { "item_id": 12, "weight": 104 }, { "item_id": 13, "weight": 105 }, { "item_id": 14, "weight": 106 }, { "item_id": 15, "weight": 110 }, { "item_id": 16, "weight": 107 }, { "item_id": 17, "weight": 103 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 108 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 109 }, { "item_i_id": 0, "item_j_id": 17, "quadratic_profit": 107 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 107 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 107 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 107 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 110 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 109 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 108 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 107 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 109 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 109 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 106 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 107 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 110 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 109 } ] }, "solution_variant": [ 1, 6, 7, 9, 10, 13, 15, 16 ], "context_index": 12, "input_format": "json", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Picture this: a camping menu to assemble where each food item improves meal quality a bit on its own, but certain combinations — like fresh bread with good cheese — give an extra morale kick if both make it into the pack. Every item has a weight, you either pack it or you don’t (no halves, no doubles), and the whole load needs to fit under the gear weight limit. The trip’s score is the sum of every chosen item’s base benefit plus any extra bonuses from pairs that travel together, so the job is to pick the set that yields the highest total while staying within the weight allowance. The specific items, their weights, base comforts, and pair bonuses are listed below.\n\nYou'll find 20 food options (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20) and a gear weight limit of 1606 to respect.\n\n| food_id | base_comfort |\n|---|---|\n| 1 | 105 |\n| 2 | 102 |\n| 3 | 105 |\n| 4 | 104 |\n| 5 | 103 |\n| 6 | 103 |\n| 7 | 104 |\n| 8 | 101 |\n| 9 | 105 |\n| 10 | 103 |\n| 11 | 101 |\n| 12 | 103 |\n| 13 | 105 |\n| 14 | 105 |\n| 15 | 102 |\n| 16 | 104 |\n| 17 | 104 |\n| 18 | 102 |\n| 19 | 105 |\n| 20 | 100 |\n\n| food_id | pack_weight |\n|---|---|\n| 1 | 105 |\n| 2 | 100 |\n| 3 | 102 |\n| 4 | 104 |\n| 5 | 101 |\n| 6 | 100 |\n| 7 | 104 |\n| 8 | 102 |\n| 9 | 104 |\n| 10 | 103 |\n| 11 | 101 |\n| 12 | 104 |\n| 13 | 105 |\n| 14 | 105 |\n| 15 | 101 |\n| 16 | 102 |\n| 17 | 102 |\n| 18 | 102 |\n| 19 | 100 |\n| 20 | 101 |\n\n| food_i_id | food_j_id | pair_synergy_bonus |\n|---|---|---|\n| 1 | 4 | 100 |\n| 1 | 5 | 105 |\n| 1 | 6 | 103 |\n| 1 | 8 | 101 |\n| 1 | 11 | 103 |\n| 1 | 12 | 105 |\n| 1 | 13 | 104 |\n| 1 | 14 | 105 |\n| 1 | 16 | 103 |\n| 1 | 18 | 100 |\n| 1 | 19 | 100 |\n| 1 | 20 | 105 |\n| 2 | 3 | 105 |\n| 2 | 6 | 104 |\n| 2 | 7 | 103 |\n| 2 | 9 | 100 |\n| 2 | 10 | 102 |\n| 2 | 11 | 100 |\n| 2 | 12 | 104 |\n| 2 | 13 | 103 |\n| 2 | 16 | 105 |\n| 2 | 17 | 102 |\n| 2 | 18 | 100 |\n| 2 | 19 | 102 |\n| 2 | 20 | 102 |\n| 3 | 4 | 100 |\n| 3 | 6 | 105 |\n| 3 | 11 | 105 |\n| 3 | 12 | 101 |\n| 3 | 14 | 100 |\n| 3 | 15 | 102 |\n| 3 | 18 | 101 |\n| 3 | 20 | 100 |\n| 4 | 5 | 105 |\n| 4 | 6 | 102 |\n| 4 | 7 | 104 |\n| 4 | 8 | 101 |\n| 4 | 12 | 104 |\n| 4 | 14 | 103 |\n| 4 | 18 | 103 |\n| 4 | 19 | 104 |\n| 5 | 7 | 105 |\n| 5 | 10 | 104 |\n| 5 | 11 | 104 |\n| 5 | 12 | 102 |\n| 5 | 19 | 104 |\n| 6 | 7 | 101 |\n| 6 | 8 | 101 |\n| 6 | 10 | 103 |\n| 6 | 13 | 104 |\n| 6 | 15 | 105 |\n| 6 | 17 | 104 |\n| 6 | 18 | 101 |\n| 7 | 9 | 103 |\n| 7 | 12 | 101 |\n| 7 | 14 | 104 |\n| 7 | 17 | 101 |\n| 7 | 19 | 105 |\n| 8 | 11 | 102 |\n| 8 | 12 | 101 |\n| 8 | 14 | 100 |\n| 8 | 18 | 104 |\n| 8 | 19 | 101 |\n| 8 | 20 | 101 |\n| 9 | 12 | 105 |\n| 9 | 14 | 102 |\n| 9 | 15 | 104 |\n| 9 | 18 | 104 |\n| 10 | 12 | 100 |\n| 10 | 13 | 101 |\n| 10 | 17 | 104 |\n| 10 | 19 | 100 |\n| 11 | 12 | 101 |\n| 11 | 13 | 105 |\n| 11 | 14 | 102 |\n| 11 | 15 | 103 |\n| 11 | 18 | 102 |\n| 11 | 19 | 104 |\n| 12 | 14 | 104 |\n| 12 | 16 | 102 |\n| 12 | 17 | 100 |\n| 12 | 18 | 102 |\n| 13 | 14 | 104 |\n| 13 | 15 | 100 |\n| 13 | 16 | 100 |\n| 13 | 18 | 102 |\n| 13 | 19 | 102 |\n| 13 | 20 | 102 |\n| 14 | 16 | 101 |\n| 14 | 17 | 105 |\n| 14 | 20 | 103 |\n| 15 | 16 | 105 |\n| 15 | 19 | 100 |\n| 15 | 20 | 101 |\n| 16 | 19 | 104 |\n| 16 | 20 | 101 |\n| 17 | 18 | 100 |\n| 17 | 20 | 103 |\n| 18 | 20 | 101 |\n\nChoose the set that fits the 1606 limit and maximizes overall meal comfort.\n\nOh, and when you send back the chosen items, please use this simple JSON layout so it's easy to read and check:\n\n{\n \"solution\": [, , ...]\n}\n\nThis means: \"solution\" should be an array containing the identifiers of the items you want to pack. Think of it like a short list on a form — each entry is the ID of one selected item. The block above is just the expected shape (a sketch), not the actual answer.\n\nPlease use the item identifiers exactly as they appear in the instance input — no renaming and no new labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 105, 102, 105, 104, 103, 103, 104, 101, 105, 103, 101, 103, 105, 105, 102, 104, 104, 102, 105, 100 ], "quadratic_coeffs": [ [ 0, 0, 0, 100, 105, 103, 0, 101, 0, 0, 103, 105, 104, 105, 0, 103, 0, 100, 100, 105 ], [ 0, 105, 105, 0, 0, 104, 103, 0, 100, 102, 100, 104, 103, 0, 0, 105, 102, 100, 102, 102 ], [ 0, 0, 0, 100, 0, 105, 0, 0, 0, 0, 105, 101, 0, 100, 102, 0, 0, 101, 0, 100 ], [ 0, 0, 0, 0, 105, 102, 104, 101, 0, 0, 0, 104, 0, 103, 0, 0, 0, 103, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 105, 0, 0, 104, 104, 102, 0, 0, 0, 0, 0, 0, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 101, 101, 0, 103, 0, 0, 104, 0, 105, 0, 104, 101, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 101, 0, 104, 0, 0, 101, 0, 105, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 102, 101, 0, 100, 0, 0, 0, 104, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 105, 0, 102, 104, 0, 0, 104, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 101, 0, 0, 0, 104, 0, 100, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 101, 105, 102, 103, 0, 0, 102, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 102, 100, 102, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 104, 100, 100, 0, 102, 102, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 105, 0, 0, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 105, 0, 0, 100, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 100, 0, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 105, 100, 102, 104, 101, 100, 104, 102, 104, 103, 101, 104, 105, 105, 101, 102, 102, 102, 100, 101 ], "capacity": 1606, "solution": [ 0, 1, 2, 3, 5, 7, 10, 11, 12, 13, 14, 15, 17, 18, 19 ], "obj": 8403.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 5, 7, 10, 11, 12, 13, 14, 15, 17, 18, 19 ], "obj": 8403.0, "instance_variant": { "problem_type": "QKP", "num_items": 20, "capacity": 1606, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 105 }, { "item_id": 2, "linear_profit": 102 }, { "item_id": 3, "linear_profit": 105 }, { "item_id": 4, "linear_profit": 104 }, { "item_id": 5, "linear_profit": 103 }, { "item_id": 6, "linear_profit": 103 }, { "item_id": 7, "linear_profit": 104 }, { "item_id": 8, "linear_profit": 101 }, { "item_id": 9, "linear_profit": 105 }, { "item_id": 10, "linear_profit": 103 }, { "item_id": 11, "linear_profit": 101 }, { "item_id": 12, "linear_profit": 103 }, { "item_id": 13, "linear_profit": 105 }, { "item_id": 14, "linear_profit": 105 }, { "item_id": 15, "linear_profit": 102 }, { "item_id": 16, "linear_profit": 104 }, { "item_id": 17, "linear_profit": 104 }, { "item_id": 18, "linear_profit": 102 }, { "item_id": 19, "linear_profit": 105 }, { "item_id": 20, "linear_profit": 100 } ], "weight_pairs": [ { "item_id": 1, "weight": 105 }, { "item_id": 2, "weight": 100 }, { "item_id": 3, "weight": 102 }, { "item_id": 4, "weight": 104 }, { "item_id": 5, "weight": 101 }, { "item_id": 6, "weight": 100 }, { "item_id": 7, "weight": 104 }, { "item_id": 8, "weight": 102 }, { "item_id": 9, "weight": 104 }, { "item_id": 10, "weight": 103 }, { "item_id": 11, "weight": 101 }, { "item_id": 12, "weight": 104 }, { "item_id": 13, "weight": 105 }, { "item_id": 14, "weight": 105 }, { "item_id": 15, "weight": 101 }, { "item_id": 16, "weight": 102 }, { "item_id": 17, "weight": 102 }, { "item_id": 18, "weight": 102 }, { "item_id": 19, "weight": 100 }, { "item_id": 20, "weight": 101 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 105 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 105 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 104 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 104 }, { "item_i_id": 10, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 104 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 104 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 105 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 105 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 17, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 17, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 17, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 104 } ] }, "solution_variant": [ 1, 2, 3, 4, 6, 8, 11, 12, 13, 14, 15, 16, 18, 19, 20 ], "context_index": 13, "input_format": "markdown_table", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We’re trying to stock a small shelf for the office and want choices that make people happiest. Every supply has a basic usefulness score, and certain combinations create extra perks when both are on the shelf — think tape and a dispenser that together are handier than apart. The plan is to pick individual, non-duplicated items that all fit in the shelf space, then total up their individual usefulness plus any extra pair bonuses to figure out which combination gives the biggest payoff. The concrete item sizes, usefulness numbers, and pair bonuses are listed below.\n\nThere are 24 distinct supplies (listed as 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24), and we have 851 total shelf volume to fill.\nWe get 102 usefulness if we stock 1.\nWe get 102 usefulness if we stock 2.\nWe get 101 usefulness if we stock 3.\nWe get 105 usefulness if we stock 4.\nWe get 100 usefulness if we stock 5.\nWe get 103 usefulness if we stock 6.\nWe get 105 usefulness if we stock 7.\nWe get 104 usefulness if we stock 8.\nWe get 102 usefulness if we stock 9.\nWe get 102 usefulness if we stock 10.\nWe get 102 usefulness if we stock 11.\nWe get 102 usefulness if we stock 12.\nWe get 101 usefulness if we stock 13.\nWe get 101 usefulness if we stock 14.\nWe get 103 usefulness if we stock 15.\nWe get 100 usefulness if we stock 16.\nWe get 101 usefulness if we stock 17.\nWe get 105 usefulness if we stock 18.\nWe get 101 usefulness if we stock 19.\nWe get 104 usefulness if we stock 20.\nWe get 103 usefulness if we stock 21.\nWe get 104 usefulness if we stock 22.\nWe get 105 usefulness if we stock 23.\nWe get 104 usefulness if we stock 24.\n1 occupies 100 shelf volume.\n2 occupies 104 shelf volume.\n3 occupies 103 shelf volume.\n4 occupies 105 shelf volume.\n5 occupies 105 shelf volume.\n6 occupies 102 shelf volume.\n7 occupies 103 shelf volume.\n8 occupies 105 shelf volume.\n9 occupies 105 shelf volume.\n10 occupies 102 shelf volume.\n11 occupies 105 shelf volume.\n12 occupies 103 shelf volume.\n13 occupies 103 shelf volume.\n14 occupies 102 shelf volume.\n15 occupies 102 shelf volume.\n16 occupies 100 shelf volume.\n17 occupies 100 shelf volume.\n18 occupies 104 shelf volume.\n19 occupies 102 shelf volume.\n20 occupies 104 shelf volume.\n21 occupies 103 shelf volume.\n22 occupies 104 shelf volume.\n23 occupies 105 shelf volume.\n24 occupies 101 shelf volume.\nIf we stock both 1 and 2, we gain 103 extra usefulness.\nIf we stock both 1 and 3, we gain 103 extra usefulness.\nIf we stock both 1 and 5, we gain 102 extra usefulness.\nIf we stock both 1 and 6, we gain 104 extra usefulness.\nIf we stock both 1 and 8, we gain 103 extra usefulness.\nIf we stock both 1 and 11, we gain 100 extra usefulness.\nIf we stock both 1 and 13, we gain 105 extra usefulness.\nIf we stock both 1 and 15, we gain 103 extra usefulness.\nIf we stock both 1 and 16, we gain 101 extra usefulness.\nIf we stock both 1 and 20, we gain 105 extra usefulness.\nIf we stock both 1 and 22, we gain 103 extra usefulness.\nIf we stock both 2 and 3, we gain 101 extra usefulness.\nIf we stock both 2 and 9, we gain 102 extra usefulness.\nIf we stock both 2 and 10, we gain 104 extra usefulness.\nIf we stock both 2 and 12, we gain 101 extra usefulness.\nIf we stock both 2 and 15, we gain 105 extra usefulness.\nIf we stock both 2 and 16, we gain 105 extra usefulness.\nIf we stock both 2 and 18, we gain 105 extra usefulness.\nIf we stock both 2 and 21, we gain 100 extra usefulness.\nIf we stock both 2 and 23, we gain 105 extra usefulness.\nIf we stock both 3 and 4, we gain 105 extra usefulness.\nIf we stock both 3 and 5, we gain 105 extra usefulness.\nIf we stock both 3 and 6, we gain 103 extra usefulness.\nIf we stock both 3 and 7, we gain 105 extra usefulness.\nIf we stock both 3 and 10, we gain 102 extra usefulness.\nIf we stock both 3 and 13, we gain 101 extra usefulness.\nIf we stock both 3 and 14, we gain 103 extra usefulness.\nIf we stock both 3 and 15, we gain 102 extra usefulness.\nIf we stock both 3 and 17, we gain 101 extra usefulness.\nIf we stock both 3 and 21, we gain 105 extra usefulness.\nIf we stock both 3 and 22, we gain 100 extra usefulness.\nIf we stock both 3 and 23, we gain 103 extra usefulness.\nIf we stock both 3 and 24, we gain 104 extra usefulness.\nIf we stock both 4 and 5, we gain 101 extra usefulness.\nIf we stock both 4 and 6, we gain 105 extra usefulness.\nIf we stock both 4 and 8, we gain 101 extra usefulness.\nIf we stock both 4 and 9, we gain 102 extra usefulness.\nIf we stock both 4 and 19, we gain 100 extra usefulness.\nIf we stock both 4 and 21, we gain 101 extra usefulness.\nIf we stock both 4 and 23, we gain 100 extra usefulness.\nIf we stock both 5 and 6, we gain 105 extra usefulness.\nIf we stock both 5 and 10, we gain 105 extra usefulness.\nIf we stock both 5 and 11, we gain 102 extra usefulness.\nIf we stock both 5 and 12, we gain 105 extra usefulness.\nIf we stock both 5 and 16, we gain 105 extra usefulness.\nIf we stock both 5 and 18, we gain 100 extra usefulness.\nIf we stock both 5 and 19, we gain 104 extra usefulness.\nIf we stock both 5 and 22, we gain 105 extra usefulness.\nIf we stock both 6 and 10, we gain 101 extra usefulness.\nIf we stock both 6 and 13, we gain 101 extra usefulness.\nIf we stock both 6 and 14, we gain 103 extra usefulness.\nIf we stock both 6 and 17, we gain 102 extra usefulness.\nIf we stock both 6 and 18, we gain 101 extra usefulness.\nIf we stock both 6 and 21, we gain 101 extra usefulness.\nIf we stock both 6 and 22, we gain 104 extra usefulness.\nIf we stock both 7 and 10, we gain 102 extra usefulness.\nIf we stock both 7 and 11, we gain 102 extra usefulness.\nIf we stock both 7 and 13, we gain 105 extra usefulness.\nIf we stock both 7 and 16, we gain 104 extra usefulness.\nIf we stock both 7 and 17, we gain 101 extra usefulness.\nIf we stock both 7 and 20, we gain 100 extra usefulness.\nIf we stock both 7 and 22, we gain 104 extra usefulness.\nIf we stock both 8 and 10, we gain 100 extra usefulness.\nIf we stock both 8 and 11, we gain 103 extra usefulness.\nIf we stock both 8 and 13, we gain 101 extra usefulness.\nIf we stock both 8 and 15, we gain 103 extra usefulness.\nIf we stock both 8 and 16, we gain 104 extra usefulness.\nIf we stock both 8 and 19, we gain 105 extra usefulness.\nIf we stock both 8 and 20, we gain 102 extra usefulness.\nIf we stock both 8 and 24, we gain 103 extra usefulness.\nIf we stock both 9 and 13, we gain 105 extra usefulness.\nIf we stock both 9 and 14, we gain 105 extra usefulness.\nIf we stock both 9 and 18, we gain 100 extra usefulness.\nIf we stock both 9 and 19, we gain 105 extra usefulness.\nIf we stock both 9 and 22, we gain 100 extra usefulness.\nIf we stock both 9 and 23, we gain 105 extra usefulness.\nIf we stock both 10 and 12, we gain 103 extra usefulness.\nIf we stock both 10 and 13, we gain 104 extra usefulness.\nIf we stock both 10 and 14, we gain 105 extra usefulness.\nIf we stock both 10 and 15, we gain 103 extra usefulness.\nIf we stock both 10 and 16, we gain 104 extra usefulness.\nIf we stock both 10 and 21, we gain 103 extra usefulness.\nIf we stock both 10 and 23, we gain 102 extra usefulness.\nIf we stock both 10 and 24, we gain 105 extra usefulness.\nIf we stock both 11 and 12, we gain 103 extra usefulness.\nIf we stock both 11 and 14, we gain 100 extra usefulness.\nIf we stock both 11 and 16, we gain 100 extra usefulness.\nIf we stock both 11 and 18, we gain 102 extra usefulness.\nIf we stock both 11 and 21, we gain 102 extra usefulness.\nIf we stock both 11 and 23, we gain 104 extra usefulness.\nIf we stock both 11 and 24, we gain 101 extra usefulness.\nIf we stock both 12 and 13, we gain 105 extra usefulness.\nIf we stock both 12 and 15, we gain 105 extra usefulness.\nIf we stock both 12 and 16, we gain 100 extra usefulness.\nIf we stock both 12 and 18, we gain 102 extra usefulness.\nIf we stock both 12 and 21, we gain 102 extra usefulness.\nIf we stock both 12 and 22, we gain 101 extra usefulness.\nIf we stock both 12 and 24, we gain 104 extra usefulness.\nIf we stock both 13 and 14, we gain 103 extra usefulness.\nIf we stock both 13 and 15, we gain 104 extra usefulness.\nIf we stock both 13 and 16, we gain 101 extra usefulness.\nIf we stock both 14 and 16, we gain 101 extra usefulness.\nIf we stock both 14 and 19, we gain 100 extra usefulness.\nIf we stock both 14 and 20, we gain 100 extra usefulness.\nIf we stock both 14 and 21, we gain 104 extra usefulness.\nIf we stock both 15 and 16, we gain 104 extra usefulness.\nIf we stock both 15 and 18, we gain 100 extra usefulness.\nIf we stock both 15 and 22, we gain 105 extra usefulness.\nIf we stock both 15 and 23, we gain 101 extra usefulness.\nIf we stock both 16 and 17, we gain 103 extra usefulness.\nIf we stock both 16 and 20, we gain 104 extra usefulness.\nIf we stock both 16 and 21, we gain 104 extra usefulness.\nIf we stock both 16 and 22, we gain 102 extra usefulness.\nIf we stock both 16 and 23, we gain 103 extra usefulness.\nIf we stock both 16 and 24, we gain 104 extra usefulness.\nIf we stock both 17 and 21, we gain 103 extra usefulness.\nIf we stock both 18 and 19, we gain 105 extra usefulness.\nIf we stock both 18 and 21, we gain 105 extra usefulness.\nIf we stock both 18 and 23, we gain 104 extra usefulness.\nIf we stock both 19 and 20, we gain 105 extra usefulness.\nIf we stock both 19 and 21, we gain 100 extra usefulness.\nIf we stock both 19 and 23, we gain 103 extra usefulness.\nIf we stock both 19 and 24, we gain 104 extra usefulness.\nIf we stock both 20 and 24, we gain 102 extra usefulness.\nIf we stock both 22 and 23, we gain 100 extra usefulness.\nIf we stock both 23 and 24, we gain 103 extra usefulness.\nWe'll pick non-duplicated supplies that fit within 851 to maximize overall usefulness.\n\nAlso, when you send back your pick, a tiny JSON snippet like the one below works great — just a single field listing the items you chose.\n\n{\n \"solution\": [, , ...]\n}\n\nPretty simple: \"solution\" is the list of items you'll put on the shelf, and each placeholder is where you drop an exact item identifier from the instance. Think of it like filling out a short form — the JSON shows the shape I expect, but you should replace those placeholders with the real IDs.\n\nPlease use the identifiers exactly as they appear in the problem input — don't rename them or invent new labels. \nFor 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”.\"", "instance": { "linear_coeffs": [ 102, 102, 101, 105, 100, 103, 105, 104, 102, 102, 102, 102, 101, 101, 103, 100, 101, 105, 101, 104, 103, 104, 105, 104 ], "quadratic_coeffs": [ [ 0, 103, 103, 0, 102, 104, 0, 103, 0, 0, 100, 0, 105, 0, 103, 101, 0, 0, 0, 105, 0, 103, 0, 0 ], [ 0, 100, 101, 0, 0, 0, 0, 0, 102, 104, 0, 101, 0, 0, 105, 105, 0, 105, 0, 0, 100, 0, 105, 0 ], [ 0, 0, 0, 105, 105, 103, 105, 0, 0, 102, 0, 0, 101, 103, 102, 0, 101, 0, 0, 0, 105, 100, 103, 104 ], [ 0, 0, 0, 0, 101, 105, 0, 101, 102, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 101, 0, 100, 0 ], [ 0, 0, 0, 0, 104, 105, 0, 0, 0, 105, 102, 105, 0, 0, 0, 105, 0, 100, 104, 0, 0, 105, 0, 0 ], [ 0, 0, 0, 0, 0, 104, 0, 0, 0, 101, 0, 0, 101, 103, 0, 0, 102, 101, 0, 0, 101, 104, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 0, 105, 0, 0, 104, 101, 0, 0, 100, 0, 104, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 104, 0, 100, 103, 0, 101, 0, 103, 104, 0, 0, 105, 102, 0, 0, 0, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 105, 0, 0, 0, 100, 105, 0, 0, 100, 105, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 104, 105, 103, 104, 0, 0, 0, 0, 103, 0, 102, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 103, 0, 100, 0, 100, 0, 102, 0, 0, 102, 0, 104, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 105, 100, 0, 102, 0, 0, 102, 101, 0, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 103, 104, 101, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 101, 0, 0, 100, 100, 104, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 104, 0, 100, 0, 0, 0, 105, 101, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 104, 104, 102, 103, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 105, 0, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 105, 100, 0, 103, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 100, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 100, 104, 103, 105, 105, 102, 103, 105, 105, 102, 105, 103, 103, 102, 102, 100, 100, 104, 102, 104, 103, 104, 105, 101 ], "capacity": 851, "solution": [ 1, 2, 9, 11, 14, 15, 22, 23 ], "obj": 3192.0, "problem_type": "QKP" }, "solution": [ 1, 2, 9, 11, 14, 15, 22, 23 ], "obj": 3192.0, "instance_variant": { "problem_type": "QKP", "num_items": 24, "capacity": 851, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 102 }, { "item_id": 2, "linear_profit": 102 }, { "item_id": 3, "linear_profit": 101 }, { "item_id": 4, "linear_profit": 105 }, { "item_id": 5, "linear_profit": 100 }, { "item_id": 6, "linear_profit": 103 }, { "item_id": 7, "linear_profit": 105 }, { "item_id": 8, "linear_profit": 104 }, { "item_id": 9, "linear_profit": 102 }, { "item_id": 10, "linear_profit": 102 }, { "item_id": 11, "linear_profit": 102 }, { "item_id": 12, "linear_profit": 102 }, { "item_id": 13, "linear_profit": 101 }, { "item_id": 14, "linear_profit": 101 }, { "item_id": 15, "linear_profit": 103 }, { "item_id": 16, "linear_profit": 100 }, { "item_id": 17, "linear_profit": 101 }, { "item_id": 18, "linear_profit": 105 }, { "item_id": 19, "linear_profit": 101 }, { "item_id": 20, "linear_profit": 104 }, { "item_id": 21, "linear_profit": 103 }, { "item_id": 22, "linear_profit": 104 }, { "item_id": 23, "linear_profit": 105 }, { "item_id": 24, "linear_profit": 104 } ], "weight_pairs": [ { "item_id": 1, "weight": 100 }, { "item_id": 2, "weight": 104 }, { "item_id": 3, "weight": 103 }, { "item_id": 4, "weight": 105 }, { "item_id": 5, "weight": 105 }, { "item_id": 6, "weight": 102 }, { "item_id": 7, "weight": 103 }, { "item_id": 8, "weight": 105 }, { "item_id": 9, "weight": 105 }, { "item_id": 10, "weight": 102 }, { "item_id": 11, "weight": 105 }, { "item_id": 12, "weight": 103 }, { "item_id": 13, "weight": 103 }, { "item_id": 14, "weight": 102 }, { "item_id": 15, "weight": 102 }, { "item_id": 16, "weight": 100 }, { "item_id": 17, "weight": 100 }, { "item_id": 18, "weight": 104 }, { "item_id": 19, "weight": 102 }, { "item_id": 20, "weight": 104 }, { "item_id": 21, "weight": 103 }, { "item_id": 22, "weight": 104 }, { "item_id": 23, "weight": 105 }, { "item_id": 24, "weight": 101 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 22, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 23, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 21, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 22, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 24, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 22, "quadratic_profit": 105 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 22, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 7, "item_j_id": 22, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 105 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 24, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 22, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 23, "quadratic_profit": 105 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 104 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 105 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 104 }, { "item_i_id": 10, "item_j_id": 21, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 23, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 24, "quadratic_profit": 105 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 21, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 23, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 24, "quadratic_profit": 101 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 105 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 12, "item_j_id": 24, "quadratic_profit": 104 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 104 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 21, "quadratic_profit": 104 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 104 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 15, "item_j_id": 22, "quadratic_profit": 105 }, { "item_i_id": 15, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 104 }, { "item_i_id": 16, "item_j_id": 21, "quadratic_profit": 104 }, { "item_i_id": 16, "item_j_id": 22, "quadratic_profit": 102 }, { "item_i_id": 16, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 16, "item_j_id": 24, "quadratic_profit": 104 }, { "item_i_id": 17, "item_j_id": 21, "quadratic_profit": 103 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 105 }, { "item_i_id": 18, "item_j_id": 21, "quadratic_profit": 105 }, { "item_i_id": 18, "item_j_id": 23, "quadratic_profit": 104 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 19, "item_j_id": 20, "quadratic_profit": 105 }, { "item_i_id": 19, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 19, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 19, "item_j_id": 24, "quadratic_profit": 104 }, { "item_i_id": 20, "item_j_id": 24, "quadratic_profit": 102 }, { "item_i_id": 22, "item_j_id": 22, "quadratic_profit": 103 }, { "item_i_id": 22, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 23, "item_j_id": 23, "quadratic_profit": 105 }, { "item_i_id": 23, "item_j_id": 24, "quadratic_profit": 103 } ] }, "solution_variant": [ 2, 3, 10, 12, 15, 16, 23, 24 ], "context_index": 14, "input_format": "nl", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Someone in the after-school program needs to pack activity kits before Monday: every item available contributes a baseline amount of learning and has a certain weight, and a few pairs of items amplify learning when they travel together. The goal is to pick a set of distinct items that together give the highest total learning (add up each chosen item’s value and any extra value from the special pairs) without making the kit heavier than students can handle. Look below for the concrete item weights, individual values, and pair bonuses.\n\n# num_available_items=23\n# max_kit_weight=1783\n# available_item_ids=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23\n\nitem_identifier,base_learning_value\n1,105\n2,104\n3,101\n4,104\n5,104\n6,105\n7,103\n8,104\n9,101\n10,101\n11,101\n12,103\n13,105\n14,100\n15,104\n16,104\n17,100\n18,100\n19,103\n20,105\n21,102\n22,103\n23,103\n\nitem_identifier,item_weight\n1,101\n2,104\n3,102\n4,105\n5,103\n6,101\n7,100\n8,103\n9,104\n10,105\n11,105\n12,100\n13,104\n14,104\n15,102\n16,100\n17,101\n18,103\n19,103\n20,104\n21,102\n22,105\n23,104\n\nitem_i_identifier,item_j_identifier,interaction_learning_bonus\n1,6,101\n1,9,101\n1,10,100\n1,11,101\n1,12,101\n1,13,101\n1,18,100\n1,19,100\n1,21,101\n1,22,101\n2,3,104\n2,5,102\n2,8,103\n2,10,100\n2,12,100\n2,13,102\n2,15,101\n2,16,100\n2,18,104\n2,20,102\n2,23,101\n3,5,102\n3,8,102\n3,9,100\n3,10,102\n3,12,101\n3,13,102\n3,15,102\n3,17,102\n3,19,102\n3,21,100\n4,8,100\n4,12,105\n4,15,102\n4,16,102\n4,17,102\n4,18,102\n4,19,101\n4,21,102\n4,23,102\n5,8,103\n5,10,103\n5,12,103\n5,13,100\n5,22,103\n5,23,103\n6,9,101\n6,12,104\n6,13,103\n6,14,105\n6,15,100\n6,19,102\n6,21,100\n6,22,102\n7,10,100\n7,13,101\n7,14,101\n7,15,101\n7,17,101\n7,21,101\n7,23,101\n8,10,100\n8,13,100\n8,14,100\n8,15,100\n8,16,100\n8,19,100\n8,23,100\n9,11,100\n9,12,100\n9,13,100\n9,14,101\n9,15,101\n9,18,101\n9,20,101\n10,11,101\n10,15,101\n10,16,101\n10,21,101\n10,23,101\n11,13,100\n11,18,103\n11,19,101\n11,20,103\n11,23,103\n12,13,102\n12,15,101\n12,17,102\n12,19,103\n12,22,104\n13,16,101\n14,15,100\n14,16,105\n14,17,100\n14,20,101\n14,22,102\n14,23,102\n15,17,102\n15,21,101\n15,23,101\n16,17,102\n16,22,100\n16,23,100\n17,23,101\n18,19,102\n18,21,100\n18,22,100\n18,23,100\n19,22,102\n\nAlso, just so we're on the same page, please give your final pick using this simple JSON layout so it's easy to read and check:\n\n{\n \"solution\": [, , ...]\n}\n\nThe \"solution\" array should list the item identifiers you want packed in the kit (one identifier per chosen item). Think of it like ticking boxes on a form — put the exact ids of the items you picked inside the brackets. This JSON is just the shape I expect, not your actual answer.\n\nPlease use the item ids exactly as they appear in 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”.", "instance": { "linear_coeffs": [ 105, 104, 101, 104, 104, 105, 103, 104, 101, 101, 101, 103, 105, 100, 104, 104, 100, 100, 103, 105, 102, 103, 103 ], "quadratic_coeffs": [ [ 101, 0, 0, 0, 0, 101, 0, 0, 101, 100, 101, 101, 101, 0, 0, 0, 0, 100, 100, 0, 101, 101, 0 ], [ 0, 0, 104, 0, 102, 0, 0, 103, 0, 100, 0, 100, 102, 0, 101, 100, 0, 104, 0, 102, 0, 0, 101 ], [ 0, 0, 102, 0, 102, 0, 0, 102, 100, 102, 0, 101, 102, 0, 102, 0, 102, 0, 102, 0, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 105, 0, 0, 102, 102, 102, 102, 101, 0, 102, 0, 102 ], [ 0, 0, 0, 0, 101, 0, 0, 103, 0, 103, 0, 103, 100, 0, 0, 0, 0, 0, 0, 0, 0, 103, 103 ], [ 0, 0, 0, 0, 0, 101, 0, 0, 101, 0, 0, 104, 103, 105, 100, 0, 0, 0, 102, 0, 100, 102, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 101, 101, 101, 0, 101, 0, 0, 0, 101, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 100, 100, 100, 100, 0, 0, 100, 0, 0, 0, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 100, 101, 101, 0, 0, 101, 0, 101, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 101, 101, 0, 0, 0, 0, 101, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 100, 0, 0, 0, 0, 103, 101, 103, 0, 0, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 102, 0, 101, 0, 102, 0, 103, 0, 0, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 105, 100, 0, 0, 101, 0, 102, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 101, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 102, 0, 0, 0, 0, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 101, 104, 102, 105, 103, 101, 100, 103, 104, 105, 105, 100, 104, 104, 102, 100, 101, 103, 103, 104, 102, 105, 104 ], "capacity": 1783, "solution": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 20, 22 ], "obj": 8946.0, "problem_type": "QKP" }, "solution": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 20, 22 ], "obj": 8946.0, "instance_variant": { "problem_type": "QKP", "num_items": 23, "capacity": 1783, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 105 }, { "item_id": 2, "linear_profit": 104 }, { "item_id": 3, "linear_profit": 101 }, { "item_id": 4, "linear_profit": 104 }, { "item_id": 5, "linear_profit": 104 }, { "item_id": 6, "linear_profit": 105 }, { "item_id": 7, "linear_profit": 103 }, { "item_id": 8, "linear_profit": 104 }, { "item_id": 9, "linear_profit": 101 }, { "item_id": 10, "linear_profit": 101 }, { "item_id": 11, "linear_profit": 101 }, { "item_id": 12, "linear_profit": 103 }, { "item_id": 13, "linear_profit": 105 }, { "item_id": 14, "linear_profit": 100 }, { "item_id": 15, "linear_profit": 104 }, { "item_id": 16, "linear_profit": 104 }, { "item_id": 17, "linear_profit": 100 }, { "item_id": 18, "linear_profit": 100 }, { "item_id": 19, "linear_profit": 103 }, { "item_id": 20, "linear_profit": 105 }, { "item_id": 21, "linear_profit": 102 }, { "item_id": 22, "linear_profit": 103 }, { "item_id": 23, "linear_profit": 103 } ], "weight_pairs": [ { "item_id": 1, "weight": 101 }, { "item_id": 2, "weight": 104 }, { "item_id": 3, "weight": 102 }, { "item_id": 4, "weight": 105 }, { "item_id": 5, "weight": 103 }, { "item_id": 6, "weight": 101 }, { "item_id": 7, "weight": 100 }, { "item_id": 8, "weight": 103 }, { "item_id": 9, "weight": 104 }, { "item_id": 10, "weight": 105 }, { "item_id": 11, "weight": 105 }, { "item_id": 12, "weight": 100 }, { "item_id": 13, "weight": 104 }, { "item_id": 14, "weight": 104 }, { "item_id": 15, "weight": 102 }, { "item_id": 16, "weight": 100 }, { "item_id": 17, "weight": 101 }, { "item_id": 18, "weight": 103 }, { "item_id": 19, "weight": 103 }, { "item_id": 20, "weight": 104 }, { "item_id": 21, "weight": 102 }, { "item_id": 22, "weight": 105 }, { "item_id": 23, "weight": 104 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 21, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 23, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 22, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 105 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 22, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 103 }, { "item_i_id": 12, "item_j_id": 22, "quadratic_profit": 104 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 105 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 22, "quadratic_profit": 102 }, { "item_i_id": 14, "item_j_id": 23, "quadratic_profit": 102 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 15, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 15, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 16, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 16, "item_j_id": 22, "quadratic_profit": 100 }, { "item_i_id": 16, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 17, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 17, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 18, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 18, "item_j_id": 22, "quadratic_profit": 100 }, { "item_i_id": 18, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 19, "item_j_id": 22, "quadratic_profit": 102 } ] }, "solution_variant": [ 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 21, 23 ], "context_index": 15, "input_format": "csv", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "On a blank gallery wall, a curator is deciding which prints to hang to create the strongest overall impression within the space available. Each print eats into the wall allowance and offers its own visual value, and select pairs of prints give an added boost when displayed together. The decision is to pick a set of prints that fits inside the allotted area (each print only once) and to tally up the total effect by adding each chosen print’s value plus any bonuses from pairs, aiming for the highest possible total impact. The specific sizes, individual values, and pair bonuses are shown below.\n\nThere are 21 prints available — 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 — and the curator has 3768 total wall area to allocate.\n\n| print_id | base_visual_value |\n|---|---|\n| 0 | 304 |\n| 1 | 215 |\n| 2 | 318 |\n| 3 | 229 |\n| 4 | 260 |\n| 5 | 184 |\n| 6 | 318 |\n| 7 | 136 |\n| 8 | 143 |\n| 9 | 190 |\n| 10 | 231 |\n| 11 | 223 |\n| 12 | 174 |\n| 13 | 263 |\n| 14 | 322 |\n| 15 | 135 |\n| 16 | 145 |\n| 17 | 180 |\n| 18 | 291 |\n| 19 | 205 |\n| 20 | 179 |\n\n| print_id | display_area |\n|---|---|\n| 0 | 274 |\n| 1 | 185 |\n| 2 | 288 |\n| 3 | 199 |\n| 4 | 230 |\n| 5 | 154 |\n| 6 | 288 |\n| 7 | 106 |\n| 8 | 113 |\n| 9 | 160 |\n| 10 | 201 |\n| 11 | 193 |\n| 12 | 144 |\n| 13 | 233 |\n| 14 | 292 |\n| 15 | 105 |\n| 16 | 115 |\n| 17 | 150 |\n| 18 | 261 |\n| 19 | 175 |\n| 20 | 149 |\n\n| print_i_id | print_j_id | pair_synergy_value |\n|---|---|---|\n| 0 | 2 | 154 |\n| 0 | 6 | 113 |\n| 0 | 8 | 229 |\n| 0 | 10 | 193 |\n| 0 | 12 | 225 |\n| 0 | 13 | 217 |\n| 0 | 14 | 267 |\n| 0 | 15 | 150 |\n| 0 | 17 | 216 |\n| 0 | 18 | 159 |\n| 0 | 20 | 185 |\n| 1 | 2 | 185 |\n| 1 | 3 | 114 |\n| 1 | 5 | 160 |\n| 1 | 6 | 185 |\n| 1 | 7 | 185 |\n| 1 | 8 | 185 |\n| 1 | 9 | 104 |\n| 1 | 11 | 185 |\n| 1 | 12 | 185 |\n| 1 | 14 | 185 |\n| 2 | 6 | 110 |\n| 2 | 7 | 193 |\n| 2 | 11 | 212 |\n| 2 | 12 | 254 |\n| 2 | 13 | 267 |\n| 2 | 17 | 139 |\n| 2 | 19 | 199 |\n| 2 | 20 | 199 |\n| 3 | 4 | 199 |\n| 3 | 5 | 104 |\n| 3 | 7 | 177 |\n| 3 | 9 | 199 |\n| 3 | 11 | 195 |\n| 3 | 12 | 199 |\n| 3 | 14 | 149 |\n| 3 | 16 | 110 |\n| 3 | 17 | 106 |\n| 4 | 6 | 215 |\n| 4 | 7 | 230 |\n| 4 | 11 | 230 |\n| 4 | 12 | 210 |\n| 4 | 16 | 154 |\n| 4 | 19 | 104 |\n| 4 | 20 | 110 |\n| 5 | 8 | 154 |\n| 5 | 11 | 154 |\n| 5 | 16 | 113 |\n| 5 | 18 | 139 |\n| 5 | 19 | 139 |\n| 5 | 20 | 139 |\n| 6 | 9 | 113 |\n| 6 | 12 | 105 |\n| 6 | 14 | 106 |\n| 6 | 15 | 106 |\n| 6 | 16 | 106 |\n| 6 | 17 | 106 |\n| 6 | 20 | 106 |\n| 7 | 8 | 106 |\n| 7 | 12 | 106 |\n| 7 | 14 | 206 |\n| 7 | 15 | 206 |\n| 7 | 16 | 180 |\n| 7 | 17 | 206 |\n| 7 | 19 | 206 |\n| 7 | 20 | 206 |\n| 8 | 10 | 113 |\n| 8 | 12 | 113 |\n| 8 | 13 | 113 |\n| 8 | 15 | 110 |\n| 8 | 18 | 229 |\n| 8 | 19 | 229 |\n| 8 | 20 | 229 |\n| 9 | 12 | 160 |\n| 9 | 17 | 259 |\n| 9 | 18 | 144 |\n| 9 | 20 | 264 |\n| 10 | 12 | 201 |\n| 10 | 14 | 233 |\n| 10 | 16 | 195 |\n| 10 | 18 | 233 |\n| 10 | 19 | 210 |\n| 10 | 20 | 233 |\n| 11 | 13 | 144 |\n| 11 | 15 | 177 |\n| 11 | 16 | 177 |\n| 11 | 17 | 177 |\n| 11 | 18 | 138 |\n| 11 | 20 | 177 |\n| 12 | 14 | 113 |\n| 12 | 20 | 113 |\n| 13 | 15 | 118 |\n| 13 | 16 | 173 |\n| 13 | 17 | 173 |\n| 13 | 18 | 115 |\n| 14 | 17 | 150 |\n| 14 | 20 | 278 |\n| 16 | 18 | 129 |\n| 16 | 19 | 149 |\n| 16 | 20 | 159 |\n\nThe curator will choose a combination of prints that fits the allowance and maximizes the overall visual impact.\n\nAlso, when you tell me which prints you want to hang, just send it back in this simple JSON shape so I can read it easily:\n\n{\n \"solution\": [, , ...]\n}\n\n\"solution\" is just the list of prints you picked (use each print's identifier exactly as it appears in the instance). Think of it like filling out a short form: the array holds the ids of the prints you want on the wall. This JSON is only a sketch of the expected shape — not the actual answer.\n\nPlease make sure to use the identifiers exactly as given in the input — no renaming and no new labels.\n\nFor 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”.\"", "instance": { "linear_coeffs": [ 304, 215, 318, 229, 260, 184, 318, 136, 143, 190, 231, 223, 174, 263, 322, 135, 145, 180, 291, 205, 179 ], "quadratic_coeffs": [ [ 185, 0, 154, 0, 0, 0, 113, 0, 229, 0, 193, 0, 225, 217, 267, 150, 0, 216, 159, 0, 185 ], [ 0, 0, 185, 114, 0, 160, 185, 185, 185, 104, 0, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 110, 193, 0, 0, 0, 212, 254, 267, 0, 0, 0, 139, 0, 199, 199 ], [ 0, 0, 0, 0, 199, 104, 0, 177, 0, 199, 0, 195, 199, 0, 149, 0, 110, 106, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 215, 230, 0, 0, 0, 230, 210, 0, 0, 0, 154, 0, 0, 104, 110 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 154, 0, 0, 154, 0, 0, 0, 0, 113, 0, 139, 139, 139 ], [ 0, 0, 0, 0, 0, 0, 218, 0, 0, 113, 0, 0, 105, 0, 106, 106, 106, 106, 0, 0, 106 ], [ 0, 0, 0, 0, 0, 0, 0, 106, 106, 0, 0, 0, 106, 0, 206, 206, 180, 206, 0, 206, 206 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 113, 0, 113, 0, 113, 113, 0, 110, 0, 0, 229, 229, 229 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 160, 0, 0, 160, 0, 0, 0, 0, 259, 144, 0, 264 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 0, 201, 0, 233, 0, 195, 0, 233, 210, 233 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 0, 144, 0, 177, 177, 177, 138, 0, 177 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 0, 0, 0, 0, 0, 113 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 221, 0, 118, 173, 173, 115, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 0, 0, 150, 0, 0, 278 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 154, 0, 129, 149, 159 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 274, 185, 288, 199, 230, 154, 288, 106, 113, 160, 201, 193, 144, 233, 292, 105, 115, 150, 261, 175, 149 ], "capacity": 3768, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20 ], "obj": 20049.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20 ], "obj": 20049.0, "instance_variant": { "problem_type": "QKP", "num_items": 21, "capacity": 3768, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 304 }, { "item_id": 1, "linear_profit": 215 }, { "item_id": 2, "linear_profit": 318 }, { "item_id": 3, "linear_profit": 229 }, { "item_id": 4, "linear_profit": 260 }, { "item_id": 5, "linear_profit": 184 }, { "item_id": 6, "linear_profit": 318 }, { "item_id": 7, "linear_profit": 136 }, { "item_id": 8, "linear_profit": 143 }, { "item_id": 9, "linear_profit": 190 }, { "item_id": 10, "linear_profit": 231 }, { "item_id": 11, "linear_profit": 223 }, { "item_id": 12, "linear_profit": 174 }, { "item_id": 13, "linear_profit": 263 }, { "item_id": 14, "linear_profit": 322 }, { "item_id": 15, "linear_profit": 135 }, { "item_id": 16, "linear_profit": 145 }, { "item_id": 17, "linear_profit": 180 }, { "item_id": 18, "linear_profit": 291 }, { "item_id": 19, "linear_profit": 205 }, { "item_id": 20, "linear_profit": 179 } ], "weight_pairs": [ { "item_id": 0, "weight": 274 }, { "item_id": 1, "weight": 185 }, { "item_id": 2, "weight": 288 }, { "item_id": 3, "weight": 199 }, { "item_id": 4, "weight": 230 }, { "item_id": 5, "weight": 154 }, { "item_id": 6, "weight": 288 }, { "item_id": 7, "weight": 106 }, { "item_id": 8, "weight": 113 }, { "item_id": 9, "weight": 160 }, { "item_id": 10, "weight": 201 }, { "item_id": 11, "weight": 193 }, { "item_id": 12, "weight": 144 }, { "item_id": 13, "weight": 233 }, { "item_id": 14, "weight": 292 }, { "item_id": 15, "weight": 105 }, { "item_id": 16, "weight": 115 }, { "item_id": 17, "weight": 150 }, { "item_id": 18, "weight": 261 }, { "item_id": 19, "weight": 175 }, { "item_id": 20, "weight": 149 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 185 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 154 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 113 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 229 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 193 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 225 }, { "item_i_id": 0, "item_j_id": 13, "quadratic_profit": 217 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 267 }, { "item_i_id": 0, "item_j_id": 15, "quadratic_profit": 150 }, { "item_i_id": 0, "item_j_id": 17, "quadratic_profit": 216 }, { "item_i_id": 0, "item_j_id": 18, "quadratic_profit": 159 }, { "item_i_id": 0, "item_j_id": 20, "quadratic_profit": 185 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 185 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 114 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 160 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 185 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 185 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 185 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 185 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 185 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 185 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 193 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 212 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 254 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 267 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 139 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 199 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 199 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 199 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 104 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 177 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 199 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 195 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 199 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 149 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 110 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 106 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 215 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 230 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 230 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 210 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 154 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 110 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 154 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 154 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 113 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 139 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 139 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 139 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 218 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 113 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 106 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 106 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 106 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 106 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 106 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 106 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 106 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 106 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 206 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 206 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 180 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 206 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 206 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 206 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 113 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 113 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 113 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 113 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 110 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 229 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 229 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 229 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 160 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 160 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 259 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 144 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 264 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 201 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 201 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 233 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 195 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 233 }, { "item_i_id": 10, "item_j_id": 19, "quadratic_profit": 210 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 233 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 193 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 144 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 177 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 177 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 177 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 138 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 177 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 113 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 113 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 221 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 118 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 173 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 173 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 115 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 159 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 150 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 278 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 216 }, { "item_i_id": 16, "item_j_id": 16, "quadratic_profit": 154 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 129 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 149 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 159 } ] }, "solution_variant": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20 ], "context_index": 16, "input_format": "markdown_table", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Someone on the product team thought it would be fun to treat kit design like a game: which amenities go in to get the biggest cheer from travelers? Every item adds a certain amount of satisfaction and costs a bit of kit weight, and sometimes two items together create a little extra perk that adds more satisfaction on top. The final happiness score is just the sum of the individual item scores plus any pair bonuses, while the practical limits are that the kit’s total weight can’t exceed the packing limit and each amenity is used at most once. The specific item list and pair perks are shown below.\n\nBelow are the 18 amenity options (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R) and the kit weight capacity is 235.\nAmenity A contributes 106 satisfaction to the kit when included.\nAmenity B contributes 163 satisfaction to the kit when included.\nAmenity C contributes 180 satisfaction to the kit when included.\nAmenity D contributes 124 satisfaction to the kit when included.\nAmenity E contributes 153 satisfaction to the kit when included.\nAmenity F contributes 127 satisfaction to the kit when included.\nAmenity G contributes 119 satisfaction to the kit when included.\nAmenity H contributes 167 satisfaction to the kit when included.\nAmenity I contributes 168 satisfaction to the kit when included.\nAmenity J contributes 186 satisfaction to the kit when included.\nAmenity K contributes 130 satisfaction to the kit when included.\nAmenity L contributes 98 satisfaction to the kit when included.\nAmenity M contributes 145 satisfaction to the kit when included.\nAmenity N contributes 101 satisfaction to the kit when included.\nAmenity O contributes 138 satisfaction to the kit when included.\nAmenity P contributes 109 satisfaction to the kit when included.\nAmenity Q contributes 168 satisfaction to the kit when included.\nAmenity R contributes 140 satisfaction to the kit when included.\nAmenity A has weight 105 toward the kit's packing limit.\nAmenity B has weight 153 toward the kit's packing limit.\nAmenity C has weight 181 toward the kit's packing limit.\nAmenity D has weight 125 toward the kit's packing limit.\nAmenity E has weight 143 toward the kit's packing limit.\nAmenity F has weight 126 toward the kit's packing limit.\nAmenity G has weight 123 toward the kit's packing limit.\nAmenity H has weight 168 toward the kit's packing limit.\nAmenity I has weight 174 toward the kit's packing limit.\nAmenity J has weight 187 toward the kit's packing limit.\nAmenity K has weight 128 toward the kit's packing limit.\nAmenity L has weight 108 toward the kit's packing limit.\nAmenity M has weight 143 toward the kit's packing limit.\nAmenity N has weight 106 toward the kit's packing limit.\nAmenity O has weight 133 toward the kit's packing limit.\nAmenity P has weight 119 toward the kit's packing limit.\nAmenity Q has weight 165 toward the kit's packing limit.\nAmenity R has weight 130 toward the kit's packing limit.\nAmenities A and B together grant an extra 189 satisfaction if both are packed.\nAmenities A and C together grant an extra 179 satisfaction if both are packed.\nAmenities A and D together grant an extra 120 satisfaction if both are packed.\nAmenities A and E together grant an extra 161 satisfaction if both are packed.\nAmenities A and F together grant an extra 180 satisfaction if both are packed.\nAmenities A and G together grant an extra 164 satisfaction if both are packed.\nAmenities A and H together grant an extra 175 satisfaction if both are packed.\nAmenities A and I together grant an extra 136 satisfaction if both are packed.\nAmenities A and J together grant an extra 184 satisfaction if both are packed.\nAmenities A and K together grant an extra 132 satisfaction if both are packed.\nAmenities A and L together grant an extra 134 satisfaction if both are packed.\nAmenities A and M together grant an extra 160 satisfaction if both are packed.\nAmenities A and N together grant an extra 109 satisfaction if both are packed.\nAmenities A and O together grant an extra 138 satisfaction if both are packed.\nAmenities A and P together grant an extra 156 satisfaction if both are packed.\nAmenities A and Q together grant an extra 113 satisfaction if both are packed.\nAmenities A and R together grant an extra 156 satisfaction if both are packed.\nAmenities B and C together grant an extra 157 satisfaction if both are packed.\nAmenities B and D together grant an extra 180 satisfaction if both are packed.\nAmenities B and E together grant an extra 139 satisfaction if both are packed.\nAmenities B and F together grant an extra 152 satisfaction if both are packed.\nAmenities B and G together grant an extra 117 satisfaction if both are packed.\nAmenities B and H together grant an extra 180 satisfaction if both are packed.\nAmenities B and I together grant an extra 161 satisfaction if both are packed.\nAmenities B and J together grant an extra 103 satisfaction if both are packed.\nAmenities B and K together grant an extra 165 satisfaction if both are packed.\nAmenities B and L together grant an extra 182 satisfaction if both are packed.\nAmenities B and M together grant an extra 182 satisfaction if both are packed.\nAmenities B and N together grant an extra 182 satisfaction if both are packed.\nAmenities B and O together grant an extra 175 satisfaction if both are packed.\nAmenities B and P together grant an extra 134 satisfaction if both are packed.\nAmenities B and Q together grant an extra 172 satisfaction if both are packed.\nAmenities B and R together grant an extra 156 satisfaction if both are packed.\nAmenities C and D together grant an extra 104 satisfaction if both are packed.\nAmenities C and E together grant an extra 143 satisfaction if both are packed.\nAmenities C and F together grant an extra 173 satisfaction if both are packed.\nAmenities C and G together grant an extra 178 satisfaction if both are packed.\nAmenities C and H together grant an extra 185 satisfaction if both are packed.\nAmenities C and I together grant an extra 115 satisfaction if both are packed.\nAmenities C and J together grant an extra 145 satisfaction if both are packed.\nAmenities C and K together grant an extra 137 satisfaction if both are packed.\nAmenities C and L together grant an extra 180 satisfaction if both are packed.\nAmenities C and M together grant an extra 196 satisfaction if both are packed.\nAmenities C and N together grant an extra 193 satisfaction if both are packed.\nAmenities C and O together grant an extra 173 satisfaction if both are packed.\nAmenities C and P together grant an extra 132 satisfaction if both are packed.\nAmenities C and Q together grant an extra 177 satisfaction if both are packed.\nAmenities C and R together grant an extra 114 satisfaction if both are packed.\nAmenities D and E together grant an extra 106 satisfaction if both are packed.\nAmenities D and F together grant an extra 141 satisfaction if both are packed.\nAmenities D and G together grant an extra 148 satisfaction if both are packed.\nAmenities D and H together grant an extra 166 satisfaction if both are packed.\nAmenities D and I together grant an extra 124 satisfaction if both are packed.\nAmenities D and J together grant an extra 185 satisfaction if both are packed.\nAmenities D and K together grant an extra 130 satisfaction if both are packed.\nAmenities D and L together grant an extra 153 satisfaction if both are packed.\nAmenities D and M together grant an extra 161 satisfaction if both are packed.\nAmenities D and N together grant an extra 126 satisfaction if both are packed.\nAmenities D and O together grant an extra 186 satisfaction if both are packed.\nAmenities D and P together grant an extra 114 satisfaction if both are packed.\nAmenities D and Q together grant an extra 103 satisfaction if both are packed.\nAmenities D and R together grant an extra 195 satisfaction if both are packed.\nAmenities E and F together grant an extra 113 satisfaction if both are packed.\nAmenities E and G together grant an extra 159 satisfaction if both are packed.\nAmenities E and H together grant an extra 138 satisfaction if both are packed.\nAmenities E and I together grant an extra 136 satisfaction if both are packed.\nAmenities E and J together grant an extra 100 satisfaction if both are packed.\nAmenities E and K together grant an extra 164 satisfaction if both are packed.\nAmenities E and L together grant an extra 104 satisfaction if both are packed.\nAmenities E and M together grant an extra 182 satisfaction if both are packed.\nAmenities E and N together grant an extra 152 satisfaction if both are packed.\nAmenities E and O together grant an extra 147 satisfaction if both are packed.\nAmenities E and P together grant an extra 177 satisfaction if both are packed.\nAmenities E and Q together grant an extra 180 satisfaction if both are packed.\nAmenities E and R together grant an extra 170 satisfaction if both are packed.\nAmenities F and G together grant an extra 100 satisfaction if both are packed.\nAmenities F and H together grant an extra 137 satisfaction if both are packed.\nAmenities F and I together grant an extra 123 satisfaction if both are packed.\nAmenities F and J together grant an extra 133 satisfaction if both are packed.\nAmenities F and K together grant an extra 135 satisfaction if both are packed.\nAmenities F and L together grant an extra 181 satisfaction if both are packed.\nAmenities F and M together grant an extra 144 satisfaction if both are packed.\nAmenities F and N together grant an extra 194 satisfaction if both are packed.\nAmenities F and O together grant an extra 173 satisfaction if both are packed.\nAmenities F and P together grant an extra 115 satisfaction if both are packed.\nAmenities F and Q together grant an extra 187 satisfaction if both are packed.\nAmenities F and R together grant an extra 176 satisfaction if both are packed.\nAmenities G and H together grant an extra 185 satisfaction if both are packed.\nAmenities G and I together grant an extra 196 satisfaction if both are packed.\nAmenities G and J together grant an extra 194 satisfaction if both are packed.\nAmenities G and K together grant an extra 167 satisfaction if both are packed.\nAmenities G and L together grant an extra 165 satisfaction if both are packed.\nAmenities G and M together grant an extra 134 satisfaction if both are packed.\nAmenities G and N together grant an extra 170 satisfaction if both are packed.\nAmenities G and O together grant an extra 117 satisfaction if both are packed.\nAmenities G and P together grant an extra 105 satisfaction if both are packed.\nAmenities G and Q together grant an extra 157 satisfaction if both are packed.\nAmenities G and R together grant an extra 163 satisfaction if both are packed.\nAmenities H and I together grant an extra 110 satisfaction if both are packed.\nAmenities H and J together grant an extra 166 satisfaction if both are packed.\nAmenities H and K together grant an extra 112 satisfaction if both are packed.\nAmenities H and L together grant an extra 107 satisfaction if both are packed.\nAmenities H and M together grant an extra 162 satisfaction if both are packed.\nAmenities H and N together grant an extra 108 satisfaction if both are packed.\nAmenities H and O together grant an extra 197 satisfaction if both are packed.\nAmenities H and P together grant an extra 133 satisfaction if both are packed.\nAmenities H and Q together grant an extra 193 satisfaction if both are packed.\nAmenities H and R together grant an extra 190 satisfaction if both are packed.\nAmenities I and J together grant an extra 129 satisfaction if both are packed.\nAmenities I and K together grant an extra 194 satisfaction if both are packed.\nAmenities I and L together grant an extra 147 satisfaction if both are packed.\nAmenities I and M together grant an extra 123 satisfaction if both are packed.\nAmenities I and N together grant an extra 147 satisfaction if both are packed.\nAmenities I and O together grant an extra 106 satisfaction if both are packed.\nAmenities I and P together grant an extra 132 satisfaction if both are packed.\nAmenities I and Q together grant an extra 165 satisfaction if both are packed.\nAmenities I and R together grant an extra 138 satisfaction if both are packed.\nAmenities J and K together grant an extra 199 satisfaction if both are packed.\nAmenities J and L together grant an extra 173 satisfaction if both are packed.\nAmenities J and M together grant an extra 160 satisfaction if both are packed.\nAmenities J and N together grant an extra 157 satisfaction if both are packed.\nAmenities J and O together grant an extra 182 satisfaction if both are packed.\nAmenities J and P together grant an extra 159 satisfaction if both are packed.\nAmenities J and Q together grant an extra 156 satisfaction if both are packed.\nAmenities J and R together grant an extra 125 satisfaction if both are packed.\nAmenities K and L together grant an extra 185 satisfaction if both are packed.\nAmenities K and M together grant an extra 137 satisfaction if both are packed.\nAmenities K and N together grant an extra 159 satisfaction if both are packed.\nAmenities K and O together grant an extra 167 satisfaction if both are packed.\nAmenities K and P together grant an extra 157 satisfaction if both are packed.\nAmenities K and Q together grant an extra 149 satisfaction if both are packed.\nAmenities K and R together grant an extra 126 satisfaction if both are packed.\nAmenities L and M together grant an extra 151 satisfaction if both are packed.\nAmenities L and N together grant an extra 190 satisfaction if both are packed.\nAmenities L and O together grant an extra 167 satisfaction if both are packed.\nAmenities L and P together grant an extra 127 satisfaction if both are packed.\nAmenities L and Q together grant an extra 191 satisfaction if both are packed.\nAmenities L and R together grant an extra 140 satisfaction if both are packed.\nAmenities M and N together grant an extra 196 satisfaction if both are packed.\nAmenities M and O together grant an extra 128 satisfaction if both are packed.\nAmenities M and P together grant an extra 194 satisfaction if both are packed.\nAmenities M and Q together grant an extra 173 satisfaction if both are packed.\nAmenities M and R together grant an extra 103 satisfaction if both are packed.\nAmenities N and O together grant an extra 138 satisfaction if both are packed.\nAmenities N and P together grant an extra 199 satisfaction if both are packed.\nAmenities N and Q together grant an extra 125 satisfaction if both are packed.\nAmenities N and R together grant an extra 137 satisfaction if both are packed.\nAmenities O and P together grant an extra 152 satisfaction if both are packed.\nAmenities O and Q together grant an extra 134 satisfaction if both are packed.\nAmenities O and R together grant an extra 183 satisfaction if both are packed.\nAmenities P and Q together grant an extra 160 satisfaction if both are packed.\nAmenities P and R together grant an extra 157 satisfaction if both are packed.\nChoose amenities to maximize total satisfaction without exceeding the 235 kit weight.\n\nAlso, when you’re ready to tell me which items you’d pick, just send it back in a tiny JSON snippet like this:\n\n{\n \"solution\": [, , ...]\n}\n\nThe \"solution\" array is just the list of amenity IDs you want in the kit — think of it like ticking boxes on a form and listing the exact IDs you picked. This JSON is just the shape I expect, not the actual answer itself.\n\nPlease use the identifiers exactly as they appear in the instance input — don’t rename them or invent new labels.\n\nfor 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”.\"", "instance": { "linear_coeffs": [ 106, 163, 180, 124, 153, 127, 119, 167, 168, 186, 130, 98, 145, 101, 138, 109, 168, 140 ], "quadratic_coeffs": [ [ 181, 189, 179, 120, 161, 180, 164, 175, 136, 184, 132, 134, 160, 109, 138, 156, 113, 156 ], [ 0, 127, 157, 180, 139, 152, 117, 180, 161, 103, 165, 182, 182, 182, 175, 134, 172, 156 ], [ 0, 0, 138, 104, 143, 173, 178, 185, 115, 145, 137, 180, 196, 193, 173, 132, 177, 114 ], [ 0, 0, 0, 187, 106, 141, 148, 166, 124, 185, 130, 153, 161, 126, 186, 114, 103, 195 ], [ 0, 0, 0, 0, 171, 113, 159, 138, 136, 100, 164, 104, 182, 152, 147, 177, 180, 170 ], [ 0, 0, 0, 0, 0, 184, 100, 137, 123, 133, 135, 181, 144, 194, 173, 115, 187, 176 ], [ 0, 0, 0, 0, 0, 0, 176, 185, 196, 194, 167, 165, 134, 170, 117, 105, 157, 163 ], [ 0, 0, 0, 0, 0, 0, 0, 120, 110, 166, 112, 107, 162, 108, 197, 133, 193, 190 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 199, 129, 194, 147, 123, 147, 106, 132, 165, 138 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 199, 173, 160, 157, 182, 159, 156, 125 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 151, 185, 137, 159, 167, 157, 149, 126 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 154, 151, 190, 167, 127, 191, 140 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 196, 128, 194, 173, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 142, 138, 199, 125, 137 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 157, 152, 134, 183 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 187, 160, 157 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 105, 153, 181, 125, 143, 126, 123, 168, 174, 187, 128, 108, 143, 106, 133, 119, 165, 130 ], "capacity": 235, "solution": [ 5, 13 ], "obj": 422.0, "problem_type": "QKP" }, "solution": [ 5, 13 ], "obj": 422.0, "instance_variant": { "problem_type": "QKP", "num_items": 18, "capacity": 235, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 106 }, { "item_id": "B", "linear_profit": 163 }, { "item_id": "C", "linear_profit": 180 }, { "item_id": "D", "linear_profit": 124 }, { "item_id": "E", "linear_profit": 153 }, { "item_id": "F", "linear_profit": 127 }, { "item_id": "G", "linear_profit": 119 }, { "item_id": "H", "linear_profit": 167 }, { "item_id": "I", "linear_profit": 168 }, { "item_id": "J", "linear_profit": 186 }, { "item_id": "K", "linear_profit": 130 }, { "item_id": "L", "linear_profit": 98 }, { "item_id": "M", "linear_profit": 145 }, { "item_id": "N", "linear_profit": 101 }, { "item_id": "O", "linear_profit": 138 }, { "item_id": "P", "linear_profit": 109 }, { "item_id": "Q", "linear_profit": 168 }, { "item_id": "R", "linear_profit": 140 } ], "weight_pairs": [ { "item_id": "A", "weight": 105 }, { "item_id": "B", "weight": 153 }, { "item_id": "C", "weight": 181 }, { "item_id": "D", "weight": 125 }, { "item_id": "E", "weight": 143 }, { "item_id": "F", "weight": 126 }, { "item_id": "G", "weight": 123 }, { "item_id": "H", "weight": 168 }, { "item_id": "I", "weight": 174 }, { "item_id": "J", "weight": 187 }, { "item_id": "K", "weight": 128 }, { "item_id": "L", "weight": 108 }, { "item_id": "M", "weight": 143 }, { "item_id": "N", "weight": 106 }, { "item_id": "O", "weight": 133 }, { "item_id": "P", "weight": 119 }, { "item_id": "Q", "weight": 165 }, { "item_id": "R", "weight": 130 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 181 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 189 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 179 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 120 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 161 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 180 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 164 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 175 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 136 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 184 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 132 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 134 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 160 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 109 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 138 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 156 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 113 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 156 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 127 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 157 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 180 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 152 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 117 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 180 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 161 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 165 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 182 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 182 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 182 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 175 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 134 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 172 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 156 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 138 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 143 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 173 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 178 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 185 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 115 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 145 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 137 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 180 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 196 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 193 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 173 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 132 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 177 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 114 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 187 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 106 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 141 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 148 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 166 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 124 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 185 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 130 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 153 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 161 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 126 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 186 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 114 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 195 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 171 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 113 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 159 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 138 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 136 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 164 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 104 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 182 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 152 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 147 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 177 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 180 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 170 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 184 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 137 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 123 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 133 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 135 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 181 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 144 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 194 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 173 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 115 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 187 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 176 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 176 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 185 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 196 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 194 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 167 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 165 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 134 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 170 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 117 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 157 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 163 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 120 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 110 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 166 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 112 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 107 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 162 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 108 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 197 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 133 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 193 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 190 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 199 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 129 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 194 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 147 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 123 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 147 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 106 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 132 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 165 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 138 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 199 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 173 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 160 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 157 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 182 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 159 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 156 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 125 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 151 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 185 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 137 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 159 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 167 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 157 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 149 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 126 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 154 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 151 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 190 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 167 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 127 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 191 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 140 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 120 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 196 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 128 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 194 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 173 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 142 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 138 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 199 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 125 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 137 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 157 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 152 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 134 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 183 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 187 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 160 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 157 } ] }, "solution_variant": [ "F", "N" ], "context_index": 17, "input_format": "nl", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We have a limited block of bench time and a menu of possible experiments, each with its own duration and expected contribution to the project. The task is to decide which experiments to actually run so the whole schedule fits the session and the total expected scientific payoff — computed by adding every chosen experiment’s basic value and tacking on any extra value from experiments that synergize with each other — ends up as large as possible. Each experiment can be run at most once and total time can’t exceed the session. The concrete details follow below.\n\n# num_experiments=23\n# session_time_limit=1730\n# experiment_ids=A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W\n\nexperiment_id_for_time,base_scientific_value\nA,115\nB,113\nC,115\nD,110\nE,113\nF,111\nG,112\nH,111\nI,114\nJ,110\nK,111\nL,110\nM,115\nN,114\nO,114\nP,112\nQ,110\nR,115\nS,112\nT,112\nU,113\nV,114\nW,111\n\nexperiment_id_for_time,duration\nA,105\nB,103\nC,105\nD,100\nE,103\nF,101\nG,102\nH,101\nI,104\nJ,100\nK,101\nL,100\nM,105\nN,104\nO,104\nP,102\nQ,100\nR,105\nS,102\nT,102\nU,103\nV,104\nW,101\n\nexperiment_i_id,experiment_j_id,pair_synergy_value\nA,B,100\nA,C,104\nA,D,105\nA,E,101\nA,F,104\nA,G,100\nA,H,102\nA,I,103\nA,J,101\nA,K,102\nA,L,105\nA,M,105\nA,N,103\nA,O,102\nA,P,102\nA,Q,102\nA,R,102\nA,S,101\nA,T,101\nA,U,100\nA,V,104\nA,W,102\nB,C,101\nB,D,101\nB,E,103\nB,F,100\nB,G,100\nB,H,103\nB,I,103\nB,J,101\nB,K,100\nB,L,100\nB,M,103\nB,N,103\nB,O,100\nB,P,103\nB,Q,103\nB,R,103\nB,S,103\nB,T,101\nB,U,103\nB,V,102\nB,W,100\nC,D,100\nC,E,100\nC,F,104\nC,G,104\nC,H,103\nC,I,101\nC,J,102\nC,K,103\nC,L,101\nC,M,101\nC,N,103\nC,O,100\nC,P,100\nC,Q,101\nC,R,105\nC,S,101\nC,T,102\nC,U,100\nC,V,102\nC,W,101\nD,E,100\nD,F,100\nD,G,100\nD,H,100\nD,I,100\nD,J,100\nD,K,100\nD,L,100\nD,M,100\nD,N,100\nD,O,100\nD,P,100\nD,Q,100\nD,R,100\nD,S,100\nD,T,100\nD,U,102\nD,V,103\nD,W,100\nE,F,103\nE,G,103\nE,H,103\nE,I,103\nE,J,102\nE,K,103\nE,L,103\nE,M,103\nE,N,103\nE,O,102\nE,P,103\nE,Q,101\nE,R,100\nE,S,103\nE,T,100\nE,U,100\nE,V,100\nE,W,100\nF,G,101\nF,H,101\nF,I,101\nF,J,101\nF,K,101\nF,L,101\nF,M,100\nF,N,101\nF,O,101\nF,P,101\nF,Q,101\nF,R,101\nF,S,100\nF,T,102\nF,U,102\nF,V,100\nF,W,101\nG,H,101\nG,I,100\nG,J,102\nG,K,101\nG,L,102\nG,M,102\nG,N,102\nG,O,102\nG,P,102\nG,Q,102\nG,R,101\nG,S,100\nG,T,100\nG,U,100\nG,V,100\nG,W,100\nH,I,101\nH,J,101\nH,K,101\nH,L,101\nH,M,101\nH,N,101\nH,O,101\nH,P,101\nH,Q,101\nH,R,102\nH,S,101\nH,T,100\nH,U,100\nH,V,102\nH,W,102\nI,J,104\nI,K,100\nI,L,104\nI,M,103\nI,N,100\nI,O,100\nI,P,102\nI,Q,102\nI,R,102\nI,S,100\nI,T,102\nI,U,102\nI,V,102\nI,W,100\nJ,K,100\nJ,L,100\nJ,M,100\nJ,N,100\nJ,O,100\nJ,P,100\nJ,Q,100\nJ,R,100\nJ,S,100\nJ,T,100\nJ,U,100\nJ,V,100\nJ,W,100\nK,L,101\nK,M,101\nK,N,101\nK,O,101\nK,P,101\nK,Q,100\nK,R,100\nK,S,100\nK,T,100\nK,U,100\nK,V,100\nK,W,100\nL,M,100\nL,N,100\nL,O,100\nL,P,100\nL,Q,101\nL,R,100\nL,S,101\nL,T,101\nL,U,101\nL,V,101\nL,W,100\nM,N,104\nM,O,104\nM,P,102\nM,Q,104\nM,R,104\nM,S,101\nM,T,103\nM,U,102\nM,V,104\nM,W,101\nN,O,102\nN,P,103\nN,Q,102\nN,R,103\nN,S,100\nN,T,103\nN,U,100\nN,V,103\nN,W,103\nO,P,102\nO,Q,102\nO,R,102\nO,S,101\nO,T,101\nO,U,100\nO,V,104\nO,W,102\nP,Q,103\nP,R,104\nP,S,100\nP,T,100\nP,U,103\nP,V,101\nP,W,103\nQ,R,102\nQ,S,102\nQ,T,100\nQ,U,102\nQ,V,100\nQ,W,100\nR,S,101\nR,T,102\nR,U,103\nR,V,102\nR,W,103\nS,T,104\nS,U,101\nS,V,102\nS,W,101\nT,U,104\nT,V,101\nT,W,102\nU,V,102\nU,W,103\nV,W,100\n\nAlso, when you send your selection back, please use this simple JSON layout so it's easy to parse:\n\n{\n \"solution\": [, , ...]\n}\n\n\"solution\" is just the list of experiment IDs you plan to run during the session — put each experiment's identifier inside the brackets, separated by commas. This is only a sketch of the shape I expect, not the actual answer.\n\nPlease make sure to use the exact identifiers from the instance input — don't rename them or invent new labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 115, 113, 115, 110, 113, 111, 112, 111, 114, 110, 111, 110, 115, 114, 114, 112, 110, 115, 112, 112, 113, 114, 111 ], "quadratic_coeffs": [ [ 102, 100, 104, 105, 101, 104, 100, 102, 103, 101, 102, 105, 105, 103, 102, 102, 102, 102, 101, 101, 100, 104, 102 ], [ 0, 100, 101, 101, 103, 100, 100, 103, 103, 101, 100, 100, 103, 103, 100, 103, 103, 103, 103, 101, 103, 102, 100 ], [ 0, 0, 102, 100, 100, 104, 104, 103, 101, 102, 103, 101, 101, 103, 100, 100, 101, 105, 101, 102, 100, 102, 101 ], [ 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 102, 103, 100 ], [ 0, 0, 0, 0, 101, 103, 103, 103, 103, 102, 103, 103, 103, 103, 102, 103, 101, 100, 103, 100, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 101, 101, 101, 101, 101, 101, 101, 100, 101, 101, 101, 101, 101, 100, 102, 102, 100, 101 ], [ 0, 0, 0, 0, 0, 0, 102, 101, 100, 102, 101, 102, 102, 102, 102, 102, 102, 101, 100, 100, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 102, 101, 100, 100, 102, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 104, 104, 100, 104, 103, 100, 100, 102, 102, 102, 100, 102, 102, 102, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 101, 101, 101, 101, 101, 100, 100, 100, 100, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 100, 100, 100, 101, 100, 101, 101, 101, 101, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 104, 104, 102, 104, 104, 101, 103, 102, 104, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 102, 103, 102, 103, 100, 103, 100, 103, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 102, 102, 101, 101, 100, 104, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 103, 104, 100, 100, 103, 101, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 102, 100, 102, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 101, 102, 103, 102, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 104, 101, 102, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 104, 101, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100 ] ], "weights": [ 105, 103, 105, 100, 103, 101, 102, 101, 104, 100, 101, 100, 105, 104, 104, 102, 100, 105, 102, 102, 103, 104, 101 ], "capacity": 1730, "solution": [ 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 16, 18, 19, 20, 22 ], "obj": 15656.0, "problem_type": "QKP" }, "solution": [ 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 16, 18, 19, 20, 22 ], "obj": 15656.0, "instance_variant": { "problem_type": "QKP", "num_items": 23, "capacity": 1730, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 115 }, { "item_id": "B", "linear_profit": 113 }, { "item_id": "C", "linear_profit": 115 }, { "item_id": "D", "linear_profit": 110 }, { "item_id": "E", "linear_profit": 113 }, { "item_id": "F", "linear_profit": 111 }, { "item_id": "G", "linear_profit": 112 }, { "item_id": "H", "linear_profit": 111 }, { "item_id": "I", "linear_profit": 114 }, { "item_id": "J", "linear_profit": 110 }, { "item_id": "K", "linear_profit": 111 }, { "item_id": "L", "linear_profit": 110 }, { "item_id": "M", "linear_profit": 115 }, { "item_id": "N", "linear_profit": 114 }, { "item_id": "O", "linear_profit": 114 }, { "item_id": "P", "linear_profit": 112 }, { "item_id": "Q", "linear_profit": 110 }, { "item_id": "R", "linear_profit": 115 }, { "item_id": "S", "linear_profit": 112 }, { "item_id": "T", "linear_profit": 112 }, { "item_id": "U", "linear_profit": 113 }, { "item_id": "V", "linear_profit": 114 }, { "item_id": "W", "linear_profit": 111 } ], "weight_pairs": [ { "item_id": "A", "weight": 105 }, { "item_id": "B", "weight": 103 }, { "item_id": "C", "weight": 105 }, { "item_id": "D", "weight": 100 }, { "item_id": "E", "weight": 103 }, { "item_id": "F", "weight": 101 }, { "item_id": "G", "weight": 102 }, { "item_id": "H", "weight": 101 }, { "item_id": "I", "weight": 104 }, { "item_id": "J", "weight": 100 }, { "item_id": "K", "weight": 101 }, { "item_id": "L", "weight": 100 }, { "item_id": "M", "weight": 105 }, { "item_id": "N", "weight": 104 }, { "item_id": "O", "weight": 104 }, { "item_id": "P", "weight": 102 }, { "item_id": "Q", "weight": 100 }, { "item_id": "R", "weight": 105 }, { "item_id": "S", "weight": 102 }, { "item_id": "T", "weight": 102 }, { "item_id": "U", "weight": 103 }, { "item_id": "V", "weight": 104 }, { "item_id": "W", "weight": 101 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 105 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 105 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 105 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 105 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "V", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 104 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 104 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 104 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "V", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 104 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 104 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "M", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "M", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 104 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "W", "quadratic_profit": 103 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "O", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "P", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 101 }, { "item_i_id": "P", "item_j_id": "W", "quadratic_profit": 103 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "Q", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "Q", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "R", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "R", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "R", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "R", "item_j_id": "W", "quadratic_profit": 103 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 105 }, { "item_i_id": "S", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "S", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "S", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "S", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "T", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "T", "item_j_id": "U", "quadratic_profit": 104 }, { "item_i_id": "T", "item_j_id": "V", "quadratic_profit": 101 }, { "item_i_id": "T", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "U", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "U", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "U", "item_j_id": "W", "quadratic_profit": 103 }, { "item_i_id": "V", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "V", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "W", "item_j_id": "W", "quadratic_profit": 100 } ] }, "solution_variant": [ "B", "D", "E", "F", "G", "H", "I", "J", "K", "L", "N", "P", "Q", "S", "T", "U", "W" ], "context_index": 18, "input_format": "csv", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "In a small team meeting the problem was simple: there’s one allotted airtime window and many creative options, each taking some seconds and delivering a baseline impact. On top of that, some creatives amplify each other when paired, adding extra impact only if both are scheduled. The task is to pick which creatives to run so their total time stays within the bought slot, no creative is repeated, and the campaign’s total impact — the sum of all chosen creatives’ base impacts plus any applicable pair boosts — comes out as large as possible. The specific asset data and pair boosts are provided below.\n\n# total_assets_count=25\n# total_airtime_seconds=4427\n# asset_identifiers=A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y\n\nasset_id,baseline_impact\nA,120\nB,154\nC,133\nD,197\nE,190\nF,265\nG,130\nH,173\nI,123\nJ,123\nK,228\nL,277\nM,168\nN,285\nO,199\nP,183\nQ,166\nR,278\nS,201\nT,242\nU,172\nV,243\nW,166\nX,105\nY,179\n\nasset_id,airtime_seconds\nA,112\nB,139\nC,130\nD,203\nE,193\nF,256\nG,140\nH,188\nI,133\nJ,111\nK,223\nL,286\nM,165\nN,273\nO,203\nP,168\nQ,157\nR,293\nS,197\nT,254\nU,158\nV,229\nW,168\nX,109\nY,166\n\nasset_i_id,asset_j_id,pair_bonus_impact\nA,B,112\nA,C,112\nA,H,112\nA,K,112\nA,L,112\nA,M,112\nA,N,112\nA,O,112\nA,P,112\nA,S,112\nA,T,112\nA,W,109\nA,Y,192\nB,C,139\nB,G,123\nB,H,139\nB,P,139\nB,Q,139\nB,R,139\nB,T,139\nB,X,107\nB,Y,154\nC,F,130\nC,G,130\nC,J,130\nC,L,130\nC,M,130\nC,P,130\nC,R,130\nC,S,130\nC,T,130\nC,U,130\nC,V,162\nC,W,193\nC,X,203\nC,Y,203\nD,F,203\nD,J,203\nD,M,201\nD,N,157\nD,P,150\nD,S,198\nD,T,107\nD,U,162\nD,W,140\nE,H,110\nE,I,193\nE,J,193\nE,K,193\nE,L,193\nE,S,134\nE,T,140\nE,U,123\nE,V,256\nE,X,256\nF,G,142\nF,H,209\nF,P,197\nF,Q,254\nF,R,138\nF,S,166\nF,Y,140\nG,K,140\nG,L,140\nG,P,140\nG,R,140\nG,S,108\nG,T,123\nG,V,129\nG,W,247\nH,J,183\nH,K,188\nH,L,188\nH,N,188\nH,P,188\nH,Q,158\nH,R,188\nH,V,123\nI,J,133\nI,L,133\nI,M,133\nI,N,133\nI,O,133\nI,S,138\nI,U,204\nI,Y,158\nJ,L,111\nJ,M,111\nJ,O,111\nJ,P,111\nJ,R,165\nJ,S,241\nJ,U,241\nJ,V,220\nJ,W,108\nK,S,227\nK,U,227\nK,V,180\nK,X,227\nK,Y,138\nL,N,165\nL,R,165\nL,S,147\nM,N,121\nM,Q,142\nM,S,185\nM,T,243\nM,W,107\nM,X,117\nM,Y,183\nN,P,142\nN,Q,183\nN,R,156\nN,S,183\nN,V,107\nO,R,168\nO,S,158\nO,U,158\nO,W,158\nO,X,158\nP,V,147\nP,W,157\nP,X,157\nP,Y,157\nQ,S,159\nQ,T,147\nQ,U,234\nQ,V,138\nQ,X,177\nR,S,156\nR,V,158\nR,Y,117\nS,T,138\nS,Y,158\nT,U,107\nT,X,109\n\nOh, and one more practical thing — when you send back the picks, please use a tiny JSON snippet so it's easy to parse. Something like this:\n\n{\n \"solution\": [, , ...]\n}\n\nThis just means \"solution\" should be an array listing the IDs of the creatives you chose. Think of it as filling in a short form: put each chosen creative's identifier inside the brackets, separated by commas. The JSON above is just a sketch of the shape I need, not your final answer.\n\nUse the identifiers exactly as they appear in the instance input — don't rename them or invent new labels.\n- 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”.", "instance": { "linear_coeffs": [ 120, 154, 133, 197, 190, 265, 130, 173, 123, 123, 228, 277, 168, 285, 199, 183, 166, 278, 201, 242, 172, 243, 166, 105, 179 ], "quadratic_coeffs": [ [ 0, 112, 112, 0, 0, 0, 0, 112, 0, 0, 112, 112, 112, 112, 112, 112, 0, 0, 112, 112, 0, 0, 109, 0, 192 ], [ 0, 139, 139, 0, 0, 0, 123, 139, 0, 0, 0, 0, 0, 0, 0, 139, 139, 139, 0, 139, 0, 0, 0, 107, 154 ], [ 0, 0, 0, 0, 0, 130, 130, 0, 0, 130, 0, 130, 130, 0, 0, 130, 0, 130, 130, 130, 130, 162, 193, 203, 203 ], [ 0, 0, 0, 203, 0, 203, 0, 0, 0, 203, 0, 0, 201, 157, 0, 150, 0, 0, 198, 107, 162, 0, 140, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 110, 193, 193, 193, 193, 0, 0, 0, 0, 0, 0, 134, 140, 123, 256, 0, 256, 0 ], [ 0, 0, 0, 0, 0, 256, 142, 209, 0, 0, 0, 0, 0, 0, 0, 197, 254, 138, 166, 0, 0, 0, 0, 0, 140 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 140, 140, 0, 0, 0, 140, 0, 140, 108, 123, 0, 129, 247, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 188, 188, 0, 188, 0, 188, 158, 188, 0, 0, 0, 123, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 133, 0, 133, 133, 133, 133, 0, 0, 0, 138, 0, 204, 0, 0, 0, 158 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 111, 111, 0, 111, 111, 0, 165, 241, 0, 241, 220, 108, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 0, 0, 0, 0, 0, 0, 0, 227, 0, 227, 180, 0, 227, 138 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 165, 0, 0, 0, 165, 147, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0, 142, 0, 185, 243, 0, 0, 107, 117, 183 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 142, 183, 156, 183, 0, 0, 107, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 168, 158, 0, 158, 0, 158, 158, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 147, 157, 157, 157 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 147, 234, 138, 0, 177, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 156, 0, 0, 158, 0, 0, 117 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 0, 158 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 0, 0, 109, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 112, 139, 130, 203, 193, 256, 140, 188, 133, 111, 223, 286, 165, 273, 203, 168, 157, 293, 197, 254, 158, 229, 168, 109, 166 ], "capacity": 4427, "solution": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 ], "obj": 23942.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 ], "obj": 23942.0, "instance_variant": { "problem_type": "QKP", "num_items": 25, "capacity": 4427, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 120 }, { "item_id": "B", "linear_profit": 154 }, { "item_id": "C", "linear_profit": 133 }, { "item_id": "D", "linear_profit": 197 }, { "item_id": "E", "linear_profit": 190 }, { "item_id": "F", "linear_profit": 265 }, { "item_id": "G", "linear_profit": 130 }, { "item_id": "H", "linear_profit": 173 }, { "item_id": "I", "linear_profit": 123 }, { "item_id": "J", "linear_profit": 123 }, { "item_id": "K", "linear_profit": 228 }, { "item_id": "L", "linear_profit": 277 }, { "item_id": "M", "linear_profit": 168 }, { "item_id": "N", "linear_profit": 285 }, { "item_id": "O", "linear_profit": 199 }, { "item_id": "P", "linear_profit": 183 }, { "item_id": "Q", "linear_profit": 166 }, { "item_id": "R", "linear_profit": 278 }, { "item_id": "S", "linear_profit": 201 }, { "item_id": "T", "linear_profit": 242 }, { "item_id": "U", "linear_profit": 172 }, { "item_id": "V", "linear_profit": 243 }, { "item_id": "W", "linear_profit": 166 }, { "item_id": "X", "linear_profit": 105 }, { "item_id": "Y", "linear_profit": 179 } ], "weight_pairs": [ { "item_id": "A", "weight": 112 }, { "item_id": "B", "weight": 139 }, { "item_id": "C", "weight": 130 }, { "item_id": "D", "weight": 203 }, { "item_id": "E", "weight": 193 }, { "item_id": "F", "weight": 256 }, { "item_id": "G", "weight": 140 }, { "item_id": "H", "weight": 188 }, { "item_id": "I", "weight": 133 }, { "item_id": "J", "weight": 111 }, { "item_id": "K", "weight": 223 }, { "item_id": "L", "weight": 286 }, { "item_id": "M", "weight": 165 }, { "item_id": "N", "weight": 273 }, { "item_id": "O", "weight": 203 }, { "item_id": "P", "weight": 168 }, { "item_id": "Q", "weight": 157 }, { "item_id": "R", "weight": 293 }, { "item_id": "S", "weight": 197 }, { "item_id": "T", "weight": 254 }, { "item_id": "U", "weight": 158 }, { "item_id": "V", "weight": 229 }, { "item_id": "W", "weight": 168 }, { "item_id": "X", "weight": 109 }, { "item_id": "Y", "weight": 166 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "W", "quadratic_profit": 109 }, { "item_i_id": "A", "item_j_id": "Y", "quadratic_profit": 192 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 123 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "X", "quadratic_profit": 107 }, { "item_i_id": "B", "item_j_id": "Y", "quadratic_profit": 154 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "U", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 162 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 193 }, { "item_i_id": "C", "item_j_id": "X", "quadratic_profit": 203 }, { "item_i_id": "C", "item_j_id": "Y", "quadratic_profit": 203 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 203 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 203 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 203 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 201 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 157 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 150 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 198 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 107 }, { "item_i_id": "D", "item_j_id": "U", "quadratic_profit": 162 }, { "item_i_id": "D", "item_j_id": "W", "quadratic_profit": 140 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 110 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 193 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 193 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 193 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 193 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 134 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 140 }, { "item_i_id": "E", "item_j_id": "U", "quadratic_profit": 123 }, { "item_i_id": "E", "item_j_id": "V", "quadratic_profit": 256 }, { "item_i_id": "E", "item_j_id": "X", "quadratic_profit": 256 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 256 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 142 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 209 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 197 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 254 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 138 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 166 }, { "item_i_id": "F", "item_j_id": "Y", "quadratic_profit": 140 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 140 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 140 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 140 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 140 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 108 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 123 }, { "item_i_id": "G", "item_j_id": "V", "quadratic_profit": 129 }, { "item_i_id": "G", "item_j_id": "W", "quadratic_profit": 247 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 183 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 188 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 188 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 188 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 188 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 158 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 188 }, { "item_i_id": "H", "item_j_id": "V", "quadratic_profit": 123 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 133 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 133 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 133 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 133 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 133 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 138 }, { "item_i_id": "I", "item_j_id": "U", "quadratic_profit": 204 }, { "item_i_id": "I", "item_j_id": "Y", "quadratic_profit": 158 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 111 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 111 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 111 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 111 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 111 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 165 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 241 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 241 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 220 }, { "item_i_id": "J", "item_j_id": "W", "quadratic_profit": 108 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 223 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 227 }, { "item_i_id": "K", "item_j_id": "U", "quadratic_profit": 227 }, { "item_i_id": "K", "item_j_id": "V", "quadratic_profit": 180 }, { "item_i_id": "K", "item_j_id": "X", "quadratic_profit": 227 }, { "item_i_id": "K", "item_j_id": "Y", "quadratic_profit": 138 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 165 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 165 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 147 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 121 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 142 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 185 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 243 }, { "item_i_id": "M", "item_j_id": "W", "quadratic_profit": 107 }, { "item_i_id": "M", "item_j_id": "X", "quadratic_profit": 117 }, { "item_i_id": "M", "item_j_id": "Y", "quadratic_profit": 183 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 142 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 183 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 156 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 183 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 107 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 168 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 158 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 158 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 158 }, { "item_i_id": "O", "item_j_id": "X", "quadratic_profit": 158 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 147 }, { "item_i_id": "P", "item_j_id": "W", "quadratic_profit": 157 }, { "item_i_id": "P", "item_j_id": "X", "quadratic_profit": 157 }, { "item_i_id": "P", "item_j_id": "Y", "quadratic_profit": 157 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 159 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 147 }, { "item_i_id": "Q", "item_j_id": "U", "quadratic_profit": 234 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 138 }, { "item_i_id": "Q", "item_j_id": "X", "quadratic_profit": 177 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 193 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 156 }, { "item_i_id": "R", "item_j_id": "V", "quadratic_profit": 158 }, { "item_i_id": "R", "item_j_id": "Y", "quadratic_profit": 117 }, { "item_i_id": "S", "item_j_id": "T", "quadratic_profit": 138 }, { "item_i_id": "S", "item_j_id": "Y", "quadratic_profit": 158 }, { "item_i_id": "T", "item_j_id": "U", "quadratic_profit": 107 }, { "item_i_id": "T", "item_j_id": "X", "quadratic_profit": 109 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y" ], "context_index": 19, "input_format": "csv", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "I run the catering deliveries for a small company, juggling which platters to load into the van for each event. Each platter has a weight and a base customer appeal, and certain pairs just click together and add extra appeal when both are included. The trick is to pick a set of platters whose combined weight fits in the van and that gives the highest total appeal — total appeal being the sum of each platter’s base appeal plus any extra bonuses from included platter pairs — and nobody gets duplicates of the same platter. The exact platter weights, base appeals, van capacity and pair bonuses are listed below.\n\n# num_platters=21\n# van_capacity=3890\n# platter_ids=0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20\n\nplatter_id,base_appeal\n0,192\n1,234\n2,117\n3,255\n4,240\n5,168\n6,163\n7,128\n8,144\n9,112\n10,154\n11,205\n12,226\n13,275\n14,205\n15,281\n16,208\n17,254\n18,292\n19,187\n20,104\n\nplatter_id,platter_weight\n0,138\n1,248\n2,206\n3,174\n4,291\n5,111\n6,237\n7,165\n8,112\n9,150\n10,243\n11,255\n12,114\n13,233\n14,177\n15,248\n16,183\n17,142\n18,292\n19,182\n20,113\n\nplatter_i_id,platter_j_id,pair_bonus_appeal\n0,1,139\n0,2,149\n0,3,102\n0,4,234\n0,5,123\n0,6,277\n0,7,262\n0,8,286\n0,9,182\n0,10,293\n0,11,102\n0,12,229\n0,13,134\n0,14,141\n0,15,172\n0,16,120\n0,17,197\n0,18,274\n0,19,204\n0,20,234\n1,2,103\n1,3,189\n1,4,100\n1,5,266\n1,6,208\n1,7,189\n1,8,134\n1,9,108\n1,10,142\n1,11,175\n1,12,100\n1,13,198\n1,14,226\n1,15,235\n1,16,271\n1,17,178\n1,18,287\n1,19,205\n1,20,267\n2,3,233\n2,4,169\n2,5,262\n2,6,225\n2,7,142\n2,8,174\n2,9,262\n2,10,151\n2,11,268\n2,12,182\n2,13,160\n2,14,240\n2,15,252\n2,16,182\n2,17,187\n2,18,277\n2,19,259\n2,20,124\n3,4,215\n3,5,198\n3,6,119\n3,7,243\n3,8,146\n3,9,205\n3,10,263\n3,11,109\n3,12,294\n3,13,148\n3,14,152\n3,15,136\n3,16,124\n3,17,245\n3,18,225\n3,19,240\n3,20,182\n4,5,158\n4,6,155\n4,7,233\n4,8,150\n4,9,142\n4,10,252\n4,11,115\n4,12,275\n4,13,241\n4,14,230\n4,15,260\n4,16,165\n4,17,181\n4,18,286\n4,19,253\n4,20,217\n5,6,177\n5,7,289\n5,8,287\n5,9,167\n5,10,120\n5,11,135\n5,12,229\n5,13,278\n5,14,242\n5,15,181\n5,16,239\n5,17,212\n5,18,190\n5,19,173\n5,20,112\n6,7,222\n6,8,171\n6,9,128\n6,10,231\n6,11,110\n6,12,106\n6,13,267\n6,14,248\n6,15,211\n6,16,153\n6,17,200\n6,18,165\n6,19,242\n6,20,196\n7,8,290\n7,9,237\n7,10,165\n7,11,149\n7,12,102\n7,13,197\n7,14,172\n7,15,265\n7,16,224\n7,17,179\n7,18,271\n7,19,105\n7,20,111\n8,9,238\n8,10,152\n8,11,184\n8,12,291\n8,13,205\n8,14,249\n8,15,183\n8,16,242\n8,17,112\n8,18,211\n8,19,187\n8,20,212\n9,10,199\n9,11,250\n9,12,230\n9,13,206\n9,14,132\n9,15,166\n9,16,115\n9,17,211\n9,18,264\n9,19,227\n9,20,132\n10,11,183\n10,12,134\n10,13,222\n10,14,275\n10,15,138\n10,16,108\n10,17,147\n10,18,221\n10,19,114\n10,20,144\n11,12,102\n11,13,205\n11,14,255\n11,15,156\n11,16,103\n11,17,199\n11,18,158\n11,19,125\n11,20,267\n12,13,159\n12,14,203\n12,15,116\n12,16,216\n12,17,237\n12,18,173\n12,19,218\n12,20,256\n13,14,103\n13,15,108\n13,16,187\n13,17,292\n13,18,267\n13,19,153\n13,20,233\n14,15,183\n14,16,108\n14,17,147\n14,18,212\n14,19,208\n14,20,269\n15,16,214\n15,17,164\n15,18,155\n15,19,196\n15,20,268\n16,17,163\n16,18,159\n16,19,152\n16,20,189\n17,18,153\n17,19,255\n17,20,136\n18,19,132\n18,20,169\n\nWhen you tell me which platters to load, just give it in a tiny JSON like this so it's easy to read and check:\n\n{\n \"solution\": [, , ...]\n}\n\nThis just means \"solution\" is a list of the platters you pick for the van — one identifier per platter. Think of it like ticking boxes on a short form: put each platter's exact ID in the array in whatever order you like. This is only a sketch of the shape I expect, not the actual selection.\n\nPlease use the platter/item identifiers exactly as they appear in the problem input — don't 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”.", "instance": { "linear_coeffs": [ 192, 234, 117, 255, 240, 168, 163, 128, 144, 112, 154, 205, 226, 275, 205, 281, 208, 254, 292, 187, 104 ], "quadratic_coeffs": [ [ 256, 139, 149, 102, 234, 123, 277, 262, 286, 182, 293, 102, 229, 134, 141, 172, 120, 197, 274, 204, 234 ], [ 0, 112, 103, 189, 100, 266, 208, 189, 134, 108, 142, 175, 100, 198, 226, 235, 271, 178, 287, 205, 267 ], [ 0, 0, 220, 233, 169, 262, 225, 142, 174, 262, 151, 268, 182, 160, 240, 252, 182, 187, 277, 259, 124 ], [ 0, 0, 0, 299, 215, 198, 119, 243, 146, 205, 263, 109, 294, 148, 152, 136, 124, 245, 225, 240, 182 ], [ 0, 0, 0, 0, 255, 158, 155, 233, 150, 142, 252, 115, 275, 241, 230, 260, 165, 181, 286, 253, 217 ], [ 0, 0, 0, 0, 0, 125, 177, 289, 287, 167, 120, 135, 229, 278, 242, 181, 239, 212, 190, 173, 112 ], [ 0, 0, 0, 0, 0, 0, 204, 222, 171, 128, 231, 110, 106, 267, 248, 211, 153, 200, 165, 242, 196 ], [ 0, 0, 0, 0, 0, 0, 0, 118, 290, 237, 165, 149, 102, 197, 172, 265, 224, 179, 271, 105, 111 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 261, 238, 152, 184, 291, 205, 249, 183, 242, 112, 211, 187, 212 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 264, 199, 250, 230, 206, 132, 166, 115, 211, 264, 227, 132 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 254, 183, 134, 222, 275, 138, 108, 147, 221, 114, 144 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 102, 205, 255, 156, 103, 199, 158, 125, 267 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 218, 159, 203, 116, 216, 237, 173, 218, 256 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 103, 108, 187, 292, 267, 153, 233 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 183, 108, 147, 212, 208, 269 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 214, 164, 155, 196, 268 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 241, 163, 159, 152, 189 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 153, 255, 136 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 237, 132, 169 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 138, 248, 206, 174, 291, 111, 237, 165, 112, 150, 243, 255, 114, 233, 177, 248, 183, 142, 292, 182, 113 ], "capacity": 3890, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20 ], "obj": 40605.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20 ], "obj": 40605.0, "instance_variant": { "problem_type": "QKP", "num_items": 21, "capacity": 3890, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 192 }, { "item_id": 1, "linear_profit": 234 }, { "item_id": 2, "linear_profit": 117 }, { "item_id": 3, "linear_profit": 255 }, { "item_id": 4, "linear_profit": 240 }, { "item_id": 5, "linear_profit": 168 }, { "item_id": 6, "linear_profit": 163 }, { "item_id": 7, "linear_profit": 128 }, { "item_id": 8, "linear_profit": 144 }, { "item_id": 9, "linear_profit": 112 }, { "item_id": 10, "linear_profit": 154 }, { "item_id": 11, "linear_profit": 205 }, { "item_id": 12, "linear_profit": 226 }, { "item_id": 13, "linear_profit": 275 }, { "item_id": 14, "linear_profit": 205 }, { "item_id": 15, "linear_profit": 281 }, { "item_id": 16, "linear_profit": 208 }, { "item_id": 17, "linear_profit": 254 }, { "item_id": 18, "linear_profit": 292 }, { "item_id": 19, "linear_profit": 187 }, { "item_id": 20, "linear_profit": 104 } ], "weight_pairs": [ { "item_id": 0, "weight": 138 }, { "item_id": 1, "weight": 248 }, { "item_id": 2, "weight": 206 }, { "item_id": 3, "weight": 174 }, { "item_id": 4, "weight": 291 }, { "item_id": 5, "weight": 111 }, { "item_id": 6, "weight": 237 }, { "item_id": 7, "weight": 165 }, { "item_id": 8, "weight": 112 }, { "item_id": 9, "weight": 150 }, { "item_id": 10, "weight": 243 }, { "item_id": 11, "weight": 255 }, { "item_id": 12, "weight": 114 }, { "item_id": 13, "weight": 233 }, { "item_id": 14, "weight": 177 }, { "item_id": 15, "weight": 248 }, { "item_id": 16, "weight": 183 }, { "item_id": 17, "weight": 142 }, { "item_id": 18, "weight": 292 }, { "item_id": 19, "weight": 182 }, { "item_id": 20, "weight": 113 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 256 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 139 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 149 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 234 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 123 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 277 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 262 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 286 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 182 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 293 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 229 }, { "item_i_id": 0, "item_j_id": 13, "quadratic_profit": 134 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 141 }, { "item_i_id": 0, "item_j_id": 15, "quadratic_profit": 172 }, { "item_i_id": 0, "item_j_id": 16, "quadratic_profit": 120 }, { "item_i_id": 0, "item_j_id": 17, "quadratic_profit": 197 }, { "item_i_id": 0, "item_j_id": 18, "quadratic_profit": 274 }, { "item_i_id": 0, "item_j_id": 19, "quadratic_profit": 204 }, { "item_i_id": 0, "item_j_id": 20, "quadratic_profit": 234 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 112 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 189 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 266 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 208 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 189 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 134 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 142 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 175 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 198 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 226 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 235 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 271 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 178 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 287 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 205 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 267 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 220 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 233 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 169 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 262 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 225 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 142 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 174 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 262 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 151 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 268 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 182 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 240 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 252 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 182 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 187 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 277 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 259 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 124 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 299 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 215 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 198 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 119 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 243 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 146 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 205 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 263 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 109 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 294 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 148 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 152 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 136 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 124 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 245 }, { "item_i_id": 3, "item_j_id": 18, "quadratic_profit": 225 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 240 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 182 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 255 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 158 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 155 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 233 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 150 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 142 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 252 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 115 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 275 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 241 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 230 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 260 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 165 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 181 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 286 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 253 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 217 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 125 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 177 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 289 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 287 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 167 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 120 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 135 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 229 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 278 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 242 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 181 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 239 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 212 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 190 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 173 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 112 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 204 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 222 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 171 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 128 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 231 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 110 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 106 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 267 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 248 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 211 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 153 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 200 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 165 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 242 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 196 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 118 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 290 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 237 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 165 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 149 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 197 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 172 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 265 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 224 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 179 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 271 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 111 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 261 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 238 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 152 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 184 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 291 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 205 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 249 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 183 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 242 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 112 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 211 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 187 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 212 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 264 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 199 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 250 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 230 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 206 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 132 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 166 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 115 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 211 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 264 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 227 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 132 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 254 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 183 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 134 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 222 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 275 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 138 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 108 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 147 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 221 }, { "item_i_id": 10, "item_j_id": 19, "quadratic_profit": 114 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 144 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 177 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 205 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 255 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 156 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 199 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 158 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 125 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 267 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 218 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 159 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 203 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 116 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 216 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 237 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 173 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 218 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 256 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 209 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 108 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 187 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 292 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 267 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 153 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 233 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 182 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 183 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 108 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 147 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 212 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 208 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 269 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 123 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 214 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 164 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 155 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 196 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 268 }, { "item_i_id": 16, "item_j_id": 16, "quadratic_profit": 241 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 163 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 159 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 152 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 189 }, { "item_i_id": 17, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 17, "item_j_id": 18, "quadratic_profit": 153 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 255 }, { "item_i_id": 17, "item_j_id": 20, "quadratic_profit": 136 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 237 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 132 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 169 } ] }, "solution_variant": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20 ], "context_index": 20, "input_format": "csv", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Many people working on the festival have suggested different combos of bands, but each band comes with its own cost and solo drawing power and some particular pairings give a notable extra boost when both are included. The challenge is picking a subset of bands whose combined fees fit the budget, and then measuring success by the total crowd: add each hired band’s individual draw and every extra bonus for pairs that are both in the lineup. The lineup that produces the biggest summed crowd is the one to go with, with the rule that no band is hired more than once and the total fees can’t exceed available funds. The exact cost and boost numbers are listed below.\n\n{\n \"num_bands\": 20,\n \"budget_limit\": 1014,\n \"band_ids\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19,\n 20\n ],\n \"linear\": [\n {\n \"band_id\": 1,\n \"solo_draw\": 130\n },\n {\n \"band_id\": 2,\n \"solo_draw\": 107\n },\n {\n \"band_id\": 3,\n \"solo_draw\": 109\n },\n {\n \"band_id\": 4,\n \"solo_draw\": 147\n },\n {\n \"band_id\": 5,\n \"solo_draw\": 142\n },\n {\n \"band_id\": 6,\n \"solo_draw\": 137\n },\n {\n \"band_id\": 7,\n \"solo_draw\": 137\n },\n {\n \"band_id\": 8,\n \"solo_draw\": 136\n },\n {\n \"band_id\": 9,\n \"solo_draw\": 98\n },\n {\n \"band_id\": 10,\n \"solo_draw\": 143\n },\n {\n \"band_id\": 11,\n \"solo_draw\": 113\n },\n {\n \"band_id\": 12,\n \"solo_draw\": 146\n },\n {\n \"band_id\": 13,\n \"solo_draw\": 125\n },\n {\n \"band_id\": 14,\n \"solo_draw\": 122\n },\n {\n \"band_id\": 15,\n \"solo_draw\": 134\n },\n {\n \"band_id\": 16,\n \"solo_draw\": 109\n },\n {\n \"band_id\": 17,\n \"solo_draw\": 133\n },\n {\n \"band_id\": 18,\n \"solo_draw\": 142\n },\n {\n \"band_id\": 19,\n \"solo_draw\": 114\n },\n {\n \"band_id\": 20,\n \"solo_draw\": 131\n }\n ],\n \"weights\": [\n {\n \"band_id\": 1,\n \"booking_fee\": 125\n },\n {\n \"band_id\": 2,\n \"booking_fee\": 106\n },\n {\n \"band_id\": 3,\n \"booking_fee\": 113\n },\n {\n \"band_id\": 4,\n \"booking_fee\": 142\n },\n {\n \"band_id\": 5,\n \"booking_fee\": 135\n },\n {\n \"band_id\": 6,\n \"booking_fee\": 137\n },\n {\n \"band_id\": 7,\n \"booking_fee\": 129\n },\n {\n \"band_id\": 8,\n \"booking_fee\": 130\n },\n {\n \"band_id\": 9,\n \"booking_fee\": 100\n },\n {\n \"band_id\": 10,\n \"booking_fee\": 141\n },\n {\n \"band_id\": 11,\n \"booking_fee\": 119\n },\n {\n \"band_id\": 12,\n \"booking_fee\": 141\n },\n {\n \"band_id\": 13,\n \"booking_fee\": 127\n },\n {\n \"band_id\": 14,\n \"booking_fee\": 115\n },\n {\n \"band_id\": 15,\n \"booking_fee\": 136\n },\n {\n \"band_id\": 16,\n \"booking_fee\": 115\n },\n {\n \"band_id\": 17,\n \"booking_fee\": 127\n },\n {\n \"band_id\": 18,\n \"booking_fee\": 135\n },\n {\n \"band_id\": 19,\n \"booking_fee\": 110\n },\n {\n \"band_id\": 20,\n \"booking_fee\": 131\n }\n ],\n \"quadratic\": [\n {\n \"band_i_id\": 1,\n \"band_j_id\": 2,\n \"pairing_boost\": 129\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 3,\n \"pairing_boost\": 127\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 4,\n \"pairing_boost\": 127\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 6,\n \"pairing_boost\": 116\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 7,\n \"pairing_boost\": 126\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 8,\n \"pairing_boost\": 135\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 9,\n \"pairing_boost\": 115\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 10,\n \"pairing_boost\": 126\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 11,\n \"pairing_boost\": 119\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 13,\n \"pairing_boost\": 128\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 14,\n \"pairing_boost\": 125\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 16,\n \"pairing_boost\": 136\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 18,\n \"pairing_boost\": 131\n },\n {\n \"band_i_id\": 1,\n \"band_j_id\": 19,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 3,\n \"pairing_boost\": 116\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 4,\n \"pairing_boost\": 113\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 5,\n \"pairing_boost\": 125\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 6,\n \"pairing_boost\": 103\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 7,\n \"pairing_boost\": 123\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 9,\n \"pairing_boost\": 121\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 10,\n \"pairing_boost\": 103\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 12,\n \"pairing_boost\": 115\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 13,\n \"pairing_boost\": 120\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 14,\n \"pairing_boost\": 123\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 15,\n \"pairing_boost\": 108\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 16,\n \"pairing_boost\": 103\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 17,\n \"pairing_boost\": 123\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 18,\n \"pairing_boost\": 112\n },\n {\n \"band_i_id\": 2,\n \"band_j_id\": 20,\n \"pairing_boost\": 143\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 4,\n \"pairing_boost\": 114\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 5,\n \"pairing_boost\": 114\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 7,\n \"pairing_boost\": 120\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 8,\n \"pairing_boost\": 106\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 9,\n \"pairing_boost\": 113\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 10,\n \"pairing_boost\": 111\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 11,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 12,\n \"pairing_boost\": 124\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 13,\n \"pairing_boost\": 120\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 14,\n \"pairing_boost\": 124\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 15,\n \"pairing_boost\": 108\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 16,\n \"pairing_boost\": 119\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 18,\n \"pairing_boost\": 108\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 19,\n \"pairing_boost\": 109\n },\n {\n \"band_i_id\": 3,\n \"band_j_id\": 20,\n \"pairing_boost\": 127\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 5,\n \"pairing_boost\": 121\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 10,\n \"pairing_boost\": 129\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 11,\n \"pairing_boost\": 130\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 13,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 14,\n \"pairing_boost\": 142\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 15,\n \"pairing_boost\": 141\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 16,\n \"pairing_boost\": 138\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 18,\n \"pairing_boost\": 144\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 19,\n \"pairing_boost\": 128\n },\n {\n \"band_i_id\": 4,\n \"band_j_id\": 20,\n \"pairing_boost\": 121\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 6,\n \"pairing_boost\": 128\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 7,\n \"pairing_boost\": 140\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 9,\n \"pairing_boost\": 132\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 10,\n \"pairing_boost\": 135\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 11,\n \"pairing_boost\": 138\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 13,\n \"pairing_boost\": 127\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 14,\n \"pairing_boost\": 136\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 16,\n \"pairing_boost\": 133\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 17,\n \"pairing_boost\": 117\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 18,\n \"pairing_boost\": 141\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 19,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 5,\n \"band_j_id\": 20,\n \"pairing_boost\": 121\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 7,\n \"pairing_boost\": 137\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 10,\n \"pairing_boost\": 140\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 11,\n \"pairing_boost\": 140\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 12,\n \"pairing_boost\": 138\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 13,\n \"pairing_boost\": 125\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 14,\n \"pairing_boost\": 123\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 15,\n \"pairing_boost\": 126\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 17,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 18,\n \"pairing_boost\": 134\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 19,\n \"pairing_boost\": 108\n },\n {\n \"band_i_id\": 6,\n \"band_j_id\": 20,\n \"pairing_boost\": 108\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 8,\n \"pairing_boost\": 127\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 10,\n \"pairing_boost\": 124\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 11,\n \"pairing_boost\": 132\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 12,\n \"pairing_boost\": 125\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 13,\n \"pairing_boost\": 130\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 15,\n \"pairing_boost\": 118\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 16,\n \"pairing_boost\": 136\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 18,\n \"pairing_boost\": 117\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 19,\n \"pairing_boost\": 112\n },\n {\n \"band_i_id\": 7,\n \"band_j_id\": 20,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 8,\n \"band_j_id\": 9,\n \"pairing_boost\": 133\n },\n {\n \"band_i_id\": 8,\n \"band_j_id\": 12,\n \"pairing_boost\": 130\n },\n {\n \"band_i_id\": 8,\n \"band_j_id\": 14,\n \"pairing_boost\": 133\n },\n {\n \"band_i_id\": 8,\n \"band_j_id\": 16,\n \"pairing_boost\": 138\n },\n {\n \"band_i_id\": 8,\n \"band_j_id\": 17,\n \"pairing_boost\": 131\n },\n {\n \"band_i_id\": 8,\n \"band_j_id\": 19,\n \"pairing_boost\": 113\n },\n {\n \"band_i_id\": 8,\n \"band_j_id\": 20,\n \"pairing_boost\": 125\n },\n {\n \"band_i_id\": 9,\n \"band_j_id\": 11,\n \"pairing_boost\": 111\n },\n {\n \"band_i_id\": 9,\n \"band_j_id\": 12,\n \"pairing_boost\": 117\n },\n {\n \"band_i_id\": 9,\n \"band_j_id\": 13,\n \"pairing_boost\": 107\n },\n {\n \"band_i_id\": 9,\n \"band_j_id\": 14,\n \"pairing_boost\": 121\n },\n {\n \"band_i_id\": 9,\n \"band_j_id\": 15,\n \"pairing_boost\": 117\n },\n {\n \"band_i_id\": 9,\n \"band_j_id\": 16,\n \"pairing_boost\": 117\n },\n {\n \"band_i_id\": 9,\n \"band_j_id\": 18,\n \"pairing_boost\": 130\n },\n {\n \"band_i_id\": 9,\n \"band_j_id\": 19,\n \"pairing_boost\": 129\n },\n {\n \"band_i_id\": 9,\n \"band_j_id\": 20,\n \"pairing_boost\": 142\n },\n {\n \"band_i_id\": 10,\n \"band_j_id\": 12,\n \"pairing_boost\": 138\n },\n {\n \"band_i_id\": 10,\n \"band_j_id\": 13,\n \"pairing_boost\": 120\n },\n {\n \"band_i_id\": 10,\n \"band_j_id\": 14,\n \"pairing_boost\": 139\n },\n {\n \"band_i_id\": 10,\n \"band_j_id\": 15,\n \"pairing_boost\": 130\n },\n {\n \"band_i_id\": 10,\n \"band_j_id\": 16,\n \"pairing_boost\": 142\n },\n {\n \"band_i_id\": 10,\n \"band_j_id\": 18,\n \"pairing_boost\": 100\n },\n {\n \"band_i_id\": 11,\n \"band_j_id\": 12,\n \"pairing_boost\": 120\n },\n {\n \"band_i_id\": 11,\n \"band_j_id\": 13,\n \"pairing_boost\": 110\n },\n {\n \"band_i_id\": 11,\n \"band_j_id\": 14,\n \"pairing_boost\": 118\n },\n {\n \"band_i_id\": 11,\n \"band_j_id\": 15,\n \"pairing_boost\": 121\n },\n {\n \"band_i_id\": 11,\n \"band_j_id\": 16,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 11,\n \"band_j_id\": 17,\n \"pairing_boost\": 121\n },\n {\n \"band_i_id\": 11,\n \"band_j_id\": 18,\n \"pairing_boost\": 120\n },\n {\n \"band_i_id\": 11,\n \"band_j_id\": 20,\n \"pairing_boost\": 105\n },\n {\n \"band_i_id\": 12,\n \"band_j_id\": 14,\n \"pairing_boost\": 144\n },\n {\n \"band_i_id\": 12,\n \"band_j_id\": 15,\n \"pairing_boost\": 136\n },\n {\n \"band_i_id\": 12,\n \"band_j_id\": 16,\n \"pairing_boost\": 146\n },\n {\n \"band_i_id\": 12,\n \"band_j_id\": 17,\n \"pairing_boost\": 132\n },\n {\n \"band_i_id\": 12,\n \"band_j_id\": 20,\n \"pairing_boost\": 131\n },\n {\n \"band_i_id\": 13,\n \"band_j_id\": 14,\n \"pairing_boost\": 118\n },\n {\n \"band_i_id\": 13,\n \"band_j_id\": 15,\n \"pairing_boost\": 126\n },\n {\n \"band_i_id\": 13,\n \"band_j_id\": 16,\n \"pairing_boost\": 134\n },\n {\n \"band_i_id\": 13,\n \"band_j_id\": 17,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 13,\n \"band_j_id\": 18,\n \"pairing_boost\": 134\n },\n {\n \"band_i_id\": 13,\n \"band_j_id\": 19,\n \"pairing_boost\": 143\n },\n {\n \"band_i_id\": 13,\n \"band_j_id\": 20,\n \"pairing_boost\": 135\n },\n {\n \"band_i_id\": 14,\n \"band_j_id\": 15,\n \"pairing_boost\": 127\n },\n {\n \"band_i_id\": 14,\n \"band_j_id\": 18,\n \"pairing_boost\": 136\n },\n {\n \"band_i_id\": 14,\n \"band_j_id\": 19,\n \"pairing_boost\": 141\n },\n {\n \"band_i_id\": 14,\n \"band_j_id\": 20,\n \"pairing_boost\": 134\n },\n {\n \"band_i_id\": 15,\n \"band_j_id\": 17,\n \"pairing_boost\": 129\n },\n {\n \"band_i_id\": 16,\n \"band_j_id\": 17,\n \"pairing_boost\": 132\n },\n {\n \"band_i_id\": 16,\n \"band_j_id\": 18,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 16,\n \"band_j_id\": 19,\n \"pairing_boost\": 136\n },\n {\n \"band_i_id\": 16,\n \"band_j_id\": 20,\n \"pairing_boost\": 122\n },\n {\n \"band_i_id\": 17,\n \"band_j_id\": 19,\n \"pairing_boost\": 119\n },\n {\n \"band_i_id\": 17,\n \"band_j_id\": 20,\n \"pairing_boost\": 136\n },\n {\n \"band_i_id\": 18,\n \"band_j_id\": 19,\n \"pairing_boost\": 133\n }\n ]\n}\n\nOh, and when you send back the final lineup, please use this simple JSON shape so it's easy to read:\n\n{\n \"solution\": [, , ...]\n}\n\nThis \"solution\" array should just list the IDs of the bands you want to hire (one entry per band). Think of it like filling in a form: put the band identifiers in the list, and that's your proposed lineup. The JSON above is only a sketch of the shape I need, not the actual answer.\n\nTo be clear, 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”. Please use the identifiers exactly as they appear in the instance input—no renaming and no new labels.", "instance": { "linear_coeffs": [ 130, 107, 109, 147, 142, 137, 137, 136, 98, 143, 113, 146, 125, 122, 134, 109, 133, 142, 114, 131 ], "quadratic_coeffs": [ [ 125, 129, 127, 127, 0, 116, 126, 135, 115, 126, 119, 0, 128, 125, 0, 136, 0, 131, 122, 0 ], [ 0, 103, 116, 113, 125, 103, 123, 0, 121, 103, 0, 115, 120, 123, 108, 103, 123, 112, 0, 143 ], [ 0, 0, 0, 114, 114, 0, 120, 106, 113, 111, 122, 124, 120, 124, 108, 119, 0, 108, 109, 127 ], [ 0, 0, 0, 0, 121, 0, 0, 0, 0, 129, 130, 0, 122, 142, 141, 138, 0, 144, 128, 121 ], [ 0, 0, 0, 0, 134, 128, 140, 0, 132, 135, 138, 0, 127, 136, 0, 133, 117, 141, 122, 121 ], [ 0, 0, 0, 0, 0, 0, 137, 0, 0, 140, 140, 138, 125, 123, 126, 0, 122, 134, 108, 108 ], [ 0, 0, 0, 0, 0, 0, 136, 127, 0, 124, 132, 125, 130, 0, 118, 136, 0, 117, 112, 122 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 133, 0, 0, 130, 0, 133, 0, 138, 131, 0, 113, 125 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 111, 117, 107, 121, 117, 117, 0, 130, 129, 142 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 0, 138, 120, 139, 130, 142, 0, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 110, 118, 121, 122, 121, 120, 0, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 144, 136, 146, 132, 0, 0, 131 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 135, 118, 126, 134, 122, 134, 143, 135 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 127, 0, 0, 136, 141, 134 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 141, 0, 129, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 132, 122, 136, 122 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 136 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 133, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 144, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 125, 106, 113, 142, 135, 137, 129, 130, 100, 141, 119, 141, 127, 115, 136, 115, 127, 135, 110, 131 ], "capacity": 1014, "solution": [ 1, 2, 3, 4, 9, 12, 13, 17 ], "obj": 4484.0, "problem_type": "QKP" }, "solution": [ 1, 2, 3, 4, 9, 12, 13, 17 ], "obj": 4484.0, "instance_variant": { "problem_type": "QKP", "num_items": 20, "capacity": 1014, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 130 }, { "item_id": 2, "linear_profit": 107 }, { "item_id": 3, "linear_profit": 109 }, { "item_id": 4, "linear_profit": 147 }, { "item_id": 5, "linear_profit": 142 }, { "item_id": 6, "linear_profit": 137 }, { "item_id": 7, "linear_profit": 137 }, { "item_id": 8, "linear_profit": 136 }, { "item_id": 9, "linear_profit": 98 }, { "item_id": 10, "linear_profit": 143 }, { "item_id": 11, "linear_profit": 113 }, { "item_id": 12, "linear_profit": 146 }, { "item_id": 13, "linear_profit": 125 }, { "item_id": 14, "linear_profit": 122 }, { "item_id": 15, "linear_profit": 134 }, { "item_id": 16, "linear_profit": 109 }, { "item_id": 17, "linear_profit": 133 }, { "item_id": 18, "linear_profit": 142 }, { "item_id": 19, "linear_profit": 114 }, { "item_id": 20, "linear_profit": 131 } ], "weight_pairs": [ { "item_id": 1, "weight": 125 }, { "item_id": 2, "weight": 106 }, { "item_id": 3, "weight": 113 }, { "item_id": 4, "weight": 142 }, { "item_id": 5, "weight": 135 }, { "item_id": 6, "weight": 137 }, { "item_id": 7, "weight": 129 }, { "item_id": 8, "weight": 130 }, { "item_id": 9, "weight": 100 }, { "item_id": 10, "weight": 141 }, { "item_id": 11, "weight": 119 }, { "item_id": 12, "weight": 141 }, { "item_id": 13, "weight": 127 }, { "item_id": 14, "weight": 115 }, { "item_id": 15, "weight": 136 }, { "item_id": 16, "weight": 115 }, { "item_id": 17, "weight": 127 }, { "item_id": 18, "weight": 135 }, { "item_id": 19, "weight": 110 }, { "item_id": 20, "weight": 131 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 125 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 129 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 127 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 127 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 116 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 126 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 135 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 115 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 126 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 128 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 125 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 136 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 131 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 122 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 116 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 113 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 125 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 123 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 121 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 115 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 120 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 123 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 108 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 123 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 112 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 143 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 114 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 114 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 120 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 106 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 113 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 122 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 124 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 120 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 124 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 108 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 119 }, { "item_i_id": 3, "item_j_id": 18, "quadratic_profit": 108 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 109 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 127 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 121 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 129 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 130 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 122 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 142 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 141 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 138 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 144 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 128 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 121 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 134 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 128 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 140 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 132 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 135 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 138 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 127 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 136 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 133 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 117 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 141 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 122 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 121 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 137 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 140 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 140 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 138 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 125 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 123 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 126 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 122 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 134 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 108 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 108 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 136 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 127 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 124 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 132 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 125 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 130 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 118 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 136 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 117 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 112 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 122 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 133 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 130 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 133 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 138 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 131 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 113 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 125 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 111 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 117 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 107 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 121 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 117 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 117 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 130 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 129 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 142 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 121 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 138 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 120 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 139 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 130 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 142 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 120 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 110 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 118 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 121 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 122 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 121 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 120 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 105 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 128 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 144 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 136 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 146 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 132 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 131 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 135 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 118 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 126 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 134 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 122 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 134 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 143 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 135 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 127 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 127 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 136 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 141 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 134 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 141 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 129 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 132 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 122 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 136 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 122 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 119 }, { "item_i_id": 17, "item_j_id": 20, "quadratic_profit": 136 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 119 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 133 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 144 } ] }, "solution_variant": [ 2, 3, 4, 5, 10, 13, 14, 18 ], "context_index": 21, "input_format": "json", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "On a sunny morning the volunteers sorted through plant tags, figuring out what to put in the community bed. Each tag lists how much room a plant needs and how lovely it looks by itself, and some pairs of plants enhance one another, giving extra beauty if both are chosen. The job is to choose a combination that fits the bed’s available area and yields the greatest total beauty — add every chosen plant’s beauty and then any extra points for pairs — and each plant choice can only be used once. The exact plant items, areas, and pair bonuses are detailed below.\n\nThey examined 25 plant tags — A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y — for the community bed, which has 1752 area.\n\n| plant_id | base_beauty |\n|---|---|\n| A | 122 |\n| B | 115 |\n| C | 134 |\n| D | 119 |\n| E | 118 |\n| F | 129 |\n| G | 128 |\n| H | 124 |\n| I | 127 |\n| J | 124 |\n| K | 119 |\n| L | 116 |\n| M | 123 |\n| N | 129 |\n| O | 112 |\n| P | 123 |\n| Q | 127 |\n| R | 114 |\n| S | 113 |\n| T | 117 |\n| U | 114 |\n| V | 121 |\n| W | 123 |\n| X | 132 |\n| Y | 117 |\n\n| plant_id | area_required |\n|---|---|\n| A | 110 |\n| B | 103 |\n| C | 122 |\n| D | 107 |\n| E | 106 |\n| F | 117 |\n| G | 116 |\n| H | 112 |\n| I | 115 |\n| J | 112 |\n| K | 107 |\n| L | 104 |\n| M | 111 |\n| N | 117 |\n| O | 100 |\n| P | 111 |\n| Q | 115 |\n| R | 102 |\n| S | 101 |\n| T | 105 |\n| U | 102 |\n| V | 109 |\n| W | 111 |\n| X | 120 |\n| Y | 105 |\n\n| plant_i_id | plant_j_id | pair_bonus_beauty |\n|---|---|---|\n| A | C | 121 |\n| A | D | 124 |\n| A | G | 111 |\n| A | H | 121 |\n| A | K | 123 |\n| A | L | 108 |\n| A | M | 103 |\n| A | Q | 121 |\n| A | R | 100 |\n| A | U | 117 |\n| A | V | 104 |\n| A | X | 101 |\n| B | C | 106 |\n| B | D | 101 |\n| B | F | 104 |\n| B | G | 114 |\n| B | H | 103 |\n| B | J | 107 |\n| B | K | 104 |\n| B | M | 105 |\n| B | O | 102 |\n| B | Q | 111 |\n| B | S | 122 |\n| B | T | 104 |\n| B | V | 123 |\n| C | E | 108 |\n| C | G | 109 |\n| C | H | 110 |\n| C | I | 114 |\n| C | K | 122 |\n| C | L | 103 |\n| C | Q | 120 |\n| C | S | 117 |\n| C | U | 106 |\n| C | W | 102 |\n| C | Y | 117 |\n| D | E | 109 |\n| D | F | 120 |\n| D | H | 117 |\n| D | J | 107 |\n| D | K | 101 |\n| D | M | 111 |\n| D | Q | 116 |\n| D | R | 107 |\n| D | W | 114 |\n| E | L | 120 |\n| E | N | 119 |\n| E | P | 105 |\n| E | Q | 104 |\n| E | R | 118 |\n| E | W | 122 |\n| E | X | 103 |\n| F | H | 107 |\n| F | K | 115 |\n| F | L | 122 |\n| F | N | 117 |\n| F | S | 103 |\n| F | U | 115 |\n| F | V | 122 |\n| F | W | 106 |\n| G | H | 123 |\n| G | I | 112 |\n| G | K | 105 |\n| G | L | 120 |\n| G | O | 116 |\n| G | Q | 109 |\n| G | R | 119 |\n| G | S | 104 |\n| G | W | 101 |\n| G | X | 123 |\n| H | K | 109 |\n| H | O | 104 |\n| H | Q | 118 |\n| H | T | 110 |\n| H | U | 111 |\n| H | V | 110 |\n| H | Y | 119 |\n| I | M | 102 |\n| I | O | 120 |\n| I | P | 113 |\n| I | R | 124 |\n| I | S | 101 |\n| I | T | 110 |\n| I | V | 108 |\n| I | W | 122 |\n| I | Y | 106 |\n| J | R | 116 |\n| J | V | 105 |\n| J | W | 107 |\n| J | Y | 105 |\n| K | L | 107 |\n| K | M | 121 |\n| K | N | 118 |\n| K | O | 123 |\n| K | S | 102 |\n| K | U | 105 |\n| K | W | 112 |\n| K | X | 105 |\n| K | Y | 110 |\n| L | M | 114 |\n| L | O | 111 |\n| L | P | 104 |\n| L | R | 124 |\n| L | T | 112 |\n| L | U | 107 |\n| L | W | 124 |\n| M | N | 110 |\n| M | O | 117 |\n| M | P | 107 |\n| M | S | 117 |\n| M | V | 123 |\n| N | O | 113 |\n| N | U | 110 |\n| N | V | 112 |\n| N | W | 104 |\n| N | X | 103 |\n| N | Y | 123 |\n| O | P | 105 |\n| O | U | 109 |\n| O | V | 124 |\n| O | W | 110 |\n| O | X | 101 |\n| O | Y | 104 |\n| P | R | 104 |\n| P | S | 106 |\n| P | Y | 119 |\n| Q | U | 100 |\n| Q | V | 121 |\n| Q | X | 113 |\n| Q | Y | 105 |\n| R | T | 113 |\n| R | U | 117 |\n| R | W | 102 |\n| R | X | 112 |\n| S | T | 109 |\n| S | U | 101 |\n| S | W | 102 |\n| T | U | 114 |\n| T | X | 110 |\n| U | V | 103 |\n| U | W | 105 |\n| V | W | 110 |\n| V | Y | 114 |\n\nThe volunteers used these tag details to pick the combination that fits the bed and yields the greatest total beauty.\n\nIf you want, just drop your chosen plants into a tiny JSON snippet like the one below so it's easy to read and verify.\n\n{\n \"solution\": [, , ...]\n}\n\nThis little block means: put the list of plant tag identifiers you picked under \"solution\". Think of each placeholder inside the brackets as the exact tag you’ll choose — replace each with a real tag from the instance. It’s just a sketch of the shape I need, not your final answer.\n\nPlease make sure to use the identifiers exactly as they appear in the instance input — no renaming and no new labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 122, 115, 134, 119, 118, 129, 128, 124, 127, 124, 119, 116, 123, 129, 112, 123, 127, 114, 113, 117, 114, 121, 123, 132, 117 ], "quadratic_coeffs": [ [ 0, 0, 121, 124, 0, 0, 111, 121, 0, 0, 123, 108, 103, 0, 0, 0, 121, 100, 0, 0, 117, 104, 0, 101, 0 ], [ 0, 123, 106, 101, 0, 104, 114, 103, 0, 107, 104, 0, 105, 0, 102, 0, 111, 0, 122, 104, 0, 123, 0, 0, 0 ], [ 0, 0, 0, 0, 108, 0, 109, 110, 114, 0, 122, 103, 0, 0, 0, 0, 120, 0, 117, 0, 106, 0, 102, 0, 117 ], [ 0, 0, 0, 0, 109, 120, 0, 117, 0, 107, 101, 0, 111, 0, 0, 0, 116, 107, 0, 0, 0, 0, 114, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 0, 119, 0, 105, 104, 118, 0, 0, 0, 0, 122, 103, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 107, 0, 0, 115, 122, 0, 117, 0, 0, 0, 0, 103, 0, 115, 122, 106, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 123, 112, 0, 105, 120, 0, 0, 116, 0, 109, 119, 104, 0, 0, 0, 101, 123, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 0, 0, 0, 104, 0, 118, 0, 0, 110, 111, 110, 0, 0, 119 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 120, 113, 0, 124, 101, 110, 0, 108, 122, 0, 106 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 0, 0, 0, 0, 116, 0, 0, 0, 105, 107, 0, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 107, 121, 118, 123, 0, 0, 0, 102, 0, 105, 0, 112, 105, 110 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 114, 0, 111, 104, 0, 124, 0, 112, 107, 0, 124, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 110, 117, 107, 0, 0, 117, 0, 0, 123, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 0, 0, 0, 0, 0, 110, 112, 104, 103, 123 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 105, 0, 0, 0, 0, 109, 124, 110, 101, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 0, 104, 106, 0, 0, 0, 0, 0, 119 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 121, 0, 113, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 0, 113, 117, 0, 102, 112, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 109, 101, 0, 102, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 114, 0, 0, 110, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 108, 103, 105, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 114 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 110, 103, 122, 107, 106, 117, 116, 112, 115, 112, 107, 104, 111, 117, 100, 111, 115, 102, 101, 105, 102, 109, 111, 120, 105 ], "capacity": 1752, "solution": [ 0, 1, 2, 3, 5, 6, 7, 10, 11, 12, 14, 16, 18, 20, 21, 22 ], "obj": 10543.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 5, 6, 7, 10, 11, 12, 14, 16, 18, 20, 21, 22 ], "obj": 10543.0, "instance_variant": { "problem_type": "QKP", "num_items": 25, "capacity": 1752, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 122 }, { "item_id": "B", "linear_profit": 115 }, { "item_id": "C", "linear_profit": 134 }, { "item_id": "D", "linear_profit": 119 }, { "item_id": "E", "linear_profit": 118 }, { "item_id": "F", "linear_profit": 129 }, { "item_id": "G", "linear_profit": 128 }, { "item_id": "H", "linear_profit": 124 }, { "item_id": "I", "linear_profit": 127 }, { "item_id": "J", "linear_profit": 124 }, { "item_id": "K", "linear_profit": 119 }, { "item_id": "L", "linear_profit": 116 }, { "item_id": "M", "linear_profit": 123 }, { "item_id": "N", "linear_profit": 129 }, { "item_id": "O", "linear_profit": 112 }, { "item_id": "P", "linear_profit": 123 }, { "item_id": "Q", "linear_profit": 127 }, { "item_id": "R", "linear_profit": 114 }, { "item_id": "S", "linear_profit": 113 }, { "item_id": "T", "linear_profit": 117 }, { "item_id": "U", "linear_profit": 114 }, { "item_id": "V", "linear_profit": 121 }, { "item_id": "W", "linear_profit": 123 }, { "item_id": "X", "linear_profit": 132 }, { "item_id": "Y", "linear_profit": 117 } ], "weight_pairs": [ { "item_id": "A", "weight": 110 }, { "item_id": "B", "weight": 103 }, { "item_id": "C", "weight": 122 }, { "item_id": "D", "weight": 107 }, { "item_id": "E", "weight": 106 }, { "item_id": "F", "weight": 117 }, { "item_id": "G", "weight": 116 }, { "item_id": "H", "weight": 112 }, { "item_id": "I", "weight": 115 }, { "item_id": "J", "weight": 112 }, { "item_id": "K", "weight": 107 }, { "item_id": "L", "weight": 104 }, { "item_id": "M", "weight": 111 }, { "item_id": "N", "weight": 117 }, { "item_id": "O", "weight": 100 }, { "item_id": "P", "weight": 111 }, { "item_id": "Q", "weight": 115 }, { "item_id": "R", "weight": 102 }, { "item_id": "S", "weight": 101 }, { "item_id": "T", "weight": 105 }, { "item_id": "U", "weight": 102 }, { "item_id": "V", "weight": 109 }, { "item_id": "W", "weight": 111 }, { "item_id": "X", "weight": 120 }, { "item_id": "Y", "weight": 105 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 121 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 124 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 111 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 121 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 123 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 108 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 121 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 117 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 123 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 106 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 114 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 107 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 105 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 122 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "V", "quadratic_profit": 123 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 108 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 109 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 110 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 114 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 122 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 120 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 117 }, { "item_i_id": "C", "item_j_id": "U", "quadratic_profit": 106 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "Y", "quadratic_profit": 117 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 109 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 120 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 117 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 107 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 111 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 116 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 107 }, { "item_i_id": "D", "item_j_id": "W", "quadratic_profit": 114 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 120 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 119 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 105 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 118 }, { "item_i_id": "E", "item_j_id": "W", "quadratic_profit": 122 }, { "item_i_id": "E", "item_j_id": "X", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 107 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 115 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 122 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 117 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "U", "quadratic_profit": 115 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 122 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 106 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 123 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 112 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 120 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 116 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 109 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 119 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "X", "quadratic_profit": 123 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 109 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 104 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 118 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 110 }, { "item_i_id": "H", "item_j_id": "U", "quadratic_profit": 111 }, { "item_i_id": "H", "item_j_id": "V", "quadratic_profit": 110 }, { "item_i_id": "H", "item_j_id": "Y", "quadratic_profit": 119 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 120 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 113 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 124 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "T", "quadratic_profit": 110 }, { "item_i_id": "I", "item_j_id": "V", "quadratic_profit": 108 }, { "item_i_id": "I", "item_j_id": "W", "quadratic_profit": 122 }, { "item_i_id": "I", "item_j_id": "Y", "quadratic_profit": 106 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 116 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 116 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 105 }, { "item_i_id": "J", "item_j_id": "W", "quadratic_profit": 107 }, { "item_i_id": "J", "item_j_id": "Y", "quadratic_profit": 105 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 112 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 107 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 121 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 118 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 123 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "K", "item_j_id": "U", "quadratic_profit": 105 }, { "item_i_id": "K", "item_j_id": "W", "quadratic_profit": 112 }, { "item_i_id": "K", "item_j_id": "X", "quadratic_profit": 105 }, { "item_i_id": "K", "item_j_id": "Y", "quadratic_profit": 110 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 114 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 111 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 104 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 124 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 112 }, { "item_i_id": "L", "item_j_id": "U", "quadratic_profit": 107 }, { "item_i_id": "L", "item_j_id": "W", "quadratic_profit": 124 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 115 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 110 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 117 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 107 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 117 }, { "item_i_id": "M", "item_j_id": "V", "quadratic_profit": 123 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 113 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 110 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 112 }, { "item_i_id": "N", "item_j_id": "W", "quadratic_profit": 104 }, { "item_i_id": "N", "item_j_id": "X", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "Y", "quadratic_profit": 123 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 105 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 109 }, { "item_i_id": "O", "item_j_id": "V", "quadratic_profit": 124 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 110 }, { "item_i_id": "O", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "Y", "quadratic_profit": 104 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 113 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 106 }, { "item_i_id": "P", "item_j_id": "Y", "quadratic_profit": 119 }, { "item_i_id": "Q", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 121 }, { "item_i_id": "Q", "item_j_id": "X", "quadratic_profit": 113 }, { "item_i_id": "Q", "item_j_id": "Y", "quadratic_profit": 105 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 124 }, { "item_i_id": "R", "item_j_id": "T", "quadratic_profit": 113 }, { "item_i_id": "R", "item_j_id": "U", "quadratic_profit": 117 }, { "item_i_id": "R", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "R", "item_j_id": "X", "quadratic_profit": 112 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 105 }, { "item_i_id": "S", "item_j_id": "T", "quadratic_profit": 109 }, { "item_i_id": "S", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "S", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "T", "item_j_id": "U", "quadratic_profit": 114 }, { "item_i_id": "T", "item_j_id": "X", "quadratic_profit": 110 }, { "item_i_id": "U", "item_j_id": "U", "quadratic_profit": 108 }, { "item_i_id": "U", "item_j_id": "V", "quadratic_profit": 103 }, { "item_i_id": "U", "item_j_id": "W", "quadratic_profit": 105 }, { "item_i_id": "V", "item_j_id": "W", "quadratic_profit": 110 }, { "item_i_id": "V", "item_j_id": "Y", "quadratic_profit": 114 }, { "item_i_id": "W", "item_j_id": "W", "quadratic_profit": 121 } ] }, "solution_variant": [ "A", "B", "C", "D", "F", "G", "H", "K", "L", "M", "O", "Q", "S", "U", "V", "W" ], "context_index": 22, "input_format": "markdown_table", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Many photographers know this scenario: a portrait job, a single bag, and a pile of lenses and accessories to choose from. Each piece carries weight and brings a base creative benefit, and some pairs multiply the possibilities when they’re together. The point is to decide which items to bring so the total weight remains under the bag’s capacity while the total creative score—calculated by summing each packed item’s value and adding any extra pair rewards—is as large as possible; every item is optional but indivisible. The exact kit list and stats appear below.\n\nThere are 25 distinct pieces listed as 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, and the bag's weight limit is 1926 — choose which to pack so the kit fits and the creative score is maximized.\n\n| gear_id | base_creative_value |\n|---|---|\n| 1 | 100 |\n| 2 | 105 |\n| 3 | 104 |\n| 4 | 104 |\n| 5 | 101 |\n| 6 | 101 |\n| 7 | 103 |\n| 8 | 105 |\n| 9 | 100 |\n| 10 | 101 |\n| 11 | 102 |\n| 12 | 100 |\n| 13 | 103 |\n| 14 | 105 |\n| 15 | 104 |\n| 16 | 104 |\n| 17 | 102 |\n| 18 | 102 |\n| 19 | 100 |\n| 20 | 101 |\n| 21 | 103 |\n| 22 | 103 |\n| 23 | 105 |\n| 24 | 103 |\n| 25 | 102 |\n\n| gear_id | gear_weight |\n|---|---|\n| 1 | 100 |\n| 2 | 102 |\n| 3 | 101 |\n| 4 | 103 |\n| 5 | 102 |\n| 6 | 105 |\n| 7 | 104 |\n| 8 | 101 |\n| 9 | 103 |\n| 10 | 103 |\n| 11 | 104 |\n| 12 | 105 |\n| 13 | 100 |\n| 14 | 103 |\n| 15 | 100 |\n| 16 | 102 |\n| 17 | 105 |\n| 18 | 100 |\n| 19 | 100 |\n| 20 | 104 |\n| 21 | 100 |\n| 22 | 100 |\n| 23 | 103 |\n| 24 | 103 |\n| 25 | 102 |\n\n| gear_i_id | gear_j_id | pair_synergy_bonus |\n|---|---|---|\n| 1 | 3 | 100 |\n| 1 | 6 | 100 |\n| 1 | 7 | 100 |\n| 1 | 10 | 100 |\n| 1 | 11 | 100 |\n| 1 | 13 | 100 |\n| 1 | 16 | 100 |\n| 1 | 17 | 100 |\n| 1 | 19 | 100 |\n| 1 | 20 | 100 |\n| 1 | 23 | 100 |\n| 1 | 24 | 100 |\n| 1 | 25 | 100 |\n| 2 | 5 | 102 |\n| 2 | 8 | 102 |\n| 2 | 10 | 102 |\n| 2 | 11 | 102 |\n| 2 | 12 | 102 |\n| 2 | 13 | 102 |\n| 2 | 14 | 102 |\n| 2 | 17 | 100 |\n| 2 | 20 | 101 |\n| 2 | 22 | 101 |\n| 2 | 23 | 102 |\n| 2 | 25 | 100 |\n| 3 | 5 | 101 |\n| 3 | 6 | 101 |\n| 3 | 8 | 101 |\n| 3 | 13 | 100 |\n| 3 | 14 | 101 |\n| 3 | 16 | 100 |\n| 3 | 17 | 101 |\n| 3 | 20 | 101 |\n| 3 | 21 | 101 |\n| 3 | 22 | 101 |\n| 3 | 23 | 101 |\n| 3 | 24 | 100 |\n| 4 | 5 | 103 |\n| 4 | 6 | 103 |\n| 4 | 7 | 103 |\n| 4 | 8 | 103 |\n| 4 | 10 | 103 |\n| 4 | 12 | 100 |\n| 4 | 14 | 101 |\n| 4 | 18 | 103 |\n| 4 | 20 | 102 |\n| 4 | 21 | 103 |\n| 4 | 22 | 102 |\n| 4 | 24 | 102 |\n| 5 | 6 | 102 |\n| 5 | 9 | 102 |\n| 5 | 14 | 102 |\n| 5 | 15 | 102 |\n| 5 | 17 | 100 |\n| 5 | 20 | 100 |\n| 5 | 21 | 100 |\n| 5 | 22 | 100 |\n| 5 | 24 | 100 |\n| 6 | 9 | 101 |\n| 6 | 11 | 101 |\n| 6 | 12 | 105 |\n| 6 | 15 | 101 |\n| 6 | 16 | 101 |\n| 6 | 17 | 101 |\n| 6 | 18 | 104 |\n| 6 | 21 | 103 |\n| 6 | 22 | 103 |\n| 6 | 24 | 103 |\n| 6 | 25 | 102 |\n| 7 | 9 | 102 |\n| 7 | 11 | 100 |\n| 7 | 12 | 101 |\n| 7 | 15 | 104 |\n| 7 | 16 | 103 |\n| 7 | 17 | 101 |\n| 7 | 18 | 104 |\n| 7 | 20 | 103 |\n| 7 | 21 | 101 |\n| 7 | 23 | 101 |\n| 8 | 9 | 101 |\n| 8 | 12 | 101 |\n| 8 | 13 | 101 |\n| 8 | 14 | 101 |\n| 8 | 18 | 101 |\n| 8 | 19 | 104 |\n| 8 | 20 | 104 |\n| 8 | 21 | 100 |\n| 8 | 23 | 104 |\n| 8 | 24 | 100 |\n| 8 | 25 | 104 |\n| 9 | 12 | 101 |\n| 9 | 14 | 100 |\n| 9 | 15 | 102 |\n| 9 | 16 | 103 |\n| 9 | 17 | 103 |\n| 9 | 19 | 100 |\n| 9 | 24 | 100 |\n| 9 | 25 | 100 |\n| 10 | 11 | 103 |\n| 10 | 13 | 101 |\n| 10 | 15 | 102 |\n| 10 | 16 | 103 |\n| 10 | 18 | 100 |\n| 10 | 22 | 100 |\n| 10 | 23 | 100 |\n| 11 | 14 | 104 |\n| 11 | 16 | 102 |\n| 11 | 17 | 104 |\n| 11 | 18 | 104 |\n| 11 | 20 | 101 |\n| 11 | 22 | 104 |\n| 11 | 25 | 102 |\n| 12 | 15 | 104 |\n| 12 | 20 | 100 |\n| 12 | 21 | 100 |\n| 12 | 23 | 100 |\n| 12 | 24 | 100 |\n| 12 | 25 | 100 |\n| 13 | 16 | 103 |\n| 13 | 17 | 104 |\n| 13 | 20 | 102 |\n| 13 | 21 | 100 |\n| 13 | 22 | 104 |\n| 13 | 25 | 104 |\n| 14 | 15 | 100 |\n| 14 | 18 | 100 |\n| 14 | 21 | 100 |\n| 14 | 22 | 100 |\n| 14 | 23 | 100 |\n| 14 | 24 | 100 |\n| 15 | 18 | 101 |\n| 15 | 19 | 104 |\n| 15 | 20 | 100 |\n| 15 | 22 | 104 |\n| 15 | 24 | 101 |\n| 16 | 21 | 103 |\n| 16 | 22 | 103 |\n| 16 | 23 | 100 |\n| 17 | 18 | 104 |\n| 17 | 19 | 104 |\n| 17 | 23 | 100 |\n| 17 | 24 | 100 |\n| 17 | 25 | 100 |\n| 18 | 19 | 101 |\n| 18 | 20 | 101 |\n| 19 | 23 | 103 |\n| 19 | 24 | 103 |\n| 20 | 21 | 101 |\n| 20 | 22 | 101 |\n| 20 | 23 | 100 |\n| 20 | 24 | 100 |\n| 20 | 25 | 100 |\n| 21 | 23 | 103 |\n| 21 | 25 | 101 |\n| 23 | 25 | 102 |\n| 24 | 25 | 102 |\n\nPack wisely to maximize creative value without exceeding the 1926 limit.\n\nIf you want to hand me your kit choice, just drop it in a tiny JSON snippet like this:\n\n{\n \"solution\": [, , ...]\n}\n\nHere \"solution\" is just a list of the items you’re packing — each entry should be the exact item identifier from the instance (the ID itself, not a description). Think of it like the short checklist of lenses and accessories you’ll toss into the bag. This JSON is only a sketch of the shape I expect, not the actual answer.\n\nAll identifiers must be used exactly as they appear in the instance input — no renaming and no new labels.\nValid 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”.", "instance": { "linear_coeffs": [ 100, 105, 104, 104, 101, 101, 103, 105, 100, 101, 102, 100, 103, 105, 104, 104, 102, 102, 100, 101, 103, 103, 105, 103, 102 ], "quadratic_coeffs": [ [ 100, 0, 100, 0, 0, 100, 100, 0, 0, 100, 100, 0, 100, 0, 0, 100, 100, 0, 100, 100, 0, 0, 100, 100, 100 ], [ 0, 102, 0, 0, 102, 0, 0, 102, 0, 102, 102, 102, 102, 102, 0, 0, 100, 0, 0, 101, 0, 101, 102, 0, 100 ], [ 0, 0, 101, 0, 101, 101, 0, 101, 0, 0, 0, 0, 100, 101, 0, 100, 101, 0, 0, 101, 101, 101, 101, 100, 0 ], [ 0, 0, 0, 0, 103, 103, 103, 103, 0, 103, 0, 100, 0, 101, 0, 0, 0, 103, 0, 102, 103, 102, 0, 102, 0 ], [ 0, 0, 0, 0, 0, 102, 0, 0, 102, 0, 0, 0, 0, 102, 102, 0, 100, 0, 0, 100, 100, 100, 0, 100, 0 ], [ 0, 0, 0, 0, 0, 103, 0, 0, 101, 0, 101, 105, 0, 0, 101, 101, 101, 104, 0, 0, 103, 103, 0, 103, 102 ], [ 0, 0, 0, 0, 0, 0, 104, 0, 102, 0, 100, 101, 0, 0, 104, 103, 101, 104, 0, 103, 101, 0, 101, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 100, 101, 0, 0, 101, 101, 101, 0, 0, 0, 101, 104, 104, 100, 0, 104, 100, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 100, 102, 103, 103, 0, 100, 0, 0, 0, 0, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 101, 0, 102, 103, 0, 100, 0, 0, 0, 100, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 104, 0, 102, 104, 104, 0, 101, 0, 104, 0, 0, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 104, 0, 0, 0, 0, 100, 100, 0, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 104, 0, 0, 102, 100, 104, 0, 0, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 0, 0, 100, 0, 0, 100, 100, 100, 100, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 104, 100, 0, 104, 0, 101, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 0, 0, 103, 103, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 104, 104, 0, 0, 0, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 101, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 103, 103, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 101, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100 ] ], "weights": [ 100, 102, 101, 103, 102, 105, 104, 101, 103, 103, 104, 105, 100, 103, 100, 102, 105, 100, 100, 104, 100, 100, 103, 103, 102 ], "capacity": 1926, "solution": [ 1, 2, 3, 4, 5, 6, 7, 8, 11, 13, 14, 16, 17, 19, 20, 22, 23, 24 ], "obj": 11279.0, "problem_type": "QKP" }, "solution": [ 1, 2, 3, 4, 5, 6, 7, 8, 11, 13, 14, 16, 17, 19, 20, 22, 23, 24 ], "obj": 11279.0, "instance_variant": { "problem_type": "QKP", "num_items": 25, "capacity": 1926, "items": [ 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 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 100 }, { "item_id": 2, "linear_profit": 105 }, { "item_id": 3, "linear_profit": 104 }, { "item_id": 4, "linear_profit": 104 }, { "item_id": 5, "linear_profit": 101 }, { "item_id": 6, "linear_profit": 101 }, { "item_id": 7, "linear_profit": 103 }, { "item_id": 8, "linear_profit": 105 }, { "item_id": 9, "linear_profit": 100 }, { "item_id": 10, "linear_profit": 101 }, { "item_id": 11, "linear_profit": 102 }, { "item_id": 12, "linear_profit": 100 }, { "item_id": 13, "linear_profit": 103 }, { "item_id": 14, "linear_profit": 105 }, { "item_id": 15, "linear_profit": 104 }, { "item_id": 16, "linear_profit": 104 }, { "item_id": 17, "linear_profit": 102 }, { "item_id": 18, "linear_profit": 102 }, { "item_id": 19, "linear_profit": 100 }, { "item_id": 20, "linear_profit": 101 }, { "item_id": 21, "linear_profit": 103 }, { "item_id": 22, "linear_profit": 103 }, { "item_id": 23, "linear_profit": 105 }, { "item_id": 24, "linear_profit": 103 }, { "item_id": 25, "linear_profit": 102 } ], "weight_pairs": [ { "item_id": 1, "weight": 100 }, { "item_id": 2, "weight": 102 }, { "item_id": 3, "weight": 101 }, { "item_id": 4, "weight": 103 }, { "item_id": 5, "weight": 102 }, { "item_id": 6, "weight": 105 }, { "item_id": 7, "weight": 104 }, { "item_id": 8, "weight": 101 }, { "item_id": 9, "weight": 103 }, { "item_id": 10, "weight": 103 }, { "item_id": 11, "weight": 104 }, { "item_id": 12, "weight": 105 }, { "item_id": 13, "weight": 100 }, { "item_id": 14, "weight": 103 }, { "item_id": 15, "weight": 100 }, { "item_id": 16, "weight": 102 }, { "item_id": 17, "weight": 105 }, { "item_id": 18, "weight": 100 }, { "item_id": 19, "weight": 100 }, { "item_id": 20, "weight": 104 }, { "item_id": 21, "weight": 100 }, { "item_id": 22, "weight": 100 }, { "item_id": 23, "weight": 103 }, { "item_id": 24, "weight": 103 }, { "item_id": 25, "weight": 102 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 24, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 25, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 23, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 25, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 24, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 21, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 22, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 24, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 22, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 24, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 22, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 24, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 25, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 23, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 24, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 25, "quadratic_profit": 104 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 24, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 25, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 22, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 22, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 25, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 104 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 24, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 25, "quadratic_profit": 100 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 104 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 13, "item_j_id": 22, "quadratic_profit": 104 }, { "item_i_id": 13, "item_j_id": 25, "quadratic_profit": 104 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 22, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 24, "quadratic_profit": 100 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 15, "item_j_id": 22, "quadratic_profit": 104 }, { "item_i_id": 15, "item_j_id": 24, "quadratic_profit": 101 }, { "item_i_id": 16, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 16, "item_j_id": 21, "quadratic_profit": 103 }, { "item_i_id": 16, "item_j_id": 22, "quadratic_profit": 103 }, { "item_i_id": 16, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 17, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 17, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 17, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 17, "item_j_id": 24, "quadratic_profit": 100 }, { "item_i_id": 17, "item_j_id": 25, "quadratic_profit": 100 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 19, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 19, "item_j_id": 24, "quadratic_profit": 103 }, { "item_i_id": 20, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 20, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 20, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 20, "item_j_id": 24, "quadratic_profit": 100 }, { "item_i_id": 20, "item_j_id": 25, "quadratic_profit": 100 }, { "item_i_id": 21, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 21, "item_j_id": 25, "quadratic_profit": 101 }, { "item_i_id": 22, "item_j_id": 22, "quadratic_profit": 104 }, { "item_i_id": 23, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 23, "item_j_id": 25, "quadratic_profit": 102 }, { "item_i_id": 24, "item_j_id": 25, "quadratic_profit": 102 }, { "item_i_id": 25, "item_j_id": 25, "quadratic_profit": 100 } ] }, "solution_variant": [ 2, 3, 4, 5, 6, 7, 8, 9, 12, 14, 15, 17, 18, 20, 21, 23, 24, 25 ], "context_index": 23, "input_format": "markdown_table", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Many product teams face this: a fixed pot of money, a list of features each with a cost and its own benefit, and a few feature pairs that create extra value when shipped together. The challenge is to choose which features to fund so total spending stays within the pot, and the success metric is the total benefit — simply the sum of chosen features’ individual values plus any bonuses for chosen pairs — while never funding a feature twice or in parts. The exact numbers for costs, standalone benefits, and pair synergies are provided below.\n\n# num_features=25\n# total_budget=2915\n# feature_ids=A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y\n\nfeature_id,standalone_value\nA,139\nB,139\nC,148\nD,136\nE,164\nF,145\nG,147\nH,160\nI,145\nJ,124\nK,150\nL,150\nM,141\nN,147\nO,129\nP,145\nQ,155\nR,121\nS,137\nT,151\nU,140\nV,156\nW,150\nX,139\nY,130\n\nfeature_id,cost\nA,124\nB,124\nC,133\nD,121\nE,149\nF,130\nG,132\nH,145\nI,130\nJ,109\nK,135\nL,135\nM,126\nN,132\nO,114\nP,130\nQ,140\nR,106\nS,122\nT,136\nU,125\nV,141\nW,135\nX,124\nY,115\n\nfeature_i_id,feature_j_id,pair_synergy_value\nA,B,128\nA,C,127\nA,D,122\nA,E,124\nA,F,122\nA,G,121\nA,H,126\nA,I,116\nA,J,134\nA,K,119\nA,L,124\nA,M,129\nA,N,117\nA,O,122\nA,P,134\nA,Q,135\nA,R,118\nA,S,113\nA,T,117\nA,U,131\nA,V,135\nA,W,123\nA,X,119\nA,Y,131\nB,C,116\nB,D,132\nB,E,126\nB,F,118\nB,G,123\nB,H,126\nB,I,111\nB,J,133\nB,K,113\nB,L,125\nB,M,111\nB,N,128\nB,O,125\nB,P,135\nB,Q,131\nB,R,113\nB,S,126\nB,T,132\nB,U,124\nB,V,116\nB,W,124\nB,X,103\nB,Y,117\nC,D,119\nC,E,127\nC,F,138\nC,G,117\nC,H,115\nC,I,138\nC,J,120\nC,K,138\nC,L,135\nC,M,127\nC,N,124\nC,O,115\nC,P,125\nC,Q,133\nC,R,119\nC,S,140\nC,T,139\nC,U,116\nC,V,118\nC,W,112\nC,X,121\nC,Y,108\nD,E,121\nD,F,126\nD,G,123\nD,H,117\nD,I,132\nD,J,134\nD,K,128\nD,L,118\nD,M,121\nD,N,116\nD,O,113\nD,P,116\nD,Q,114\nD,R,125\nD,S,122\nD,T,113\nD,U,128\nD,V,134\nD,W,134\nD,X,146\nD,Y,134\nE,F,137\nE,G,134\nE,H,138\nE,I,124\nE,J,146\nE,K,130\nE,L,139\nE,M,141\nE,N,143\nE,O,123\nE,P,130\nE,Q,123\nE,R,128\nE,S,144\nE,T,135\nE,U,127\nE,V,125\nE,W,135\nE,X,125\nE,Y,126\nF,G,130\nF,H,135\nF,I,127\nF,J,115\nF,K,125\nF,L,125\nF,M,119\nF,N,125\nF,O,123\nF,P,135\nF,Q,124\nF,R,129\nF,S,127\nF,T,131\nF,U,125\nF,V,136\nF,W,122\nF,X,127\nF,Y,129\nG,H,137\nG,I,120\nG,J,115\nG,K,136\nG,L,132\nG,M,135\nG,N,118\nG,O,134\nG,P,122\nG,Q,133\nG,R,115\nG,S,133\nG,T,123\nG,U,122\nG,V,113\nG,W,125\nG,X,120\nG,Y,122\nH,I,130\nH,J,135\nH,K,135\nH,L,141\nH,M,140\nH,N,129\nH,O,145\nH,P,134\nH,Q,121\nH,R,145\nH,S,113\nH,T,113\nH,U,102\nH,V,109\nH,W,107\nH,X,102\nH,Y,102\nI,J,132\nI,K,130\nI,L,118\nI,M,124\nI,N,129\nI,O,135\nI,P,134\nI,Q,126\nI,R,113\nI,S,108\nI,T,110\nI,U,115\nI,V,109\nI,W,116\nI,X,111\nI,Y,121\nJ,K,109\nJ,L,112\nJ,M,109\nJ,N,109\nJ,O,126\nJ,P,120\nJ,Q,114\nJ,R,108\nJ,S,108\nJ,T,123\nJ,U,120\nJ,V,115\nJ,W,103\nJ,X,117\nJ,Y,103\nK,L,132\nK,M,131\nK,N,129\nK,O,129\nK,P,115\nK,Q,109\nK,R,102\nK,S,109\nK,T,114\nK,U,115\nK,V,122\nK,W,116\nK,X,113\nK,Y,107\nL,M,119\nL,N,132\nL,O,120\nL,P,122\nL,Q,131\nL,R,116\nL,S,116\nL,T,116\nL,U,119\nL,V,135\nL,W,112\nL,X,127\nL,Y,112\nM,N,100\nM,O,109\nM,P,117\nM,Q,106\nM,R,104\nM,S,114\nM,T,121\nM,U,116\nM,V,111\nM,W,102\nM,X,113\nM,Y,104\nN,O,122\nN,P,112\nN,Q,104\nN,R,121\nN,S,116\nN,T,113\nN,U,125\nN,V,132\nN,W,120\nN,X,122\nN,Y,118\nO,P,139\nO,Q,131\nO,R,128\nO,S,111\nO,T,120\nO,U,121\nO,V,129\nO,W,126\nO,X,111\nO,Y,132\nP,Q,127\nP,R,135\nP,S,137\nP,T,134\nP,U,115\nP,V,120\nP,W,136\nP,X,124\nP,Y,104\nQ,R,104\nQ,S,104\nQ,T,104\nQ,U,107\nQ,V,120\nQ,W,142\nQ,X,128\nQ,Y,130\nR,S,136\nR,T,136\nR,U,120\nR,V,130\nR,W,125\nR,X,128\nR,Y,125\nS,T,113\nS,U,114\nS,V,110\nS,W,129\nS,X,106\nS,Y,128\nT,U,134\nT,V,135\nT,W,125\nT,X,132\nT,Y,114\nU,V,119\nU,W,118\n\nWhen you're ready to give me the selection, just use this simple JSON shape so I can read it automatically — nothing fancy, just a list of the item IDs you want to pick:\n\n{\n \"solution\": [, , ...]\n}\n\n\"solution\" is just the list of features/items you choose to fund. Think of it like filling out a form: put each item's ID in the array, and that's your selection. This block is just a sketch of the expected shape — not the real answer itself.\n\nPlease make sure to use the exact identifiers from the instance input — don't rename them or invent new labels. \nValid 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”.", "instance": { "linear_coeffs": [ 139, 139, 148, 136, 164, 145, 147, 160, 145, 124, 150, 150, 141, 147, 129, 145, 155, 121, 137, 151, 140, 156, 150, 139, 130 ], "quadratic_coeffs": [ [ 131, 128, 127, 122, 124, 122, 121, 126, 116, 134, 119, 124, 129, 117, 122, 134, 135, 118, 113, 117, 131, 135, 123, 119, 131 ], [ 0, 122, 116, 132, 126, 118, 123, 126, 111, 133, 113, 125, 111, 128, 125, 135, 131, 113, 126, 132, 124, 116, 124, 103, 117 ], [ 0, 0, 127, 119, 127, 138, 117, 115, 138, 120, 138, 135, 127, 124, 115, 125, 133, 119, 140, 139, 116, 118, 112, 121, 108 ], [ 0, 0, 0, 131, 121, 126, 123, 117, 132, 134, 128, 118, 121, 116, 113, 116, 114, 125, 122, 113, 128, 134, 134, 146, 134 ], [ 0, 0, 0, 0, 140, 137, 134, 138, 124, 146, 130, 139, 141, 143, 123, 130, 123, 128, 144, 135, 127, 125, 135, 125, 126 ], [ 0, 0, 0, 0, 0, 125, 130, 135, 127, 115, 125, 125, 119, 125, 123, 135, 124, 129, 127, 131, 125, 136, 122, 127, 129 ], [ 0, 0, 0, 0, 0, 0, 124, 137, 120, 115, 136, 132, 135, 118, 134, 122, 133, 115, 133, 123, 122, 113, 125, 120, 122 ], [ 0, 0, 0, 0, 0, 0, 0, 140, 130, 135, 135, 141, 140, 129, 145, 134, 121, 145, 113, 113, 102, 109, 107, 102, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 127, 132, 130, 118, 124, 129, 135, 134, 126, 113, 108, 110, 115, 109, 116, 111, 121 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 118, 109, 112, 109, 109, 126, 120, 114, 108, 108, 123, 120, 115, 103, 117, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 132, 131, 129, 129, 115, 109, 102, 109, 114, 115, 122, 116, 113, 107 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 119, 132, 120, 122, 131, 116, 116, 116, 119, 135, 112, 127, 112 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 100, 109, 117, 106, 104, 114, 121, 116, 111, 102, 113, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 122, 112, 104, 121, 116, 113, 125, 132, 120, 122, 118 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 139, 139, 131, 128, 111, 120, 121, 129, 126, 111, 132 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130, 127, 135, 137, 134, 115, 120, 136, 124, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 104, 104, 104, 107, 120, 142, 128, 130 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 136, 136, 136, 120, 130, 125, 128, 125 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 113, 114, 110, 129, 106, 128 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 136, 134, 135, 125, 132, 114 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 119, 118, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 124, 124, 133, 121, 149, 130, 132, 145, 130, 109, 135, 135, 126, 132, 114, 130, 140, 106, 122, 136, 125, 141, 135, 124, 115 ], "capacity": 2915, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "obj": 31694.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "obj": 31694.0, "instance_variant": { "problem_type": "QKP", "num_items": 25, "capacity": 2915, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 139 }, { "item_id": "B", "linear_profit": 139 }, { "item_id": "C", "linear_profit": 148 }, { "item_id": "D", "linear_profit": 136 }, { "item_id": "E", "linear_profit": 164 }, { "item_id": "F", "linear_profit": 145 }, { "item_id": "G", "linear_profit": 147 }, { "item_id": "H", "linear_profit": 160 }, { "item_id": "I", "linear_profit": 145 }, { "item_id": "J", "linear_profit": 124 }, { "item_id": "K", "linear_profit": 150 }, { "item_id": "L", "linear_profit": 150 }, { "item_id": "M", "linear_profit": 141 }, { "item_id": "N", "linear_profit": 147 }, { "item_id": "O", "linear_profit": 129 }, { "item_id": "P", "linear_profit": 145 }, { "item_id": "Q", "linear_profit": 155 }, { "item_id": "R", "linear_profit": 121 }, { "item_id": "S", "linear_profit": 137 }, { "item_id": "T", "linear_profit": 151 }, { "item_id": "U", "linear_profit": 140 }, { "item_id": "V", "linear_profit": 156 }, { "item_id": "W", "linear_profit": 150 }, { "item_id": "X", "linear_profit": 139 }, { "item_id": "Y", "linear_profit": 130 } ], "weight_pairs": [ { "item_id": "A", "weight": 124 }, { "item_id": "B", "weight": 124 }, { "item_id": "C", "weight": 133 }, { "item_id": "D", "weight": 121 }, { "item_id": "E", "weight": 149 }, { "item_id": "F", "weight": 130 }, { "item_id": "G", "weight": 132 }, { "item_id": "H", "weight": 145 }, { "item_id": "I", "weight": 130 }, { "item_id": "J", "weight": 109 }, { "item_id": "K", "weight": 135 }, { "item_id": "L", "weight": 135 }, { "item_id": "M", "weight": 126 }, { "item_id": "N", "weight": 132 }, { "item_id": "O", "weight": 114 }, { "item_id": "P", "weight": 130 }, { "item_id": "Q", "weight": 140 }, { "item_id": "R", "weight": 106 }, { "item_id": "S", "weight": 122 }, { "item_id": "T", "weight": 136 }, { "item_id": "U", "weight": 125 }, { "item_id": "V", "weight": 141 }, { "item_id": "W", "weight": 135 }, { "item_id": "X", "weight": 124 }, { "item_id": "Y", "weight": 115 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 131 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 128 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 127 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 124 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 121 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 126 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 116 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 134 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 119 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 124 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 129 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 117 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 134 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 135 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 118 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 113 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 117 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 131 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 135 }, { "item_i_id": "A", "item_j_id": "W", "quadratic_profit": 123 }, { "item_i_id": "A", "item_j_id": "X", "quadratic_profit": 119 }, { "item_i_id": "A", "item_j_id": "Y", "quadratic_profit": 131 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 122 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 116 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 132 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 126 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 118 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 123 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 126 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 133 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 113 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 125 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 128 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 125 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 135 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 131 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 113 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 126 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 132 }, { "item_i_id": "B", "item_j_id": "U", "quadratic_profit": 124 }, { "item_i_id": "B", "item_j_id": "V", "quadratic_profit": 116 }, { "item_i_id": "B", "item_j_id": "W", "quadratic_profit": 124 }, { "item_i_id": "B", "item_j_id": "X", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "Y", "quadratic_profit": 117 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 127 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 119 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 127 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 138 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 117 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 115 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 138 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 120 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 138 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 135 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 127 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 124 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 115 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 125 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 133 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 119 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 140 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 139 }, { "item_i_id": "C", "item_j_id": "U", "quadratic_profit": 116 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 118 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 112 }, { "item_i_id": "C", "item_j_id": "X", "quadratic_profit": 121 }, { "item_i_id": "C", "item_j_id": "Y", "quadratic_profit": 108 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 131 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 121 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 126 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 123 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 117 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 132 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 134 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 128 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 118 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 121 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 116 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 113 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 116 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 114 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 125 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 122 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 113 }, { "item_i_id": "D", "item_j_id": "U", "quadratic_profit": 128 }, { "item_i_id": "D", "item_j_id": "V", "quadratic_profit": 134 }, { "item_i_id": "D", "item_j_id": "W", "quadratic_profit": 134 }, { "item_i_id": "D", "item_j_id": "X", "quadratic_profit": 146 }, { "item_i_id": "D", "item_j_id": "Y", "quadratic_profit": 134 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 140 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 137 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 134 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 138 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 124 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 146 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 130 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 139 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 141 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 143 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 123 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 130 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 123 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 128 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 144 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 135 }, { "item_i_id": "E", "item_j_id": "U", "quadratic_profit": 127 }, { "item_i_id": "E", "item_j_id": "V", "quadratic_profit": 125 }, { "item_i_id": "E", "item_j_id": "W", "quadratic_profit": 135 }, { "item_i_id": "E", "item_j_id": "X", "quadratic_profit": 125 }, { "item_i_id": "E", "item_j_id": "Y", "quadratic_profit": 126 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 125 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 130 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 135 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 127 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 115 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 125 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 125 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 119 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 125 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 123 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 135 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 124 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 129 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 127 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 131 }, { "item_i_id": "F", "item_j_id": "U", "quadratic_profit": 125 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 136 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 122 }, { "item_i_id": "F", "item_j_id": "X", "quadratic_profit": 127 }, { "item_i_id": "F", "item_j_id": "Y", "quadratic_profit": 129 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 124 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 137 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 120 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 115 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 136 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 132 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 135 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 118 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 134 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 122 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 133 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 115 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 133 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 123 }, { "item_i_id": "G", "item_j_id": "U", "quadratic_profit": 122 }, { "item_i_id": "G", "item_j_id": "V", "quadratic_profit": 113 }, { "item_i_id": "G", "item_j_id": "W", "quadratic_profit": 125 }, { "item_i_id": "G", "item_j_id": "X", "quadratic_profit": 120 }, { "item_i_id": "G", "item_j_id": "Y", "quadratic_profit": 122 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 140 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 130 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 135 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 135 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 141 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 140 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 129 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 145 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 134 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 121 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 145 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 113 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 113 }, { "item_i_id": "H", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "V", "quadratic_profit": 109 }, { "item_i_id": "H", "item_j_id": "W", "quadratic_profit": 107 }, { "item_i_id": "H", "item_j_id": "X", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "Y", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 127 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 132 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 130 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 118 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 124 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 129 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 135 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 134 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 126 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 113 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 108 }, { "item_i_id": "I", "item_j_id": "T", "quadratic_profit": 110 }, { "item_i_id": "I", "item_j_id": "U", "quadratic_profit": 115 }, { "item_i_id": "I", "item_j_id": "V", "quadratic_profit": 109 }, { "item_i_id": "I", "item_j_id": "W", "quadratic_profit": 116 }, { "item_i_id": "I", "item_j_id": "X", "quadratic_profit": 111 }, { "item_i_id": "I", "item_j_id": "Y", "quadratic_profit": 121 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 118 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 109 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 112 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 109 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 109 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 126 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 120 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 114 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 108 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 108 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 123 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 120 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 115 }, { "item_i_id": "J", "item_j_id": "W", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "X", "quadratic_profit": 117 }, { "item_i_id": "J", "item_j_id": "Y", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 137 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 132 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 131 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 129 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 129 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 115 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 109 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 109 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 114 }, { "item_i_id": "K", "item_j_id": "U", "quadratic_profit": 115 }, { "item_i_id": "K", "item_j_id": "V", "quadratic_profit": 122 }, { "item_i_id": "K", "item_j_id": "W", "quadratic_profit": 116 }, { "item_i_id": "K", "item_j_id": "X", "quadratic_profit": 113 }, { "item_i_id": "K", "item_j_id": "Y", "quadratic_profit": 107 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 112 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 119 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 132 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 120 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 122 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 131 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 116 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 116 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 116 }, { "item_i_id": "L", "item_j_id": "U", "quadratic_profit": 119 }, { "item_i_id": "L", "item_j_id": "V", "quadratic_profit": 135 }, { "item_i_id": "L", "item_j_id": "W", "quadratic_profit": 112 }, { "item_i_id": "L", "item_j_id": "X", "quadratic_profit": 127 }, { "item_i_id": "L", "item_j_id": "Y", "quadratic_profit": 112 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 109 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 117 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 106 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 114 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 121 }, { "item_i_id": "M", "item_j_id": "U", "quadratic_profit": 116 }, { "item_i_id": "M", "item_j_id": "V", "quadratic_profit": 111 }, { "item_i_id": "M", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "X", "quadratic_profit": 113 }, { "item_i_id": "M", "item_j_id": "Y", "quadratic_profit": 104 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 104 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 122 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 112 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 121 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 116 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 113 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 125 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 132 }, { "item_i_id": "N", "item_j_id": "W", "quadratic_profit": 120 }, { "item_i_id": "N", "item_j_id": "X", "quadratic_profit": 122 }, { "item_i_id": "N", "item_j_id": "Y", "quadratic_profit": 118 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 139 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 139 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 131 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 128 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 111 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 120 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 121 }, { "item_i_id": "O", "item_j_id": "V", "quadratic_profit": 129 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 126 }, { "item_i_id": "O", "item_j_id": "X", "quadratic_profit": 111 }, { "item_i_id": "O", "item_j_id": "Y", "quadratic_profit": 132 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 130 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 127 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 135 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 137 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 134 }, { "item_i_id": "P", "item_j_id": "U", "quadratic_profit": 115 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 120 }, { "item_i_id": "P", "item_j_id": "W", "quadratic_profit": 136 }, { "item_i_id": "P", "item_j_id": "X", "quadratic_profit": 124 }, { "item_i_id": "P", "item_j_id": "Y", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 117 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "U", "quadratic_profit": 107 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 120 }, { "item_i_id": "Q", "item_j_id": "W", "quadratic_profit": 142 }, { "item_i_id": "Q", "item_j_id": "X", "quadratic_profit": 128 }, { "item_i_id": "Q", "item_j_id": "Y", "quadratic_profit": 130 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 136 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 136 }, { "item_i_id": "R", "item_j_id": "T", "quadratic_profit": 136 }, { "item_i_id": "R", "item_j_id": "U", "quadratic_profit": 120 }, { "item_i_id": "R", "item_j_id": "V", "quadratic_profit": 130 }, { "item_i_id": "R", "item_j_id": "W", "quadratic_profit": 125 }, { "item_i_id": "R", "item_j_id": "X", "quadratic_profit": 128 }, { "item_i_id": "R", "item_j_id": "Y", "quadratic_profit": 125 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 106 }, { "item_i_id": "S", "item_j_id": "T", "quadratic_profit": 113 }, { "item_i_id": "S", "item_j_id": "U", "quadratic_profit": 114 }, { "item_i_id": "S", "item_j_id": "V", "quadratic_profit": 110 }, { "item_i_id": "S", "item_j_id": "W", "quadratic_profit": 129 }, { "item_i_id": "S", "item_j_id": "X", "quadratic_profit": 106 }, { "item_i_id": "S", "item_j_id": "Y", "quadratic_profit": 128 }, { "item_i_id": "T", "item_j_id": "T", "quadratic_profit": 136 }, { "item_i_id": "T", "item_j_id": "U", "quadratic_profit": 134 }, { "item_i_id": "T", "item_j_id": "V", "quadratic_profit": 135 }, { "item_i_id": "T", "item_j_id": "W", "quadratic_profit": 125 }, { "item_i_id": "T", "item_j_id": "X", "quadratic_profit": 132 }, { "item_i_id": "T", "item_j_id": "Y", "quadratic_profit": 114 }, { "item_i_id": "U", "item_j_id": "U", "quadratic_profit": 128 }, { "item_i_id": "U", "item_j_id": "V", "quadratic_profit": 119 }, { "item_i_id": "U", "item_j_id": "W", "quadratic_profit": 118 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V" ], "context_index": 24, "input_format": "csv", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We were putting together a film lineup for a friends’ marathon: every movie brings its own entertainment value and takes a chunk of the evening, and certain pairings boost the fun when both are included. The plan was to add up the happiness from each selected movie plus any extra enjoyment from pairs, while keeping the total runtime within the night’s limit and not repeating films, so the best lineup is the one with the largest total enjoyment that still fits. The specific runtimes and pairing bonuses are listed below.\n\nWe had 22 films to pick from (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V) and 37401 minutes for the marathon.\nFor film A we get 3231 base enjoyment on its own.\nFor film B we get 537 base enjoyment on its own.\nFor film C we get 2825 base enjoyment on its own.\nFor film D we get 2294 base enjoyment on its own.\nFor film E we get 1515 base enjoyment on its own.\nFor film F we get 1279 base enjoyment on its own.\nFor film G we get 3057 base enjoyment on its own.\nFor film H we get 1409 base enjoyment on its own.\nFor film I we get 1352 base enjoyment on its own.\nFor film J we get 1060 base enjoyment on its own.\nFor film K we get 2085 base enjoyment on its own.\nFor film L we get 298 base enjoyment on its own.\nFor film M we get 1341 base enjoyment on its own.\nFor film N we get 2157 base enjoyment on its own.\nFor film O we get 1165 base enjoyment on its own.\nFor film P we get 673 base enjoyment on its own.\nFor film Q we get 1151 base enjoyment on its own.\nFor film R we get 977 base enjoyment on its own.\nFor film S we get 148 base enjoyment on its own.\nFor film T we get 2208 base enjoyment on its own.\nFor film U we get 3108 base enjoyment on its own.\nFor film V we get 2094 base enjoyment on its own.\nFilm A uses up 2226 minutes of the evening.\nFilm B uses up 1123 minutes of the evening.\nFilm C uses up 2092 minutes of the evening.\nFilm D uses up 572 minutes of the evening.\nFilm E uses up 362 minutes of the evening.\nFilm F uses up 1332 minutes of the evening.\nFilm G uses up 1193 minutes of the evening.\nFilm H uses up 2301 minutes of the evening.\nFilm I uses up 2227 minutes of the evening.\nFilm J uses up 759 minutes of the evening.\nFilm K uses up 2537 minutes of the evening.\nFilm L uses up 2416 minutes of the evening.\nFilm M uses up 957 minutes of the evening.\nFilm N uses up 946 minutes of the evening.\nFilm O uses up 968 minutes of the evening.\nFilm P uses up 1522 minutes of the evening.\nFilm Q uses up 3080 minutes of the evening.\nFilm R uses up 3197 minutes of the evening.\nFilm S uses up 1992 minutes of the evening.\nFilm T uses up 3002 minutes of the evening.\nFilm U uses up 2211 minutes of the evening.\nFilm V uses up 2327 minutes of the evening.\nIf we include A and B together, they add 1853 extra enjoyment.\nIf we include A and C together, they add 994 extra enjoyment.\nIf we include A and G together, they add 2471 extra enjoyment.\nIf we include A and P together, they add 2512 extra enjoyment.\nIf we include A and R together, they add 2105 extra enjoyment.\nIf we include A and T together, they add 2555 extra enjoyment.\nIf we include A and V together, they add 813 extra enjoyment.\nIf we include B and G together, they add 1278 extra enjoyment.\nIf we include B and I together, they add 891 extra enjoyment.\nIf we include B and K together, they add 1385 extra enjoyment.\nIf we include B and O together, they add 1850 extra enjoyment.\nIf we include C and D together, they add 1571 extra enjoyment.\nIf we include C and P together, they add 2586 extra enjoyment.\nIf we include D and K together, they add 995 extra enjoyment.\nIf we include D and S together, they add 842 extra enjoyment.\nIf we include D and V together, they add 1845 extra enjoyment.\nIf we include E and H together, they add 538 extra enjoyment.\nIf we include E and J together, they add 917 extra enjoyment.\nIf we include E and K together, they add 217 extra enjoyment.\nIf we include E and O together, they add 901 extra enjoyment.\nIf we include E and S together, they add 1581 extra enjoyment.\nIf we include F and T together, they add 2208 extra enjoyment.\nIf we include G and I together, they add 977 extra enjoyment.\nIf we include G and N together, they add 1621 extra enjoyment.\nIf we include G and Q together, they add 2833 extra enjoyment.\nIf we include G and U together, they add 1734 extra enjoyment.\nIf we include H and K together, they add 1672 extra enjoyment.\nIf we include H and N together, they add 2398 extra enjoyment.\nIf we include H and O together, they add 2019 extra enjoyment.\nIf we include H and S together, they add 3088 extra enjoyment.\nIf we include I and P together, they add 766 extra enjoyment.\nIf we include J and R together, they add 1398 extra enjoyment.\nIf we include J and V together, they add 2530 extra enjoyment.\nIf we include K and N together, they add 2032 extra enjoyment.\nIf we include K and P together, they add 2805 extra enjoyment.\nIf we include K and Q together, they add 2400 extra enjoyment.\nIf we include L and M together, they add 1359 extra enjoyment.\nIf we include L and Q together, they add 1692 extra enjoyment.\nIf we include M and N together, they add 1234 extra enjoyment.\nIf we include M and P together, they add 1476 extra enjoyment.\nIf we include M and Q together, they add 1165 extra enjoyment.\nIf we include M and R together, they add 1494 extra enjoyment.\nIf we include N and P together, they add 570 extra enjoyment.\nIf we include N and T together, they add 684 extra enjoyment.\nIf we include N and U together, they add 1769 extra enjoyment.\nIf we include N and V together, they add 1689 extra enjoyment.\nIf we include P and V together, they add 2576 extra enjoyment.\nIf we include Q and R together, they add 1862 extra enjoyment.\nIf we include R and U together, they add 2103 extra enjoyment.\nNow we can list each film's enjoyment, runtime, and pair bonuses so we pick the lineup with the largest total enjoyment that still fits into 37401 minutes.\n\nAlso, when you send back your chosen lineup, a tiny JSON snippet like the one below works great — simple and machine-friendly.\n\n{\n \"solution\": [, , ...]\n}\n\nThis just means: \"solution\" is the list of movies you're picking for the marathon, and each is a placeholder for one movie's identifier from the problem instance. Think of it like filling in a short form — put each movie's ID in the array (order doesn't matter, and don't repeat a movie).\n\nThe JSON above is just a sketch of the expected shape, not the actual answer — replace those angle-bracket placeholders with the real identifiers from the instance.\n\nPlease use the identifiers exactly as they appear in the instance input — no renaming, no made-up labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 3231, 537, 2825, 2294, 1515, 1279, 3057, 1409, 1352, 1060, 2085, 298, 1341, 2157, 1165, 673, 1151, 977, 148, 2208, 3108, 2094 ], "quadratic_coeffs": [ [ 2521, 1853, 994, 0, 0, 0, 2471, 0, 0, 0, 0, 0, 0, 0, 0, 2512, 0, 2105, 0, 2555, 0, 813 ], [ 0, 0, 0, 0, 0, 0, 1278, 0, 891, 0, 1385, 0, 0, 0, 1850, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 1571, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2586, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 995, 0, 0, 0, 0, 0, 0, 0, 842, 0, 0, 1845 ], [ 0, 0, 0, 0, 0, 0, 0, 538, 0, 917, 217, 0, 0, 0, 901, 0, 0, 0, 1581, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2208, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 977, 0, 0, 0, 0, 1621, 0, 0, 2833, 0, 0, 0, 1734, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1672, 0, 0, 2398, 2019, 0, 0, 0, 3088, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 766, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1377, 0, 0, 0, 0, 0, 0, 0, 1398, 0, 0, 0, 2530 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2032, 0, 2805, 2400, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1359, 0, 0, 0, 1692, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1234, 0, 1476, 1165, 1494, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 570, 0, 0, 0, 684, 1769, 1689 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2576 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1862, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2165, 0, 0, 2103, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1016, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 2226, 1123, 2092, 572, 362, 1332, 1193, 2301, 2227, 759, 2537, 2416, 957, 946, 968, 1522, 3080, 3197, 1992, 3002, 2211, 2327 ], "capacity": 37401, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "obj": 113469.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "obj": 113469.0, "instance_variant": { "problem_type": "QKP", "num_items": 22, "capacity": 37401, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 3231 }, { "item_id": "B", "linear_profit": 537 }, { "item_id": "C", "linear_profit": 2825 }, { "item_id": "D", "linear_profit": 2294 }, { "item_id": "E", "linear_profit": 1515 }, { "item_id": "F", "linear_profit": 1279 }, { "item_id": "G", "linear_profit": 3057 }, { "item_id": "H", "linear_profit": 1409 }, { "item_id": "I", "linear_profit": 1352 }, { "item_id": "J", "linear_profit": 1060 }, { "item_id": "K", "linear_profit": 2085 }, { "item_id": "L", "linear_profit": 298 }, { "item_id": "M", "linear_profit": 1341 }, { "item_id": "N", "linear_profit": 2157 }, { "item_id": "O", "linear_profit": 1165 }, { "item_id": "P", "linear_profit": 673 }, { "item_id": "Q", "linear_profit": 1151 }, { "item_id": "R", "linear_profit": 977 }, { "item_id": "S", "linear_profit": 148 }, { "item_id": "T", "linear_profit": 2208 }, { "item_id": "U", "linear_profit": 3108 }, { "item_id": "V", "linear_profit": 2094 } ], "weight_pairs": [ { "item_id": "A", "weight": 2226 }, { "item_id": "B", "weight": 1123 }, { "item_id": "C", "weight": 2092 }, { "item_id": "D", "weight": 572 }, { "item_id": "E", "weight": 362 }, { "item_id": "F", "weight": 1332 }, { "item_id": "G", "weight": 1193 }, { "item_id": "H", "weight": 2301 }, { "item_id": "I", "weight": 2227 }, { "item_id": "J", "weight": 759 }, { "item_id": "K", "weight": 2537 }, { "item_id": "L", "weight": 2416 }, { "item_id": "M", "weight": 957 }, { "item_id": "N", "weight": 946 }, { "item_id": "O", "weight": 968 }, { "item_id": "P", "weight": 1522 }, { "item_id": "Q", "weight": 3080 }, { "item_id": "R", "weight": 3197 }, { "item_id": "S", "weight": 1992 }, { "item_id": "T", "weight": 3002 }, { "item_id": "U", "weight": 2211 }, { "item_id": "V", "weight": 2327 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 2521 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 1853 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 994 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 2471 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 2512 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 2105 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 2555 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 813 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 1278 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 891 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 1385 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 1850 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 1571 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 2586 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 995 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 842 }, { "item_i_id": "D", "item_j_id": "V", "quadratic_profit": 1845 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 538 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 917 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 217 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 901 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 1581 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 2208 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 977 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 1621 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 2833 }, { "item_i_id": "G", "item_j_id": "U", "quadratic_profit": 1734 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 1672 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 2398 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 2019 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 3088 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 766 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 1377 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 1398 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 2530 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 2032 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 2805 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 2400 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 1359 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 1692 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 1234 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 1476 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 1165 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 1494 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 570 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 684 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 1769 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 1689 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 2576 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 1862 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 2165 }, { "item_i_id": "R", "item_j_id": "U", "quadratic_profit": 2103 }, { "item_i_id": "U", "item_j_id": "U", "quadratic_profit": 1016 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V" ], "context_index": 25, "input_format": "nl", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We’ve got one limited-size box to fill for a customer, and the question is which pastries to include. Every item brings its own appeal and weight, and certain combinations add extra appeal when both are present — so the overall box appeal is just adding up each chosen pastry’s appeal and any extra boosts from the pairs that happen to be included. The goal is to keep the total weight within the box limit while maximizing that summed appeal, with each pastry either in or out and none duplicated. The concrete details follow below.\n\nWe have 20 pastries (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) and the box capacity is 1102.\n\n| pastry_id | individual_appeal |\n|---|---|\n| A | 105 |\n| B | 104 |\n| C | 100 |\n| D | 100 |\n| E | 104 |\n| F | 104 |\n| G | 101 |\n| H | 103 |\n| I | 102 |\n| J | 100 |\n| K | 101 |\n| L | 101 |\n| M | 100 |\n| N | 104 |\n| O | 105 |\n| P | 103 |\n| Q | 100 |\n| R | 102 |\n| S | 105 |\n| T | 103 |\n\n| pastry_id | pastry_weight |\n|---|---|\n| A | 101 |\n| B | 104 |\n| C | 105 |\n| D | 101 |\n| E | 101 |\n| F | 101 |\n| G | 104 |\n| H | 104 |\n| I | 102 |\n| J | 105 |\n| K | 101 |\n| L | 105 |\n| M | 102 |\n| N | 105 |\n| O | 102 |\n| P | 103 |\n| Q | 104 |\n| R | 100 |\n| S | 104 |\n| T | 101 |\n\n| pastry_i_id | pastry_j_id | pair_bonus_appeal |\n|---|---|---|\n| A | B | 101 |\n| A | C | 100 |\n| A | D | 101 |\n| A | E | 101 |\n| A | F | 101 |\n| A | G | 101 |\n| A | H | 100 |\n| A | I | 100 |\n| A | J | 101 |\n| A | K | 101 |\n| A | L | 100 |\n| A | M | 101 |\n| A | N | 101 |\n| A | O | 102 |\n| A | P | 102 |\n| A | Q | 101 |\n| A | R | 100 |\n| A | S | 102 |\n| A | T | 101 |\n| B | C | 103 |\n| B | D | 102 |\n| B | E | 102 |\n| B | F | 102 |\n| B | G | 101 |\n| B | H | 104 |\n| B | I | 104 |\n| B | J | 104 |\n| B | K | 104 |\n| B | L | 101 |\n| B | M | 104 |\n| B | N | 102 |\n| B | O | 102 |\n| B | P | 101 |\n| B | Q | 104 |\n| B | R | 104 |\n| B | S | 101 |\n| B | T | 102 |\n| C | D | 102 |\n| C | E | 102 |\n| C | F | 103 |\n| C | G | 103 |\n| C | H | 104 |\n| C | I | 104 |\n| C | J | 105 |\n| C | K | 102 |\n| C | L | 105 |\n| C | M | 103 |\n| C | N | 103 |\n| C | O | 105 |\n| C | P | 103 |\n| C | Q | 103 |\n| C | R | 102 |\n| C | S | 100 |\n| C | T | 101 |\n| D | E | 101 |\n| D | F | 101 |\n| D | G | 100 |\n| D | H | 101 |\n| D | I | 102 |\n| D | J | 102 |\n| D | K | 101 |\n| D | L | 101 |\n| D | M | 101 |\n| D | N | 102 |\n| D | O | 101 |\n| D | P | 101 |\n| D | Q | 102 |\n| D | R | 101 |\n| D | S | 100 |\n| D | T | 102 |\n| E | F | 101 |\n| E | G | 102 |\n| E | H | 101 |\n| E | I | 100 |\n| E | J | 102 |\n| E | K | 101 |\n| E | L | 101 |\n| E | M | 101 |\n| E | N | 102 |\n| E | O | 101 |\n| E | P | 100 |\n| E | Q | 102 |\n| E | R | 102 |\n| E | S | 102 |\n| E | T | 101 |\n| F | G | 100 |\n| F | H | 102 |\n| F | I | 100 |\n| F | J | 100 |\n| F | K | 100 |\n| F | L | 102 |\n| F | M | 102 |\n| F | N | 102 |\n| F | O | 100 |\n| F | P | 102 |\n| F | Q | 102 |\n| F | R | 104 |\n| F | S | 104 |\n| F | T | 102 |\n| G | H | 104 |\n| G | I | 104 |\n| G | J | 102 |\n| G | K | 103 |\n| G | L | 103 |\n| G | M | 102 |\n| G | N | 103 |\n| G | O | 104 |\n| G | P | 103 |\n| G | Q | 102 |\n| G | R | 104 |\n| G | S | 103 |\n| G | T | 103 |\n| H | I | 101 |\n| H | J | 101 |\n| H | K | 102 |\n| H | L | 104 |\n| H | M | 103 |\n| H | N | 102 |\n| H | O | 101 |\n| H | P | 100 |\n| H | Q | 101 |\n| H | R | 100 |\n| H | S | 100 |\n| H | T | 101 |\n| I | J | 101 |\n| I | K | 100 |\n| I | L | 101 |\n| I | M | 100 |\n| I | N | 100 |\n| I | O | 101 |\n| I | P | 101 |\n| I | Q | 100 |\n| I | R | 100 |\n| I | S | 101 |\n| I | T | 101 |\n| J | K | 102 |\n| J | L | 102 |\n| J | M | 103 |\n| J | N | 102 |\n| J | O | 103 |\n| J | P | 104 |\n| J | Q | 103 |\n| J | R | 103 |\n| J | S | 103 |\n| J | T | 105 |\n| K | L | 102 |\n| K | M | 101 |\n| K | N | 101 |\n| K | O | 101 |\n| K | P | 100 |\n| K | Q | 102 |\n| K | R | 101 |\n| K | S | 101 |\n| K | T | 100 |\n| L | M | 105 |\n| L | N | 104 |\n| L | O | 103 |\n| L | P | 103 |\n| L | Q | 101 |\n| L | R | 101 |\n| L | S | 102 |\n| L | T | 103 |\n| M | N | 101 |\n| M | O | 101 |\n| M | P | 102 |\n| M | Q | 102 |\n| M | R | 102 |\n| M | S | 101 |\n| M | T | 100 |\n| N | O | 102 |\n| N | P | 100 |\n| N | Q | 102 |\n| N | R | 103 |\n| N | S | 100 |\n| N | T | 101 |\n| O | P | 102 |\n| O | Q | 102 |\n| O | R | 103 |\n| O | S | 103 |\n| O | T | 103 |\n| P | Q | 103 |\n| P | R | 103 |\n| P | S | 102 |\n| P | T | 102 |\n| Q | R | 102 |\n| Q | S | 101 |\n| Q | T | 100 |\n| R | S | 104 |\n| R | T | 102 |\n\nWe'll pick the combination that fits within 1102 and maximizes the summed appeal.\n\nAlso, when you send back the final selection, just drop it in a tiny JSON snippet like this so it's easy to parse:\n\n{\n \"solution\": [, , ...]\n}\n\n\"solution\" is simply the list of pastry IDs that should go into the box. Think of it as the short form of your order: just the exact IDs of the pastries you picked. This block is only a sketch of the expected shape — not the actual answer.\n\nPlease use the identifiers exactly as they appear in the instance input — no renaming and no 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”.", "instance": { "linear_coeffs": [ 105, 104, 100, 100, 104, 104, 101, 103, 102, 100, 101, 101, 100, 104, 105, 103, 100, 102, 105, 103 ], "quadratic_coeffs": [ [ 100, 101, 100, 101, 101, 101, 101, 100, 100, 101, 101, 100, 101, 101, 102, 102, 101, 100, 102, 101 ], [ 0, 104, 103, 102, 102, 102, 101, 104, 104, 104, 104, 101, 104, 102, 102, 101, 104, 104, 101, 102 ], [ 0, 0, 103, 102, 102, 103, 103, 104, 104, 105, 102, 105, 103, 103, 105, 103, 103, 102, 100, 101 ], [ 0, 0, 0, 101, 101, 101, 100, 101, 102, 102, 101, 101, 101, 102, 101, 101, 102, 101, 100, 102 ], [ 0, 0, 0, 0, 102, 101, 102, 101, 100, 102, 101, 101, 101, 102, 101, 100, 102, 102, 102, 101 ], [ 0, 0, 0, 0, 0, 102, 100, 102, 100, 100, 100, 102, 102, 102, 100, 102, 102, 104, 104, 102 ], [ 0, 0, 0, 0, 0, 0, 104, 104, 104, 102, 103, 103, 102, 103, 104, 103, 102, 104, 103, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 104, 101, 101, 102, 104, 103, 102, 101, 100, 101, 100, 100, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 101, 101, 100, 101, 100, 100, 101, 101, 100, 100, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 102, 103, 102, 103, 104, 103, 103, 103, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 102, 101, 101, 101, 100, 102, 101, 101, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 105, 104, 103, 103, 101, 101, 102, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 101, 101, 102, 102, 102, 101, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 100, 102, 103, 100, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 102, 102, 103, 103, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 103, 103, 102, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 102, 101, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 104, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 101, 104, 105, 101, 101, 101, 104, 104, 102, 105, 101, 105, 102, 105, 102, 103, 104, 100, 104, 101 ], "capacity": 1102, "solution": [ 1, 2, 7, 8, 9, 11, 13, 14, 16, 17 ], "obj": 5629.0, "problem_type": "QKP" }, "solution": [ 1, 2, 7, 8, 9, 11, 13, 14, 16, 17 ], "obj": 5629.0, "instance_variant": { "problem_type": "QKP", "num_items": 20, "capacity": 1102, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 105 }, { "item_id": "B", "linear_profit": 104 }, { "item_id": "C", "linear_profit": 100 }, { "item_id": "D", "linear_profit": 100 }, { "item_id": "E", "linear_profit": 104 }, { "item_id": "F", "linear_profit": 104 }, { "item_id": "G", "linear_profit": 101 }, { "item_id": "H", "linear_profit": 103 }, { "item_id": "I", "linear_profit": 102 }, { "item_id": "J", "linear_profit": 100 }, { "item_id": "K", "linear_profit": 101 }, { "item_id": "L", "linear_profit": 101 }, { "item_id": "M", "linear_profit": 100 }, { "item_id": "N", "linear_profit": 104 }, { "item_id": "O", "linear_profit": 105 }, { "item_id": "P", "linear_profit": 103 }, { "item_id": "Q", "linear_profit": 100 }, { "item_id": "R", "linear_profit": 102 }, { "item_id": "S", "linear_profit": 105 }, { "item_id": "T", "linear_profit": 103 } ], "weight_pairs": [ { "item_id": "A", "weight": 101 }, { "item_id": "B", "weight": 104 }, { "item_id": "C", "weight": 105 }, { "item_id": "D", "weight": 101 }, { "item_id": "E", "weight": 101 }, { "item_id": "F", "weight": 101 }, { "item_id": "G", "weight": 104 }, { "item_id": "H", "weight": 104 }, { "item_id": "I", "weight": 102 }, { "item_id": "J", "weight": 105 }, { "item_id": "K", "weight": 101 }, { "item_id": "L", "weight": 105 }, { "item_id": "M", "weight": 102 }, { "item_id": "N", "weight": 105 }, { "item_id": "O", "weight": 102 }, { "item_id": "P", "weight": 103 }, { "item_id": "Q", "weight": 104 }, { "item_id": "R", "weight": 100 }, { "item_id": "S", "weight": 104 }, { "item_id": "T", "weight": 101 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 105 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 105 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 105 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 104 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 104 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 104 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 104 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 105 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 102 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 105 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 104 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 104 }, { "item_i_id": "R", "item_j_id": "T", "quadratic_profit": 102 } ] }, "solution_variant": [ "B", "C", "H", "I", "J", "L", "N", "O", "Q", "R" ], "context_index": 26, "input_format": "markdown_table", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Someone in the group always packs like they’re moving house, so the rest of us try to be smarter: pick a set of essentials that won’t overload the pannier while getting the most convenience out of what’s carried. Each item contributes its own usefulness and some two-item combos add extra convenience when together, so the total value is the sum of chosen items’ usefulness plus any applicable pair bonuses. Items can’t be taken more than once and the total weight must stay under the pannier limit; the exact list of item weights, usefulness scores, pair bonuses, and capacity are shown below.\n\n# total_items_count=22\n# pannier_capacity=5849\n# item_ids_list=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22\n\nitem_id,usefulness_score\n1,476\n2,276\n3,229\n4,244\n5,136\n6,282\n7,381\n8,465\n9,324\n10,328\n11,171\n12,245\n13,494\n14,202\n15,354\n16,231\n17,421\n18,285\n19,348\n20,112\n21,428\n22,313\n\nitem_id,item_weight\n1,477\n2,397\n3,210\n4,118\n5,101\n6,223\n7,414\n8,334\n9,419\n10,181\n11,387\n12,205\n13,487\n14,121\n15,223\n16,198\n17,144\n18,317\n19,126\n20,298\n21,291\n22,254\n\nfirst_item_id,second_item_id,complementary_bonus\n1,2,319\n1,3,419\n1,4,466\n1,5,208\n1,6,267\n1,7,148\n1,8,289\n1,9,483\n1,10,260\n1,11,209\n1,12,406\n1,13,299\n1,14,376\n1,15,193\n1,16,122\n1,17,197\n1,18,438\n1,19,207\n1,20,390\n1,21,188\n1,22,216\n2,3,491\n2,4,107\n2,5,180\n2,6,482\n2,7,351\n2,8,145\n2,9,195\n2,10,187\n2,11,216\n2,12,140\n2,13,156\n2,14,320\n2,15,265\n2,16,154\n2,17,258\n2,18,172\n2,19,453\n2,20,345\n2,21,227\n2,22,328\n3,4,171\n3,5,381\n3,6,474\n3,7,326\n3,8,462\n3,9,193\n3,10,329\n3,11,214\n3,12,205\n3,13,140\n3,14,386\n3,15,482\n3,16,215\n3,17,432\n3,18,244\n3,19,490\n3,20,110\n3,21,229\n3,22,183\n4,5,103\n4,6,399\n4,7,494\n4,8,290\n4,9,208\n4,10,111\n4,11,277\n4,12,277\n4,13,176\n4,14,193\n4,15,342\n4,16,418\n4,17,390\n4,18,258\n4,19,351\n4,20,407\n4,21,150\n4,22,472\n5,6,241\n5,7,304\n5,8,366\n5,9,303\n5,10,205\n5,11,280\n5,12,223\n5,13,436\n5,14,408\n5,15,493\n5,16,128\n5,17,221\n5,18,323\n5,19,333\n5,20,316\n5,21,147\n5,22,270\n6,7,111\n6,8,217\n6,9,180\n6,10,206\n6,11,432\n6,12,204\n6,13,339\n6,14,459\n6,15,423\n6,16,342\n6,17,158\n6,18,354\n6,19,242\n6,20,236\n6,21,441\n6,22,272\n7,8,141\n7,9,489\n7,10,450\n7,11,298\n7,12,128\n7,13,353\n7,14,125\n7,15,242\n7,16,452\n7,17,108\n7,18,297\n7,19,314\n7,20,165\n7,21,272\n7,22,218\n8,9,159\n8,10,320\n8,11,448\n8,12,384\n8,13,367\n8,14,257\n8,15,114\n8,16,120\n8,17,172\n8,18,498\n8,19,267\n8,20,208\n8,21,102\n8,22,223\n9,10,332\n9,11,137\n9,12,356\n9,13,351\n9,14,149\n9,15,134\n9,16,461\n9,17,411\n9,18,289\n9,19,145\n9,20,316\n9,21,366\n9,22,213\n10,11,190\n10,12,256\n10,13,177\n10,14,372\n10,15,307\n10,16,139\n10,17,251\n10,18,383\n10,19,235\n10,20,459\n10,21,156\n10,22,148\n11,12,255\n11,13,145\n11,14,166\n11,15,111\n11,16,187\n11,17,457\n11,18,116\n11,19,333\n11,20,163\n11,21,457\n11,22,446\n12,13,180\n12,14,306\n12,15,230\n12,16,421\n12,17,166\n12,18,187\n12,19,207\n12,20,494\n12,21,373\n12,22,301\n13,14,480\n13,15,438\n13,16,280\n13,17,271\n13,18,477\n13,19,128\n13,20,317\n13,21,320\n13,22,140\n14,15,191\n14,16,299\n14,17,190\n14,18,228\n14,19,174\n14,20,382\n14,21,463\n14,22,330\n15,16,458\n15,17,128\n15,18,180\n15,19,425\n15,20,329\n15,21,301\n15,22,485\n16,17,173\n16,18,421\n16,19,283\n16,20,206\n16,21,304\n16,22,250\n17,18,324\n17,19,166\n17,20,487\n17,21,370\n17,22,110\n18,19,400\n18,20,348\n18,21,242\n18,22,474\n19,20,273\n\nOh, and when you send back which items to take, a tiny heads-up: please use this simple JSON layout so it's easy to read and parse.\n\n{\n \"solution\": [, , ...]\n}\n\nThis just means \"solution\" should be a list containing the IDs of the items you want to pack. Think of it like ticking boxes on a checklist — each entry is the exact ID of an item you choose. The JSON above is just a sketch of the shape I expect, not the actual answer.\n\nPlease use the item identifiers exactly as they appear in 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”.", "instance": { "linear_coeffs": [ 476, 276, 229, 244, 136, 282, 381, 465, 324, 328, 171, 245, 494, 202, 354, 231, 421, 285, 348, 112, 428, 313 ], "quadratic_coeffs": [ [ 409, 319, 419, 466, 208, 267, 148, 289, 483, 260, 209, 406, 299, 376, 193, 122, 197, 438, 207, 390, 188, 216 ], [ 0, 115, 491, 107, 180, 482, 351, 145, 195, 187, 216, 140, 156, 320, 265, 154, 258, 172, 453, 345, 227, 328 ], [ 0, 0, 114, 171, 381, 474, 326, 462, 193, 329, 214, 205, 140, 386, 482, 215, 432, 244, 490, 110, 229, 183 ], [ 0, 0, 0, 353, 103, 399, 494, 290, 208, 111, 277, 277, 176, 193, 342, 418, 390, 258, 351, 407, 150, 472 ], [ 0, 0, 0, 0, 256, 241, 304, 366, 303, 205, 280, 223, 436, 408, 493, 128, 221, 323, 333, 316, 147, 270 ], [ 0, 0, 0, 0, 0, 223, 111, 217, 180, 206, 432, 204, 339, 459, 423, 342, 158, 354, 242, 236, 441, 272 ], [ 0, 0, 0, 0, 0, 0, 390, 141, 489, 450, 298, 128, 353, 125, 242, 452, 108, 297, 314, 165, 272, 218 ], [ 0, 0, 0, 0, 0, 0, 0, 327, 159, 320, 448, 384, 367, 257, 114, 120, 172, 498, 267, 208, 102, 223 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 429, 332, 137, 356, 351, 149, 134, 461, 411, 289, 145, 316, 366, 213 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 162, 190, 256, 177, 372, 307, 139, 251, 383, 235, 459, 156, 148 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 253, 255, 145, 166, 111, 187, 457, 116, 333, 163, 457, 446 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 142, 180, 306, 230, 421, 166, 187, 207, 494, 373, 301 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 427, 480, 438, 280, 271, 477, 128, 317, 320, 140 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 191, 299, 190, 228, 174, 382, 463, 330 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 298, 458, 128, 180, 425, 329, 301, 485 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 173, 421, 283, 206, 304, 250 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 324, 166, 487, 370, 110 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 159, 400, 348, 242, 474 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 263, 273, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 477, 397, 210, 118, 101, 223, 414, 334, 419, 181, 387, 205, 487, 121, 223, 198, 144, 317, 126, 298, 291, 254 ], "capacity": 5849, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "obj": 65590.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "obj": 65590.0, "instance_variant": { "problem_type": "QKP", "num_items": 22, "capacity": 5849, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 476 }, { "item_id": 2, "linear_profit": 276 }, { "item_id": 3, "linear_profit": 229 }, { "item_id": 4, "linear_profit": 244 }, { "item_id": 5, "linear_profit": 136 }, { "item_id": 6, "linear_profit": 282 }, { "item_id": 7, "linear_profit": 381 }, { "item_id": 8, "linear_profit": 465 }, { "item_id": 9, "linear_profit": 324 }, { "item_id": 10, "linear_profit": 328 }, { "item_id": 11, "linear_profit": 171 }, { "item_id": 12, "linear_profit": 245 }, { "item_id": 13, "linear_profit": 494 }, { "item_id": 14, "linear_profit": 202 }, { "item_id": 15, "linear_profit": 354 }, { "item_id": 16, "linear_profit": 231 }, { "item_id": 17, "linear_profit": 421 }, { "item_id": 18, "linear_profit": 285 }, { "item_id": 19, "linear_profit": 348 }, { "item_id": 20, "linear_profit": 112 }, { "item_id": 21, "linear_profit": 428 }, { "item_id": 22, "linear_profit": 313 } ], "weight_pairs": [ { "item_id": 1, "weight": 477 }, { "item_id": 2, "weight": 397 }, { "item_id": 3, "weight": 210 }, { "item_id": 4, "weight": 118 }, { "item_id": 5, "weight": 101 }, { "item_id": 6, "weight": 223 }, { "item_id": 7, "weight": 414 }, { "item_id": 8, "weight": 334 }, { "item_id": 9, "weight": 419 }, { "item_id": 10, "weight": 181 }, { "item_id": 11, "weight": 387 }, { "item_id": 12, "weight": 205 }, { "item_id": 13, "weight": 487 }, { "item_id": 14, "weight": 121 }, { "item_id": 15, "weight": 223 }, { "item_id": 16, "weight": 198 }, { "item_id": 17, "weight": 144 }, { "item_id": 18, "weight": 317 }, { "item_id": 19, "weight": 126 }, { "item_id": 20, "weight": 298 }, { "item_id": 21, "weight": 291 }, { "item_id": 22, "weight": 254 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 409 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 319 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 419 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 466 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 208 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 267 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 148 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 289 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 483 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 260 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 209 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 406 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 299 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 376 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 193 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 122 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 197 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 438 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 207 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 390 }, { "item_i_id": 1, "item_j_id": 21, "quadratic_profit": 188 }, { "item_i_id": 1, "item_j_id": 22, "quadratic_profit": 216 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 115 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 491 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 107 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 180 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 482 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 351 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 145 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 195 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 187 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 216 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 140 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 156 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 320 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 265 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 154 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 258 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 172 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 453 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 345 }, { "item_i_id": 2, "item_j_id": 21, "quadratic_profit": 227 }, { "item_i_id": 2, "item_j_id": 22, "quadratic_profit": 328 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 114 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 171 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 381 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 474 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 326 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 462 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 193 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 329 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 214 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 205 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 140 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 386 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 482 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 215 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 432 }, { "item_i_id": 3, "item_j_id": 18, "quadratic_profit": 244 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 490 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 110 }, { "item_i_id": 3, "item_j_id": 21, "quadratic_profit": 229 }, { "item_i_id": 3, "item_j_id": 22, "quadratic_profit": 183 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 353 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 399 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 494 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 290 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 208 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 277 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 277 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 176 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 193 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 342 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 418 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 390 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 258 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 351 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 407 }, { "item_i_id": 4, "item_j_id": 21, "quadratic_profit": 150 }, { "item_i_id": 4, "item_j_id": 22, "quadratic_profit": 472 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 256 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 241 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 304 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 366 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 303 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 205 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 280 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 223 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 436 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 408 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 493 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 128 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 221 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 323 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 333 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 316 }, { "item_i_id": 5, "item_j_id": 21, "quadratic_profit": 147 }, { "item_i_id": 5, "item_j_id": 22, "quadratic_profit": 270 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 223 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 217 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 180 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 206 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 432 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 204 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 339 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 459 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 423 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 342 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 158 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 354 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 242 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 236 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 441 }, { "item_i_id": 6, "item_j_id": 22, "quadratic_profit": 272 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 390 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 141 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 489 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 450 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 298 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 128 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 353 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 125 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 242 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 452 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 108 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 297 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 314 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 165 }, { "item_i_id": 7, "item_j_id": 21, "quadratic_profit": 272 }, { "item_i_id": 7, "item_j_id": 22, "quadratic_profit": 218 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 327 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 159 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 320 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 448 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 384 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 367 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 257 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 114 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 120 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 172 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 498 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 267 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 208 }, { "item_i_id": 8, "item_j_id": 21, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 22, "quadratic_profit": 223 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 429 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 332 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 137 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 356 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 351 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 149 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 134 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 461 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 411 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 289 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 145 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 316 }, { "item_i_id": 9, "item_j_id": 21, "quadratic_profit": 366 }, { "item_i_id": 9, "item_j_id": 22, "quadratic_profit": 213 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 162 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 190 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 256 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 177 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 372 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 307 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 139 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 251 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 383 }, { "item_i_id": 10, "item_j_id": 19, "quadratic_profit": 235 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 459 }, { "item_i_id": 10, "item_j_id": 21, "quadratic_profit": 156 }, { "item_i_id": 10, "item_j_id": 22, "quadratic_profit": 148 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 253 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 255 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 145 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 166 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 111 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 187 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 457 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 116 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 333 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 163 }, { "item_i_id": 11, "item_j_id": 21, "quadratic_profit": 457 }, { "item_i_id": 11, "item_j_id": 22, "quadratic_profit": 446 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 142 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 180 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 306 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 230 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 421 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 166 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 187 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 207 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 494 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 373 }, { "item_i_id": 12, "item_j_id": 22, "quadratic_profit": 301 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 427 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 480 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 438 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 280 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 271 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 477 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 128 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 317 }, { "item_i_id": 13, "item_j_id": 21, "quadratic_profit": 320 }, { "item_i_id": 13, "item_j_id": 22, "quadratic_profit": 140 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 117 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 191 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 299 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 190 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 228 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 174 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 382 }, { "item_i_id": 14, "item_j_id": 21, "quadratic_profit": 463 }, { "item_i_id": 14, "item_j_id": 22, "quadratic_profit": 330 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 298 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 458 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 128 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 180 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 425 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 329 }, { "item_i_id": 15, "item_j_id": 21, "quadratic_profit": 301 }, { "item_i_id": 15, "item_j_id": 22, "quadratic_profit": 485 }, { "item_i_id": 16, "item_j_id": 16, "quadratic_profit": 137 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 173 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 421 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 283 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 206 }, { "item_i_id": 16, "item_j_id": 21, "quadratic_profit": 304 }, { "item_i_id": 16, "item_j_id": 22, "quadratic_profit": 250 }, { "item_i_id": 17, "item_j_id": 17, "quadratic_profit": 184 }, { "item_i_id": 17, "item_j_id": 18, "quadratic_profit": 324 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 166 }, { "item_i_id": 17, "item_j_id": 20, "quadratic_profit": 487 }, { "item_i_id": 17, "item_j_id": 21, "quadratic_profit": 370 }, { "item_i_id": 17, "item_j_id": 22, "quadratic_profit": 110 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 159 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 400 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 348 }, { "item_i_id": 18, "item_j_id": 21, "quadratic_profit": 242 }, { "item_i_id": 18, "item_j_id": 22, "quadratic_profit": 474 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 263 }, { "item_i_id": 19, "item_j_id": 20, "quadratic_profit": 273 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "context_index": 27, "input_format": "csv", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Someone on the ops team had to trim features for a constrained machine: every feature takes up memory and brings a baseline benefit, and a few feature pairings produce extra value if both are turned on. The job was to decide which features to switch on so the total memory they require doesn’t exceed what’s free, and the overall system value is as high as it can be — that value is just the sum of the selected features’ base benefits plus any bonuses from feature pairs that are active together. Features are either active or inactive (no duplicates), and the specific memory costs and benefit numbers appear below.\n\nThere were 19 optional modules listed as 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, and 15677 memory units were available for enabling them.\n\n| module_id | base_benefit |\n|---|---|\n| 1 | 713 |\n| 2 | 625 |\n| 3 | 672 |\n| 4 | 1415 |\n| 5 | 1290 |\n| 6 | 178 |\n| 7 | 763 |\n| 8 | 827 |\n| 9 | 1214 |\n| 10 | 274 |\n| 11 | 1672 |\n| 12 | 1460 |\n| 13 | 235 |\n| 14 | 1324 |\n| 15 | 1054 |\n| 16 | 408 |\n| 17 | 733 |\n| 18 | 205 |\n| 19 | 772 |\n\n| module_id | memory_usage |\n|---|---|\n| 1 | 413 |\n| 2 | 1019 |\n| 3 | 603 |\n| 4 | 962 |\n| 5 | 1480 |\n| 6 | 1508 |\n| 7 | 536 |\n| 8 | 941 |\n| 9 | 1254 |\n| 10 | 1295 |\n| 11 | 1441 |\n| 12 | 667 |\n| 13 | 823 |\n| 14 | 1414 |\n| 15 | 1161 |\n| 16 | 920 |\n| 17 | 1057 |\n| 18 | 1434 |\n| 19 | 1113 |\n\n| module_i_id | module_j_id | interaction_bonus |\n|---|---|---|\n| 1 | 3 | 413 |\n| 1 | 4 | 413 |\n| 1 | 5 | 413 |\n| 1 | 6 | 413 |\n| 1 | 7 | 413 |\n| 1 | 8 | 413 |\n| 1 | 10 | 413 |\n| 1 | 11 | 139 |\n| 1 | 14 | 413 |\n| 1 | 16 | 413 |\n| 1 | 17 | 152 |\n| 1 | 18 | 413 |\n| 1 | 19 | 500 |\n| 2 | 3 | 834 |\n| 2 | 5 | 1019 |\n| 2 | 7 | 1019 |\n| 2 | 8 | 440 |\n| 2 | 9 | 1019 |\n| 2 | 10 | 139 |\n| 2 | 13 | 1019 |\n| 2 | 14 | 1019 |\n| 2 | 15 | 920 |\n| 2 | 16 | 690 |\n| 2 | 17 | 861 |\n| 2 | 19 | 1199 |\n| 3 | 4 | 603 |\n| 3 | 7 | 603 |\n| 3 | 9 | 603 |\n| 3 | 10 | 603 |\n| 3 | 12 | 603 |\n| 3 | 13 | 603 |\n| 3 | 18 | 318 |\n| 4 | 7 | 182 |\n| 4 | 8 | 551 |\n| 4 | 10 | 962 |\n| 4 | 11 | 962 |\n| 4 | 13 | 962 |\n| 4 | 14 | 962 |\n| 4 | 15 | 962 |\n| 4 | 16 | 1435 |\n| 4 | 17 | 941 |\n| 4 | 18 | 1435 |\n| 5 | 6 | 323 |\n| 5 | 7 | 902 |\n| 5 | 9 | 675 |\n| 5 | 11 | 1478 |\n| 5 | 12 | 1048 |\n| 5 | 14 | 920 |\n| 5 | 15 | 690 |\n| 5 | 16 | 1508 |\n| 5 | 17 | 1508 |\n| 5 | 18 | 771 |\n| 5 | 19 | 323 |\n| 6 | 7 | 1508 |\n| 6 | 8 | 408 |\n| 6 | 13 | 998 |\n| 6 | 15 | 152 |\n| 6 | 18 | 536 |\n| 7 | 9 | 536 |\n| 7 | 10 | 245 |\n| 7 | 11 | 154 |\n| 7 | 13 | 536 |\n| 7 | 15 | 536 |\n| 7 | 16 | 834 |\n| 7 | 17 | 834 |\n| 7 | 18 | 440 |\n| 7 | 19 | 834 |\n| 8 | 9 | 941 |\n| 8 | 11 | 941 |\n| 8 | 12 | 941 |\n| 8 | 13 | 941 |\n| 8 | 14 | 941 |\n| 8 | 15 | 861 |\n| 8 | 16 | 440 |\n| 8 | 17 | 323 |\n| 8 | 18 | 551 |\n| 8 | 19 | 1154 |\n| 9 | 10 | 671 |\n| 9 | 11 | 823 |\n| 9 | 13 | 1088 |\n| 9 | 14 | 182 |\n| 9 | 15 | 182 |\n| 9 | 16 | 182 |\n| 9 | 18 | 182 |\n| 9 | 19 | 182 |\n| 10 | 11 | 1295 |\n| 10 | 12 | 1295 |\n| 10 | 13 | 675 |\n| 10 | 14 | 675 |\n| 10 | 15 | 506 |\n| 10 | 18 | 675 |\n| 10 | 19 | 675 |\n| 11 | 12 | 482 |\n| 11 | 13 | 1286 |\n| 11 | 14 | 874 |\n| 11 | 15 | 1013 |\n| 11 | 18 | 313 |\n| 11 | 19 | 1286 |\n| 12 | 13 | 666 |\n| 12 | 16 | 430 |\n| 12 | 18 | 506 |\n| 12 | 19 | 506 |\n| 13 | 16 | 222 |\n| 13 | 17 | 640 |\n| 13 | 18 | 453 |\n| 13 | 19 | 482 |\n| 14 | 15 | 1252 |\n| 14 | 16 | 1571 |\n| 14 | 17 | 468 |\n| 14 | 18 | 468 |\n| 15 | 16 | 1433 |\n| 15 | 18 | 1113 |\n| 16 | 17 | 1113 |\n| 16 | 18 | 816 |\n| 16 | 19 | 690 |\n\nThe ops team must choose modules so total memory stays within 15677 while maximizing the system's total value.\n\nAlso, when you send your chosen set of features, please use this simple JSON layout so it's easy to read and check:\n\n{\n \"solution\": [, , ...]\n}\n\nHere \"solution\" is just the list of feature IDs you want switched on — the exact labels from the instance input, in a plain array. This JSON is only a sketch of the shape I expect, not the actual answer itself.\n\nMake sure to use the identifiers exactly as they appear in the instance input — no renaming and no new labels.\n\nValid 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\".", "instance": { "linear_coeffs": [ 713, 625, 672, 1415, 1290, 178, 763, 827, 1214, 274, 1672, 1460, 235, 1324, 1054, 408, 733, 205, 772 ], "quadratic_coeffs": [ [ 0, 0, 413, 413, 413, 413, 413, 413, 0, 413, 139, 0, 0, 413, 0, 413, 152, 413, 500 ], [ 0, 0, 834, 0, 1019, 0, 1019, 440, 1019, 139, 0, 0, 1019, 1019, 920, 690, 861, 0, 1199 ], [ 0, 0, 603, 603, 0, 0, 603, 0, 603, 603, 0, 603, 603, 0, 0, 0, 0, 318, 0 ], [ 0, 0, 0, 440, 0, 0, 182, 551, 0, 962, 962, 0, 962, 962, 962, 1435, 941, 1435, 0 ], [ 0, 0, 0, 0, 318, 323, 902, 0, 675, 0, 1478, 1048, 0, 920, 690, 1508, 1508, 771, 323 ], [ 0, 0, 0, 0, 0, 902, 1508, 408, 0, 0, 0, 0, 998, 0, 152, 0, 0, 536, 0 ], [ 0, 0, 0, 0, 0, 0, 536, 0, 536, 245, 154, 0, 536, 0, 536, 834, 834, 440, 834 ], [ 0, 0, 0, 0, 0, 0, 0, 782, 941, 0, 941, 941, 941, 941, 861, 440, 323, 551, 1154 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 713, 671, 823, 0, 1088, 182, 182, 182, 0, 182, 182 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 308, 1295, 1295, 675, 675, 506, 0, 0, 675, 675 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 666, 482, 1286, 874, 1013, 0, 0, 313, 1286 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 666, 0, 0, 430, 0, 506, 506 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1084, 0, 0, 222, 640, 453, 482 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1433, 1252, 1571, 468, 468, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1433, 1433, 0, 1113, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 152, 1113, 816, 690 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 413, 1019, 603, 962, 1480, 1508, 536, 941, 1254, 1295, 1441, 667, 823, 1414, 1161, 920, 1057, 1434, 1113 ], "capacity": 15677, "solution": [ 0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18 ], "obj": 73376.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18 ], "obj": 73376.0, "instance_variant": { "problem_type": "QKP", "num_items": 19, "capacity": 15677, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 713 }, { "item_id": 2, "linear_profit": 625 }, { "item_id": 3, "linear_profit": 672 }, { "item_id": 4, "linear_profit": 1415 }, { "item_id": 5, "linear_profit": 1290 }, { "item_id": 6, "linear_profit": 178 }, { "item_id": 7, "linear_profit": 763 }, { "item_id": 8, "linear_profit": 827 }, { "item_id": 9, "linear_profit": 1214 }, { "item_id": 10, "linear_profit": 274 }, { "item_id": 11, "linear_profit": 1672 }, { "item_id": 12, "linear_profit": 1460 }, { "item_id": 13, "linear_profit": 235 }, { "item_id": 14, "linear_profit": 1324 }, { "item_id": 15, "linear_profit": 1054 }, { "item_id": 16, "linear_profit": 408 }, { "item_id": 17, "linear_profit": 733 }, { "item_id": 18, "linear_profit": 205 }, { "item_id": 19, "linear_profit": 772 } ], "weight_pairs": [ { "item_id": 1, "weight": 413 }, { "item_id": 2, "weight": 1019 }, { "item_id": 3, "weight": 603 }, { "item_id": 4, "weight": 962 }, { "item_id": 5, "weight": 1480 }, { "item_id": 6, "weight": 1508 }, { "item_id": 7, "weight": 536 }, { "item_id": 8, "weight": 941 }, { "item_id": 9, "weight": 1254 }, { "item_id": 10, "weight": 1295 }, { "item_id": 11, "weight": 1441 }, { "item_id": 12, "weight": 667 }, { "item_id": 13, "weight": 823 }, { "item_id": 14, "weight": 1414 }, { "item_id": 15, "weight": 1161 }, { "item_id": 16, "weight": 920 }, { "item_id": 17, "weight": 1057 }, { "item_id": 18, "weight": 1434 }, { "item_id": 19, "weight": 1113 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 139 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 152 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 413 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 500 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 834 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 1019 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 1019 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 440 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 1019 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 139 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 1019 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 1019 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 920 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 690 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 861 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 1199 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 603 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 603 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 603 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 603 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 603 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 603 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 603 }, { "item_i_id": 3, "item_j_id": 18, "quadratic_profit": 318 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 440 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 182 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 551 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 962 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 962 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 962 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 962 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 962 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 1435 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 941 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 1435 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 318 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 323 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 902 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 675 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 1478 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 1048 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 920 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 690 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 1508 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 1508 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 771 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 323 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 902 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 1508 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 408 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 998 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 152 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 536 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 536 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 536 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 245 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 154 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 536 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 536 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 834 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 834 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 440 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 834 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 782 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 941 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 941 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 941 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 941 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 941 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 861 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 440 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 323 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 551 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 1154 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 713 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 671 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 823 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 1088 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 182 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 182 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 182 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 182 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 182 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 308 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 1295 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 1295 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 675 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 675 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 506 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 675 }, { "item_i_id": 10, "item_j_id": 19, "quadratic_profit": 675 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 666 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 482 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 1286 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 874 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 1013 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 313 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 1286 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 666 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 430 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 506 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 506 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 1084 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 222 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 640 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 453 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 482 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 1433 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 1252 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 1571 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 468 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 468 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 1433 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 1433 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 1113 }, { "item_i_id": 16, "item_j_id": 16, "quadratic_profit": 152 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 1113 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 816 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 690 } ] }, "solution_variant": [ 1, 2, 3, 4, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19 ], "context_index": 28, "input_format": "markdown_table", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Someone in the school asked for a standout display, so the librarian is choosing which books to put on the front shelf to make the learning impact as strong as possible. Every chosen title uses up some of the shelf’s length and contributes its own educational points, and a few specific pairs of titles interact to give bonus points when both are present. A great arrangement keeps the total widths within the shelf limit and scores highly by totaling each book’s points plus any pair bonuses — with each book available as one copy only, and no partial placements allowed. The full details (widths, values, and which pairs get bonuses) are listed below.\n\n# total_books=21\n# shelf_length=6323\n# book_ids=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21\n\nbook_id,educational_points\n1,132\n2,179\n3,102\n4,407\n5,230\n6,200\n7,470\n8,303\n9,250\n10,308\n11,264\n12,425\n13,116\n14,116\n15,422\n16,211\n17,183\n18,421\n19,406\n20,180\n21,435\n\nbook_id,width\n1,420\n2,343\n3,451\n4,304\n5,380\n6,170\n7,431\n8,321\n9,249\n10,380\n11,137\n12,103\n13,149\n14,353\n15,236\n16,360\n17,349\n18,350\n19,335\n20,313\n21,369\n\nbook_i_id,book_j_id,pairing_bonus_points\n1,2,318\n1,3,126\n1,4,468\n1,5,135\n1,6,380\n1,7,239\n1,8,494\n1,9,355\n1,10,217\n1,11,469\n1,12,219\n1,13,371\n1,15,232\n1,18,384\n1,19,170\n1,20,212\n1,21,264\n2,3,388\n2,4,129\n2,5,183\n2,6,255\n2,7,274\n2,8,271\n2,10,351\n2,11,307\n2,12,294\n2,13,100\n2,15,455\n2,16,326\n2,18,128\n2,20,418\n2,21,453\n3,4,177\n3,5,452\n3,6,494\n3,8,195\n3,9,396\n3,10,170\n3,11,254\n3,12,316\n3,14,228\n3,15,414\n3,18,235\n3,20,294\n4,5,478\n4,6,329\n4,7,163\n4,8,470\n4,11,422\n4,12,244\n4,13,350\n4,16,280\n4,17,101\n4,18,276\n4,19,241\n4,20,461\n4,21,414\n5,6,331\n5,7,375\n5,8,295\n5,9,369\n5,10,452\n5,11,248\n5,12,493\n5,13,208\n5,14,166\n5,15,223\n5,17,412\n5,18,260\n5,19,311\n5,20,122\n6,7,430\n6,8,139\n6,9,143\n6,11,274\n6,12,200\n6,13,447\n6,16,290\n6,18,453\n6,19,467\n6,21,233\n7,8,463\n7,9,291\n7,10,422\n7,11,185\n7,12,487\n7,13,258\n7,14,254\n7,15,166\n7,16,195\n7,17,374\n7,18,493\n7,19,269\n7,20,286\n7,21,456\n8,10,220\n8,11,309\n8,13,404\n8,14,433\n8,15,231\n8,17,185\n8,18,212\n8,19,178\n8,20,461\n8,21,282\n9,10,402\n9,13,324\n9,14,252\n9,17,438\n9,19,470\n10,11,295\n10,13,455\n10,14,214\n10,15,127\n10,16,262\n10,17,420\n10,18,299\n10,20,385\n10,21,433\n11,12,223\n11,13,317\n11,15,176\n11,16,362\n11,18,389\n11,19,120\n11,20,266\n11,21,454\n12,13,346\n12,14,155\n12,15,487\n12,16,376\n12,17,340\n12,18,484\n12,20,233\n12,21,252\n13,14,136\n13,15,145\n13,16,226\n13,17,328\n13,18,150\n13,19,418\n13,21,428\n14,15,298\n14,16,497\n14,18,112\n14,20,421\n14,21,173\n15,16,451\n15,17,315\n15,18,274\n15,19,166\n15,20,246\n16,17,340\n16,18,375\n16,19,127\n16,20,480\n16,21,246\n17,18,455\n17,19,242\n17,20,377\n17,21,231\n18,19,206\n18,20,488\n19,20,427\n19,21,484\n\nOh, and when you send back your pick for the front shelf, please use this simple JSON shape so it's easy to check automatically:\n\n{\n \"solution\": [, , ...]\n}\n\nHere \"solution\" is just the list of the books you want on the front shelf — each entry is the identifier for a book from the instance. Think of it like filling out a short form: put the exact book IDs you chose inside the brackets, separated by commas. This is just a sketch of the shape we expect, not the final answer itself.\n\nPlease make sure to use the identifiers exactly as they appear in the instance input — no renaming and no 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”.", "instance": { "linear_coeffs": [ 132, 179, 102, 407, 230, 200, 470, 303, 250, 308, 264, 425, 116, 116, 422, 211, 183, 421, 406, 180, 435 ], "quadratic_coeffs": [ [ 0, 318, 126, 468, 135, 380, 239, 494, 355, 217, 469, 219, 371, 0, 232, 0, 0, 384, 170, 212, 264 ], [ 0, 165, 388, 129, 183, 255, 274, 271, 0, 351, 307, 294, 100, 0, 455, 326, 0, 128, 0, 418, 453 ], [ 0, 0, 0, 177, 452, 494, 0, 195, 396, 170, 254, 316, 0, 228, 414, 0, 0, 235, 0, 294, 0 ], [ 0, 0, 0, 394, 478, 329, 163, 470, 0, 0, 422, 244, 350, 0, 0, 280, 101, 276, 241, 461, 414 ], [ 0, 0, 0, 0, 259, 331, 375, 295, 369, 452, 248, 493, 208, 166, 223, 0, 412, 260, 311, 122, 0 ], [ 0, 0, 0, 0, 0, 450, 430, 139, 143, 0, 274, 200, 447, 0, 0, 290, 0, 453, 467, 0, 233 ], [ 0, 0, 0, 0, 0, 0, 415, 463, 291, 422, 185, 487, 258, 254, 166, 195, 374, 493, 269, 286, 456 ], [ 0, 0, 0, 0, 0, 0, 0, 341, 0, 220, 309, 0, 404, 433, 231, 0, 185, 212, 178, 461, 282 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 297, 402, 0, 0, 324, 252, 0, 0, 438, 0, 470, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 295, 0, 455, 214, 127, 262, 420, 299, 0, 385, 433 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 223, 317, 0, 176, 362, 0, 389, 120, 266, 454 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 346, 155, 487, 376, 340, 484, 0, 233, 252 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 355, 136, 145, 226, 328, 150, 418, 0, 428 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 298, 497, 0, 112, 0, 421, 173 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 451, 315, 274, 166, 246, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 340, 375, 127, 480, 246 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 455, 242, 377, 231 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 239, 206, 488, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 427, 484 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 420, 343, 451, 304, 380, 170, 431, 321, 249, 380, 137, 103, 149, 353, 236, 360, 349, 350, 335, 313, 369 ], "capacity": 6323, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "obj": 53182.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "obj": 53182.0, "instance_variant": { "problem_type": "QKP", "num_items": 21, "capacity": 6323, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 132 }, { "item_id": 2, "linear_profit": 179 }, { "item_id": 3, "linear_profit": 102 }, { "item_id": 4, "linear_profit": 407 }, { "item_id": 5, "linear_profit": 230 }, { "item_id": 6, "linear_profit": 200 }, { "item_id": 7, "linear_profit": 470 }, { "item_id": 8, "linear_profit": 303 }, { "item_id": 9, "linear_profit": 250 }, { "item_id": 10, "linear_profit": 308 }, { "item_id": 11, "linear_profit": 264 }, { "item_id": 12, "linear_profit": 425 }, { "item_id": 13, "linear_profit": 116 }, { "item_id": 14, "linear_profit": 116 }, { "item_id": 15, "linear_profit": 422 }, { "item_id": 16, "linear_profit": 211 }, { "item_id": 17, "linear_profit": 183 }, { "item_id": 18, "linear_profit": 421 }, { "item_id": 19, "linear_profit": 406 }, { "item_id": 20, "linear_profit": 180 }, { "item_id": 21, "linear_profit": 435 } ], "weight_pairs": [ { "item_id": 1, "weight": 420 }, { "item_id": 2, "weight": 343 }, { "item_id": 3, "weight": 451 }, { "item_id": 4, "weight": 304 }, { "item_id": 5, "weight": 380 }, { "item_id": 6, "weight": 170 }, { "item_id": 7, "weight": 431 }, { "item_id": 8, "weight": 321 }, { "item_id": 9, "weight": 249 }, { "item_id": 10, "weight": 380 }, { "item_id": 11, "weight": 137 }, { "item_id": 12, "weight": 103 }, { "item_id": 13, "weight": 149 }, { "item_id": 14, "weight": 353 }, { "item_id": 15, "weight": 236 }, { "item_id": 16, "weight": 360 }, { "item_id": 17, "weight": 349 }, { "item_id": 18, "weight": 350 }, { "item_id": 19, "weight": 335 }, { "item_id": 20, "weight": 313 }, { "item_id": 21, "weight": 369 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 318 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 126 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 468 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 135 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 380 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 239 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 494 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 355 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 217 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 469 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 219 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 371 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 232 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 384 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 170 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 212 }, { "item_i_id": 1, "item_j_id": 21, "quadratic_profit": 264 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 165 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 388 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 129 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 183 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 255 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 274 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 271 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 351 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 307 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 294 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 455 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 326 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 128 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 418 }, { "item_i_id": 2, "item_j_id": 21, "quadratic_profit": 453 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 177 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 452 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 494 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 195 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 396 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 170 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 254 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 316 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 228 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 414 }, { "item_i_id": 3, "item_j_id": 18, "quadratic_profit": 235 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 294 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 394 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 478 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 329 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 163 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 470 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 422 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 244 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 350 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 280 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 276 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 241 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 461 }, { "item_i_id": 4, "item_j_id": 21, "quadratic_profit": 414 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 259 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 331 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 375 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 295 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 369 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 452 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 248 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 493 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 208 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 166 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 223 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 412 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 260 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 311 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 122 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 450 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 430 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 139 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 143 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 274 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 200 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 447 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 290 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 453 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 467 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 233 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 415 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 463 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 291 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 422 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 185 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 487 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 258 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 254 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 166 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 195 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 374 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 493 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 269 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 286 }, { "item_i_id": 7, "item_j_id": 21, "quadratic_profit": 456 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 341 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 220 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 309 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 404 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 433 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 231 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 185 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 212 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 178 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 461 }, { "item_i_id": 8, "item_j_id": 21, "quadratic_profit": 282 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 297 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 402 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 324 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 252 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 438 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 470 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 200 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 295 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 455 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 214 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 127 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 262 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 420 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 299 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 385 }, { "item_i_id": 10, "item_j_id": 21, "quadratic_profit": 433 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 120 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 223 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 317 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 176 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 362 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 389 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 120 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 266 }, { "item_i_id": 11, "item_j_id": 21, "quadratic_profit": 454 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 211 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 346 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 155 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 487 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 376 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 340 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 484 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 233 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 252 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 355 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 136 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 145 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 226 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 328 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 150 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 418 }, { "item_i_id": 13, "item_j_id": 21, "quadratic_profit": 428 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 298 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 497 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 112 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 421 }, { "item_i_id": 14, "item_j_id": 21, "quadratic_profit": 173 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 451 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 315 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 274 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 166 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 246 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 340 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 375 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 127 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 480 }, { "item_i_id": 16, "item_j_id": 21, "quadratic_profit": 246 }, { "item_i_id": 17, "item_j_id": 17, "quadratic_profit": 483 }, { "item_i_id": 17, "item_j_id": 18, "quadratic_profit": 455 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 242 }, { "item_i_id": 17, "item_j_id": 20, "quadratic_profit": 377 }, { "item_i_id": 17, "item_j_id": 21, "quadratic_profit": 231 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 239 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 206 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 488 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 350 }, { "item_i_id": 19, "item_j_id": 20, "quadratic_profit": 427 }, { "item_i_id": 19, "item_j_id": 21, "quadratic_profit": 484 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "context_index": 29, "input_format": "csv", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Many people on the scheduling desk worry about squeezing the best lineup into a fixed time slot. Every show uses up some minutes and earns a baseline audience, and there are a few beneficial pairings that add extra viewers when those two shows share the night. The job: choose a set of distinct shows that fits inside the block’s total time and maximizes the overall audience, which is just the sum of each show’s base viewers plus any applicable boosts from paired shows. The full runtimes, base ratings, and pairing bonuses appear below.\n\nThere are 20 shows available (IDs: A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) and the evening block allows up to 1215 minutes.\nShow A draws a baseline audience of 123 viewers.\nShow B draws a baseline audience of 112 viewers.\nShow C draws a baseline audience of 101 viewers.\nShow D draws a baseline audience of 101 viewers.\nShow E draws a baseline audience of 122 viewers.\nShow F draws a baseline audience of 103 viewers.\nShow G draws a baseline audience of 110 viewers.\nShow H draws a baseline audience of 118 viewers.\nShow I draws a baseline audience of 106 viewers.\nShow J draws a baseline audience of 114 viewers.\nShow K draws a baseline audience of 102 viewers.\nShow L draws a baseline audience of 112 viewers.\nShow M draws a baseline audience of 111 viewers.\nShow N draws a baseline audience of 106 viewers.\nShow O draws a baseline audience of 123 viewers.\nShow P draws a baseline audience of 103 viewers.\nShow Q draws a baseline audience of 107 viewers.\nShow R draws a baseline audience of 110 viewers.\nShow S draws a baseline audience of 117 viewers.\nShow T draws a baseline audience of 102 viewers.\nShow A occupies 111 minutes of the block.\nShow B occupies 119 minutes of the block.\nShow C occupies 100 minutes of the block.\nShow D occupies 119 minutes of the block.\nShow E occupies 114 minutes of the block.\nShow F occupies 119 minutes of the block.\nShow G occupies 117 minutes of the block.\nShow H occupies 114 minutes of the block.\nShow I occupies 122 minutes of the block.\nShow J occupies 119 minutes of the block.\nShow K occupies 105 minutes of the block.\nShow L occupies 104 minutes of the block.\nShow M occupies 108 minutes of the block.\nShow N occupies 120 minutes of the block.\nShow O occupies 107 minutes of the block.\nShow P occupies 113 minutes of the block.\nShow Q occupies 107 minutes of the block.\nShow R occupies 116 minutes of the block.\nShow S occupies 104 minutes of the block.\nShow T occupies 120 minutes of the block.\nIf both A and B air, their pairing adds 120 viewers.\nIf both A and C air, their pairing adds 105 viewers.\nIf both A and D air, their pairing adds 119 viewers.\nIf both A and E air, their pairing adds 100 viewers.\nIf both A and F air, their pairing adds 122 viewers.\nIf both A and G air, their pairing adds 124 viewers.\nIf both A and H air, their pairing adds 102 viewers.\nIf both A and I air, their pairing adds 119 viewers.\nIf both A and J air, their pairing adds 123 viewers.\nIf both A and K air, their pairing adds 110 viewers.\nIf both A and L air, their pairing adds 102 viewers.\nIf both A and M air, their pairing adds 118 viewers.\nIf both A and N air, their pairing adds 114 viewers.\nIf both A and O air, their pairing adds 119 viewers.\nIf both A and P air, their pairing adds 105 viewers.\nIf both A and Q air, their pairing adds 111 viewers.\nIf both A and R air, their pairing adds 116 viewers.\nIf both A and S air, their pairing adds 112 viewers.\nIf both A and T air, their pairing adds 108 viewers.\nIf both B and C air, their pairing adds 101 viewers.\nIf both B and D air, their pairing adds 110 viewers.\nIf both B and E air, their pairing adds 116 viewers.\nIf both B and F air, their pairing adds 100 viewers.\nIf both B and G air, their pairing adds 112 viewers.\nIf both B and H air, their pairing adds 105 viewers.\nIf both B and I air, their pairing adds 104 viewers.\nIf both B and J air, their pairing adds 116 viewers.\nIf both B and K air, their pairing adds 111 viewers.\nIf both B and L air, their pairing adds 105 viewers.\nIf both B and M air, their pairing adds 102 viewers.\nIf both B and N air, their pairing adds 102 viewers.\nIf both B and O air, their pairing adds 104 viewers.\nIf both B and P air, their pairing adds 121 viewers.\nIf both B and Q air, their pairing adds 102 viewers.\nIf both B and R air, their pairing adds 117 viewers.\nIf both B and S air, their pairing adds 109 viewers.\nIf both B and T air, their pairing adds 108 viewers.\nIf both C and D air, their pairing adds 122 viewers.\nIf both C and E air, their pairing adds 104 viewers.\nIf both C and F air, their pairing adds 121 viewers.\nIf both C and G air, their pairing adds 119 viewers.\nIf both C and H air, their pairing adds 119 viewers.\nIf both C and I air, their pairing adds 107 viewers.\nIf both C and J air, their pairing adds 123 viewers.\nIf both C and K air, their pairing adds 119 viewers.\nIf both C and L air, their pairing adds 120 viewers.\nIf both C and M air, their pairing adds 107 viewers.\nIf both C and N air, their pairing adds 110 viewers.\nIf both C and O air, their pairing adds 116 viewers.\nIf both C and P air, their pairing adds 119 viewers.\nIf both C and Q air, their pairing adds 100 viewers.\nIf both C and R air, their pairing adds 124 viewers.\nIf both C and S air, their pairing adds 106 viewers.\nIf both C and T air, their pairing adds 100 viewers.\nIf both D and E air, their pairing adds 124 viewers.\nIf both D and F air, their pairing adds 111 viewers.\nIf both D and G air, their pairing adds 124 viewers.\nIf both D and H air, their pairing adds 112 viewers.\nIf both D and I air, their pairing adds 110 viewers.\nIf both D and J air, their pairing adds 116 viewers.\nIf both D and K air, their pairing adds 119 viewers.\nIf both D and L air, their pairing adds 112 viewers.\nIf both D and M air, their pairing adds 109 viewers.\nIf both D and N air, their pairing adds 100 viewers.\nIf both D and O air, their pairing adds 102 viewers.\nIf both D and P air, their pairing adds 118 viewers.\nIf both D and Q air, their pairing adds 103 viewers.\nIf both D and R air, their pairing adds 112 viewers.\nIf both D and S air, their pairing adds 118 viewers.\nIf both D and T air, their pairing adds 118 viewers.\nIf both E and F air, their pairing adds 101 viewers.\nIf both E and G air, their pairing adds 123 viewers.\nIf both E and H air, their pairing adds 110 viewers.\nIf both E and I air, their pairing adds 103 viewers.\nIf both E and J air, their pairing adds 102 viewers.\nIf both E and K air, their pairing adds 121 viewers.\nIf both E and L air, their pairing adds 102 viewers.\nIf both E and M air, their pairing adds 102 viewers.\nIf both E and N air, their pairing adds 105 viewers.\nIf both E and O air, their pairing adds 100 viewers.\nIf both E and P air, their pairing adds 120 viewers.\nIf both E and Q air, their pairing adds 121 viewers.\nIf both E and R air, their pairing adds 118 viewers.\nIf both E and S air, their pairing adds 117 viewers.\nIf both E and T air, their pairing adds 109 viewers.\nIf both F and G air, their pairing adds 119 viewers.\nIf both F and H air, their pairing adds 121 viewers.\nIf both F and I air, their pairing adds 118 viewers.\nIf both F and J air, their pairing adds 101 viewers.\nIf both F and K air, their pairing adds 104 viewers.\nIf both F and L air, their pairing adds 112 viewers.\nIf both F and M air, their pairing adds 106 viewers.\nIf both F and N air, their pairing adds 109 viewers.\nIf both F and O air, their pairing adds 124 viewers.\nIf both F and P air, their pairing adds 102 viewers.\nIf both F and Q air, their pairing adds 114 viewers.\nIf both F and R air, their pairing adds 112 viewers.\nIf both F and S air, their pairing adds 112 viewers.\nIf both F and T air, their pairing adds 110 viewers.\nIf both G and H air, their pairing adds 113 viewers.\nIf both G and I air, their pairing adds 124 viewers.\nIf both G and J air, their pairing adds 106 viewers.\nIf both G and K air, their pairing adds 111 viewers.\nIf both G and L air, their pairing adds 107 viewers.\nIf both G and M air, their pairing adds 111 viewers.\nIf both G and N air, their pairing adds 108 viewers.\nIf both G and O air, their pairing adds 118 viewers.\nIf both G and P air, their pairing adds 110 viewers.\nIf both G and Q air, their pairing adds 107 viewers.\nIf both G and R air, their pairing adds 124 viewers.\nIf both G and S air, their pairing adds 121 viewers.\nIf both G and T air, their pairing adds 103 viewers.\nIf both H and I air, their pairing adds 104 viewers.\nIf both H and J air, their pairing adds 111 viewers.\nIf both H and K air, their pairing adds 113 viewers.\nIf both H and L air, their pairing adds 107 viewers.\nIf both H and M air, their pairing adds 115 viewers.\nIf both H and N air, their pairing adds 121 viewers.\nIf both H and O air, their pairing adds 101 viewers.\nIf both H and P air, their pairing adds 102 viewers.\nIf both H and Q air, their pairing adds 122 viewers.\nIf both H and R air, their pairing adds 123 viewers.\nIf both H and S air, their pairing adds 111 viewers.\nIf both H and T air, their pairing adds 124 viewers.\nIf both I and J air, their pairing adds 115 viewers.\nIf both I and K air, their pairing adds 104 viewers.\nIf both I and L air, their pairing adds 121 viewers.\nIf both I and M air, their pairing adds 124 viewers.\nIf both I and N air, their pairing adds 114 viewers.\nIf both I and O air, their pairing adds 108 viewers.\nIf both I and P air, their pairing adds 107 viewers.\nIf both I and Q air, their pairing adds 107 viewers.\nIf both I and R air, their pairing adds 114 viewers.\nIf both I and S air, their pairing adds 109 viewers.\nIf both I and T air, their pairing adds 118 viewers.\nIf both J and K air, their pairing adds 103 viewers.\nIf both J and L air, their pairing adds 103 viewers.\nIf both J and M air, their pairing adds 121 viewers.\nIf both J and N air, their pairing adds 108 viewers.\nIf both J and O air, their pairing adds 113 viewers.\nIf both J and P air, their pairing adds 114 viewers.\nIf both J and Q air, their pairing adds 109 viewers.\nIf both J and R air, their pairing adds 115 viewers.\nIf both J and S air, their pairing adds 103 viewers.\nIf both J and T air, their pairing adds 105 viewers.\nIf both K and L air, their pairing adds 109 viewers.\nIf both K and M air, their pairing adds 118 viewers.\nIf both K and N air, their pairing adds 114 viewers.\nIf both K and O air, their pairing adds 110 viewers.\nIf both K and P air, their pairing adds 111 viewers.\nIf both K and Q air, their pairing adds 101 viewers.\nIf both K and R air, their pairing adds 108 viewers.\nIf both K and S air, their pairing adds 123 viewers.\nIf both K and T air, their pairing adds 105 viewers.\nIf both L and M air, their pairing adds 101 viewers.\nIf both L and N air, their pairing adds 100 viewers.\nIf both L and O air, their pairing adds 106 viewers.\nIf both L and P air, their pairing adds 107 viewers.\nIf both L and Q air, their pairing adds 100 viewers.\nIf both L and R air, their pairing adds 121 viewers.\nIf both L and S air, their pairing adds 105 viewers.\nIf both L and T air, their pairing adds 122 viewers.\nIf both M and N air, their pairing adds 123 viewers.\nIf both M and O air, their pairing adds 121 viewers.\nIf both M and P air, their pairing adds 105 viewers.\nIf both M and Q air, their pairing adds 106 viewers.\nIf both M and R air, their pairing adds 124 viewers.\nIf both M and S air, their pairing adds 107 viewers.\nIf both M and T air, their pairing adds 104 viewers.\nIf both N and O air, their pairing adds 115 viewers.\nIf both N and P air, their pairing adds 115 viewers.\nIf both N and Q air, their pairing adds 119 viewers.\nIf both N and R air, their pairing adds 124 viewers.\nIf both N and S air, their pairing adds 111 viewers.\nIf both N and T air, their pairing adds 111 viewers.\nIf both O and P air, their pairing adds 113 viewers.\nIf both O and Q air, their pairing adds 100 viewers.\nIf both O and R air, their pairing adds 104 viewers.\nIf both O and S air, their pairing adds 105 viewers.\nIf both O and T air, their pairing adds 120 viewers.\nIf both P and Q air, their pairing adds 104 viewers.\nIf both P and R air, their pairing adds 101 viewers.\nIf both P and S air, their pairing adds 109 viewers.\nIf both P and T air, their pairing adds 103 viewers.\nIf both Q and R air, their pairing adds 123 viewers.\nIf both Q and S air, their pairing adds 106 viewers.\nIf both Q and T air, their pairing adds 109 viewers.\nIf both R and S air, their pairing adds 105 viewers.\nIf both R and T air, their pairing adds 100 viewers.\nIf both S and T air, their pairing adds 100 viewers.\nChoose a lineup that fits within 1215 minutes to maximize total viewers from base audiences and any pairing uplifts.\n\nOh, and when you send back your pick, just stick to a tiny JSON sketch like this so it's easy to read and check:\n\n{\n \"solution\": [, , ...]\n}\n\nThis just means \"solution\" should be a list of the shows you choose (use each show's identifier from the instance). It's just a shape guide — not the actual lineup — so fill in the real show IDs when you reply.\n\nPlease use the exact identifiers from the instance input, with no renaming or invented labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 123, 112, 101, 101, 122, 103, 110, 118, 106, 114, 102, 112, 111, 106, 123, 103, 107, 110, 117, 102 ], "quadratic_coeffs": [ [ 122, 120, 105, 119, 100, 122, 124, 102, 119, 123, 110, 102, 118, 114, 119, 105, 111, 116, 112, 108 ], [ 0, 111, 101, 110, 116, 100, 112, 105, 104, 116, 111, 105, 102, 102, 104, 121, 102, 117, 109, 108 ], [ 0, 0, 103, 122, 104, 121, 119, 119, 107, 123, 119, 120, 107, 110, 116, 119, 100, 124, 106, 100 ], [ 0, 0, 0, 106, 124, 111, 124, 112, 110, 116, 119, 112, 109, 100, 102, 118, 103, 112, 118, 118 ], [ 0, 0, 0, 0, 120, 101, 123, 110, 103, 102, 121, 102, 102, 105, 100, 120, 121, 118, 117, 109 ], [ 0, 0, 0, 0, 0, 103, 119, 121, 118, 101, 104, 112, 106, 109, 124, 102, 114, 112, 112, 110 ], [ 0, 0, 0, 0, 0, 0, 117, 113, 124, 106, 111, 107, 111, 108, 118, 110, 107, 124, 121, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 109, 104, 111, 113, 107, 115, 121, 101, 102, 122, 123, 111, 124 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 103, 115, 104, 121, 124, 114, 108, 107, 107, 114, 109, 118 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 103, 103, 121, 108, 113, 114, 109, 115, 103, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 109, 118, 114, 110, 111, 101, 108, 123, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 101, 100, 106, 107, 100, 121, 105, 122 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 114, 123, 121, 105, 106, 124, 107, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, 115, 115, 119, 124, 111, 111 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 113, 100, 104, 105, 120 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 104, 101, 109, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 123, 106, 109 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 105, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 111, 119, 100, 119, 114, 119, 117, 114, 122, 119, 105, 104, 108, 120, 107, 113, 107, 116, 104, 120 ], "capacity": 1215, "solution": [ 0, 2, 5, 6, 10, 12, 13, 14, 16, 17, 18 ], "obj": 7453.0, "problem_type": "QKP" }, "solution": [ 0, 2, 5, 6, 10, 12, 13, 14, 16, 17, 18 ], "obj": 7453.0, "instance_variant": { "problem_type": "QKP", "num_items": 20, "capacity": 1215, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 123 }, { "item_id": "B", "linear_profit": 112 }, { "item_id": "C", "linear_profit": 101 }, { "item_id": "D", "linear_profit": 101 }, { "item_id": "E", "linear_profit": 122 }, { "item_id": "F", "linear_profit": 103 }, { "item_id": "G", "linear_profit": 110 }, { "item_id": "H", "linear_profit": 118 }, { "item_id": "I", "linear_profit": 106 }, { "item_id": "J", "linear_profit": 114 }, { "item_id": "K", "linear_profit": 102 }, { "item_id": "L", "linear_profit": 112 }, { "item_id": "M", "linear_profit": 111 }, { "item_id": "N", "linear_profit": 106 }, { "item_id": "O", "linear_profit": 123 }, { "item_id": "P", "linear_profit": 103 }, { "item_id": "Q", "linear_profit": 107 }, { "item_id": "R", "linear_profit": 110 }, { "item_id": "S", "linear_profit": 117 }, { "item_id": "T", "linear_profit": 102 } ], "weight_pairs": [ { "item_id": "A", "weight": 111 }, { "item_id": "B", "weight": 119 }, { "item_id": "C", "weight": 100 }, { "item_id": "D", "weight": 119 }, { "item_id": "E", "weight": 114 }, { "item_id": "F", "weight": 119 }, { "item_id": "G", "weight": 117 }, { "item_id": "H", "weight": 114 }, { "item_id": "I", "weight": 122 }, { "item_id": "J", "weight": 119 }, { "item_id": "K", "weight": 105 }, { "item_id": "L", "weight": 104 }, { "item_id": "M", "weight": 108 }, { "item_id": "N", "weight": 120 }, { "item_id": "O", "weight": 107 }, { "item_id": "P", "weight": 113 }, { "item_id": "Q", "weight": 107 }, { "item_id": "R", "weight": 116 }, { "item_id": "S", "weight": 104 }, { "item_id": "T", "weight": 120 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 120 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 105 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 119 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 124 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 119 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 123 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 110 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 118 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 114 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 119 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 105 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 111 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 116 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 112 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 108 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 110 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 116 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 112 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 105 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 116 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 105 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 121 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 117 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 109 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 108 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 122 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 121 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 119 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 119 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 107 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 123 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 119 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 120 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 107 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 110 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 116 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 119 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 124 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 106 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 106 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 124 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 111 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 124 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 112 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 110 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 116 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 119 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 112 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 109 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 118 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 112 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 118 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 118 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 120 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 123 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 110 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 121 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 105 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 120 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 121 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 118 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 117 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 109 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 119 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 121 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 118 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 104 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 112 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 106 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 109 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 124 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 114 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 112 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 112 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 110 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 117 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 113 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 124 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 106 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 111 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 107 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 111 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 108 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 118 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 110 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 107 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 124 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 121 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 109 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 104 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 111 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 113 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 107 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 115 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 121 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 122 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 123 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 111 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 124 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 115 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 104 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 121 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 124 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 114 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 108 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 107 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 107 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 114 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 109 }, { "item_i_id": "I", "item_j_id": "T", "quadratic_profit": 118 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 107 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 121 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 108 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 113 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 114 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 109 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 115 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 105 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 123 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 109 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 118 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 114 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 110 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 111 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 108 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 123 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 105 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 123 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 106 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 107 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 121 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 105 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 122 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 114 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 123 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 121 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 105 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 106 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 124 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 107 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 122 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 115 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 115 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 119 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 124 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 111 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 111 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 120 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 113 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 105 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 120 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 109 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 113 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 123 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 106 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 109 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 105 }, { "item_i_id": "R", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 115 }, { "item_i_id": "S", "item_j_id": "T", "quadratic_profit": 100 } ] }, "solution_variant": [ "A", "C", "F", "G", "K", "M", "N", "O", "Q", "R", "S" ], "context_index": 30, "input_format": "nl", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Out on the river the difference between a good day and a great day can be what’s in the backpack. Every rod, lure and tool adds weight and gives a baseline chance of scoring fish, and a few specific pairings boost that chance when they travel together. The plan is to choose a combination of gear whose combined weight fits within the pack’s limit and whose total expected catch value equals the sum of all chosen items’ base values plus any pairwise bonuses, with no item repeated. The detailed item list and weight/bonus numbers are below.\n\nBelow are 21 tackle options listed as 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, and the pack's limit is 1255.\nThe tackle 1 contributes a baseline expected catch value of 103.\nThe tackle 2 contributes a baseline expected catch value of 100.\nThe tackle 3 contributes a baseline expected catch value of 104.\nThe tackle 4 contributes a baseline expected catch value of 104.\nThe tackle 5 contributes a baseline expected catch value of 104.\nThe tackle 6 contributes a baseline expected catch value of 105.\nThe tackle 7 contributes a baseline expected catch value of 103.\nThe tackle 8 contributes a baseline expected catch value of 105.\nThe tackle 9 contributes a baseline expected catch value of 105.\nThe tackle 10 contributes a baseline expected catch value of 100.\nThe tackle 11 contributes a baseline expected catch value of 102.\nThe tackle 12 contributes a baseline expected catch value of 102.\nThe tackle 13 contributes a baseline expected catch value of 105.\nThe tackle 14 contributes a baseline expected catch value of 103.\nThe tackle 15 contributes a baseline expected catch value of 102.\nThe tackle 16 contributes a baseline expected catch value of 102.\nThe tackle 17 contributes a baseline expected catch value of 100.\nThe tackle 18 contributes a baseline expected catch value of 105.\nThe tackle 19 contributes a baseline expected catch value of 104.\nThe tackle 20 contributes a baseline expected catch value of 103.\nThe tackle 21 contributes a baseline expected catch value of 104.\n1 weighs 101, adding to the pack's total load.\n2 weighs 103, adding to the pack's total load.\n3 weighs 103, adding to the pack's total load.\n4 weighs 102, adding to the pack's total load.\n5 weighs 105, adding to the pack's total load.\n6 weighs 103, adding to the pack's total load.\n7 weighs 105, adding to the pack's total load.\n8 weighs 103, adding to the pack's total load.\n9 weighs 105, adding to the pack's total load.\n10 weighs 102, adding to the pack's total load.\n11 weighs 103, adding to the pack's total load.\n12 weighs 102, adding to the pack's total load.\n13 weighs 100, adding to the pack's total load.\n14 weighs 105, adding to the pack's total load.\n15 weighs 101, adding to the pack's total load.\n16 weighs 102, adding to the pack's total load.\n17 weighs 100, adding to the pack's total load.\n18 weighs 103, adding to the pack's total load.\n19 weighs 100, adding to the pack's total load.\n20 weighs 100, adding to the pack's total load.\n21 weighs 100, adding to the pack's total load.\nIncluding 1 together with 2 yields a combination bonus of 101.\nIncluding 1 together with 3 yields a combination bonus of 102.\nIncluding 1 together with 4 yields a combination bonus of 101.\nIncluding 1 together with 5 yields a combination bonus of 101.\nIncluding 1 together with 7 yields a combination bonus of 102.\nIncluding 1 together with 8 yields a combination bonus of 102.\nIncluding 1 together with 11 yields a combination bonus of 102.\nIncluding 1 together with 13 yields a combination bonus of 102.\nIncluding 1 together with 15 yields a combination bonus of 101.\nIncluding 1 together with 17 yields a combination bonus of 100.\nIncluding 1 together with 18 yields a combination bonus of 100.\nIncluding 1 together with 19 yields a combination bonus of 100.\nIncluding 1 together with 20 yields a combination bonus of 102.\nIncluding 1 together with 21 yields a combination bonus of 102.\nIncluding 2 together with 3 yields a combination bonus of 101.\nIncluding 2 together with 4 yields a combination bonus of 103.\nIncluding 2 together with 5 yields a combination bonus of 102.\nIncluding 2 together with 7 yields a combination bonus of 103.\nIncluding 2 together with 8 yields a combination bonus of 101.\nIncluding 2 together with 10 yields a combination bonus of 101.\nIncluding 2 together with 11 yields a combination bonus of 102.\nIncluding 2 together with 12 yields a combination bonus of 101.\nIncluding 2 together with 15 yields a combination bonus of 103.\nIncluding 2 together with 16 yields a combination bonus of 103.\nIncluding 2 together with 17 yields a combination bonus of 101.\nIncluding 2 together with 18 yields a combination bonus of 102.\nIncluding 2 together with 20 yields a combination bonus of 102.\nIncluding 2 together with 21 yields a combination bonus of 103.\nIncluding 3 together with 4 yields a combination bonus of 103.\nIncluding 3 together with 5 yields a combination bonus of 102.\nIncluding 3 together with 7 yields a combination bonus of 101.\nIncluding 3 together with 9 yields a combination bonus of 102.\nIncluding 3 together with 10 yields a combination bonus of 103.\nIncluding 3 together with 11 yields a combination bonus of 101.\nIncluding 3 together with 12 yields a combination bonus of 103.\nIncluding 3 together with 14 yields a combination bonus of 102.\nIncluding 3 together with 15 yields a combination bonus of 103.\nIncluding 3 together with 16 yields a combination bonus of 101.\nIncluding 3 together with 17 yields a combination bonus of 102.\nIncluding 3 together with 18 yields a combination bonus of 102.\nIncluding 3 together with 19 yields a combination bonus of 101.\nIncluding 3 together with 20 yields a combination bonus of 102.\nIncluding 4 together with 6 yields a combination bonus of 102.\nIncluding 4 together with 7 yields a combination bonus of 103.\nIncluding 4 together with 8 yields a combination bonus of 102.\nIncluding 4 together with 9 yields a combination bonus of 100.\nIncluding 4 together with 12 yields a combination bonus of 102.\nIncluding 4 together with 13 yields a combination bonus of 102.\nIncluding 4 together with 15 yields a combination bonus of 103.\nIncluding 4 together with 16 yields a combination bonus of 100.\nIncluding 4 together with 18 yields a combination bonus of 101.\nIncluding 4 together with 19 yields a combination bonus of 102.\nIncluding 4 together with 20 yields a combination bonus of 103.\nIncluding 4 together with 21 yields a combination bonus of 102.\nIncluding 5 together with 7 yields a combination bonus of 104.\nIncluding 5 together with 8 yields a combination bonus of 103.\nIncluding 5 together with 9 yields a combination bonus of 104.\nIncluding 5 together with 10 yields a combination bonus of 104.\nIncluding 5 together with 11 yields a combination bonus of 105.\nIncluding 5 together with 12 yields a combination bonus of 102.\nIncluding 5 together with 13 yields a combination bonus of 102.\nIncluding 5 together with 14 yields a combination bonus of 103.\nIncluding 5 together with 15 yields a combination bonus of 102.\nIncluding 5 together with 16 yields a combination bonus of 101.\nIncluding 5 together with 17 yields a combination bonus of 101.\nIncluding 5 together with 18 yields a combination bonus of 100.\nIncluding 5 together with 19 yields a combination bonus of 101.\nIncluding 5 together with 20 yields a combination bonus of 101.\nIncluding 5 together with 21 yields a combination bonus of 101.\nIncluding 6 together with 7 yields a combination bonus of 103.\nIncluding 6 together with 8 yields a combination bonus of 101.\nIncluding 6 together with 10 yields a combination bonus of 101.\nIncluding 6 together with 11 yields a combination bonus of 103.\nIncluding 6 together with 12 yields a combination bonus of 102.\nIncluding 6 together with 13 yields a combination bonus of 103.\nIncluding 6 together with 14 yields a combination bonus of 103.\nIncluding 6 together with 15 yields a combination bonus of 101.\nIncluding 6 together with 16 yields a combination bonus of 101.\nIncluding 6 together with 17 yields a combination bonus of 103.\nIncluding 6 together with 18 yields a combination bonus of 102.\nIncluding 6 together with 19 yields a combination bonus of 103.\nIncluding 7 together with 8 yields a combination bonus of 105.\nIncluding 7 together with 9 yields a combination bonus of 102.\nIncluding 7 together with 10 yields a combination bonus of 105.\nIncluding 7 together with 11 yields a combination bonus of 104.\nIncluding 7 together with 13 yields a combination bonus of 102.\nIncluding 7 together with 14 yields a combination bonus of 102.\nIncluding 7 together with 15 yields a combination bonus of 103.\nIncluding 7 together with 16 yields a combination bonus of 101.\nIncluding 7 together with 17 yields a combination bonus of 102.\nIncluding 7 together with 18 yields a combination bonus of 102.\nIncluding 7 together with 20 yields a combination bonus of 102.\nIncluding 8 together with 9 yields a combination bonus of 101.\nIncluding 8 together with 10 yields a combination bonus of 103.\nIncluding 8 together with 12 yields a combination bonus of 101.\nIncluding 8 together with 13 yields a combination bonus of 101.\nIncluding 8 together with 14 yields a combination bonus of 101.\nIncluding 8 together with 15 yields a combination bonus of 103.\nIncluding 8 together with 16 yields a combination bonus of 104.\nIncluding 8 together with 17 yields a combination bonus of 102.\nIncluding 8 together with 21 yields a combination bonus of 104.\nIncluding 9 together with 12 yields a combination bonus of 102.\nIncluding 9 together with 13 yields a combination bonus of 101.\nIncluding 9 together with 15 yields a combination bonus of 100.\nIncluding 9 together with 16 yields a combination bonus of 100.\nIncluding 9 together with 17 yields a combination bonus of 100.\nIncluding 9 together with 19 yields a combination bonus of 102.\nIncluding 9 together with 20 yields a combination bonus of 100.\nIncluding 9 together with 21 yields a combination bonus of 101.\nIncluding 10 together with 11 yields a combination bonus of 100.\nIncluding 10 together with 12 yields a combination bonus of 101.\nIncluding 10 together with 13 yields a combination bonus of 102.\nIncluding 10 together with 14 yields a combination bonus of 102.\nIncluding 10 together with 15 yields a combination bonus of 104.\nIncluding 10 together with 18 yields a combination bonus of 102.\nIncluding 10 together with 20 yields a combination bonus of 103.\nIncluding 11 together with 12 yields a combination bonus of 101.\nIncluding 11 together with 13 yields a combination bonus of 101.\nIncluding 11 together with 14 yields a combination bonus of 102.\nIncluding 11 together with 15 yields a combination bonus of 100.\nIncluding 11 together with 17 yields a combination bonus of 100.\nIncluding 11 together with 18 yields a combination bonus of 100.\nIncluding 11 together with 19 yields a combination bonus of 100.\nIncluding 11 together with 20 yields a combination bonus of 102.\nIncluding 12 together with 15 yields a combination bonus of 100.\nIncluding 12 together with 16 yields a combination bonus of 100.\nIncluding 12 together with 17 yields a combination bonus of 101.\nIncluding 12 together with 19 yields a combination bonus of 102.\nIncluding 12 together with 21 yields a combination bonus of 100.\nIncluding 13 together with 14 yields a combination bonus of 103.\nIncluding 13 together with 15 yields a combination bonus of 103.\nIncluding 13 together with 16 yields a combination bonus of 102.\nIncluding 13 together with 19 yields a combination bonus of 103.\nIncluding 13 together with 20 yields a combination bonus of 105.\nIncluding 13 together with 21 yields a combination bonus of 105.\nIncluding 14 together with 15 yields a combination bonus of 101.\nIncluding 14 together with 17 yields a combination bonus of 101.\nIncluding 14 together with 18 yields a combination bonus of 100.\nIncluding 14 together with 19 yields a combination bonus of 101.\nIncluding 15 together with 19 yields a combination bonus of 101.\nIncluding 15 together with 20 yields a combination bonus of 101.\nIncluding 15 together with 21 yields a combination bonus of 103.\nPack smart: choose gear and pairings that raise total expected catch while staying within the 1255 limit.\n\nOh, and when you’re ready to tell me which gear you’d pack, just drop it in this simple JSON shape so I can read it cleanly:\n\n{\n \"solution\": [, , ...]\n}\n\nThe \"solution\" array is just the list of the item IDs you want to take in your pack. Think of it like ticking off the gear names on a checklist — nothing fancy, just the exact labels for the items you chose. This is only a sketch of the expected shape, not the actual answer itself.\n\nPlease use the item identifiers exactly as they appear in the instance input — no renaming and no inventing 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”.\"", "instance": { "linear_coeffs": [ 103, 100, 104, 104, 104, 105, 103, 105, 105, 100, 102, 102, 105, 103, 102, 102, 100, 105, 104, 103, 104 ], "quadratic_coeffs": [ [ 101, 101, 102, 101, 101, 0, 102, 102, 0, 0, 102, 0, 102, 0, 101, 0, 100, 100, 100, 102, 102 ], [ 0, 102, 101, 103, 102, 0, 103, 101, 0, 101, 102, 101, 0, 0, 103, 103, 101, 102, 0, 102, 103 ], [ 0, 0, 102, 103, 102, 0, 101, 0, 102, 103, 101, 103, 0, 102, 103, 101, 102, 102, 101, 102, 0 ], [ 0, 0, 0, 0, 0, 102, 103, 102, 100, 0, 0, 102, 102, 0, 103, 100, 0, 101, 102, 103, 102 ], [ 0, 0, 0, 0, 0, 0, 104, 103, 104, 104, 105, 102, 102, 103, 102, 101, 101, 100, 101, 101, 101 ], [ 0, 0, 0, 0, 0, 103, 103, 101, 0, 101, 103, 102, 103, 103, 101, 101, 103, 102, 103, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 102, 105, 102, 105, 104, 0, 102, 102, 103, 101, 102, 102, 0, 102, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 102, 101, 103, 0, 101, 101, 101, 103, 104, 102, 0, 0, 0, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, 102, 101, 0, 100, 100, 100, 0, 102, 100, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 100, 101, 102, 102, 104, 0, 0, 102, 0, 103, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 101, 101, 102, 100, 0, 100, 100, 100, 102, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 101, 0, 102, 0, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 103, 103, 102, 0, 0, 103, 105, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 101, 0, 101, 100, 101, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 101, 101, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 101, 103, 103, 102, 105, 103, 105, 103, 105, 102, 103, 102, 100, 105, 101, 102, 100, 103, 100, 100, 100 ], "capacity": 1255, "solution": [ 0, 1, 2, 3, 4, 6, 7, 9, 10, 12, 14, 19 ], "obj": 7067.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 6, 7, 9, 10, 12, 14, 19 ], "obj": 7067.0, "instance_variant": { "problem_type": "QKP", "num_items": 21, "capacity": 1255, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 103 }, { "item_id": 2, "linear_profit": 100 }, { "item_id": 3, "linear_profit": 104 }, { "item_id": 4, "linear_profit": 104 }, { "item_id": 5, "linear_profit": 104 }, { "item_id": 6, "linear_profit": 105 }, { "item_id": 7, "linear_profit": 103 }, { "item_id": 8, "linear_profit": 105 }, { "item_id": 9, "linear_profit": 105 }, { "item_id": 10, "linear_profit": 100 }, { "item_id": 11, "linear_profit": 102 }, { "item_id": 12, "linear_profit": 102 }, { "item_id": 13, "linear_profit": 105 }, { "item_id": 14, "linear_profit": 103 }, { "item_id": 15, "linear_profit": 102 }, { "item_id": 16, "linear_profit": 102 }, { "item_id": 17, "linear_profit": 100 }, { "item_id": 18, "linear_profit": 105 }, { "item_id": 19, "linear_profit": 104 }, { "item_id": 20, "linear_profit": 103 }, { "item_id": 21, "linear_profit": 104 } ], "weight_pairs": [ { "item_id": 1, "weight": 101 }, { "item_id": 2, "weight": 103 }, { "item_id": 3, "weight": 103 }, { "item_id": 4, "weight": 102 }, { "item_id": 5, "weight": 105 }, { "item_id": 6, "weight": 103 }, { "item_id": 7, "weight": 105 }, { "item_id": 8, "weight": 103 }, { "item_id": 9, "weight": 105 }, { "item_id": 10, "weight": 102 }, { "item_id": 11, "weight": 103 }, { "item_id": 12, "weight": 102 }, { "item_id": 13, "weight": 100 }, { "item_id": 14, "weight": 105 }, { "item_id": 15, "weight": 101 }, { "item_id": 16, "weight": 102 }, { "item_id": 17, "weight": 100 }, { "item_id": 18, "weight": 103 }, { "item_id": 19, "weight": 100 }, { "item_id": 20, "weight": 100 }, { "item_id": 21, "weight": 100 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 21, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 21, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 21, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 21, "quadratic_profit": 104 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 104 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 105 }, { "item_i_id": 13, "item_j_id": 21, "quadratic_profit": 105 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 15, "item_j_id": 21, "quadratic_profit": 103 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 7, 8, 10, 11, 13, 15, 20 ], "context_index": 31, "input_format": "nl", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We’re getting a travel-friendly portrait kit ready for a wedding day: every flash or modifier adds bulk but also contributes to the kinds of images that can be made, and some combos give bonus creative options when used together. The job is to choose which pieces to bring so the total weight fits the bag’s limit while the total benefit is the sum of each item’s standalone value plus any extra value from combos; each item can only be taken once. The concrete specs — weights, individual scores, and combo boosts — are listed below.\n\nWe have 16 pieces (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15) and a bag limit of 876; choose which to pack so total weight fits the limit.\nTaking 0 adds 104 standalone value to our kit.\nTaking 1 adds 103 standalone value to our kit.\nTaking 2 adds 105 standalone value to our kit.\nTaking 3 adds 103 standalone value to our kit.\nTaking 4 adds 100 standalone value to our kit.\nTaking 5 adds 105 standalone value to our kit.\nTaking 6 adds 102 standalone value to our kit.\nTaking 7 adds 103 standalone value to our kit.\nTaking 8 adds 103 standalone value to our kit.\nTaking 9 adds 104 standalone value to our kit.\nTaking 10 adds 103 standalone value to our kit.\nTaking 11 adds 102 standalone value to our kit.\nTaking 12 adds 102 standalone value to our kit.\nTaking 13 adds 102 standalone value to our kit.\nTaking 14 adds 103 standalone value to our kit.\nTaking 15 adds 101 standalone value to our kit.\nTaking 0 adds 101 weight to our load.\nTaking 1 adds 100 weight to our load.\nTaking 2 adds 102 weight to our load.\nTaking 3 adds 101 weight to our load.\nTaking 4 adds 102 weight to our load.\nTaking 5 adds 105 weight to our load.\nTaking 6 adds 103 weight to our load.\nTaking 7 adds 104 weight to our load.\nTaking 8 adds 100 weight to our load.\nTaking 9 adds 102 weight to our load.\nTaking 10 adds 105 weight to our load.\nTaking 11 adds 100 weight to our load.\nTaking 12 adds 104 weight to our load.\nTaking 13 adds 102 weight to our load.\nTaking 14 adds 102 weight to our load.\nTaking 15 adds 101 weight to our load.\nBringing 0 with 1 yields an extra 101 creative bonus when both are packed.\nBringing 0 with 2 yields an extra 101 creative bonus when both are packed.\nBringing 0 with 3 yields an extra 101 creative bonus when both are packed.\nBringing 0 with 4 yields an extra 100 creative bonus when both are packed.\nBringing 0 with 5 yields an extra 100 creative bonus when both are packed.\nBringing 0 with 6 yields an extra 100 creative bonus when both are packed.\nBringing 0 with 7 yields an extra 100 creative bonus when both are packed.\nBringing 0 with 8 yields an extra 101 creative bonus when both are packed.\nBringing 0 with 9 yields an extra 101 creative bonus when both are packed.\nBringing 0 with 10 yields an extra 102 creative bonus when both are packed.\nBringing 0 with 11 yields an extra 101 creative bonus when both are packed.\nBringing 0 with 12 yields an extra 102 creative bonus when both are packed.\nBringing 0 with 13 yields an extra 101 creative bonus when both are packed.\nBringing 0 with 14 yields an extra 104 creative bonus when both are packed.\nBringing 0 with 15 yields an extra 102 creative bonus when both are packed.\nBringing 1 with 2 yields an extra 100 creative bonus when both are packed.\nBringing 1 with 3 yields an extra 100 creative bonus when both are packed.\nBringing 1 with 4 yields an extra 101 creative bonus when both are packed.\nBringing 1 with 5 yields an extra 100 creative bonus when both are packed.\nBringing 1 with 6 yields an extra 100 creative bonus when both are packed.\nBringing 1 with 7 yields an extra 100 creative bonus when both are packed.\nBringing 1 with 8 yields an extra 100 creative bonus when both are packed.\nBringing 1 with 9 yields an extra 100 creative bonus when both are packed.\nBringing 1 with 10 yields an extra 103 creative bonus when both are packed.\nBringing 1 with 11 yields an extra 103 creative bonus when both are packed.\nBringing 1 with 12 yields an extra 101 creative bonus when both are packed.\nBringing 1 with 13 yields an extra 103 creative bonus when both are packed.\nBringing 1 with 14 yields an extra 103 creative bonus when both are packed.\nBringing 1 with 15 yields an extra 103 creative bonus when both are packed.\nBringing 2 with 3 yields an extra 102 creative bonus when both are packed.\nBringing 2 with 4 yields an extra 102 creative bonus when both are packed.\nBringing 2 with 5 yields an extra 100 creative bonus when both are packed.\nBringing 2 with 6 yields an extra 102 creative bonus when both are packed.\nBringing 2 with 7 yields an extra 102 creative bonus when both are packed.\nBringing 2 with 8 yields an extra 102 creative bonus when both are packed.\nBringing 2 with 9 yields an extra 103 creative bonus when both are packed.\nBringing 2 with 10 yields an extra 101 creative bonus when both are packed.\nBringing 2 with 11 yields an extra 102 creative bonus when both are packed.\nBringing 2 with 12 yields an extra 102 creative bonus when both are packed.\nBringing 2 with 13 yields an extra 100 creative bonus when both are packed.\nBringing 2 with 14 yields an extra 100 creative bonus when both are packed.\nBringing 2 with 15 yields an extra 102 creative bonus when both are packed.\nBringing 3 with 4 yields an extra 101 creative bonus when both are packed.\nBringing 3 with 5 yields an extra 100 creative bonus when both are packed.\nBringing 3 with 6 yields an extra 102 creative bonus when both are packed.\nBringing 3 with 7 yields an extra 102 creative bonus when both are packed.\nBringing 3 with 8 yields an extra 101 creative bonus when both are packed.\nBringing 3 with 9 yields an extra 100 creative bonus when both are packed.\nBringing 3 with 10 yields an extra 100 creative bonus when both are packed.\nBringing 3 with 11 yields an extra 100 creative bonus when both are packed.\nBringing 3 with 12 yields an extra 101 creative bonus when both are packed.\nBringing 3 with 13 yields an extra 100 creative bonus when both are packed.\nBringing 3 with 14 yields an extra 100 creative bonus when both are packed.\nBringing 3 with 15 yields an extra 101 creative bonus when both are packed.\nBringing 4 with 5 yields an extra 102 creative bonus when both are packed.\nBringing 4 with 6 yields an extra 100 creative bonus when both are packed.\nBringing 4 with 7 yields an extra 102 creative bonus when both are packed.\nBringing 4 with 8 yields an extra 100 creative bonus when both are packed.\nBringing 4 with 9 yields an extra 100 creative bonus when both are packed.\nBringing 4 with 10 yields an extra 101 creative bonus when both are packed.\nBringing 4 with 11 yields an extra 101 creative bonus when both are packed.\nBringing 4 with 12 yields an extra 101 creative bonus when both are packed.\nBringing 4 with 13 yields an extra 100 creative bonus when both are packed.\nBringing 4 with 14 yields an extra 101 creative bonus when both are packed.\nBringing 4 with 15 yields an extra 101 creative bonus when both are packed.\nBringing 5 with 6 yields an extra 104 creative bonus when both are packed.\nBringing 5 with 7 yields an extra 104 creative bonus when both are packed.\nBringing 5 with 8 yields an extra 100 creative bonus when both are packed.\nBringing 5 with 9 yields an extra 100 creative bonus when both are packed.\nBringing 5 with 10 yields an extra 100 creative bonus when both are packed.\nBringing 5 with 11 yields an extra 100 creative bonus when both are packed.\nBringing 5 with 12 yields an extra 100 creative bonus when both are packed.\nBringing 5 with 13 yields an extra 100 creative bonus when both are packed.\nBringing 5 with 14 yields an extra 100 creative bonus when both are packed.\nBringing 5 with 15 yields an extra 100 creative bonus when both are packed.\nBringing 6 with 7 yields an extra 103 creative bonus when both are packed.\nBringing 6 with 8 yields an extra 104 creative bonus when both are packed.\nBringing 6 with 9 yields an extra 102 creative bonus when both are packed.\nBringing 6 with 10 yields an extra 102 creative bonus when both are packed.\nBringing 6 with 11 yields an extra 102 creative bonus when both are packed.\nBringing 6 with 12 yields an extra 103 creative bonus when both are packed.\nBringing 6 with 13 yields an extra 102 creative bonus when both are packed.\nBringing 6 with 14 yields an extra 104 creative bonus when both are packed.\nBringing 6 with 15 yields an extra 104 creative bonus when both are packed.\nBringing 7 with 8 yields an extra 102 creative bonus when both are packed.\nBringing 7 with 9 yields an extra 101 creative bonus when both are packed.\nBringing 7 with 10 yields an extra 101 creative bonus when both are packed.\nBringing 7 with 11 yields an extra 101 creative bonus when both are packed.\nBringing 7 with 12 yields an extra 102 creative bonus when both are packed.\nBringing 7 with 13 yields an extra 101 creative bonus when both are packed.\nBringing 7 with 14 yields an extra 102 creative bonus when both are packed.\nBringing 7 with 15 yields an extra 100 creative bonus when both are packed.\nBringing 8 with 9 yields an extra 102 creative bonus when both are packed.\nBringing 8 with 10 yields an extra 103 creative bonus when both are packed.\nBringing 8 with 11 yields an extra 101 creative bonus when both are packed.\nBringing 8 with 12 yields an extra 101 creative bonus when both are packed.\nBringing 8 with 13 yields an extra 102 creative bonus when both are packed.\nBringing 8 with 14 yields an extra 102 creative bonus when both are packed.\nBringing 8 with 15 yields an extra 103 creative bonus when both are packed.\nBringing 9 with 10 yields an extra 102 creative bonus when both are packed.\nBringing 9 with 11 yields an extra 102 creative bonus when both are packed.\nBringing 9 with 12 yields an extra 101 creative bonus when both are packed.\nBringing 9 with 13 yields an extra 102 creative bonus when both are packed.\nBringing 9 with 14 yields an extra 102 creative bonus when both are packed.\nBringing 9 with 15 yields an extra 100 creative bonus when both are packed.\nBringing 10 with 11 yields an extra 102 creative bonus when both are packed.\nBringing 10 with 12 yields an extra 104 creative bonus when both are packed.\nBringing 10 with 13 yields an extra 102 creative bonus when both are packed.\nBringing 10 with 14 yields an extra 102 creative bonus when both are packed.\nBringing 10 with 15 yields an extra 103 creative bonus when both are packed.\nBringing 11 with 12 yields an extra 104 creative bonus when both are packed.\nBringing 11 with 13 yields an extra 102 creative bonus when both are packed.\nBringing 11 with 14 yields an extra 103 creative bonus when both are packed.\nBringing 11 with 15 yields an extra 101 creative bonus when both are packed.\nBringing 12 with 13 yields an extra 102 creative bonus when both are packed.\nBringing 12 with 14 yields an extra 103 creative bonus when both are packed.\nBringing 12 with 15 yields an extra 102 creative bonus when both are packed.\nBringing 13 with 14 yields an extra 102 creative bonus when both are packed.\nBringing 13 with 15 yields an extra 102 creative bonus when both are packed.\nLet’s pack to maximize our total value while staying within the 876 limit.\n\nAlso, when you send back your pick, please use this simple JSON layout so it's easy to parse which kit bits you're bringing:\n\n{\n \"solution\": [, , ...]\n}\n\nThe \"solution\" array should just list the item identifiers you want to pack — like ticking off the pieces you'll bring in your travel kit. It's just a sketch of the expected shape, not the actual answer itself.\n\nPlease use the identifiers exactly as they appear in the instance input — don't rename them or invent new labels. \n- 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”.\"", "instance": { "linear_coeffs": [ 104, 103, 105, 103, 100, 105, 102, 103, 103, 104, 103, 102, 102, 102, 103, 101 ], "quadratic_coeffs": [ [ 101, 101, 101, 101, 100, 100, 100, 100, 101, 101, 102, 101, 102, 101, 104, 102 ], [ 0, 102, 100, 100, 101, 100, 100, 100, 100, 100, 103, 103, 101, 103, 103, 103 ], [ 0, 0, 103, 102, 102, 100, 102, 102, 102, 103, 101, 102, 102, 100, 100, 102 ], [ 0, 0, 0, 101, 101, 100, 102, 102, 101, 100, 100, 100, 101, 100, 100, 101 ], [ 0, 0, 0, 0, 102, 102, 100, 102, 100, 100, 101, 101, 101, 100, 101, 101 ], [ 0, 0, 0, 0, 0, 104, 104, 104, 100, 100, 100, 100, 100, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 103, 103, 104, 102, 102, 102, 103, 102, 104, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 102, 102, 101, 101, 101, 102, 101, 102, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 103, 101, 101, 102, 102, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 102, 102, 101, 102, 102, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 102, 104, 102, 102, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 104, 102, 103, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 103, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 102, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 101, 100, 102, 101, 102, 105, 103, 104, 100, 102, 105, 100, 104, 102, 102, 101 ], "capacity": 876, "solution": [ 0, 1, 4, 6, 8, 10, 12, 14 ], "obj": 3669.0, "problem_type": "QKP" }, "solution": [ 0, 1, 4, 6, 8, 10, 12, 14 ], "obj": 3669.0, "instance_variant": { "problem_type": "QKP", "num_items": 16, "capacity": 876, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 104 }, { "item_id": 1, "linear_profit": 103 }, { "item_id": 2, "linear_profit": 105 }, { "item_id": 3, "linear_profit": 103 }, { "item_id": 4, "linear_profit": 100 }, { "item_id": 5, "linear_profit": 105 }, { "item_id": 6, "linear_profit": 102 }, { "item_id": 7, "linear_profit": 103 }, { "item_id": 8, "linear_profit": 103 }, { "item_id": 9, "linear_profit": 104 }, { "item_id": 10, "linear_profit": 103 }, { "item_id": 11, "linear_profit": 102 }, { "item_id": 12, "linear_profit": 102 }, { "item_id": 13, "linear_profit": 102 }, { "item_id": 14, "linear_profit": 103 }, { "item_id": 15, "linear_profit": 101 } ], "weight_pairs": [ { "item_id": 0, "weight": 101 }, { "item_id": 1, "weight": 100 }, { "item_id": 2, "weight": 102 }, { "item_id": 3, "weight": 101 }, { "item_id": 4, "weight": 102 }, { "item_id": 5, "weight": 105 }, { "item_id": 6, "weight": 103 }, { "item_id": 7, "weight": 104 }, { "item_id": 8, "weight": 100 }, { "item_id": 9, "weight": 102 }, { "item_id": 10, "weight": 105 }, { "item_id": 11, "weight": 100 }, { "item_id": 12, "weight": 104 }, { "item_id": 13, "weight": 102 }, { "item_id": 14, "weight": 102 }, { "item_id": 15, "weight": 101 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 104 }, { "item_i_id": 0, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 102 } ] }, "solution_variant": [ 0, 1, 4, 6, 8, 10, 12, 14 ], "context_index": 32, "input_format": "nl", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Around the neighborhood a landscaper is planning a compact front yard and sorting through which plants to use. Each shrub or tree takes up a certain area and brings a base curb-appeal score, and certain pairs have little synergy that adds to the overall look if both are planted. The choice is which plants to place so the total area stays within the plot’s limit (each plant chosen once), and the yard’s total curb appeal comes from adding each chosen plant’s own appeal plus any extra points for every planted pair that has synergy. The concrete list of plants and their stats is provided below.\n\nThey are considering 19 plants (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18) and must keep the total planted area within 4845.\n\n| plant_id | base_appeal |\n|---|---|\n| 0 | 694 |\n| 1 | 248 |\n| 2 | 351 |\n| 3 | 737 |\n| 4 | 776 |\n| 5 | 560 |\n| 6 | 940 |\n| 7 | 484 |\n| 8 | 936 |\n| 9 | 844 |\n| 10 | 658 |\n| 11 | 231 |\n| 12 | 880 |\n| 13 | 625 |\n| 14 | 421 |\n| 15 | 206 |\n| 16 | 691 |\n| 17 | 636 |\n| 18 | 818 |\n\n| plant_id | area_required |\n|---|---|\n| 0 | 604 |\n| 1 | 158 |\n| 2 | 261 |\n| 3 | 647 |\n| 4 | 686 |\n| 5 | 470 |\n| 6 | 850 |\n| 7 | 394 |\n| 8 | 846 |\n| 9 | 754 |\n| 10 | 568 |\n| 11 | 141 |\n| 12 | 790 |\n| 13 | 535 |\n| 14 | 331 |\n| 15 | 116 |\n| 16 | 601 |\n| 17 | 546 |\n| 18 | 728 |\n\n| plant_i_id | plant_j_id | pair_synergy_appeal |\n|---|---|---|\n| 0 | 1 | 653 |\n| 0 | 2 | 633 |\n| 0 | 3 | 661 |\n| 0 | 4 | 348 |\n| 0 | 5 | 724 |\n| 0 | 6 | 674 |\n| 0 | 7 | 716 |\n| 0 | 8 | 633 |\n| 0 | 9 | 502 |\n| 0 | 10 | 590 |\n| 0 | 11 | 368 |\n| 0 | 12 | 656 |\n| 0 | 13 | 345 |\n| 0 | 14 | 730 |\n| 0 | 15 | 266 |\n| 0 | 16 | 395 |\n| 0 | 17 | 471 |\n| 0 | 18 | 270 |\n| 1 | 2 | 178 |\n| 1 | 3 | 178 |\n| 1 | 4 | 370 |\n| 1 | 5 | 148 |\n| 1 | 6 | 228 |\n| 1 | 7 | 267 |\n| 1 | 8 | 299 |\n| 1 | 9 | 254 |\n| 1 | 10 | 252 |\n| 1 | 11 | 279 |\n| 1 | 12 | 326 |\n| 1 | 13 | 308 |\n| 1 | 14 | 305 |\n| 1 | 15 | 293 |\n| 1 | 16 | 339 |\n| 1 | 17 | 739 |\n| 1 | 18 | 523 |\n| 2 | 3 | 191 |\n| 2 | 4 | 471 |\n| 2 | 5 | 237 |\n| 2 | 6 | 344 |\n| 2 | 7 | 330 |\n| 2 | 8 | 318 |\n| 2 | 9 | 471 |\n| 2 | 10 | 454 |\n| 2 | 11 | 398 |\n| 2 | 12 | 326 |\n| 2 | 13 | 175 |\n| 2 | 14 | 348 |\n| 2 | 15 | 259 |\n| 2 | 16 | 309 |\n| 2 | 17 | 329 |\n| 2 | 18 | 636 |\n| 3 | 4 | 574 |\n| 3 | 5 | 741 |\n| 3 | 6 | 384 |\n| 3 | 7 | 679 |\n| 3 | 8 | 418 |\n| 3 | 9 | 513 |\n| 3 | 10 | 588 |\n| 3 | 11 | 603 |\n| 3 | 12 | 276 |\n| 3 | 13 | 309 |\n| 3 | 14 | 763 |\n| 3 | 15 | 666 |\n| 3 | 16 | 548 |\n| 3 | 17 | 763 |\n| 3 | 18 | 535 |\n| 4 | 5 | 311 |\n| 4 | 6 | 620 |\n| 4 | 7 | 679 |\n| 4 | 8 | 691 |\n| 4 | 9 | 697 |\n| 4 | 10 | 531 |\n| 4 | 11 | 368 |\n| 4 | 12 | 612 |\n| 4 | 13 | 632 |\n| 4 | 14 | 551 |\n| 4 | 15 | 536 |\n| 4 | 16 | 394 |\n| 4 | 17 | 558 |\n| 4 | 18 | 427 |\n| 5 | 6 | 534 |\n| 5 | 7 | 356 |\n| 5 | 8 | 437 |\n| 5 | 9 | 273 |\n| 5 | 10 | 394 |\n| 5 | 11 | 531 |\n| 5 | 12 | 466 |\n| 5 | 13 | 692 |\n| 5 | 14 | 673 |\n| 5 | 15 | 570 |\n| 5 | 16 | 793 |\n| 5 | 17 | 556 |\n| 5 | 18 | 793 |\n| 6 | 7 | 530 |\n| 6 | 8 | 314 |\n| 6 | 9 | 691 |\n| 6 | 10 | 681 |\n| 6 | 11 | 706 |\n| 6 | 12 | 427 |\n| 6 | 13 | 430 |\n| 6 | 14 | 413 |\n| 6 | 15 | 220 |\n| 6 | 16 | 362 |\n| 6 | 17 | 388 |\n| 6 | 18 | 295 |\n| 7 | 8 | 279 |\n| 7 | 9 | 589 |\n| 7 | 10 | 319 |\n| 7 | 11 | 518 |\n| 7 | 12 | 527 |\n| 7 | 13 | 373 |\n| 7 | 14 | 609 |\n| 7 | 15 | 641 |\n| 7 | 16 | 659 |\n| 7 | 17 | 279 |\n| 7 | 18 | 671 |\n| 8 | 9 | 315 |\n| 8 | 10 | 357 |\n| 8 | 11 | 610 |\n| 8 | 12 | 423 |\n| 8 | 13 | 543 |\n| 8 | 14 | 553 |\n| 8 | 15 | 558 |\n| 8 | 16 | 237 |\n| 8 | 17 | 568 |\n| 8 | 18 | 294 |\n| 9 | 10 | 526 |\n| 9 | 11 | 371 |\n| 9 | 12 | 216 |\n| 9 | 13 | 484 |\n| 9 | 14 | 366 |\n| 9 | 15 | 205 |\n| 9 | 16 | 493 |\n| 9 | 17 | 256 |\n| 9 | 18 | 197 |\n| 10 | 11 | 306 |\n| 10 | 12 | 546 |\n| 10 | 13 | 287 |\n| 10 | 14 | 607 |\n| 10 | 15 | 222 |\n| 10 | 16 | 329 |\n| 10 | 17 | 392 |\n| 10 | 18 | 240 |\n| 11 | 12 | 437 |\n| 11 | 13 | 460 |\n| 11 | 14 | 573 |\n| 11 | 15 | 479 |\n| 11 | 16 | 474 |\n| 11 | 17 | 330 |\n| 11 | 18 | 252 |\n| 12 | 13 | 399 |\n| 12 | 14 | 301 |\n| 12 | 15 | 169 |\n| 12 | 16 | 407 |\n| 12 | 17 | 211 |\n| 12 | 18 | 162 |\n| 13 | 14 | 132 |\n| 13 | 15 | 206 |\n| 13 | 16 | 395 |\n| 13 | 17 | 286 |\n| 13 | 18 | 163 |\n| 14 | 15 | 172 |\n| 14 | 16 | 595 |\n| 14 | 17 | 573 |\n| 14 | 18 | 593 |\n| 15 | 16 | 293 |\n| 15 | 17 | 503 |\n| 15 | 18 | 287 |\n\nThe landscaper will select from the 19 options to maximize total curb appeal while staying within 4845.\n\nOh, and when you're ready to give the final pick, a little JSON snippet like the one below is handy — just a relaxed, predictable shape so whoever reads it knows where to look.\n\n{\n \"solution\": [, , ...]\n}\n\nThink of \"solution\" as the list of plant IDs you decide to put in the yard. The placeholders inside the brackets stand in for the exact plant identifiers from the instance input; this block is just a sketch of the expected shape, not the actual answer.\n\nPlease make sure to use the identifiers exactly as they appear in the instance input — don't rename them or add new labels. \n\nFor 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”.", "instance": { "linear_coeffs": [ 694, 248, 351, 737, 776, 560, 940, 484, 936, 844, 658, 231, 880, 625, 421, 206, 691, 636, 818 ], "quadratic_coeffs": [ [ 482, 653, 633, 661, 348, 724, 674, 716, 633, 502, 590, 368, 656, 345, 730, 266, 395, 471, 270 ], [ 0, 192, 178, 178, 370, 148, 228, 267, 299, 254, 252, 279, 326, 308, 305, 293, 339, 739, 523 ], [ 0, 0, 343, 191, 471, 237, 344, 330, 318, 471, 454, 398, 326, 175, 348, 259, 309, 329, 636 ], [ 0, 0, 0, 501, 574, 741, 384, 679, 418, 513, 588, 603, 276, 309, 763, 666, 548, 763, 535 ], [ 0, 0, 0, 0, 763, 311, 620, 679, 691, 697, 531, 368, 612, 632, 551, 536, 394, 558, 427 ], [ 0, 0, 0, 0, 0, 520, 534, 356, 437, 273, 394, 531, 466, 692, 673, 570, 793, 556, 793 ], [ 0, 0, 0, 0, 0, 0, 329, 530, 314, 691, 681, 706, 427, 430, 413, 220, 362, 388, 295 ], [ 0, 0, 0, 0, 0, 0, 0, 264, 279, 589, 319, 518, 527, 373, 609, 641, 659, 279, 671 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 864, 315, 357, 610, 423, 543, 553, 558, 237, 568, 294 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 591, 526, 371, 216, 484, 366, 205, 493, 256, 197 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 491, 306, 546, 287, 607, 222, 329, 392, 240 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 483, 437, 460, 573, 479, 474, 330, 252 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 558, 399, 301, 169, 407, 211, 162 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 132, 206, 395, 286, 163 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 226, 172, 595, 573, 593 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 253, 293, 503, 287 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 604, 158, 261, 647, 686, 470, 850, 394, 846, 754, 568, 141, 790, 535, 331, 116, 601, 546, 728 ], "capacity": 4845, "solution": [ 0, 1, 2, 3, 5, 7, 10, 11, 14, 15, 16, 17 ], "obj": 36054.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 5, 7, 10, 11, 14, 15, 16, 17 ], "obj": 36054.0, "instance_variant": { "problem_type": "QKP", "num_items": 19, "capacity": 4845, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 694 }, { "item_id": 1, "linear_profit": 248 }, { "item_id": 2, "linear_profit": 351 }, { "item_id": 3, "linear_profit": 737 }, { "item_id": 4, "linear_profit": 776 }, { "item_id": 5, "linear_profit": 560 }, { "item_id": 6, "linear_profit": 940 }, { "item_id": 7, "linear_profit": 484 }, { "item_id": 8, "linear_profit": 936 }, { "item_id": 9, "linear_profit": 844 }, { "item_id": 10, "linear_profit": 658 }, { "item_id": 11, "linear_profit": 231 }, { "item_id": 12, "linear_profit": 880 }, { "item_id": 13, "linear_profit": 625 }, { "item_id": 14, "linear_profit": 421 }, { "item_id": 15, "linear_profit": 206 }, { "item_id": 16, "linear_profit": 691 }, { "item_id": 17, "linear_profit": 636 }, { "item_id": 18, "linear_profit": 818 } ], "weight_pairs": [ { "item_id": 0, "weight": 604 }, { "item_id": 1, "weight": 158 }, { "item_id": 2, "weight": 261 }, { "item_id": 3, "weight": 647 }, { "item_id": 4, "weight": 686 }, { "item_id": 5, "weight": 470 }, { "item_id": 6, "weight": 850 }, { "item_id": 7, "weight": 394 }, { "item_id": 8, "weight": 846 }, { "item_id": 9, "weight": 754 }, { "item_id": 10, "weight": 568 }, { "item_id": 11, "weight": 141 }, { "item_id": 12, "weight": 790 }, { "item_id": 13, "weight": 535 }, { "item_id": 14, "weight": 331 }, { "item_id": 15, "weight": 116 }, { "item_id": 16, "weight": 601 }, { "item_id": 17, "weight": 546 }, { "item_id": 18, "weight": 728 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 482 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 653 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 633 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 661 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 348 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 724 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 674 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 716 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 633 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 502 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 590 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 368 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 656 }, { "item_i_id": 0, "item_j_id": 13, "quadratic_profit": 345 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 730 }, { "item_i_id": 0, "item_j_id": 15, "quadratic_profit": 266 }, { "item_i_id": 0, "item_j_id": 16, "quadratic_profit": 395 }, { "item_i_id": 0, "item_j_id": 17, "quadratic_profit": 471 }, { "item_i_id": 0, "item_j_id": 18, "quadratic_profit": 270 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 192 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 178 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 178 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 370 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 148 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 228 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 267 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 299 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 254 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 252 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 279 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 326 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 308 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 305 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 293 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 339 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 739 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 523 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 343 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 191 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 471 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 237 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 344 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 330 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 318 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 471 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 454 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 398 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 326 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 175 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 348 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 259 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 309 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 329 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 636 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 501 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 574 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 741 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 384 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 679 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 418 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 513 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 588 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 603 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 276 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 309 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 763 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 666 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 548 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 763 }, { "item_i_id": 3, "item_j_id": 18, "quadratic_profit": 535 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 763 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 311 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 620 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 679 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 691 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 697 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 531 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 368 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 612 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 632 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 551 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 536 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 394 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 558 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 427 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 520 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 534 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 356 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 437 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 273 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 394 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 531 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 466 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 692 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 673 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 570 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 793 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 556 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 793 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 329 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 530 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 314 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 691 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 681 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 706 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 427 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 430 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 413 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 220 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 362 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 388 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 295 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 264 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 279 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 589 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 319 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 518 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 527 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 373 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 609 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 641 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 659 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 279 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 671 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 864 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 315 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 357 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 610 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 423 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 543 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 553 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 558 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 237 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 568 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 294 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 591 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 526 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 371 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 216 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 484 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 366 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 205 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 493 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 256 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 197 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 491 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 306 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 546 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 287 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 607 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 222 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 329 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 392 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 240 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 483 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 437 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 460 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 573 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 479 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 474 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 330 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 252 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 558 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 399 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 301 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 169 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 407 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 211 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 162 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 173 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 132 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 206 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 395 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 286 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 163 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 226 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 172 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 595 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 573 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 593 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 253 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 293 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 503 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 287 } ] }, "solution_variant": [ 0, 1, 2, 3, 5, 7, 10, 11, 14, 15, 16, 17 ], "context_index": 33, "input_format": "markdown_table", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Recently a small dinner was planned and the host had to choose appetizers carefully. Every choice uses a bit of pantry/fridge space and gives a base amount of satisfaction, and a few particular combinations add extra joy when they’re paired. The challenge is to select which appetizers will fit into the available storage space without repeating items, and to get the highest possible total happiness, counted as the sum of the base satisfactions plus any bonuses for pairs that are both selected. The specific dishes and their space/satisfaction/pairing numbers are shown below.\n\n# num_appetizers=24\n# storage_capacity=78227\n# appetizer_ids=A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X\n\nappetizer_id,base_satisfaction\nA,6419\nB,6692\nC,6123\nD,1432\nE,6916\nF,5357\nG,6413\nH,2766\nI,2707\nJ,3896\nK,2774\nL,3552\nM,1107\nN,2613\nO,2572\nP,911\nQ,6983\nR,2413\nS,2388\nT,6800\nU,3568\nV,2642\nW,6948\nX,5802\n\nappetizer_id,storage_space\nA,5769\nB,6042\nC,5473\nD,782\nE,6266\nF,4707\nG,5763\nH,2116\nI,2057\nJ,3246\nK,2124\nL,2902\nM,457\nN,1963\nO,1922\nP,261\nQ,6333\nR,1763\nS,1738\nT,6150\nU,2918\nV,1992\nW,6298\nX,5152\n\nappetizer_i_id,appetizer_j_id,pairing_bonus\nA,B,3911\nA,C,4946\nA,D,3051\nA,E,2002\nA,G,2116\nA,H,5769\nA,I,1122\nA,J,4889\nA,K,4985\nA,L,5769\nA,M,1080\nA,N,2373\nA,O,5769\nA,P,4599\nA,Q,3872\nA,R,1999\nA,S,2080\nA,T,5267\nA,U,576\nA,V,1577\nB,D,3729\nB,E,2283\nB,F,5018\nB,G,320\nB,H,4149\nB,I,381\nB,J,1811\nB,K,1668\nB,M,6042\nB,N,2550\nB,O,3779\nB,P,1859\nB,Q,2387\nB,R,4888\nB,S,5152\nB,T,1727\nB,U,1727\nB,W,1727\nB,X,1727\nC,E,575\nC,F,1863\nC,G,2737\nC,H,1669\nC,I,2061\nC,K,5473\nC,L,1741\nC,N,2251\nC,O,3971\nC,P,5151\nC,Q,2425\nC,R,1738\nC,S,5276\nC,T,782\nC,U,2913\nC,V,2984\nC,W,2666\nC,X,4691\nD,J,782\nD,L,782\nD,M,261\nD,N,782\nD,O,782\nD,P,782\nD,Q,782\nD,R,782\nD,S,4769\nD,T,4769\nD,U,419\nD,V,2102\nD,W,575\nE,F,2057\nE,G,5456\nE,I,2229\nE,J,2498\nE,K,2085\nE,M,3677\nE,N,4370\nE,P,3444\nE,Q,5152\nE,S,3116\nE,T,3116\nE,U,3116\nE,V,3116\nE,X,1049\nF,G,2704\nF,H,3797\nF,I,4707\nF,J,4707\nF,K,1261\nF,L,3971\nF,N,4212\nF,P,3754\nF,Q,3261\nF,R,3261\nF,T,3261\nF,U,2974\nF,V,2124\nF,W,381\nF,X,3261\nG,H,457\nG,I,1659\nG,K,3677\nG,M,1497\nG,N,5763\nG,O,1763\nG,P,2317\nG,Q,3008\nG,R,3008\nG,T,3008\nG,U,3008\nG,V,2383\nG,X,3008\nH,I,1261\nH,K,2116\nH,O,1999\nH,P,2116\nH,Q,951\nH,R,951\nH,S,951\nH,U,951\nH,V,951\nH,W,177\nH,X,951\nI,J,2057\nI,K,2057\nI,L,2057\nI,M,985\nI,O,2057\nI,P,2057\nI,R,734\nI,S,3820\nI,T,961\nI,U,172\nI,V,3971\nI,X,186\nJ,K,455\nJ,L,3246\nJ,M,3246\nJ,O,3246\nJ,P,1765\nJ,Q,1261\nJ,R,261\nJ,S,1765\nJ,T,1765\nJ,U,1765\nJ,W,1093\nJ,X,1765\nK,M,2124\nK,N,1577\nK,P,2381\nK,T,2381\nK,X,2381\nL,M,576\nL,N,1617\nL,Q,3797\nL,R,3797\nL,V,2425\nL,W,1738\nL,X,3797\nM,P,177\nM,Q,139\nM,V,1285\nM,W,793\nM,X,1442\nN,P,1571\nN,Q,4773\nN,R,279\nN,U,3475\nN,V,4773\nN,W,2207\nN,X,1497\nO,P,1763\nO,Q,3827\nO,S,3827\nO,T,3827\nO,U,3163\nO,V,2333\nO,W,2440\nO,X,3827\nP,Q,3156\nP,R,1497\nP,S,2027\nP,T,3156\nP,U,985\nP,X,3156\nQ,R,985\nQ,T,985\nQ,U,139\nQ,V,2169\nQ,W,3872\nQ,X,503\nR,S,1999\nR,T,1372\nR,U,1999\nR,V,1999\nR,X,1999\n\nIf you want to send me your pick, just drop it in this simple JSON shape so it's easy to read:\n\n{\n \"solution\": [, , ...]\n}\n\nHere \"solution\" is just the list of appetizer IDs you’re choosing for the spread — one entry per selected dish. Think of it like filling out a short form: put each dish’s identifier in the array, and that’s your selection. This block is only a sketch of the shape I expect, not the actual answer.\n\nPlease make sure to use the identifiers exactly as they appear in the instance input — don’t rename them or invent new labels. \n- \"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”.\"", "instance": { "linear_coeffs": [ 6419, 6692, 6123, 1432, 6916, 5357, 6413, 2766, 2707, 3896, 2774, 3552, 1107, 2613, 2572, 911, 6983, 2413, 2388, 6800, 3568, 2642, 6948, 5802 ], "quadratic_coeffs": [ [ 0, 3911, 4946, 3051, 2002, 0, 2116, 5769, 1122, 4889, 4985, 5769, 1080, 2373, 5769, 4599, 3872, 1999, 2080, 5267, 576, 1577, 0, 0 ], [ 0, 0, 0, 3729, 2283, 5018, 320, 4149, 381, 1811, 1668, 0, 6042, 2550, 3779, 1859, 2387, 4888, 5152, 1727, 1727, 0, 1727, 1727 ], [ 0, 0, 4691, 0, 575, 1863, 2737, 1669, 2061, 0, 5473, 1741, 0, 2251, 3971, 5151, 2425, 1738, 5276, 782, 2913, 2984, 2666, 4691 ], [ 0, 0, 0, 782, 0, 0, 0, 0, 0, 782, 0, 782, 261, 782, 782, 782, 782, 782, 4769, 4769, 419, 2102, 575, 0 ], [ 0, 0, 0, 0, 0, 2057, 5456, 0, 2229, 2498, 2085, 0, 3677, 4370, 0, 3444, 5152, 0, 3116, 3116, 3116, 3116, 0, 1049 ], [ 0, 0, 0, 0, 0, 4150, 2704, 3797, 4707, 4707, 1261, 3971, 0, 4212, 0, 3754, 3261, 3261, 0, 3261, 2974, 2124, 381, 3261 ], [ 0, 0, 0, 0, 0, 0, 5763, 457, 1659, 0, 3677, 0, 1497, 5763, 1763, 2317, 3008, 3008, 0, 3008, 3008, 2383, 0, 3008 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1261, 0, 2116, 0, 0, 0, 1999, 2116, 951, 951, 951, 0, 951, 951, 177, 951 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2057, 2057, 2057, 985, 0, 2057, 2057, 0, 734, 3820, 961, 172, 3971, 0, 186 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 455, 3246, 3246, 0, 3246, 1765, 1261, 261, 1765, 1765, 1765, 0, 1093, 1765 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2124, 0, 2124, 1577, 0, 2381, 0, 0, 0, 2381, 0, 0, 0, 2381 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 576, 1617, 0, 0, 3797, 3797, 0, 0, 0, 2425, 1738, 3797 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 0, 177, 139, 0, 0, 0, 0, 1285, 793, 1442 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1571, 4773, 279, 0, 0, 3475, 4773, 2207, 1497 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2162, 1763, 3827, 0, 3827, 3827, 3163, 2333, 2440, 3827 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4213, 3156, 1497, 2027, 3156, 985, 0, 0, 3156 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 985, 985, 0, 985, 139, 2169, 3872, 503 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1629, 1999, 1372, 1999, 1999, 0, 1999 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 5769, 6042, 5473, 782, 6266, 4707, 5763, 2116, 2057, 3246, 2124, 2902, 457, 1963, 1922, 261, 6333, 1763, 1738, 6150, 2918, 1992, 6298, 5152 ], "capacity": 78227, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23 ], "obj": 555991.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 23 ], "obj": 555991.0, "instance_variant": { "problem_type": "QKP", "num_items": 24, "capacity": 78227, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 6419 }, { "item_id": "B", "linear_profit": 6692 }, { "item_id": "C", "linear_profit": 6123 }, { "item_id": "D", "linear_profit": 1432 }, { "item_id": "E", "linear_profit": 6916 }, { "item_id": "F", "linear_profit": 5357 }, { "item_id": "G", "linear_profit": 6413 }, { "item_id": "H", "linear_profit": 2766 }, { "item_id": "I", "linear_profit": 2707 }, { "item_id": "J", "linear_profit": 3896 }, { "item_id": "K", "linear_profit": 2774 }, { "item_id": "L", "linear_profit": 3552 }, { "item_id": "M", "linear_profit": 1107 }, { "item_id": "N", "linear_profit": 2613 }, { "item_id": "O", "linear_profit": 2572 }, { "item_id": "P", "linear_profit": 911 }, { "item_id": "Q", "linear_profit": 6983 }, { "item_id": "R", "linear_profit": 2413 }, { "item_id": "S", "linear_profit": 2388 }, { "item_id": "T", "linear_profit": 6800 }, { "item_id": "U", "linear_profit": 3568 }, { "item_id": "V", "linear_profit": 2642 }, { "item_id": "W", "linear_profit": 6948 }, { "item_id": "X", "linear_profit": 5802 } ], "weight_pairs": [ { "item_id": "A", "weight": 5769 }, { "item_id": "B", "weight": 6042 }, { "item_id": "C", "weight": 5473 }, { "item_id": "D", "weight": 782 }, { "item_id": "E", "weight": 6266 }, { "item_id": "F", "weight": 4707 }, { "item_id": "G", "weight": 5763 }, { "item_id": "H", "weight": 2116 }, { "item_id": "I", "weight": 2057 }, { "item_id": "J", "weight": 3246 }, { "item_id": "K", "weight": 2124 }, { "item_id": "L", "weight": 2902 }, { "item_id": "M", "weight": 457 }, { "item_id": "N", "weight": 1963 }, { "item_id": "O", "weight": 1922 }, { "item_id": "P", "weight": 261 }, { "item_id": "Q", "weight": 6333 }, { "item_id": "R", "weight": 1763 }, { "item_id": "S", "weight": 1738 }, { "item_id": "T", "weight": 6150 }, { "item_id": "U", "weight": 2918 }, { "item_id": "V", "weight": 1992 }, { "item_id": "W", "weight": 6298 }, { "item_id": "X", "weight": 5152 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 3911 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 4946 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 3051 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 2002 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 2116 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 5769 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 1122 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 4889 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 4985 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 5769 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 1080 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 2373 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 5769 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 4599 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 3872 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 1999 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 2080 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 5267 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 576 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 1577 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 3729 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 2283 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 5018 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 320 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 4149 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 381 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 1811 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 1668 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 6042 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 2550 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 3779 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 1859 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 2387 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 4888 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 5152 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 1727 }, { "item_i_id": "B", "item_j_id": "U", "quadratic_profit": 1727 }, { "item_i_id": "B", "item_j_id": "W", "quadratic_profit": 1727 }, { "item_i_id": "B", "item_j_id": "X", "quadratic_profit": 1727 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 4691 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 575 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 1863 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 2737 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 1669 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 2061 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 5473 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 1741 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 2251 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 3971 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 5151 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 2425 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 1738 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 5276 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 782 }, { "item_i_id": "C", "item_j_id": "U", "quadratic_profit": 2913 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 2984 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 2666 }, { "item_i_id": "C", "item_j_id": "X", "quadratic_profit": 4691 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 782 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 782 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 782 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 261 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 782 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 782 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 782 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 782 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 782 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 4769 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 4769 }, { "item_i_id": "D", "item_j_id": "U", "quadratic_profit": 419 }, { "item_i_id": "D", "item_j_id": "V", "quadratic_profit": 2102 }, { "item_i_id": "D", "item_j_id": "W", "quadratic_profit": 575 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 2057 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 5456 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 2229 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 2498 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 2085 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 3677 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 4370 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 3444 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 5152 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 3116 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 3116 }, { "item_i_id": "E", "item_j_id": "U", "quadratic_profit": 3116 }, { "item_i_id": "E", "item_j_id": "V", "quadratic_profit": 3116 }, { "item_i_id": "E", "item_j_id": "X", "quadratic_profit": 1049 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 4150 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 2704 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 3797 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 4707 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 4707 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 1261 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 3971 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 4212 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 3754 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 3261 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 3261 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 3261 }, { "item_i_id": "F", "item_j_id": "U", "quadratic_profit": 2974 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 2124 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 381 }, { "item_i_id": "F", "item_j_id": "X", "quadratic_profit": 3261 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 5763 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 457 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 1659 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 3677 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 1497 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 5763 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 1763 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 2317 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 3008 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 3008 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 3008 }, { "item_i_id": "G", "item_j_id": "U", "quadratic_profit": 3008 }, { "item_i_id": "G", "item_j_id": "V", "quadratic_profit": 2383 }, { "item_i_id": "G", "item_j_id": "X", "quadratic_profit": 3008 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 1261 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 2116 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 1999 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 2116 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 951 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 951 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 951 }, { "item_i_id": "H", "item_j_id": "U", "quadratic_profit": 951 }, { "item_i_id": "H", "item_j_id": "V", "quadratic_profit": 951 }, { "item_i_id": "H", "item_j_id": "W", "quadratic_profit": 177 }, { "item_i_id": "H", "item_j_id": "X", "quadratic_profit": 951 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 2057 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 2057 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 2057 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 985 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 2057 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 2057 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 734 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 3820 }, { "item_i_id": "I", "item_j_id": "T", "quadratic_profit": 961 }, { "item_i_id": "I", "item_j_id": "U", "quadratic_profit": 172 }, { "item_i_id": "I", "item_j_id": "V", "quadratic_profit": 3971 }, { "item_i_id": "I", "item_j_id": "X", "quadratic_profit": 186 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 455 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 3246 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 3246 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 3246 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 1765 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 1261 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 261 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 1765 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 1765 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 1765 }, { "item_i_id": "J", "item_j_id": "W", "quadratic_profit": 1093 }, { "item_i_id": "J", "item_j_id": "X", "quadratic_profit": 1765 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 2124 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 2124 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 1577 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 2381 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 2381 }, { "item_i_id": "K", "item_j_id": "X", "quadratic_profit": 2381 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 576 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 1617 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 3797 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 3797 }, { "item_i_id": "L", "item_j_id": "V", "quadratic_profit": 2425 }, { "item_i_id": "L", "item_j_id": "W", "quadratic_profit": 1738 }, { "item_i_id": "L", "item_j_id": "X", "quadratic_profit": 3797 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 177 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 177 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 139 }, { "item_i_id": "M", "item_j_id": "V", "quadratic_profit": 1285 }, { "item_i_id": "M", "item_j_id": "W", "quadratic_profit": 793 }, { "item_i_id": "M", "item_j_id": "X", "quadratic_profit": 1442 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 1571 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 4773 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 279 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 3475 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 4773 }, { "item_i_id": "N", "item_j_id": "W", "quadratic_profit": 2207 }, { "item_i_id": "N", "item_j_id": "X", "quadratic_profit": 1497 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 2162 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 1763 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 3827 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 3827 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 3827 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 3163 }, { "item_i_id": "O", "item_j_id": "V", "quadratic_profit": 2333 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 2440 }, { "item_i_id": "O", "item_j_id": "X", "quadratic_profit": 3827 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 4213 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 3156 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 1497 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 2027 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 3156 }, { "item_i_id": "P", "item_j_id": "U", "quadratic_profit": 985 }, { "item_i_id": "P", "item_j_id": "X", "quadratic_profit": 3156 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 985 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 985 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 985 }, { "item_i_id": "Q", "item_j_id": "U", "quadratic_profit": 139 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 2169 }, { "item_i_id": "Q", "item_j_id": "W", "quadratic_profit": 3872 }, { "item_i_id": "Q", "item_j_id": "X", "quadratic_profit": 503 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 1629 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 1999 }, { "item_i_id": "R", "item_j_id": "T", "quadratic_profit": 1372 }, { "item_i_id": "R", "item_j_id": "U", "quadratic_profit": 1999 }, { "item_i_id": "R", "item_j_id": "V", "quadratic_profit": 1999 }, { "item_i_id": "R", "item_j_id": "X", "quadratic_profit": 1999 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "X" ], "context_index": 34, "input_format": "csv", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We’re helping a student prep for back-to-back classes and need to pick which textbooks and materials to carry in one backpack. Every item adds a base study value and has a weight, and certain combinations (like a textbook and its workbook) give an extra perk if both are brought. The trick is to get the highest possible study payoff by adding up the values of the chosen items and including any extra bonuses for compatible pairs, all without exceeding the backpack’s weight capacity and without duplicating items. The concrete details are listed below.\n\nHere are those details for the 24 materials: ids 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, backpack weight limit 4379.\n\n| material_id | base_study_value |\n|---|---|\n| 1 | 153 |\n| 2 | 150 |\n| 3 | 319 |\n| 4 | 286 |\n| 5 | 323 |\n| 6 | 238 |\n| 7 | 255 |\n| 8 | 142 |\n| 9 | 210 |\n| 10 | 246 |\n| 11 | 180 |\n| 12 | 247 |\n| 13 | 316 |\n| 14 | 206 |\n| 15 | 322 |\n| 16 | 201 |\n| 17 | 307 |\n| 18 | 266 |\n| 19 | 234 |\n| 20 | 321 |\n| 21 | 236 |\n| 22 | 140 |\n| 23 | 288 |\n| 24 | 270 |\n\n| material_id | material_weight |\n|---|---|\n| 1 | 123 |\n| 2 | 120 |\n| 3 | 289 |\n| 4 | 256 |\n| 5 | 293 |\n| 6 | 208 |\n| 7 | 225 |\n| 8 | 112 |\n| 9 | 180 |\n| 10 | 216 |\n| 11 | 150 |\n| 12 | 217 |\n| 13 | 286 |\n| 14 | 176 |\n| 15 | 292 |\n| 16 | 171 |\n| 17 | 277 |\n| 18 | 236 |\n| 19 | 204 |\n| 20 | 291 |\n| 21 | 206 |\n| 22 | 110 |\n| 23 | 258 |\n| 24 | 240 |\n\n| material_i_id | material_j_id | pair_study_bonus |\n|---|---|---|\n| 1 | 4 | 220 |\n| 1 | 5 | 198 |\n| 1 | 6 | 119 |\n| 1 | 8 | 212 |\n| 1 | 13 | 298 |\n| 1 | 15 | 158 |\n| 1 | 16 | 290 |\n| 1 | 19 | 191 |\n| 1 | 20 | 255 |\n| 1 | 21 | 175 |\n| 1 | 22 | 125 |\n| 1 | 23 | 245 |\n| 2 | 3 | 152 |\n| 2 | 4 | 278 |\n| 2 | 9 | 129 |\n| 2 | 11 | 298 |\n| 2 | 12 | 105 |\n| 2 | 15 | 201 |\n| 2 | 16 | 245 |\n| 2 | 19 | 201 |\n| 2 | 21 | 145 |\n| 2 | 23 | 119 |\n| 2 | 24 | 174 |\n| 3 | 5 | 113 |\n| 3 | 7 | 178 |\n| 3 | 9 | 234 |\n| 3 | 10 | 173 |\n| 3 | 12 | 149 |\n| 3 | 14 | 220 |\n| 3 | 15 | 132 |\n| 3 | 16 | 272 |\n| 3 | 19 | 234 |\n| 3 | 20 | 199 |\n| 3 | 21 | 206 |\n| 3 | 22 | 118 |\n| 3 | 23 | 209 |\n| 4 | 8 | 260 |\n| 4 | 9 | 262 |\n| 4 | 11 | 298 |\n| 4 | 13 | 164 |\n| 4 | 14 | 152 |\n| 4 | 16 | 148 |\n| 4 | 20 | 105 |\n| 4 | 22 | 194 |\n| 4 | 24 | 247 |\n| 5 | 6 | 231 |\n| 5 | 9 | 294 |\n| 5 | 12 | 121 |\n| 5 | 13 | 192 |\n| 5 | 15 | 169 |\n| 5 | 16 | 179 |\n| 5 | 17 | 238 |\n| 5 | 20 | 220 |\n| 5 | 21 | 124 |\n| 5 | 22 | 284 |\n| 5 | 23 | 224 |\n| 6 | 9 | 141 |\n| 6 | 10 | 169 |\n| 6 | 12 | 191 |\n| 6 | 13 | 236 |\n| 6 | 14 | 150 |\n| 6 | 15 | 228 |\n| 6 | 18 | 171 |\n| 6 | 20 | 241 |\n| 6 | 21 | 117 |\n| 6 | 22 | 220 |\n| 6 | 23 | 289 |\n| 6 | 24 | 139 |\n| 7 | 8 | 175 |\n| 7 | 9 | 269 |\n| 7 | 10 | 249 |\n| 7 | 11 | 158 |\n| 7 | 12 | 202 |\n| 7 | 14 | 175 |\n| 7 | 18 | 266 |\n| 7 | 21 | 285 |\n| 7 | 22 | 242 |\n| 7 | 24 | 106 |\n| 8 | 10 | 225 |\n| 8 | 12 | 238 |\n| 8 | 16 | 204 |\n| 8 | 20 | 138 |\n| 8 | 24 | 193 |\n| 9 | 13 | 244 |\n| 9 | 14 | 124 |\n| 9 | 15 | 232 |\n| 9 | 19 | 238 |\n| 9 | 20 | 248 |\n| 9 | 22 | 227 |\n| 9 | 23 | 176 |\n| 10 | 17 | 201 |\n| 10 | 18 | 104 |\n| 10 | 20 | 207 |\n| 10 | 23 | 226 |\n| 10 | 24 | 171 |\n| 11 | 15 | 258 |\n| 11 | 17 | 134 |\n| 11 | 18 | 264 |\n| 11 | 22 | 172 |\n| 12 | 15 | 150 |\n| 12 | 20 | 135 |\n| 12 | 21 | 135 |\n| 12 | 24 | 203 |\n| 13 | 17 | 212 |\n| 13 | 18 | 150 |\n| 13 | 20 | 130 |\n| 13 | 21 | 164 |\n| 13 | 23 | 141 |\n| 13 | 24 | 155 |\n| 14 | 15 | 199 |\n| 14 | 16 | 275 |\n| 14 | 19 | 119 |\n| 14 | 22 | 211 |\n| 14 | 24 | 257 |\n| 15 | 16 | 296 |\n| 15 | 17 | 242 |\n| 15 | 18 | 239 |\n| 15 | 20 | 114 |\n| 15 | 21 | 265 |\n| 15 | 22 | 261 |\n| 15 | 23 | 174 |\n| 15 | 24 | 299 |\n| 16 | 17 | 211 |\n| 16 | 18 | 274 |\n| 16 | 19 | 116 |\n| 16 | 20 | 178 |\n| 16 | 21 | 166 |\n| 16 | 23 | 118 |\n| 16 | 24 | 279 |\n| 17 | 18 | 106 |\n| 17 | 19 | 108 |\n| 17 | 23 | 149 |\n| 17 | 24 | 246 |\n| 18 | 19 | 119 |\n| 18 | 21 | 218 |\n| 18 | 23 | 228 |\n| 19 | 21 | 126 |\n| 19 | 22 | 257 |\n| 19 | 23 | 210 |\n| 20 | 23 | 133 |\n| 20 | 24 | 104 |\n| 21 | 22 | 274 |\n| 21 | 23 | 114 |\n| 22 | 23 | 297 |\n| 23 | 24 | 223 |\n\nWe'll pack to maximize study payoff while staying within the 4379 limit.\n\nWhen you send your pick, just drop it in a tiny JSON snippet so it's easy to read and check. Something casual like this works:\n\n{\n \"solution\": [, , ...]\n}\n\nThis just means: \"solution\" is the list of items (books/materials) you're planning to bring — put the identifiers for each selected item inside the array. Think of it like filling out a short form: list the exact IDs of the things you want in your backpack. The JSON above is only a sketch of the shape we expect, not the actual answer.\n\nPlease be sure to use the item identifiers exactly as they appear in the instance input — no renaming and no 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”.", "instance": { "linear_coeffs": [ 153, 150, 319, 286, 323, 238, 255, 142, 210, 246, 180, 247, 316, 206, 322, 201, 307, 266, 234, 321, 236, 140, 288, 270 ], "quadratic_coeffs": [ [ 145, 0, 0, 220, 198, 119, 0, 212, 0, 0, 0, 0, 298, 0, 158, 290, 0, 0, 191, 255, 175, 125, 245, 0 ], [ 0, 0, 152, 278, 0, 0, 0, 0, 129, 0, 298, 105, 0, 0, 201, 245, 0, 0, 201, 0, 145, 0, 119, 174 ], [ 0, 0, 201, 0, 113, 0, 178, 0, 234, 173, 0, 149, 0, 220, 132, 272, 0, 0, 234, 199, 206, 118, 209, 0 ], [ 0, 0, 0, 111, 0, 0, 0, 260, 262, 0, 298, 0, 164, 152, 0, 148, 0, 0, 0, 105, 0, 194, 0, 247 ], [ 0, 0, 0, 0, 0, 231, 0, 0, 294, 0, 0, 121, 192, 0, 169, 179, 238, 0, 0, 220, 124, 284, 224, 0 ], [ 0, 0, 0, 0, 0, 257, 0, 0, 141, 169, 0, 191, 236, 150, 228, 0, 0, 171, 0, 241, 117, 220, 289, 139 ], [ 0, 0, 0, 0, 0, 0, 162, 175, 269, 249, 158, 202, 0, 175, 0, 0, 0, 266, 0, 0, 285, 242, 0, 106 ], [ 0, 0, 0, 0, 0, 0, 0, 113, 0, 225, 0, 238, 0, 0, 0, 204, 0, 0, 0, 138, 0, 0, 0, 193 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 244, 124, 232, 0, 0, 0, 238, 248, 0, 227, 176, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 0, 0, 0, 0, 0, 0, 201, 104, 0, 207, 0, 0, 226, 171 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 258, 0, 134, 264, 0, 0, 0, 172, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 225, 0, 0, 150, 0, 0, 0, 0, 135, 135, 0, 0, 203 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212, 150, 0, 130, 164, 0, 141, 155 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 199, 275, 0, 0, 119, 0, 0, 211, 0, 257 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 296, 242, 239, 0, 114, 265, 261, 174, 299 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 274, 116, 178, 166, 0, 118, 279 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 108, 0, 0, 0, 149, 246 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 119, 0, 218, 0, 228, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 0, 126, 257, 210, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 133, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 274, 114, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 297, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 123, 120, 289, 256, 293, 208, 225, 112, 180, 216, 150, 217, 286, 176, 292, 171, 277, 236, 204, 291, 206, 110, 258, 240 ], "capacity": 4379, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23 ], "obj": 28241.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 14, 15, 17, 18, 19, 20, 21, 22, 23 ], "obj": 28241.0, "instance_variant": { "problem_type": "QKP", "num_items": 24, "capacity": 4379, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 153 }, { "item_id": 2, "linear_profit": 150 }, { "item_id": 3, "linear_profit": 319 }, { "item_id": 4, "linear_profit": 286 }, { "item_id": 5, "linear_profit": 323 }, { "item_id": 6, "linear_profit": 238 }, { "item_id": 7, "linear_profit": 255 }, { "item_id": 8, "linear_profit": 142 }, { "item_id": 9, "linear_profit": 210 }, { "item_id": 10, "linear_profit": 246 }, { "item_id": 11, "linear_profit": 180 }, { "item_id": 12, "linear_profit": 247 }, { "item_id": 13, "linear_profit": 316 }, { "item_id": 14, "linear_profit": 206 }, { "item_id": 15, "linear_profit": 322 }, { "item_id": 16, "linear_profit": 201 }, { "item_id": 17, "linear_profit": 307 }, { "item_id": 18, "linear_profit": 266 }, { "item_id": 19, "linear_profit": 234 }, { "item_id": 20, "linear_profit": 321 }, { "item_id": 21, "linear_profit": 236 }, { "item_id": 22, "linear_profit": 140 }, { "item_id": 23, "linear_profit": 288 }, { "item_id": 24, "linear_profit": 270 } ], "weight_pairs": [ { "item_id": 1, "weight": 123 }, { "item_id": 2, "weight": 120 }, { "item_id": 3, "weight": 289 }, { "item_id": 4, "weight": 256 }, { "item_id": 5, "weight": 293 }, { "item_id": 6, "weight": 208 }, { "item_id": 7, "weight": 225 }, { "item_id": 8, "weight": 112 }, { "item_id": 9, "weight": 180 }, { "item_id": 10, "weight": 216 }, { "item_id": 11, "weight": 150 }, { "item_id": 12, "weight": 217 }, { "item_id": 13, "weight": 286 }, { "item_id": 14, "weight": 176 }, { "item_id": 15, "weight": 292 }, { "item_id": 16, "weight": 171 }, { "item_id": 17, "weight": 277 }, { "item_id": 18, "weight": 236 }, { "item_id": 19, "weight": 204 }, { "item_id": 20, "weight": 291 }, { "item_id": 21, "weight": 206 }, { "item_id": 22, "weight": 110 }, { "item_id": 23, "weight": 258 }, { "item_id": 24, "weight": 240 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 145 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 220 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 198 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 212 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 298 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 158 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 290 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 191 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 255 }, { "item_i_id": 1, "item_j_id": 21, "quadratic_profit": 175 }, { "item_i_id": 1, "item_j_id": 22, "quadratic_profit": 125 }, { "item_i_id": 1, "item_j_id": 23, "quadratic_profit": 245 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 152 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 278 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 129 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 298 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 201 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 245 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 201 }, { "item_i_id": 2, "item_j_id": 21, "quadratic_profit": 145 }, { "item_i_id": 2, "item_j_id": 23, "quadratic_profit": 119 }, { "item_i_id": 2, "item_j_id": 24, "quadratic_profit": 174 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 201 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 113 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 178 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 234 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 173 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 149 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 220 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 132 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 272 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 234 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 199 }, { "item_i_id": 3, "item_j_id": 21, "quadratic_profit": 206 }, { "item_i_id": 3, "item_j_id": 22, "quadratic_profit": 118 }, { "item_i_id": 3, "item_j_id": 23, "quadratic_profit": 209 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 111 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 260 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 262 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 298 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 164 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 152 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 148 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 22, "quadratic_profit": 194 }, { "item_i_id": 4, "item_j_id": 24, "quadratic_profit": 247 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 231 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 294 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 121 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 192 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 169 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 179 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 238 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 220 }, { "item_i_id": 5, "item_j_id": 21, "quadratic_profit": 124 }, { "item_i_id": 5, "item_j_id": 22, "quadratic_profit": 284 }, { "item_i_id": 5, "item_j_id": 23, "quadratic_profit": 224 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 257 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 141 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 169 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 191 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 236 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 150 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 228 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 171 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 241 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 117 }, { "item_i_id": 6, "item_j_id": 22, "quadratic_profit": 220 }, { "item_i_id": 6, "item_j_id": 23, "quadratic_profit": 289 }, { "item_i_id": 6, "item_j_id": 24, "quadratic_profit": 139 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 162 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 175 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 269 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 249 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 158 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 202 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 175 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 266 }, { "item_i_id": 7, "item_j_id": 21, "quadratic_profit": 285 }, { "item_i_id": 7, "item_j_id": 22, "quadratic_profit": 242 }, { "item_i_id": 7, "item_j_id": 24, "quadratic_profit": 106 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 113 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 225 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 238 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 204 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 138 }, { "item_i_id": 8, "item_j_id": 24, "quadratic_profit": 193 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 244 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 124 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 232 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 238 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 248 }, { "item_i_id": 9, "item_j_id": 22, "quadratic_profit": 227 }, { "item_i_id": 9, "item_j_id": 23, "quadratic_profit": 176 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 107 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 201 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 207 }, { "item_i_id": 10, "item_j_id": 23, "quadratic_profit": 226 }, { "item_i_id": 10, "item_j_id": 24, "quadratic_profit": 171 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 210 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 258 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 134 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 264 }, { "item_i_id": 11, "item_j_id": 22, "quadratic_profit": 172 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 225 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 150 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 135 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 135 }, { "item_i_id": 12, "item_j_id": 24, "quadratic_profit": 203 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 212 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 150 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 130 }, { "item_i_id": 13, "item_j_id": 21, "quadratic_profit": 164 }, { "item_i_id": 13, "item_j_id": 23, "quadratic_profit": 141 }, { "item_i_id": 13, "item_j_id": 24, "quadratic_profit": 155 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 199 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 275 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 119 }, { "item_i_id": 14, "item_j_id": 22, "quadratic_profit": 211 }, { "item_i_id": 14, "item_j_id": 24, "quadratic_profit": 257 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 296 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 242 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 239 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 114 }, { "item_i_id": 15, "item_j_id": 21, "quadratic_profit": 265 }, { "item_i_id": 15, "item_j_id": 22, "quadratic_profit": 261 }, { "item_i_id": 15, "item_j_id": 23, "quadratic_profit": 174 }, { "item_i_id": 15, "item_j_id": 24, "quadratic_profit": 299 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 211 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 274 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 116 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 178 }, { "item_i_id": 16, "item_j_id": 21, "quadratic_profit": 166 }, { "item_i_id": 16, "item_j_id": 23, "quadratic_profit": 118 }, { "item_i_id": 16, "item_j_id": 24, "quadratic_profit": 279 }, { "item_i_id": 17, "item_j_id": 18, "quadratic_profit": 106 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 108 }, { "item_i_id": 17, "item_j_id": 23, "quadratic_profit": 149 }, { "item_i_id": 17, "item_j_id": 24, "quadratic_profit": 246 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 188 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 119 }, { "item_i_id": 18, "item_j_id": 21, "quadratic_profit": 218 }, { "item_i_id": 18, "item_j_id": 23, "quadratic_profit": 228 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 201 }, { "item_i_id": 19, "item_j_id": 21, "quadratic_profit": 126 }, { "item_i_id": 19, "item_j_id": 22, "quadratic_profit": 257 }, { "item_i_id": 19, "item_j_id": 23, "quadratic_profit": 210 }, { "item_i_id": 20, "item_j_id": 23, "quadratic_profit": 133 }, { "item_i_id": 20, "item_j_id": 24, "quadratic_profit": 104 }, { "item_i_id": 21, "item_j_id": 22, "quadratic_profit": 274 }, { "item_i_id": 21, "item_j_id": 23, "quadratic_profit": 114 }, { "item_i_id": 22, "item_j_id": 23, "quadratic_profit": 297 }, { "item_i_id": 23, "item_j_id": 24, "quadratic_profit": 223 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 14, 15, 16, 18, 19, 20, 21, 22, 23, 24 ], "context_index": 35, "input_format": "markdown_table", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We’re putting together a single promotional shelf and deciding which product lines to feature. Every item has a weight and an estimated sales figure, and certain combinations give a little bonus because they lift each other’s sales. The trick is to decide which items to put on that shelf so the combined weight doesn’t exceed what the shelf can hold, you only pick each product once (either it’s on the shelf or it isn’t), and the overall revenue — calculated by adding each chosen item’s expected sales plus any pairwise bonus sales — comes out as high as possible. The concrete details and numbers are listed below.\n\nWe have 20 product lines (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T) and a shelf capacity of 70207.\nWe estimate 3913 in base sales if we stock A.\nWe estimate 2255 in base sales if we stock B.\nWe estimate 1503 in base sales if we stock C.\nWe estimate 5766 in base sales if we stock D.\nWe estimate 4188 in base sales if we stock E.\nWe estimate 2000 in base sales if we stock F.\nWe estimate 3309 in base sales if we stock G.\nWe estimate 4455 in base sales if we stock H.\nWe estimate 1277 in base sales if we stock I.\nWe estimate 1142 in base sales if we stock J.\nWe estimate 3374 in base sales if we stock K.\nWe estimate 5308 in base sales if we stock L.\nWe estimate 2582 in base sales if we stock M.\nWe estimate 4728 in base sales if we stock N.\nWe estimate 1526 in base sales if we stock O.\nWe estimate 1683 in base sales if we stock P.\nWe estimate 2971 in base sales if we stock Q.\nWe estimate 522 in base sales if we stock R.\nWe estimate 4504 in base sales if we stock S.\nWe estimate 3415 in base sales if we stock T.\nWe record A as weighing 6078 toward the shelf capacity.\nWe record B as weighing 6077 toward the shelf capacity.\nWe record C as weighing 2845 toward the shelf capacity.\nWe record D as weighing 5410 toward the shelf capacity.\nWe record E as weighing 1306 toward the shelf capacity.\nWe record F as weighing 2770 toward the shelf capacity.\nWe record G as weighing 1319 toward the shelf capacity.\nWe record H as weighing 5593 toward the shelf capacity.\nWe record I as weighing 2312 toward the shelf capacity.\nWe record J as weighing 3040 toward the shelf capacity.\nWe record K as weighing 2556 toward the shelf capacity.\nWe record L as weighing 3821 toward the shelf capacity.\nWe record M as weighing 669 toward the shelf capacity.\nWe record N as weighing 627 toward the shelf capacity.\nWe record O as weighing 6445 toward the shelf capacity.\nWe record P as weighing 3115 toward the shelf capacity.\nWe record Q as weighing 5814 toward the shelf capacity.\nWe record R as weighing 4255 toward the shelf capacity.\nWe record S as weighing 3673 toward the shelf capacity.\nWe record T as weighing 4596 toward the shelf capacity.\nWe estimate an extra 6018 in sales if we stock A together with B.\nWe estimate an extra 6078 in sales if we stock A together with D.\nWe estimate an extra 4895 in sales if we stock A together with I.\nWe estimate an extra 5441 in sales if we stock A together with N.\nWe estimate an extra 651 in sales if we stock B together with F.\nWe estimate an extra 1413 in sales if we stock B together with J.\nWe estimate an extra 2847 in sales if we stock B together with K.\nWe estimate an extra 5697 in sales if we stock B together with P.\nWe estimate an extra 1840 in sales if we stock B together with Q.\nWe estimate an extra 2803 in sales if we stock B together with R.\nWe estimate an extra 5714 in sales if we stock B together with T.\nWe estimate an extra 497 in sales if we stock C together with F.\nWe estimate an extra 2845 in sales if we stock C together with G.\nWe estimate an extra 1955 in sales if we stock C together with O.\nWe estimate an extra 2845 in sales if we stock C together with Q.\nWe estimate an extra 1216 in sales if we stock C together with R.\nWe estimate an extra 4818 in sales if we stock D together with K.\nWe estimate an extra 5410 in sales if we stock D together with Q.\nWe estimate an extra 1306 in sales if we stock E together with J.\nWe estimate an extra 1306 in sales if we stock E together with K.\nWe estimate an extra 1306 in sales if we stock E together with O.\nWe estimate an extra 1306 in sales if we stock E together with P.\nWe estimate an extra 2770 in sales if we stock F together with G.\nWe estimate an extra 2770 in sales if we stock F together with K.\nWe estimate an extra 1319 in sales if we stock G together with J.\nWe estimate an extra 216 in sales if we stock G together with M.\nWe estimate an extra 755 in sales if we stock G together with O.\nWe estimate an extra 1741 in sales if we stock H together with N.\nWe estimate an extra 2803 in sales if we stock H together with O.\nWe estimate an extra 1346 in sales if we stock H together with P.\nWe estimate an extra 3453 in sales if we stock H together with S.\nWe estimate an extra 2312 in sales if we stock I together with M.\nWe estimate an extra 3918 in sales if we stock I together with Q.\nWe estimate an extra 4338 in sales if we stock I together with R.\nWe estimate an extra 3040 in sales if we stock J together with K.\nWe estimate an extra 3040 in sales if we stock J together with L.\nWe estimate an extra 3040 in sales if we stock J together with N.\nWe estimate an extra 2026 in sales if we stock J together with O.\nWe estimate an extra 2556 in sales if we stock K together with O.\nWe estimate an extra 3519 in sales if we stock K together with Q.\nWe estimate an extra 3653 in sales if we stock L together with M.\nWe estimate an extra 3821 in sales if we stock L together with N.\nWe estimate an extra 124 in sales if we stock L together with Q.\nWe estimate an extra 5521 in sales if we stock M together with Q.\nWe estimate an extra 3574 in sales if we stock N together with Q.\nWe estimate an extra 1216 in sales if we stock R together with S.\nWe estimate an extra 3176 in sales if we stock S together with T.\nWe’ll use these details to choose which products to place so we maximize total sales including any pairwise bonuses.\n\nAlso, to keep things machine-friendly, please put your chosen items into a simple JSON object like this:\n\n{\n \"solution\": [, , ...]\n}\n\nHere \"solution\" is just the list of product IDs you want to feature on the shelf — one entry per chosen product. Think of it like a short form: the array lists which products go on the shelf, and the order doesn't matter. This JSON is only a sketch of the shape I need, not the final answer itself.\n\nAll identifiers must be used exactly as they appear in the instance input — no renaming and no new labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 3913, 2255, 1503, 5766, 4188, 2000, 3309, 4455, 1277, 1142, 3374, 5308, 2582, 4728, 1526, 1683, 2971, 522, 4504, 3415 ], "quadratic_coeffs": [ [ 1619, 6018, 0, 6078, 0, 0, 0, 0, 4895, 0, 0, 0, 0, 5441, 0, 0, 0, 0, 0, 0 ], [ 0, 2845, 0, 0, 0, 651, 0, 0, 0, 1413, 2847, 0, 0, 0, 0, 5697, 1840, 2803, 0, 5714 ], [ 0, 0, 0, 0, 0, 497, 2845, 0, 0, 0, 0, 0, 0, 0, 1955, 0, 2845, 1216, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4818, 0, 0, 0, 0, 0, 5410, 0, 0, 0 ], [ 0, 0, 0, 0, 1306, 0, 0, 0, 0, 1306, 1306, 0, 0, 0, 1306, 1306, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 2770, 0, 0, 0, 2770, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1319, 0, 0, 216, 0, 755, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1741, 2803, 1346, 0, 0, 3453, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 931, 0, 0, 0, 2312, 0, 0, 0, 3918, 4338, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 315, 3040, 3040, 0, 3040, 2026, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2556, 0, 3519, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3653, 3821, 0, 0, 124, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 669, 0, 0, 0, 5521, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 375, 0, 0, 3574, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1216, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3176 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 6078, 6077, 2845, 5410, 1306, 2770, 1319, 5593, 2312, 3040, 2556, 3821, 669, 627, 6445, 3115, 5814, 4255, 3673, 4596 ], "capacity": 70207, "solution": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ], "obj": 185987.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ], "obj": 185987.0, "instance_variant": { "problem_type": "QKP", "num_items": 20, "capacity": 70207, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 3913 }, { "item_id": "B", "linear_profit": 2255 }, { "item_id": "C", "linear_profit": 1503 }, { "item_id": "D", "linear_profit": 5766 }, { "item_id": "E", "linear_profit": 4188 }, { "item_id": "F", "linear_profit": 2000 }, { "item_id": "G", "linear_profit": 3309 }, { "item_id": "H", "linear_profit": 4455 }, { "item_id": "I", "linear_profit": 1277 }, { "item_id": "J", "linear_profit": 1142 }, { "item_id": "K", "linear_profit": 3374 }, { "item_id": "L", "linear_profit": 5308 }, { "item_id": "M", "linear_profit": 2582 }, { "item_id": "N", "linear_profit": 4728 }, { "item_id": "O", "linear_profit": 1526 }, { "item_id": "P", "linear_profit": 1683 }, { "item_id": "Q", "linear_profit": 2971 }, { "item_id": "R", "linear_profit": 522 }, { "item_id": "S", "linear_profit": 4504 }, { "item_id": "T", "linear_profit": 3415 } ], "weight_pairs": [ { "item_id": "A", "weight": 6078 }, { "item_id": "B", "weight": 6077 }, { "item_id": "C", "weight": 2845 }, { "item_id": "D", "weight": 5410 }, { "item_id": "E", "weight": 1306 }, { "item_id": "F", "weight": 2770 }, { "item_id": "G", "weight": 1319 }, { "item_id": "H", "weight": 5593 }, { "item_id": "I", "weight": 2312 }, { "item_id": "J", "weight": 3040 }, { "item_id": "K", "weight": 2556 }, { "item_id": "L", "weight": 3821 }, { "item_id": "M", "weight": 669 }, { "item_id": "N", "weight": 627 }, { "item_id": "O", "weight": 6445 }, { "item_id": "P", "weight": 3115 }, { "item_id": "Q", "weight": 5814 }, { "item_id": "R", "weight": 4255 }, { "item_id": "S", "weight": 3673 }, { "item_id": "T", "weight": 4596 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 1619 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 6018 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 6078 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 4895 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 5441 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 2845 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 651 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 1413 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 2847 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 5697 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 1840 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 2803 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 5714 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 497 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 2845 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 1955 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 2845 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 1216 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 4818 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 5410 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 1306 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 1306 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 1306 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 1306 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 1306 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 2770 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 2770 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 1319 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 216 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 755 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 1741 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 2803 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 1346 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 3453 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 931 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 2312 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 3918 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 4338 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 315 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 3040 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 3040 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 3040 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 2026 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 2556 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 3519 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 3653 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 3821 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 124 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 669 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 5521 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 375 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 3574 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 1216 }, { "item_i_id": "S", "item_j_id": "T", "quadratic_profit": 3176 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T" ], "context_index": 36, "input_format": "nl", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "On a tight schedule, the relief coordinator has one truck and several crates to pick from; each crate has its own weight and life‑saving worth, and a few specific pairs of crates give an extra lift to the relief effort if both are sent. The aim is straightforward in everyday terms: get the biggest total relief impact by adding each loaded crate’s value and any extra pair bonuses, while keeping the total load under the truck’s capacity — no crate can be taken more than once. The detailed list of crates, weights, values and pair bonuses follows below.\n\nBelow are the 21 crates (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20) and the truck's weight capacity 741.\nCrate 0 has base life‑saving value 100.\nCrate 1 has base life‑saving value 103.\nCrate 2 has base life‑saving value 101.\nCrate 3 has base life‑saving value 104.\nCrate 4 has base life‑saving value 102.\nCrate 5 has base life‑saving value 103.\nCrate 6 has base life‑saving value 105.\nCrate 7 has base life‑saving value 104.\nCrate 8 has base life‑saving value 103.\nCrate 9 has base life‑saving value 103.\nCrate 10 has base life‑saving value 105.\nCrate 11 has base life‑saving value 101.\nCrate 12 has base life‑saving value 103.\nCrate 13 has base life‑saving value 105.\nCrate 14 has base life‑saving value 101.\nCrate 15 has base life‑saving value 100.\nCrate 16 has base life‑saving value 105.\nCrate 17 has base life‑saving value 102.\nCrate 18 has base life‑saving value 101.\nCrate 19 has base life‑saving value 101.\nCrate 20 has base life‑saving value 102.\nCrate 0 weighs 102.\nCrate 1 weighs 101.\nCrate 2 weighs 101.\nCrate 3 weighs 103.\nCrate 4 weighs 103.\nCrate 5 weighs 102.\nCrate 6 weighs 101.\nCrate 7 weighs 103.\nCrate 8 weighs 102.\nCrate 9 weighs 102.\nCrate 10 weighs 105.\nCrate 11 weighs 105.\nCrate 12 weighs 101.\nCrate 13 weighs 103.\nCrate 14 weighs 102.\nCrate 15 weighs 102.\nCrate 16 weighs 102.\nCrate 17 weighs 105.\nCrate 18 weighs 102.\nCrate 19 weighs 103.\nCrate 20 weighs 103.\nIf both crate 0 and crate 1 are loaded, they add 100 extra life‑saving value.\nIf both crate 0 and crate 2 are loaded, they add 103 extra life‑saving value.\nIf both crate 0 and crate 3 are loaded, they add 104 extra life‑saving value.\nIf both crate 0 and crate 5 are loaded, they add 102 extra life‑saving value.\nIf both crate 0 and crate 6 are loaded, they add 102 extra life‑saving value.\nIf both crate 0 and crate 7 are loaded, they add 100 extra life‑saving value.\nIf both crate 0 and crate 9 are loaded, they add 102 extra life‑saving value.\nIf both crate 0 and crate 10 are loaded, they add 105 extra life‑saving value.\nIf both crate 0 and crate 18 are loaded, they add 101 extra life‑saving value.\nIf both crate 0 and crate 19 are loaded, they add 104 extra life‑saving value.\nIf both crate 1 and crate 2 are loaded, they add 105 extra life‑saving value.\nIf both crate 1 and crate 3 are loaded, they add 105 extra life‑saving value.\nIf both crate 1 and crate 4 are loaded, they add 104 extra life‑saving value.\nIf both crate 1 and crate 6 are loaded, they add 105 extra life‑saving value.\nIf both crate 1 and crate 7 are loaded, they add 103 extra life‑saving value.\nIf both crate 1 and crate 8 are loaded, they add 100 extra life‑saving value.\nIf both crate 1 and crate 9 are loaded, they add 105 extra life‑saving value.\nIf both crate 1 and crate 13 are loaded, they add 102 extra life‑saving value.\nIf both crate 1 and crate 14 are loaded, they add 100 extra life‑saving value.\nIf both crate 1 and crate 15 are loaded, they add 104 extra life‑saving value.\nIf both crate 1 and crate 16 are loaded, they add 105 extra life‑saving value.\nIf both crate 1 and crate 17 are loaded, they add 105 extra life‑saving value.\nIf both crate 1 and crate 18 are loaded, they add 105 extra life‑saving value.\nIf both crate 2 and crate 3 are loaded, they add 100 extra life‑saving value.\nIf both crate 2 and crate 5 are loaded, they add 101 extra life‑saving value.\nIf both crate 2 and crate 6 are loaded, they add 102 extra life‑saving value.\nIf both crate 2 and crate 7 are loaded, they add 103 extra life‑saving value.\nIf both crate 2 and crate 8 are loaded, they add 105 extra life‑saving value.\nIf both crate 2 and crate 17 are loaded, they add 104 extra life‑saving value.\nIf both crate 2 and crate 18 are loaded, they add 105 extra life‑saving value.\nIf both crate 2 and crate 19 are loaded, they add 101 extra life‑saving value.\nIf both crate 2 and crate 20 are loaded, they add 101 extra life‑saving value.\nIf both crate 3 and crate 6 are loaded, they add 100 extra life‑saving value.\nIf both crate 3 and crate 9 are loaded, they add 100 extra life‑saving value.\nIf both crate 3 and crate 11 are loaded, they add 105 extra life‑saving value.\nIf both crate 3 and crate 13 are loaded, they add 100 extra life‑saving value.\nIf both crate 3 and crate 14 are loaded, they add 104 extra life‑saving value.\nIf both crate 3 and crate 15 are loaded, they add 101 extra life‑saving value.\nIf both crate 3 and crate 16 are loaded, they add 103 extra life‑saving value.\nIf both crate 3 and crate 19 are loaded, they add 105 extra life‑saving value.\nIf both crate 4 and crate 5 are loaded, they add 103 extra life‑saving value.\nIf both crate 4 and crate 7 are loaded, they add 103 extra life‑saving value.\nIf both crate 4 and crate 8 are loaded, they add 101 extra life‑saving value.\nIf both crate 4 and crate 10 are loaded, they add 101 extra life‑saving value.\nIf both crate 4 and crate 12 are loaded, they add 100 extra life‑saving value.\nIf both crate 4 and crate 13 are loaded, they add 104 extra life‑saving value.\nIf both crate 4 and crate 19 are loaded, they add 102 extra life‑saving value.\nIf both crate 5 and crate 7 are loaded, they add 104 extra life‑saving value.\nIf both crate 5 and crate 10 are loaded, they add 100 extra life‑saving value.\nIf both crate 5 and crate 11 are loaded, they add 103 extra life‑saving value.\nIf both crate 5 and crate 12 are loaded, they add 100 extra life‑saving value.\nIf both crate 5 and crate 13 are loaded, they add 105 extra life‑saving value.\nIf both crate 5 and crate 14 are loaded, they add 103 extra life‑saving value.\nIf both crate 5 and crate 16 are loaded, they add 101 extra life‑saving value.\nIf both crate 5 and crate 17 are loaded, they add 101 extra life‑saving value.\nIf both crate 5 and crate 18 are loaded, they add 105 extra life‑saving value.\nIf both crate 5 and crate 19 are loaded, they add 105 extra life‑saving value.\nIf both crate 5 and crate 20 are loaded, they add 104 extra life‑saving value.\nIf both crate 6 and crate 7 are loaded, they add 100 extra life‑saving value.\nIf both crate 6 and crate 10 are loaded, they add 104 extra life‑saving value.\nIf both crate 6 and crate 15 are loaded, they add 102 extra life‑saving value.\nIf both crate 6 and crate 17 are loaded, they add 105 extra life‑saving value.\nIf both crate 6 and crate 18 are loaded, they add 103 extra life‑saving value.\nIf both crate 6 and crate 20 are loaded, they add 101 extra life‑saving value.\nIf both crate 7 and crate 10 are loaded, they add 105 extra life‑saving value.\nIf both crate 7 and crate 11 are loaded, they add 101 extra life‑saving value.\nIf both crate 7 and crate 12 are loaded, they add 104 extra life‑saving value.\nIf both crate 7 and crate 15 are loaded, they add 101 extra life‑saving value.\nIf both crate 7 and crate 18 are loaded, they add 100 extra life‑saving value.\nIf both crate 8 and crate 9 are loaded, they add 100 extra life‑saving value.\nIf both crate 8 and crate 12 are loaded, they add 102 extra life‑saving value.\nIf both crate 8 and crate 14 are loaded, they add 103 extra life‑saving value.\nIf both crate 8 and crate 15 are loaded, they add 101 extra life‑saving value.\nIf both crate 8 and crate 17 are loaded, they add 101 extra life‑saving value.\nIf both crate 8 and crate 18 are loaded, they add 102 extra life‑saving value.\nIf both crate 8 and crate 20 are loaded, they add 105 extra life‑saving value.\nIf both crate 9 and crate 11 are loaded, they add 104 extra life‑saving value.\nIf both crate 9 and crate 13 are loaded, they add 105 extra life‑saving value.\nIf both crate 9 and crate 14 are loaded, they add 105 extra life‑saving value.\nIf both crate 9 and crate 15 are loaded, they add 101 extra life‑saving value.\nIf both crate 9 and crate 17 are loaded, they add 103 extra life‑saving value.\nIf both crate 9 and crate 18 are loaded, they add 102 extra life‑saving value.\nIf both crate 9 and crate 20 are loaded, they add 101 extra life‑saving value.\nIf both crate 10 and crate 11 are loaded, they add 103 extra life‑saving value.\nIf both crate 10 and crate 14 are loaded, they add 103 extra life‑saving value.\nIf both crate 10 and crate 15 are loaded, they add 101 extra life‑saving value.\nIf both crate 10 and crate 16 are loaded, they add 100 extra life‑saving value.\nIf both crate 10 and crate 17 are loaded, they add 102 extra life‑saving value.\nIf both crate 10 and crate 18 are loaded, they add 100 extra life‑saving value.\nIf both crate 11 and crate 13 are loaded, they add 102 extra life‑saving value.\nIf both crate 11 and crate 14 are loaded, they add 104 extra life‑saving value.\nIf both crate 11 and crate 15 are loaded, they add 102 extra life‑saving value.\nIf both crate 11 and crate 16 are loaded, they add 101 extra life‑saving value.\nIf both crate 11 and crate 17 are loaded, they add 101 extra life‑saving value.\nIf both crate 11 and crate 18 are loaded, they add 104 extra life‑saving value.\nIf both crate 12 and crate 15 are loaded, they add 100 extra life‑saving value.\nIf both crate 12 and crate 17 are loaded, they add 103 extra life‑saving value.\nIf both crate 12 and crate 18 are loaded, they add 100 extra life‑saving value.\nIf both crate 12 and crate 19 are loaded, they add 100 extra life‑saving value.\nIf both crate 12 and crate 20 are loaded, they add 103 extra life‑saving value.\nIf both crate 13 and crate 14 are loaded, they add 105 extra life‑saving value.\nIf both crate 13 and crate 15 are loaded, they add 103 extra life‑saving value.\nIf both crate 13 and crate 17 are loaded, they add 102 extra life‑saving value.\nIf both crate 13 and crate 18 are loaded, they add 102 extra life‑saving value.\nIf both crate 14 and crate 20 are loaded, they add 100 extra life‑saving value.\nIf both crate 15 and crate 16 are loaded, they add 101 extra life‑saving value.\nIf both crate 15 and crate 18 are loaded, they add 104 extra life‑saving value.\nIf both crate 16 and crate 17 are loaded, they add 103 extra life‑saving value.\nIf both crate 16 and crate 18 are loaded, they add 100 extra life‑saving value.\nIf both crate 17 and crate 20 are loaded, they add 101 extra life‑saving value.\nIf both crate 18 and crate 19 are loaded, they add 101 extra life‑saving value.\nIf both crate 19 and crate 20 are loaded, they add 105 extra life‑saving value.\nThe relief coordinator will select crates so total weight stays within 741 while maximizing life‑saving impact.\n\nIf you want to hand me the picks in a machine-friendly way, a little JSON snippet like this works nicely — just list the crate IDs you plan to load.\n\n{\n \"solution\": [, , ...]\n}\n\nThink of it like a simple form: \"solution\" is the list of crates you choose to put on the truck, and each angle-bracket entry is where you drop the exact crate identifier from the instance. This JSON is just a sketch of the shape I expect — not the actual chosen crates.\n\nPlease be careful to use the identifiers exactly as they appear in the instance input — no renaming and no new labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 100, 103, 101, 104, 102, 103, 105, 104, 103, 103, 105, 101, 103, 105, 101, 100, 105, 102, 101, 101, 102 ], "quadratic_coeffs": [ [ 102, 100, 103, 104, 0, 102, 102, 100, 0, 102, 105, 0, 0, 0, 0, 0, 0, 0, 101, 104, 0 ], [ 0, 103, 105, 105, 104, 0, 105, 103, 100, 105, 0, 0, 0, 102, 100, 104, 105, 105, 105, 0, 0 ], [ 0, 0, 0, 100, 0, 101, 102, 103, 105, 0, 0, 0, 0, 0, 0, 0, 0, 104, 105, 101, 101 ], [ 0, 0, 0, 102, 0, 0, 100, 0, 0, 100, 0, 105, 0, 100, 104, 101, 103, 0, 0, 105, 0 ], [ 0, 0, 0, 0, 105, 103, 0, 103, 101, 0, 101, 0, 100, 104, 0, 0, 0, 0, 0, 102, 0 ], [ 0, 0, 0, 0, 0, 104, 0, 104, 0, 0, 100, 103, 100, 105, 103, 0, 101, 101, 105, 105, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 104, 0, 0, 0, 0, 102, 0, 105, 103, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 105, 101, 104, 0, 0, 101, 0, 0, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 0, 0, 102, 0, 103, 101, 0, 101, 102, 0, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 104, 0, 105, 105, 101, 0, 103, 102, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 103, 101, 100, 102, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 102, 104, 102, 101, 101, 104, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 103, 100, 100, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 103, 0, 102, 102, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 104, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 102, 101, 101, 103, 103, 102, 101, 103, 102, 102, 105, 105, 101, 103, 102, 102, 102, 105, 102, 103, 103 ], "capacity": 741, "solution": [ 1, 3, 9, 11, 13, 14, 15 ], "obj": 2674.0, "problem_type": "QKP" }, "solution": [ 1, 3, 9, 11, 13, 14, 15 ], "obj": 2674.0, "instance_variant": { "problem_type": "QKP", "num_items": 21, "capacity": 741, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 100 }, { "item_id": 1, "linear_profit": 103 }, { "item_id": 2, "linear_profit": 101 }, { "item_id": 3, "linear_profit": 104 }, { "item_id": 4, "linear_profit": 102 }, { "item_id": 5, "linear_profit": 103 }, { "item_id": 6, "linear_profit": 105 }, { "item_id": 7, "linear_profit": 104 }, { "item_id": 8, "linear_profit": 103 }, { "item_id": 9, "linear_profit": 103 }, { "item_id": 10, "linear_profit": 105 }, { "item_id": 11, "linear_profit": 101 }, { "item_id": 12, "linear_profit": 103 }, { "item_id": 13, "linear_profit": 105 }, { "item_id": 14, "linear_profit": 101 }, { "item_id": 15, "linear_profit": 100 }, { "item_id": 16, "linear_profit": 105 }, { "item_id": 17, "linear_profit": 102 }, { "item_id": 18, "linear_profit": 101 }, { "item_id": 19, "linear_profit": 101 }, { "item_id": 20, "linear_profit": 102 } ], "weight_pairs": [ { "item_id": 0, "weight": 102 }, { "item_id": 1, "weight": 101 }, { "item_id": 2, "weight": 101 }, { "item_id": 3, "weight": 103 }, { "item_id": 4, "weight": 103 }, { "item_id": 5, "weight": 102 }, { "item_id": 6, "weight": 101 }, { "item_id": 7, "weight": 103 }, { "item_id": 8, "weight": 102 }, { "item_id": 9, "weight": 102 }, { "item_id": 10, "weight": 105 }, { "item_id": 11, "weight": 105 }, { "item_id": 12, "weight": 101 }, { "item_id": 13, "weight": 103 }, { "item_id": 14, "weight": 102 }, { "item_id": 15, "weight": 102 }, { "item_id": 16, "weight": 102 }, { "item_id": 17, "weight": 105 }, { "item_id": 18, "weight": 102 }, { "item_id": 19, "weight": 103 }, { "item_id": 20, "weight": 103 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 103 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 104 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 105 }, { "item_i_id": 0, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 104 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 105 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 104 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 105 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 101 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 104 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 17, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 17, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 19, "item_j_id": 20, "quadratic_profit": 105 } ] }, "solution_variant": [ 1, 3, 9, 11, 13, 14, 15 ], "context_index": 37, "input_format": "nl", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "At the community theater, the stage manager is figuring out which flats, props and backdrops to load into the single available truck. Every item uses up some of the truck’s capacity and brings a rental value, and a few pairings create extra payoff when both pieces arrive because they enhance the scene together. The sensible plan is to pick items that don’t overload the truck and that make the most total return — that total being each chosen piece’s rental added together plus any extra payoffs from pairs that are both taken. Each piece is taken once or left behind; the exact item weights, rental values and pair bonuses are listed below.\n\n{\n \"total_pieces\": 19,\n \"truck_load_limit\": 3324,\n \"piece_ids\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19\n ],\n \"linear\": [\n {\n \"piece_id\": 1,\n \"rental_value\": 179\n },\n {\n \"piece_id\": 2,\n \"rental_value\": 152\n },\n {\n \"piece_id\": 3,\n \"rental_value\": 233\n },\n {\n \"piece_id\": 4,\n \"rental_value\": 270\n },\n {\n \"piece_id\": 5,\n \"rental_value\": 274\n },\n {\n \"piece_id\": 6,\n \"rental_value\": 241\n },\n {\n \"piece_id\": 7,\n \"rental_value\": 224\n },\n {\n \"piece_id\": 8,\n \"rental_value\": 250\n },\n {\n \"piece_id\": 9,\n \"rental_value\": 297\n },\n {\n \"piece_id\": 10,\n \"rental_value\": 322\n },\n {\n \"piece_id\": 11,\n \"rental_value\": 199\n },\n {\n \"piece_id\": 12,\n \"rental_value\": 289\n },\n {\n \"piece_id\": 13,\n \"rental_value\": 234\n },\n {\n \"piece_id\": 14,\n \"rental_value\": 219\n },\n {\n \"piece_id\": 15,\n \"rental_value\": 248\n },\n {\n \"piece_id\": 16,\n \"rental_value\": 143\n },\n {\n \"piece_id\": 17,\n \"rental_value\": 140\n },\n {\n \"piece_id\": 18,\n \"rental_value\": 270\n },\n {\n \"piece_id\": 19,\n \"rental_value\": 285\n }\n ],\n \"weights\": [\n {\n \"piece_id\": 1,\n \"piece_weight\": 149\n },\n {\n \"piece_id\": 2,\n \"piece_weight\": 122\n },\n {\n \"piece_id\": 3,\n \"piece_weight\": 203\n },\n {\n \"piece_id\": 4,\n \"piece_weight\": 240\n },\n {\n \"piece_id\": 5,\n \"piece_weight\": 244\n },\n {\n \"piece_id\": 6,\n \"piece_weight\": 211\n },\n {\n \"piece_id\": 7,\n \"piece_weight\": 194\n },\n {\n \"piece_id\": 8,\n \"piece_weight\": 220\n },\n {\n \"piece_id\": 9,\n \"piece_weight\": 267\n },\n {\n \"piece_id\": 10,\n \"piece_weight\": 292\n },\n {\n \"piece_id\": 11,\n \"piece_weight\": 169\n },\n {\n \"piece_id\": 12,\n \"piece_weight\": 259\n },\n {\n \"piece_id\": 13,\n \"piece_weight\": 204\n },\n {\n \"piece_id\": 14,\n \"piece_weight\": 189\n },\n {\n \"piece_id\": 15,\n \"piece_weight\": 218\n },\n {\n \"piece_id\": 16,\n \"piece_weight\": 113\n },\n {\n \"piece_id\": 17,\n \"piece_weight\": 110\n },\n {\n \"piece_id\": 18,\n \"piece_weight\": 240\n },\n {\n \"piece_id\": 19,\n \"piece_weight\": 255\n }\n ],\n \"quadratic\": [\n {\n \"piece_i_id\": 1,\n \"piece_j_id\": 5,\n \"pair_synergy_value\": 169\n },\n {\n \"piece_i_id\": 1,\n \"piece_j_id\": 7,\n \"pair_synergy_value\": 138\n },\n {\n \"piece_i_id\": 1,\n \"piece_j_id\": 8,\n \"pair_synergy_value\": 243\n },\n {\n \"piece_i_id\": 1,\n \"piece_j_id\": 9,\n \"pair_synergy_value\": 274\n },\n {\n \"piece_i_id\": 1,\n \"piece_j_id\": 10,\n \"pair_synergy_value\": 236\n },\n {\n \"piece_i_id\": 1,\n \"piece_j_id\": 13,\n \"pair_synergy_value\": 138\n },\n {\n \"piece_i_id\": 1,\n \"piece_j_id\": 15,\n \"pair_synergy_value\": 190\n },\n {\n \"piece_i_id\": 1,\n \"piece_j_id\": 16,\n \"pair_synergy_value\": 291\n },\n {\n \"piece_i_id\": 1,\n \"piece_j_id\": 17,\n \"pair_synergy_value\": 185\n },\n {\n \"piece_i_id\": 2,\n \"piece_j_id\": 3,\n \"pair_synergy_value\": 154\n },\n {\n \"piece_i_id\": 2,\n \"piece_j_id\": 4,\n \"pair_synergy_value\": 193\n },\n {\n \"piece_i_id\": 2,\n \"piece_j_id\": 6,\n \"pair_synergy_value\": 263\n },\n {\n \"piece_i_id\": 2,\n \"piece_j_id\": 7,\n \"pair_synergy_value\": 262\n },\n {\n \"piece_i_id\": 2,\n \"piece_j_id\": 8,\n \"pair_synergy_value\": 176\n },\n {\n \"piece_i_id\": 2,\n \"piece_j_id\": 14,\n \"pair_synergy_value\": 287\n },\n {\n \"piece_i_id\": 2,\n \"piece_j_id\": 15,\n \"pair_synergy_value\": 236\n },\n {\n \"piece_i_id\": 2,\n \"piece_j_id\": 17,\n \"pair_synergy_value\": 257\n },\n {\n \"piece_i_id\": 3,\n \"piece_j_id\": 8,\n \"pair_synergy_value\": 221\n },\n {\n \"piece_i_id\": 3,\n \"piece_j_id\": 9,\n \"pair_synergy_value\": 122\n },\n {\n \"piece_i_id\": 3,\n \"piece_j_id\": 10,\n \"pair_synergy_value\": 159\n },\n {\n \"piece_i_id\": 3,\n \"piece_j_id\": 11,\n \"pair_synergy_value\": 137\n },\n {\n \"piece_i_id\": 3,\n \"piece_j_id\": 14,\n \"pair_synergy_value\": 289\n },\n {\n \"piece_i_id\": 3,\n \"piece_j_id\": 15,\n \"pair_synergy_value\": 260\n },\n {\n \"piece_i_id\": 3,\n \"piece_j_id\": 16,\n \"pair_synergy_value\": 208\n },\n {\n \"piece_i_id\": 3,\n \"piece_j_id\": 19,\n \"pair_synergy_value\": 139\n },\n {\n \"piece_i_id\": 4,\n \"piece_j_id\": 5,\n \"pair_synergy_value\": 242\n },\n {\n \"piece_i_id\": 4,\n \"piece_j_id\": 10,\n \"pair_synergy_value\": 129\n },\n {\n \"piece_i_id\": 4,\n \"piece_j_id\": 11,\n \"pair_synergy_value\": 199\n },\n {\n \"piece_i_id\": 4,\n \"piece_j_id\": 12,\n \"pair_synergy_value\": 218\n },\n {\n \"piece_i_id\": 4,\n \"piece_j_id\": 14,\n \"pair_synergy_value\": 225\n },\n {\n \"piece_i_id\": 4,\n \"piece_j_id\": 15,\n \"pair_synergy_value\": 126\n },\n {\n \"piece_i_id\": 4,\n \"piece_j_id\": 16,\n \"pair_synergy_value\": 200\n },\n {\n \"piece_i_id\": 4,\n \"piece_j_id\": 18,\n \"pair_synergy_value\": 146\n },\n {\n \"piece_i_id\": 5,\n \"piece_j_id\": 6,\n \"pair_synergy_value\": 132\n },\n {\n \"piece_i_id\": 5,\n \"piece_j_id\": 8,\n \"pair_synergy_value\": 225\n },\n {\n \"piece_i_id\": 5,\n \"piece_j_id\": 9,\n \"pair_synergy_value\": 202\n },\n {\n \"piece_i_id\": 5,\n \"piece_j_id\": 10,\n \"pair_synergy_value\": 211\n },\n {\n \"piece_i_id\": 5,\n \"piece_j_id\": 11,\n \"pair_synergy_value\": 236\n },\n {\n \"piece_i_id\": 5,\n \"piece_j_id\": 12,\n \"pair_synergy_value\": 286\n },\n {\n \"piece_i_id\": 5,\n \"piece_j_id\": 16,\n \"pair_synergy_value\": 168\n },\n {\n \"piece_i_id\": 6,\n \"piece_j_id\": 7,\n \"pair_synergy_value\": 170\n },\n {\n \"piece_i_id\": 6,\n \"piece_j_id\": 8,\n \"pair_synergy_value\": 134\n },\n {\n \"piece_i_id\": 6,\n \"piece_j_id\": 13,\n \"pair_synergy_value\": 191\n },\n {\n \"piece_i_id\": 6,\n \"piece_j_id\": 14,\n \"pair_synergy_value\": 196\n },\n {\n \"piece_i_id\": 6,\n \"piece_j_id\": 15,\n \"pair_synergy_value\": 128\n },\n {\n \"piece_i_id\": 6,\n \"piece_j_id\": 16,\n \"pair_synergy_value\": 269\n },\n {\n \"piece_i_id\": 6,\n \"piece_j_id\": 17,\n \"pair_synergy_value\": 225\n },\n {\n \"piece_i_id\": 7,\n \"piece_j_id\": 9,\n \"pair_synergy_value\": 254\n },\n {\n \"piece_i_id\": 7,\n \"piece_j_id\": 14,\n \"pair_synergy_value\": 265\n },\n {\n \"piece_i_id\": 7,\n \"piece_j_id\": 15,\n \"pair_synergy_value\": 217\n },\n {\n \"piece_i_id\": 7,\n \"piece_j_id\": 16,\n \"pair_synergy_value\": 297\n },\n {\n \"piece_i_id\": 7,\n \"piece_j_id\": 17,\n \"pair_synergy_value\": 213\n },\n {\n \"piece_i_id\": 7,\n \"piece_j_id\": 18,\n \"pair_synergy_value\": 100\n },\n {\n \"piece_i_id\": 8,\n \"piece_j_id\": 9,\n \"pair_synergy_value\": 161\n },\n {\n \"piece_i_id\": 8,\n \"piece_j_id\": 10,\n \"pair_synergy_value\": 245\n },\n {\n \"piece_i_id\": 8,\n \"piece_j_id\": 12,\n \"pair_synergy_value\": 129\n },\n {\n \"piece_i_id\": 8,\n \"piece_j_id\": 14,\n \"pair_synergy_value\": 248\n },\n {\n \"piece_i_id\": 8,\n \"piece_j_id\": 18,\n \"pair_synergy_value\": 270\n },\n {\n \"piece_i_id\": 9,\n \"piece_j_id\": 10,\n \"pair_synergy_value\": 282\n },\n {\n \"piece_i_id\": 9,\n \"piece_j_id\": 11,\n \"pair_synergy_value\": 133\n },\n {\n \"piece_i_id\": 9,\n \"piece_j_id\": 13,\n \"pair_synergy_value\": 264\n },\n {\n \"piece_i_id\": 9,\n \"piece_j_id\": 14,\n \"pair_synergy_value\": 222\n },\n {\n \"piece_i_id\": 9,\n \"piece_j_id\": 15,\n \"pair_synergy_value\": 276\n },\n {\n \"piece_i_id\": 9,\n \"piece_j_id\": 17,\n \"pair_synergy_value\": 288\n },\n {\n \"piece_i_id\": 10,\n \"piece_j_id\": 12,\n \"pair_synergy_value\": 261\n },\n {\n \"piece_i_id\": 10,\n \"piece_j_id\": 16,\n \"pair_synergy_value\": 100\n },\n {\n \"piece_i_id\": 10,\n \"piece_j_id\": 17,\n \"pair_synergy_value\": 261\n },\n {\n \"piece_i_id\": 10,\n \"piece_j_id\": 18,\n \"pair_synergy_value\": 299\n },\n {\n \"piece_i_id\": 11,\n \"piece_j_id\": 13,\n \"pair_synergy_value\": 290\n },\n {\n \"piece_i_id\": 11,\n \"piece_j_id\": 15,\n \"pair_synergy_value\": 163\n },\n {\n \"piece_i_id\": 11,\n \"piece_j_id\": 16,\n \"pair_synergy_value\": 252\n },\n {\n \"piece_i_id\": 11,\n \"piece_j_id\": 17,\n \"pair_synergy_value\": 234\n },\n {\n \"piece_i_id\": 12,\n \"piece_j_id\": 14,\n \"pair_synergy_value\": 220\n },\n {\n \"piece_i_id\": 13,\n \"piece_j_id\": 15,\n \"pair_synergy_value\": 139\n },\n {\n \"piece_i_id\": 13,\n \"piece_j_id\": 16,\n \"pair_synergy_value\": 270\n },\n {\n \"piece_i_id\": 13,\n \"piece_j_id\": 19,\n \"pair_synergy_value\": 170\n },\n {\n \"piece_i_id\": 14,\n \"piece_j_id\": 19,\n \"pair_synergy_value\": 275\n },\n {\n \"piece_i_id\": 15,\n \"piece_j_id\": 17,\n \"pair_synergy_value\": 265\n },\n {\n \"piece_i_id\": 15,\n \"piece_j_id\": 19,\n \"pair_synergy_value\": 144\n },\n {\n \"piece_i_id\": 16,\n \"piece_j_id\": 17,\n \"pair_synergy_value\": 242\n },\n {\n \"piece_i_id\": 17,\n \"piece_j_id\": 19,\n \"pair_synergy_value\": 250\n }\n ]\n}\n\nIf you want to return your pick in a tidy way, just use this simple JSON shape so it's easy to read and check:\n\n{\n \"solution\": [, , ...]\n}\n\nHere the \"solution\" array is where you list the ids of the flats, props and backdrops you want loaded into the truck — one id per chosen piece. Think of it like filling out a short form: list the items you’re taking, and nothing else. This JSON is just a sketch of the shape I expect, not the actual answer.\n\nPlease make sure to use the 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”.\"", "instance": { "linear_coeffs": [ 179, 152, 233, 270, 274, 241, 224, 250, 297, 322, 199, 289, 234, 219, 248, 143, 140, 270, 285 ], "quadratic_coeffs": [ [ 0, 0, 0, 0, 169, 0, 138, 243, 274, 236, 0, 0, 138, 0, 190, 291, 185, 0, 0 ], [ 0, 0, 154, 193, 0, 263, 262, 176, 0, 0, 0, 0, 0, 287, 236, 0, 257, 0, 0 ], [ 0, 0, 230, 0, 0, 0, 0, 221, 122, 159, 137, 0, 0, 289, 260, 208, 0, 0, 139 ], [ 0, 0, 0, 0, 242, 0, 0, 0, 0, 129, 199, 218, 0, 225, 126, 200, 0, 146, 0 ], [ 0, 0, 0, 0, 0, 132, 0, 225, 202, 211, 236, 286, 0, 0, 0, 168, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 199, 170, 134, 0, 0, 0, 0, 191, 196, 128, 269, 225, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 229, 0, 254, 0, 0, 0, 0, 265, 217, 297, 213, 100, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 161, 245, 0, 129, 0, 248, 0, 0, 0, 270, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 189, 282, 133, 0, 264, 222, 276, 0, 288, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 261, 0, 0, 0, 100, 261, 299, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 290, 0, 163, 252, 234, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 147, 0, 220, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 139, 270, 0, 0, 170 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 0, 275 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 276, 0, 265, 0, 144 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 242, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 149, 122, 203, 240, 244, 211, 194, 220, 267, 292, 169, 259, 204, 189, 218, 113, 110, 240, 255 ], "capacity": 3324, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16 ], "obj": 17902.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16 ], "obj": 17902.0, "instance_variant": { "problem_type": "QKP", "num_items": 19, "capacity": 3324, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 179 }, { "item_id": 2, "linear_profit": 152 }, { "item_id": 3, "linear_profit": 233 }, { "item_id": 4, "linear_profit": 270 }, { "item_id": 5, "linear_profit": 274 }, { "item_id": 6, "linear_profit": 241 }, { "item_id": 7, "linear_profit": 224 }, { "item_id": 8, "linear_profit": 250 }, { "item_id": 9, "linear_profit": 297 }, { "item_id": 10, "linear_profit": 322 }, { "item_id": 11, "linear_profit": 199 }, { "item_id": 12, "linear_profit": 289 }, { "item_id": 13, "linear_profit": 234 }, { "item_id": 14, "linear_profit": 219 }, { "item_id": 15, "linear_profit": 248 }, { "item_id": 16, "linear_profit": 143 }, { "item_id": 17, "linear_profit": 140 }, { "item_id": 18, "linear_profit": 270 }, { "item_id": 19, "linear_profit": 285 } ], "weight_pairs": [ { "item_id": 1, "weight": 149 }, { "item_id": 2, "weight": 122 }, { "item_id": 3, "weight": 203 }, { "item_id": 4, "weight": 240 }, { "item_id": 5, "weight": 244 }, { "item_id": 6, "weight": 211 }, { "item_id": 7, "weight": 194 }, { "item_id": 8, "weight": 220 }, { "item_id": 9, "weight": 267 }, { "item_id": 10, "weight": 292 }, { "item_id": 11, "weight": 169 }, { "item_id": 12, "weight": 259 }, { "item_id": 13, "weight": 204 }, { "item_id": 14, "weight": 189 }, { "item_id": 15, "weight": 218 }, { "item_id": 16, "weight": 113 }, { "item_id": 17, "weight": 110 }, { "item_id": 18, "weight": 240 }, { "item_id": 19, "weight": 255 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 169 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 138 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 243 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 274 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 236 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 138 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 190 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 291 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 185 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 154 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 193 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 263 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 262 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 176 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 287 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 236 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 257 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 230 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 221 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 122 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 159 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 137 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 289 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 260 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 208 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 139 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 242 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 129 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 199 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 218 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 225 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 126 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 200 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 146 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 132 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 225 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 202 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 211 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 236 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 286 }, { "item_i_id": 5, "item_j_id": 16, "quadratic_profit": 168 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 199 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 170 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 134 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 191 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 196 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 128 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 269 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 225 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 229 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 254 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 265 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 217 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 297 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 213 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 161 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 245 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 129 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 248 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 270 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 189 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 282 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 133 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 264 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 222 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 276 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 288 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 261 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 261 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 299 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 128 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 290 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 163 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 252 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 234 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 147 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 220 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 139 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 270 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 170 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 186 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 275 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 276 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 265 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 144 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 242 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 250 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17 ], "context_index": 38, "input_format": "json", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We’re curating a weekend gallery and can only ship what fits in one crate. Every artwork comes with an estimated sale value and takes up some space, and certain combinations of paintings boost interest when they’re displayed together, giving extra value. The idea is to pick which pieces to include so the crate stays within its capacity, no piece is repeated, and the total expected return (individual values plus any extra for specific pairs) is as large as it can be. The concrete weights, values, and synergy numbers are shown below.\n\n{\n \"total_artworks\": 22,\n \"crate_capacity\": 1258,\n \"artwork_ids\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"E\",\n \"F\",\n \"G\",\n \"H\",\n \"I\",\n \"J\",\n \"K\",\n \"L\",\n \"M\",\n \"N\",\n \"O\",\n \"P\",\n \"Q\",\n \"R\",\n \"S\",\n \"T\",\n \"U\",\n \"V\"\n ],\n \"linear\": [\n {\n \"artwork_id\": \"A\",\n \"expected_sale_value\": 104\n },\n {\n \"artwork_id\": \"B\",\n \"expected_sale_value\": 103\n },\n {\n \"artwork_id\": \"C\",\n \"expected_sale_value\": 101\n },\n {\n \"artwork_id\": \"D\",\n \"expected_sale_value\": 102\n },\n {\n \"artwork_id\": \"E\",\n \"expected_sale_value\": 103\n },\n {\n \"artwork_id\": \"F\",\n \"expected_sale_value\": 104\n },\n {\n \"artwork_id\": \"G\",\n \"expected_sale_value\": 101\n },\n {\n \"artwork_id\": \"H\",\n \"expected_sale_value\": 105\n },\n {\n \"artwork_id\": \"I\",\n \"expected_sale_value\": 101\n },\n {\n \"artwork_id\": \"J\",\n \"expected_sale_value\": 101\n },\n {\n \"artwork_id\": \"K\",\n \"expected_sale_value\": 103\n },\n {\n \"artwork_id\": \"L\",\n \"expected_sale_value\": 105\n },\n {\n \"artwork_id\": \"M\",\n \"expected_sale_value\": 104\n },\n {\n \"artwork_id\": \"N\",\n \"expected_sale_value\": 102\n },\n {\n \"artwork_id\": \"O\",\n \"expected_sale_value\": 103\n },\n {\n \"artwork_id\": \"P\",\n \"expected_sale_value\": 102\n },\n {\n \"artwork_id\": \"Q\",\n \"expected_sale_value\": 103\n },\n {\n \"artwork_id\": \"R\",\n \"expected_sale_value\": 100\n },\n {\n \"artwork_id\": \"S\",\n \"expected_sale_value\": 104\n },\n {\n \"artwork_id\": \"T\",\n \"expected_sale_value\": 103\n },\n {\n \"artwork_id\": \"U\",\n \"expected_sale_value\": 101\n },\n {\n \"artwork_id\": \"V\",\n \"expected_sale_value\": 105\n }\n ],\n \"weights\": [\n {\n \"artwork_id\": \"A\",\n \"space_required\": 102\n },\n {\n \"artwork_id\": \"B\",\n \"space_required\": 103\n },\n {\n \"artwork_id\": \"C\",\n \"space_required\": 101\n },\n {\n \"artwork_id\": \"D\",\n \"space_required\": 103\n },\n {\n \"artwork_id\": \"E\",\n \"space_required\": 105\n },\n {\n \"artwork_id\": \"F\",\n \"space_required\": 105\n },\n {\n \"artwork_id\": \"G\",\n \"space_required\": 103\n },\n {\n \"artwork_id\": \"H\",\n \"space_required\": 104\n },\n {\n \"artwork_id\": \"I\",\n \"space_required\": 104\n },\n {\n \"artwork_id\": \"J\",\n \"space_required\": 103\n },\n {\n \"artwork_id\": \"K\",\n \"space_required\": 100\n },\n {\n \"artwork_id\": \"L\",\n \"space_required\": 103\n },\n {\n \"artwork_id\": \"M\",\n \"space_required\": 101\n },\n {\n \"artwork_id\": \"N\",\n \"space_required\": 102\n },\n {\n \"artwork_id\": \"O\",\n \"space_required\": 105\n },\n {\n \"artwork_id\": \"P\",\n \"space_required\": 101\n },\n {\n \"artwork_id\": \"Q\",\n \"space_required\": 102\n },\n {\n \"artwork_id\": \"R\",\n \"space_required\": 101\n },\n {\n \"artwork_id\": \"S\",\n \"space_required\": 101\n },\n {\n \"artwork_id\": \"T\",\n \"space_required\": 102\n },\n {\n \"artwork_id\": \"U\",\n \"space_required\": 105\n },\n {\n \"artwork_id\": \"V\",\n \"space_required\": 100\n }\n ],\n \"quadratic\": [\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"B\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"C\",\n \"synergy_bonus_value\": 100\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"F\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"G\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"H\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"I\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"K\",\n \"synergy_bonus_value\": 100\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"L\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"M\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"N\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"O\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"P\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"Q\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 100\n },\n {\n \"artwork_i_id\": \"A\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 100\n },\n {\n \"artwork_i_id\": \"B\",\n \"artwork_j_id\": \"D\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"B\",\n \"artwork_j_id\": \"F\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"B\",\n \"artwork_j_id\": \"L\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"B\",\n \"artwork_j_id\": \"N\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"B\",\n \"artwork_j_id\": \"Q\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"B\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"B\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"B\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"C\",\n \"artwork_j_id\": \"D\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"C\",\n \"artwork_j_id\": \"F\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"C\",\n \"artwork_j_id\": \"I\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"C\",\n \"artwork_j_id\": \"P\",\n \"synergy_bonus_value\": 100\n },\n {\n \"artwork_i_id\": \"C\",\n \"artwork_j_id\": \"Q\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"C\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"C\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"C\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"C\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"D\",\n \"artwork_j_id\": \"F\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"D\",\n \"artwork_j_id\": \"H\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"D\",\n \"artwork_j_id\": \"L\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"D\",\n \"artwork_j_id\": \"O\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"D\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"D\",\n \"artwork_j_id\": \"U\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"E\",\n \"artwork_j_id\": \"F\",\n \"synergy_bonus_value\": 104\n },\n {\n \"artwork_i_id\": \"E\",\n \"artwork_j_id\": \"G\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"E\",\n \"artwork_j_id\": \"N\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"E\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"E\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"E\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"I\",\n \"synergy_bonus_value\": 105\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"L\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"M\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"N\",\n \"synergy_bonus_value\": 105\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"O\",\n \"synergy_bonus_value\": 105\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"P\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"Q\",\n \"synergy_bonus_value\": 100\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"U\",\n \"synergy_bonus_value\": 100\n },\n {\n \"artwork_i_id\": \"F\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"G\",\n \"artwork_j_id\": \"H\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"G\",\n \"artwork_j_id\": \"J\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"G\",\n \"artwork_j_id\": \"P\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"G\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"G\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"G\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"G\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"H\",\n \"artwork_j_id\": \"M\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"H\",\n \"artwork_j_id\": \"N\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"H\",\n \"artwork_j_id\": \"O\",\n \"synergy_bonus_value\": 104\n },\n {\n \"artwork_i_id\": \"H\",\n \"artwork_j_id\": \"Q\",\n \"synergy_bonus_value\": 104\n },\n {\n \"artwork_i_id\": \"H\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"H\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"H\",\n \"artwork_j_id\": \"U\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"I\",\n \"artwork_j_id\": \"J\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"I\",\n \"artwork_j_id\": \"M\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"I\",\n \"artwork_j_id\": \"N\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"I\",\n \"artwork_j_id\": \"O\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"I\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"I\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"I\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"J\",\n \"artwork_j_id\": \"K\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"J\",\n \"artwork_j_id\": \"P\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"J\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"J\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"J\",\n \"artwork_j_id\": \"U\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"K\",\n \"artwork_j_id\": \"L\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"K\",\n \"artwork_j_id\": \"M\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"K\",\n \"artwork_j_id\": \"N\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"K\",\n \"artwork_j_id\": \"O\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"K\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"K\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"K\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"K\",\n \"artwork_j_id\": \"U\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"L\",\n \"artwork_j_id\": \"M\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"L\",\n \"artwork_j_id\": \"Q\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"L\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"L\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"L\",\n \"artwork_j_id\": \"U\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"M\",\n \"artwork_j_id\": \"N\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"M\",\n \"artwork_j_id\": \"Q\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"M\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"N\",\n \"artwork_j_id\": \"O\",\n \"synergy_bonus_value\": 103\n },\n {\n \"artwork_i_id\": \"N\",\n \"artwork_j_id\": \"U\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"N\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"O\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"P\",\n \"artwork_j_id\": \"R\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"P\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"P\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"P\",\n \"artwork_j_id\": \"U\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"P\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 104\n },\n {\n \"artwork_i_id\": \"Q\",\n \"artwork_j_id\": \"S\",\n \"synergy_bonus_value\": 102\n },\n {\n \"artwork_i_id\": \"Q\",\n \"artwork_j_id\": \"T\",\n \"synergy_bonus_value\": 101\n },\n {\n \"artwork_i_id\": \"Q\",\n \"artwork_j_id\": \"V\",\n \"synergy_bonus_value\": 102\n }\n ]\n}\n\nIf you want to give me your final pick, toss it in a tiny JSON snippet like this so it's easy to read:\n\n{\n \"solution\": [, , ...]\n}\n\n\"solution\" is just a list of the artworks you're packing into the crate — each entry should be the identifier for a piece from the instance. Think of this JSON as a little form: the array holds the chosen items, and that's it. It's only a sketch of the shape I expect, not the actual answer.\n\nPlease make sure to use the exact identifiers from the instance input — don't rename them or invent new labels. \n- 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”.\"", "instance": { "linear_coeffs": [ 104, 103, 101, 102, 103, 104, 101, 105, 101, 101, 103, 105, 104, 102, 103, 102, 103, 100, 104, 103, 101, 105 ], "quadratic_coeffs": [ [ 102, 102, 100, 0, 0, 101, 102, 102, 102, 0, 100, 103, 101, 102, 102, 102, 102, 0, 102, 100, 0, 100 ], [ 0, 103, 0, 103, 0, 103, 0, 0, 0, 0, 0, 101, 0, 101, 0, 0, 101, 103, 0, 103, 0, 103 ], [ 0, 0, 0, 101, 0, 101, 0, 0, 101, 0, 0, 0, 0, 0, 0, 100, 101, 101, 103, 101, 0, 103 ], [ 0, 0, 0, 103, 0, 101, 0, 103, 0, 0, 0, 103, 0, 0, 103, 0, 0, 0, 0, 102, 101, 0 ], [ 0, 0, 0, 0, 103, 104, 103, 0, 0, 0, 0, 0, 0, 103, 0, 0, 0, 101, 0, 102, 0, 102 ], [ 0, 0, 0, 0, 0, 102, 0, 0, 105, 0, 0, 103, 102, 105, 105, 103, 100, 101, 102, 0, 100, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 101, 0, 101, 0, 0, 0, 0, 0, 102, 0, 101, 101, 101, 0, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 104, 0, 104, 0, 102, 102, 102, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 103, 103, 103, 0, 0, 102, 103, 0, 0, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 0, 0, 102, 0, 0, 102, 103, 103, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 103, 103, 103, 101, 0, 0, 102, 103, 103, 103, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 103, 101, 101, 0, 101, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 101, 0, 0, 101, 0, 0, 102, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 103, 0, 0, 0, 0, 0, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 102, 102, 102, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 101, 0, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 102, 103, 101, 103, 105, 105, 103, 104, 104, 103, 100, 103, 101, 102, 105, 101, 102, 101, 101, 102, 105, 100 ], "capacity": 1258, "solution": [ 0, 1, 2, 5, 7, 8, 11, 12, 13, 16, 18, 21 ], "obj": 5728.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 5, 7, 8, 11, 12, 13, 16, 18, 21 ], "obj": 5728.0, "instance_variant": { "problem_type": "QKP", "num_items": 22, "capacity": 1258, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 104 }, { "item_id": "B", "linear_profit": 103 }, { "item_id": "C", "linear_profit": 101 }, { "item_id": "D", "linear_profit": 102 }, { "item_id": "E", "linear_profit": 103 }, { "item_id": "F", "linear_profit": 104 }, { "item_id": "G", "linear_profit": 101 }, { "item_id": "H", "linear_profit": 105 }, { "item_id": "I", "linear_profit": 101 }, { "item_id": "J", "linear_profit": 101 }, { "item_id": "K", "linear_profit": 103 }, { "item_id": "L", "linear_profit": 105 }, { "item_id": "M", "linear_profit": 104 }, { "item_id": "N", "linear_profit": 102 }, { "item_id": "O", "linear_profit": 103 }, { "item_id": "P", "linear_profit": 102 }, { "item_id": "Q", "linear_profit": 103 }, { "item_id": "R", "linear_profit": 100 }, { "item_id": "S", "linear_profit": 104 }, { "item_id": "T", "linear_profit": 103 }, { "item_id": "U", "linear_profit": 101 }, { "item_id": "V", "linear_profit": 105 } ], "weight_pairs": [ { "item_id": "A", "weight": 102 }, { "item_id": "B", "weight": 103 }, { "item_id": "C", "weight": 101 }, { "item_id": "D", "weight": 103 }, { "item_id": "E", "weight": 105 }, { "item_id": "F", "weight": 105 }, { "item_id": "G", "weight": 103 }, { "item_id": "H", "weight": 104 }, { "item_id": "I", "weight": 104 }, { "item_id": "J", "weight": 103 }, { "item_id": "K", "weight": 100 }, { "item_id": "L", "weight": 103 }, { "item_id": "M", "weight": 101 }, { "item_id": "N", "weight": 102 }, { "item_id": "O", "weight": 105 }, { "item_id": "P", "weight": 101 }, { "item_id": "Q", "weight": 102 }, { "item_id": "R", "weight": 101 }, { "item_id": "S", "weight": 101 }, { "item_id": "T", "weight": 102 }, { "item_id": "U", "weight": 105 }, { "item_id": "V", "weight": 100 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "V", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 104 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 105 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 105 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 105 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "F", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 104 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "I", "item_j_id": "V", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "P", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 102 } ] }, "solution_variant": [ "A", "B", "C", "F", "H", "I", "L", "M", "N", "Q", "S", "V" ], "context_index": 39, "input_format": "json", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Recently the branch got a pile of donations and only so much shelf room to display them. Each book takes up some space and has its own circulation value, and some combinations of titles actually increase traffic when they’re displayed together. The plan is to pick which books to show so the shelf doesn’t overflow and the total payoff — the sum of the individual book benefits plus any extra pairwise bonuses when those two are both chosen — is maximized, with no duplicates allowed. The specific book sizes, benefits, and pairwise boosts follow below.\n\n{\n \"num_books\": 16,\n \"shelf_capacity\": 345,\n \"book_ids\": [\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16\n ],\n \"linear\": [\n {\n \"book_id\": 1,\n \"book_benefit\": 792\n },\n {\n \"book_id\": 2,\n \"book_benefit\": 238\n },\n {\n \"book_id\": 3,\n \"book_benefit\": 233\n },\n {\n \"book_id\": 4,\n \"book_benefit\": 259\n },\n {\n \"book_id\": 5,\n \"book_benefit\": 846\n },\n {\n \"book_id\": 6,\n \"book_benefit\": 136\n },\n {\n \"book_id\": 7,\n \"book_benefit\": 655\n },\n {\n \"book_id\": 8,\n \"book_benefit\": 341\n },\n {\n \"book_id\": 9,\n \"book_benefit\": 297\n },\n {\n \"book_id\": 10,\n \"book_benefit\": 418\n },\n {\n \"book_id\": 11,\n \"book_benefit\": 223\n },\n {\n \"book_id\": 12,\n \"book_benefit\": 809\n },\n {\n \"book_id\": 13,\n \"book_benefit\": 552\n },\n {\n \"book_id\": 14,\n \"book_benefit\": 823\n },\n {\n \"book_id\": 15,\n \"book_benefit\": 120\n },\n {\n \"book_id\": 16,\n \"book_benefit\": 420\n }\n ],\n \"weights\": [\n {\n \"book_id\": 1,\n \"book_size\": 715\n },\n {\n \"book_id\": 2,\n \"book_size\": 653\n },\n {\n \"book_id\": 3,\n \"book_size\": 160\n },\n {\n \"book_id\": 4,\n \"book_size\": 745\n },\n {\n \"book_id\": 5,\n \"book_size\": 518\n },\n {\n \"book_id\": 6,\n \"book_size\": 585\n },\n {\n \"book_id\": 7,\n \"book_size\": 733\n },\n {\n \"book_id\": 8,\n \"book_size\": 254\n },\n {\n \"book_id\": 9,\n \"book_size\": 513\n },\n {\n \"book_id\": 10,\n \"book_size\": 550\n },\n {\n \"book_id\": 11,\n \"book_size\": 476\n },\n {\n \"book_id\": 12,\n \"book_size\": 343\n },\n {\n \"book_id\": 13,\n \"book_size\": 864\n },\n {\n \"book_id\": 14,\n \"book_size\": 348\n },\n {\n \"book_id\": 15,\n \"book_size\": 327\n },\n {\n \"book_id\": 16,\n \"book_size\": 174\n }\n ],\n \"quadratic\": [\n {\n \"book_i_id\": 1,\n \"book_j_id\": 2,\n \"pair_bonus\": 123\n },\n {\n \"book_i_id\": 1,\n \"book_j_id\": 11,\n \"pair_bonus\": 110\n },\n {\n \"book_i_id\": 1,\n \"book_j_id\": 12,\n \"pair_bonus\": 627\n },\n {\n \"book_i_id\": 1,\n \"book_j_id\": 13,\n \"pair_bonus\": 567\n },\n {\n \"book_i_id\": 1,\n \"book_j_id\": 14,\n \"pair_bonus\": 794\n },\n {\n \"book_i_id\": 1,\n \"book_j_id\": 16,\n \"pair_bonus\": 656\n },\n {\n \"book_i_id\": 2,\n \"book_j_id\": 4,\n \"pair_bonus\": 589\n },\n {\n \"book_i_id\": 2,\n \"book_j_id\": 7,\n \"pair_bonus\": 448\n },\n {\n \"book_i_id\": 2,\n \"book_j_id\": 8,\n \"pair_bonus\": 494\n },\n {\n \"book_i_id\": 2,\n \"book_j_id\": 10,\n \"pair_bonus\": 470\n },\n {\n \"book_i_id\": 2,\n \"book_j_id\": 11,\n \"pair_bonus\": 428\n },\n {\n \"book_i_id\": 2,\n \"book_j_id\": 12,\n \"pair_bonus\": 877\n },\n {\n \"book_i_id\": 2,\n \"book_j_id\": 14,\n \"pair_bonus\": 815\n },\n {\n \"book_i_id\": 2,\n \"book_j_id\": 16,\n \"pair_bonus\": 115\n },\n {\n \"book_i_id\": 3,\n \"book_j_id\": 8,\n \"pair_bonus\": 652\n },\n {\n \"book_i_id\": 3,\n \"book_j_id\": 9,\n \"pair_bonus\": 712\n },\n {\n \"book_i_id\": 3,\n \"book_j_id\": 12,\n \"pair_bonus\": 114\n },\n {\n \"book_i_id\": 3,\n \"book_j_id\": 14,\n \"pair_bonus\": 442\n },\n {\n \"book_i_id\": 3,\n \"book_j_id\": 15,\n \"pair_bonus\": 367\n },\n {\n \"book_i_id\": 4,\n \"book_j_id\": 8,\n \"pair_bonus\": 604\n },\n {\n \"book_i_id\": 4,\n \"book_j_id\": 9,\n \"pair_bonus\": 606\n },\n {\n \"book_i_id\": 4,\n \"book_j_id\": 11,\n \"pair_bonus\": 417\n },\n {\n \"book_i_id\": 4,\n \"book_j_id\": 12,\n \"pair_bonus\": 861\n },\n {\n \"book_i_id\": 4,\n \"book_j_id\": 15,\n \"pair_bonus\": 372\n },\n {\n \"book_i_id\": 5,\n \"book_j_id\": 7,\n \"pair_bonus\": 650\n },\n {\n \"book_i_id\": 5,\n \"book_j_id\": 8,\n \"pair_bonus\": 773\n },\n {\n \"book_i_id\": 5,\n \"book_j_id\": 12,\n \"pair_bonus\": 362\n },\n {\n \"book_i_id\": 5,\n \"book_j_id\": 13,\n \"pair_bonus\": 812\n },\n {\n \"book_i_id\": 5,\n \"book_j_id\": 14,\n \"pair_bonus\": 245\n },\n {\n \"book_i_id\": 5,\n \"book_j_id\": 15,\n \"pair_bonus\": 674\n },\n {\n \"book_i_id\": 6,\n \"book_j_id\": 7,\n \"pair_bonus\": 765\n },\n {\n \"book_i_id\": 6,\n \"book_j_id\": 11,\n \"pair_bonus\": 865\n },\n {\n \"book_i_id\": 6,\n \"book_j_id\": 13,\n \"pair_bonus\": 610\n },\n {\n \"book_i_id\": 6,\n \"book_j_id\": 16,\n \"pair_bonus\": 562\n },\n {\n \"book_i_id\": 7,\n \"book_j_id\": 9,\n \"pair_bonus\": 855\n },\n {\n \"book_i_id\": 7,\n \"book_j_id\": 10,\n \"pair_bonus\": 168\n },\n {\n \"book_i_id\": 7,\n \"book_j_id\": 12,\n \"pair_bonus\": 254\n },\n {\n \"book_i_id\": 7,\n \"book_j_id\": 15,\n \"pair_bonus\": 575\n },\n {\n \"book_i_id\": 8,\n \"book_j_id\": 9,\n \"pair_bonus\": 135\n },\n {\n \"book_i_id\": 8,\n \"book_j_id\": 10,\n \"pair_bonus\": 774\n },\n {\n \"book_i_id\": 8,\n \"book_j_id\": 11,\n \"pair_bonus\": 762\n },\n {\n \"book_i_id\": 8,\n \"book_j_id\": 14,\n \"pair_bonus\": 345\n },\n {\n \"book_i_id\": 8,\n \"book_j_id\": 15,\n \"pair_bonus\": 464\n },\n {\n \"book_i_id\": 8,\n \"book_j_id\": 16,\n \"pair_bonus\": 494\n },\n {\n \"book_i_id\": 9,\n \"book_j_id\": 14,\n \"pair_bonus\": 384\n },\n {\n \"book_i_id\": 9,\n \"book_j_id\": 15,\n \"pair_bonus\": 616\n },\n {\n \"book_i_id\": 10,\n \"book_j_id\": 11,\n \"pair_bonus\": 333\n },\n {\n \"book_i_id\": 10,\n \"book_j_id\": 12,\n \"pair_bonus\": 851\n },\n {\n \"book_i_id\": 10,\n \"book_j_id\": 13,\n \"pair_bonus\": 141\n },\n {\n \"book_i_id\": 10,\n \"book_j_id\": 15,\n \"pair_bonus\": 277\n },\n {\n \"book_i_id\": 10,\n \"book_j_id\": 16,\n \"pair_bonus\": 634\n },\n {\n \"book_i_id\": 11,\n \"book_j_id\": 12,\n \"pair_bonus\": 528\n },\n {\n \"book_i_id\": 12,\n \"book_j_id\": 13,\n \"pair_bonus\": 661\n },\n {\n \"book_i_id\": 12,\n \"book_j_id\": 14,\n \"pair_bonus\": 699\n },\n {\n \"book_i_id\": 13,\n \"book_j_id\": 16,\n \"pair_bonus\": 297\n },\n {\n \"book_i_id\": 14,\n \"book_j_id\": 16,\n \"pair_bonus\": 213\n }\n ]\n}\n\nWhen you send your pick, just stick to this simple JSON layout so I know which books you chose — nothing fancy, just the list of book ids.\n\n{\n \"solution\": [, , ...]\n}\n\nPretty straightforward: \"solution\" is the list of the books you want to put on the shelf, each entry being the book's identifier from the instance. Think of it like filling in a short form that names the books you’re displaying.\n\nThis JSON is only a sketch of the shape I expect you to return — not the final answer itself.\n\nPlease make sure to use the identifiers exactly as they appear in the instance input — no renaming, and don’t introduce any new labels.\n\nValid 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”.", "instance": { "linear_coeffs": [ 792, 238, 233, 259, 846, 136, 655, 341, 297, 418, 223, 809, 552, 823, 120, 420 ], "quadratic_coeffs": [ [ 0, 123, 0, 0, 0, 0, 0, 0, 0, 0, 110, 627, 567, 794, 0, 656 ], [ 0, 402, 0, 589, 0, 0, 448, 494, 0, 470, 428, 877, 0, 815, 0, 115 ], [ 0, 0, 0, 0, 0, 0, 0, 652, 712, 0, 0, 114, 0, 442, 367, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 604, 606, 0, 417, 861, 0, 0, 372, 0 ], [ 0, 0, 0, 0, 233, 0, 650, 773, 0, 0, 0, 362, 812, 245, 674, 0 ], [ 0, 0, 0, 0, 0, 657, 765, 0, 0, 0, 865, 0, 610, 0, 0, 562 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 855, 168, 0, 254, 0, 0, 575, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 135, 774, 762, 0, 0, 345, 464, 494 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 881, 0, 0, 0, 0, 384, 616, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 333, 851, 141, 0, 277, 634 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 867, 528, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 661, 699, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 233, 0, 0, 297 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 762, 0, 213 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 715, 653, 160, 745, 518, 585, 733, 254, 513, 550, 476, 343, 864, 348, 327, 174 ], "capacity": 345, "solution": [ 11 ], "obj": 809.0, "problem_type": "QKP" }, "solution": [ 11 ], "obj": 809.0, "instance_variant": { "problem_type": "QKP", "num_items": 16, "capacity": 345, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 792 }, { "item_id": 2, "linear_profit": 238 }, { "item_id": 3, "linear_profit": 233 }, { "item_id": 4, "linear_profit": 259 }, { "item_id": 5, "linear_profit": 846 }, { "item_id": 6, "linear_profit": 136 }, { "item_id": 7, "linear_profit": 655 }, { "item_id": 8, "linear_profit": 341 }, { "item_id": 9, "linear_profit": 297 }, { "item_id": 10, "linear_profit": 418 }, { "item_id": 11, "linear_profit": 223 }, { "item_id": 12, "linear_profit": 809 }, { "item_id": 13, "linear_profit": 552 }, { "item_id": 14, "linear_profit": 823 }, { "item_id": 15, "linear_profit": 120 }, { "item_id": 16, "linear_profit": 420 } ], "weight_pairs": [ { "item_id": 1, "weight": 715 }, { "item_id": 2, "weight": 653 }, { "item_id": 3, "weight": 160 }, { "item_id": 4, "weight": 745 }, { "item_id": 5, "weight": 518 }, { "item_id": 6, "weight": 585 }, { "item_id": 7, "weight": 733 }, { "item_id": 8, "weight": 254 }, { "item_id": 9, "weight": 513 }, { "item_id": 10, "weight": 550 }, { "item_id": 11, "weight": 476 }, { "item_id": 12, "weight": 343 }, { "item_id": 13, "weight": 864 }, { "item_id": 14, "weight": 348 }, { "item_id": 15, "weight": 327 }, { "item_id": 16, "weight": 174 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 123 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 110 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 627 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 567 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 794 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 656 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 402 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 589 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 448 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 494 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 470 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 428 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 877 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 815 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 115 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 652 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 712 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 114 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 442 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 367 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 604 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 606 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 417 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 861 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 372 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 233 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 650 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 773 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 362 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 812 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 245 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 674 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 657 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 765 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 865 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 610 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 562 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 855 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 168 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 254 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 575 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 135 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 774 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 762 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 345 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 464 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 494 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 881 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 384 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 616 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 333 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 851 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 141 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 277 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 634 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 867 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 528 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 327 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 661 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 699 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 233 }, { "item_i_id": 13, "item_j_id": 16, "quadratic_profit": 297 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 762 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 213 } ] }, "solution_variant": [ 12 ], "context_index": 40, "input_format": "json", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "I’m prepping for a pop-up plant sale and trying to pack a single flatbed without going over its maximum load, so there’s a decision to make about which pots to bring. Every pot contributes a base margin, and a few specific pairings add extra margin if both make the trip. The aim is to pick the set of plants whose combined weight stays under the limit and that gives the largest possible take — by summing up each chosen pot’s margin plus any extra bonuses for those special pairs — and each plant is either taken once or left. The concrete details (plant list, weights, margins, pair bonuses) are given below.\n\nBelow are the 23 plants (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W) and the flatbed max load 252.\nI can include A for a base margin of 234.\nI can include B for a base margin of 160.\nI can include C for a base margin of 185.\nI can include D for a base margin of 157.\nI can include E for a base margin of 171.\nI can include F for a base margin of 129.\nI can include G for a base margin of 174.\nI can include H for a base margin of 271.\nI can include I for a base margin of 127.\nI can include J for a base margin of 128.\nI can include K for a base margin of 217.\nI can include L for a base margin of 268.\nI can include M for a base margin of 95.\nI can include N for a base margin of 260.\nI can include O for a base margin of 189.\nI can include P for a base margin of 148.\nI can include Q for a base margin of 108.\nI can include R for a base margin of 194.\nI can include S for a base margin of 98.\nI can include T for a base margin of 265.\nI can include U for a base margin of 247.\nI can include V for a base margin of 203.\nI can include W for a base margin of 185.\nI can include A which weighs 235.\nI can include B which weighs 146.\nI can include C which weighs 199.\nI can include D which weighs 166.\nI can include E which weighs 185.\nI can include F which weighs 131.\nI can include G which weighs 177.\nI can include H which weighs 274.\nI can include I which weighs 129.\nI can include J which weighs 142.\nI can include K which weighs 211.\nI can include L which weighs 271.\nI can include M which weighs 102.\nI can include N which weighs 253.\nI can include O which weighs 201.\nI can include P which weighs 160.\nI can include Q which weighs 106.\nI can include R which weighs 184.\nI can include S which weighs 107.\nI can include T which weighs 270.\nI can include U which weighs 234.\nI can include V which weighs 190.\nI can include W which weighs 198.\nIf I load A together with B, I earn an extra 241.\nIf I load A together with C, I earn an extra 199.\nIf I load A together with F, I earn an extra 253.\nIf I load A together with G, I earn an extra 242.\nIf I load A together with I, I earn an extra 232.\nIf I load A together with J, I earn an extra 223.\nIf I load A together with L, I earn an extra 231.\nIf I load A together with M, I earn an extra 162.\nIf I load A together with N, I earn an extra 203.\nIf I load A together with O, I earn an extra 172.\nIf I load A together with P, I earn an extra 251.\nIf I load A together with Q, I earn an extra 200.\nIf I load A together with R, I earn an extra 247.\nIf I load A together with S, I earn an extra 248.\nIf I load A together with T, I earn an extra 198.\nIf I load A together with U, I earn an extra 264.\nIf I load A together with W, I earn an extra 219.\nIf I load B together with D, I earn an extra 199.\nIf I load B together with E, I earn an extra 160.\nIf I load B together with F, I earn an extra 152.\nIf I load B together with G, I earn an extra 124.\nIf I load B together with H, I earn an extra 126.\nIf I load B together with I, I earn an extra 200.\nIf I load B together with J, I earn an extra 154.\nIf I load B together with K, I earn an extra 156.\nIf I load B together with M, I earn an extra 158.\nIf I load B together with N, I earn an extra 162.\nIf I load B together with O, I earn an extra 166.\nIf I load B together with P, I earn an extra 175.\nIf I load B together with Q, I earn an extra 163.\nIf I load B together with R, I earn an extra 153.\nIf I load B together with S, I earn an extra 184.\nIf I load B together with T, I earn an extra 173.\nIf I load B together with U, I earn an extra 166.\nIf I load B together with W, I earn an extra 174.\nIf I load C together with D, I earn an extra 233.\nIf I load C together with G, I earn an extra 213.\nIf I load C together with I, I earn an extra 158.\nIf I load C together with J, I earn an extra 199.\nIf I load C together with K, I earn an extra 231.\nIf I load C together with L, I earn an extra 180.\nIf I load C together with M, I earn an extra 191.\nIf I load C together with N, I earn an extra 198.\nIf I load C together with O, I earn an extra 243.\nIf I load C together with P, I earn an extra 201.\nIf I load C together with Q, I earn an extra 237.\nIf I load C together with S, I earn an extra 164.\nIf I load C together with V, I earn an extra 124.\nIf I load C together with W, I earn an extra 164.\nIf I load D together with E, I earn an extra 222.\nIf I load D together with G, I earn an extra 148.\nIf I load D together with H, I earn an extra 177.\nIf I load D together with I, I earn an extra 185.\nIf I load D together with J, I earn an extra 207.\nIf I load D together with K, I earn an extra 186.\nIf I load D together with M, I earn an extra 184.\nIf I load D together with N, I earn an extra 180.\nIf I load D together with P, I earn an extra 147.\nIf I load D together with Q, I earn an extra 185.\nIf I load D together with R, I earn an extra 231.\nIf I load D together with S, I earn an extra 205.\nIf I load D together with T, I earn an extra 265.\nIf I load D together with V, I earn an extra 204.\nIf I load D together with W, I earn an extra 186.\nIf I load E together with G, I earn an extra 177.\nIf I load E together with H, I earn an extra 194.\nIf I load E together with I, I earn an extra 153.\nIf I load E together with J, I earn an extra 209.\nIf I load E together with K, I earn an extra 191.\nIf I load E together with L, I earn an extra 228.\nIf I load E together with M, I earn an extra 190.\nIf I load E together with O, I earn an extra 159.\nIf I load E together with P, I earn an extra 198.\nIf I load E together with Q, I earn an extra 218.\nIf I load E together with R, I earn an extra 202.\nIf I load E together with S, I earn an extra 252.\nIf I load E together with T, I earn an extra 172.\nIf I load E together with U, I earn an extra 159.\nIf I load E together with V, I earn an extra 246.\nIf I load E together with W, I earn an extra 239.\nIf I load F together with G, I earn an extra 170.\nIf I load F together with H, I earn an extra 143.\nIf I load F together with I, I earn an extra 185.\nIf I load F together with J, I earn an extra 145.\nIf I load F together with L, I earn an extra 131.\nIf I load F together with M, I earn an extra 165.\nIf I load F together with N, I earn an extra 183.\nIf I load F together with P, I earn an extra 257.\nIf I load F together with Q, I earn an extra 228.\nIf I load F together with S, I earn an extra 227.\nIf I load F together with T, I earn an extra 200.\nIf I load F together with V, I earn an extra 167.\nIf I load F together with W, I earn an extra 247.\nIf I load G together with H, I earn an extra 215.\nIf I load G together with I, I earn an extra 171.\nIf I load G together with J, I earn an extra 146.\nIf I load G together with L, I earn an extra 247.\nIf I load G together with M, I earn an extra 267.\nIf I load G together with N, I earn an extra 292.\nIf I load G together with O, I earn an extra 266.\nIf I load G together with Q, I earn an extra 174.\nIf I load G together with R, I earn an extra 187.\nIf I load G together with S, I earn an extra 228.\nIf I load G together with U, I earn an extra 174.\nIf I load H together with I, I earn an extra 210.\nIf I load H together with K, I earn an extra 239.\nIf I load H together with L, I earn an extra 166.\nIf I load H together with M, I earn an extra 185.\nIf I load H together with N, I earn an extra 169.\nIf I load H together with O, I earn an extra 174.\nIf I load H together with P, I earn an extra 237.\nIf I load H together with Q, I earn an extra 230.\nIf I load H together with R, I earn an extra 253.\nIf I load H together with S, I earn an extra 157.\nIf I load H together with U, I earn an extra 201.\nIf I load H together with V, I earn an extra 209.\nIf I load H together with W, I earn an extra 174.\nIf I load I together with J, I earn an extra 142.\nIf I load I together with K, I earn an extra 130.\nIf I load I together with L, I earn an extra 198.\nIf I load I together with M, I earn an extra 184.\nIf I load I together with O, I earn an extra 193.\nIf I load I together with Q, I earn an extra 161.\nIf I load I together with T, I earn an extra 150.\nIf I load I together with U, I earn an extra 127.\nIf I load I together with W, I earn an extra 203.\nIf I load J together with N, I earn an extra 172.\nIf I load J together with O, I earn an extra 139.\nIf I load J together with Q, I earn an extra 117.\nIf I load J together with R, I earn an extra 130.\nIf I load J together with S, I earn an extra 158.\nIf I load J together with T, I earn an extra 123.\nIf I load J together with U, I earn an extra 151.\nIf I load J together with V, I earn an extra 146.\nIf I load K together with L, I earn an extra 132.\nIf I load K together with M, I earn an extra 194.\nIf I load K together with N, I earn an extra 219.\nIf I load K together with P, I earn an extra 164.\nIf I load K together with Q, I earn an extra 173.\nIf I load K together with R, I earn an extra 160.\nIf I load K together with S, I earn an extra 199.\nIf I load K together with T, I earn an extra 185.\nIf I load K together with U, I earn an extra 177.\nIf I load K together with V, I earn an extra 205.\nIf I load L together with M, I earn an extra 129.\nIf I load L together with N, I earn an extra 128.\nIf I load L together with P, I earn an extra 145.\nIf I load L together with Q, I earn an extra 144.\nIf I load L together with T, I earn an extra 110.\nIf I load L together with U, I earn an extra 152.\nIf I load L together with V, I earn an extra 154.\nIf I load L together with W, I earn an extra 148.\nIf I load M together with N, I earn an extra 126.\nIf I load M together with O, I earn an extra 141.\nIf I load M together with P, I earn an extra 181.\nIf I load M together with T, I earn an extra 182.\nIf I load M together with U, I earn an extra 219.\nIf I load M together with W, I earn an extra 231.\nIf I load N together with O, I earn an extra 230.\nIf I load N together with P, I earn an extra 282.\nIf I load N together with Q, I earn an extra 207.\nIf I load N together with R, I earn an extra 191.\nIf I load N together with S, I earn an extra 152.\nIf I load N together with T, I earn an extra 179.\nIf I load N together with U, I earn an extra 152.\nIf I load N together with V, I earn an extra 229.\nIf I load N together with W, I earn an extra 244.\nIf I load O together with P, I earn an extra 146.\nIf I load O together with Q, I earn an extra 130.\nIf I load O together with R, I earn an extra 130.\nIf I load O together with S, I earn an extra 208.\nIf I load O together with T, I earn an extra 210.\nIf I load O together with U, I earn an extra 178.\nIf I load O together with V, I earn an extra 143.\nIf I load O together with W, I earn an extra 223.\nIf I load P together with Q, I earn an extra 159.\nIf I load P together with S, I earn an extra 164.\nIf I load P together with T, I earn an extra 172.\nIf I load P together with V, I earn an extra 193.\nIf I load P together with W, I earn an extra 141.\nIf I load Q together with R, I earn an extra 147.\nIf I load Q together with S, I earn an extra 136.\nIf I load Q together with T, I earn an extra 142.\nIf I load Q together with V, I earn an extra 122.\nIf I load R together with S, I earn an extra 148.\nIf I load R together with T, I earn an extra 148.\nIf I load R together with V, I earn an extra 246.\nIf I load R together with W, I earn an extra 169.\nIf I load S together with T, I earn an extra 253.\nIf I load S together with U, I earn an extra 235.\nIf I load S together with W, I earn an extra 217.\nIf I load T together with U, I earn an extra 223.\nIf I load T together with V, I earn an extra 185.\nIf I load T together with W, I earn an extra 185.\nIf I load U together with V, I earn an extra 208.\nIf I load U together with W, I earn an extra 229.\nIf I load V together with W, I earn an extra 141.\nI'll use these details to pick plants that stay under 252 and maximize my take.\n\nAlso, when you give your pick, please put it in a tiny JSON snippet like this so it's easy to read and check:\n\n{\n \"solution\": [\"\", \"\", ...]\n}\n\nHere \"solution\" is just a list of the plant identifiers you're planning to load onto the flatbed. Think of it as the simple answer form: the names (IDs) of the pots you’ll bring, nothing else. This is just a sketch of the shape I expect, not the actual packing decision.\n\nPlease use the exact identifiers from the instance input — no renaming and no new labels. \n- 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”.\"", "instance": { "linear_coeffs": [ 234, 160, 185, 157, 171, 129, 174, 271, 127, 128, 217, 268, 95, 260, 189, 148, 108, 194, 98, 265, 247, 203, 185 ], "quadratic_coeffs": [ [ 238, 241, 199, 0, 0, 253, 242, 0, 232, 223, 0, 231, 162, 203, 172, 251, 200, 247, 248, 198, 264, 0, 219 ], [ 0, 148, 0, 199, 160, 152, 124, 126, 200, 154, 156, 0, 158, 162, 166, 175, 163, 153, 184, 173, 166, 0, 174 ], [ 0, 0, 141, 233, 0, 0, 213, 0, 158, 199, 231, 180, 191, 198, 243, 201, 237, 0, 164, 0, 0, 124, 164 ], [ 0, 0, 0, 133, 222, 0, 148, 177, 185, 207, 186, 0, 184, 180, 0, 147, 185, 231, 205, 265, 0, 204, 186 ], [ 0, 0, 0, 0, 137, 0, 177, 194, 153, 209, 191, 228, 190, 0, 159, 198, 218, 202, 252, 172, 159, 246, 239 ], [ 0, 0, 0, 0, 0, 135, 170, 143, 185, 145, 0, 131, 165, 183, 0, 257, 228, 0, 227, 200, 0, 167, 247 ], [ 0, 0, 0, 0, 0, 0, 214, 215, 171, 146, 0, 247, 267, 292, 266, 0, 174, 187, 228, 0, 174, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 196, 210, 0, 239, 166, 185, 169, 174, 237, 230, 253, 157, 0, 201, 209, 174 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 125, 142, 130, 198, 184, 0, 193, 0, 161, 0, 0, 150, 127, 0, 203 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 0, 0, 0, 172, 139, 0, 117, 130, 158, 123, 151, 146, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 132, 194, 219, 0, 164, 173, 160, 199, 185, 177, 205, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130, 129, 128, 0, 145, 144, 0, 0, 110, 152, 154, 148 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 126, 141, 181, 0, 0, 0, 182, 219, 0, 231 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 230, 282, 207, 191, 152, 179, 152, 229, 244 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 146, 130, 130, 208, 210, 178, 143, 223 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 179, 159, 0, 164, 172, 0, 193, 141 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 139, 147, 136, 142, 0, 122, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 148, 148, 0, 246, 169 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 253, 235, 0, 217 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 223, 185, 185 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 163, 208, 229 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 167, 141 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195 ] ], "weights": [ 235, 146, 199, 166, 185, 131, 177, 274, 129, 142, 211, 271, 102, 253, 201, 160, 106, 184, 107, 270, 234, 190, 198 ], "capacity": 252, "solution": [ 5, 16 ], "obj": 465.0, "problem_type": "QKP" }, "solution": [ 5, 16 ], "obj": 465.0, "instance_variant": { "problem_type": "QKP", "num_items": 23, "capacity": 252, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 234 }, { "item_id": "B", "linear_profit": 160 }, { "item_id": "C", "linear_profit": 185 }, { "item_id": "D", "linear_profit": 157 }, { "item_id": "E", "linear_profit": 171 }, { "item_id": "F", "linear_profit": 129 }, { "item_id": "G", "linear_profit": 174 }, { "item_id": "H", "linear_profit": 271 }, { "item_id": "I", "linear_profit": 127 }, { "item_id": "J", "linear_profit": 128 }, { "item_id": "K", "linear_profit": 217 }, { "item_id": "L", "linear_profit": 268 }, { "item_id": "M", "linear_profit": 95 }, { "item_id": "N", "linear_profit": 260 }, { "item_id": "O", "linear_profit": 189 }, { "item_id": "P", "linear_profit": 148 }, { "item_id": "Q", "linear_profit": 108 }, { "item_id": "R", "linear_profit": 194 }, { "item_id": "S", "linear_profit": 98 }, { "item_id": "T", "linear_profit": 265 }, { "item_id": "U", "linear_profit": 247 }, { "item_id": "V", "linear_profit": 203 }, { "item_id": "W", "linear_profit": 185 } ], "weight_pairs": [ { "item_id": "A", "weight": 235 }, { "item_id": "B", "weight": 146 }, { "item_id": "C", "weight": 199 }, { "item_id": "D", "weight": 166 }, { "item_id": "E", "weight": 185 }, { "item_id": "F", "weight": 131 }, { "item_id": "G", "weight": 177 }, { "item_id": "H", "weight": 274 }, { "item_id": "I", "weight": 129 }, { "item_id": "J", "weight": 142 }, { "item_id": "K", "weight": 211 }, { "item_id": "L", "weight": 271 }, { "item_id": "M", "weight": 102 }, { "item_id": "N", "weight": 253 }, { "item_id": "O", "weight": 201 }, { "item_id": "P", "weight": 160 }, { "item_id": "Q", "weight": 106 }, { "item_id": "R", "weight": 184 }, { "item_id": "S", "weight": 107 }, { "item_id": "T", "weight": 270 }, { "item_id": "U", "weight": 234 }, { "item_id": "V", "weight": 190 }, { "item_id": "W", "weight": 198 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 238 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 241 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 199 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 253 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 242 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 232 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 223 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 231 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 162 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 203 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 172 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 251 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 200 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 247 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 248 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 198 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 264 }, { "item_i_id": "A", "item_j_id": "W", "quadratic_profit": 219 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 148 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 199 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 160 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 152 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 124 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 126 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 200 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 154 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 156 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 158 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 162 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 166 }, { "item_i_id": "B", "item_j_id": "P", "quadratic_profit": 175 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 163 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 153 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 184 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 173 }, { "item_i_id": "B", "item_j_id": "U", "quadratic_profit": 166 }, { "item_i_id": "B", "item_j_id": "W", "quadratic_profit": 174 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 141 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 233 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 213 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 158 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 199 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 231 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 180 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 191 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 198 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 243 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 201 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 237 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 164 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 124 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 164 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 133 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 222 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 148 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 177 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 185 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 207 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 186 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 184 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 180 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 147 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 185 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 231 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 205 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 265 }, { "item_i_id": "D", "item_j_id": "V", "quadratic_profit": 204 }, { "item_i_id": "D", "item_j_id": "W", "quadratic_profit": 186 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 137 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 177 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 194 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 153 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 209 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 191 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 228 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 190 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 159 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 198 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 218 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 202 }, { "item_i_id": "E", "item_j_id": "S", "quadratic_profit": 252 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 172 }, { "item_i_id": "E", "item_j_id": "U", "quadratic_profit": 159 }, { "item_i_id": "E", "item_j_id": "V", "quadratic_profit": 246 }, { "item_i_id": "E", "item_j_id": "W", "quadratic_profit": 239 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 135 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 170 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 143 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 185 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 145 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 131 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 165 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 183 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 257 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 228 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 227 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 200 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 167 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 247 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 214 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 215 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 171 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 146 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 247 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 267 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 292 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 266 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 174 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 187 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 228 }, { "item_i_id": "G", "item_j_id": "U", "quadratic_profit": 174 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 196 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 210 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 239 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 166 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 185 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 169 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 174 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 237 }, { "item_i_id": "H", "item_j_id": "Q", "quadratic_profit": 230 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 253 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 157 }, { "item_i_id": "H", "item_j_id": "U", "quadratic_profit": 201 }, { "item_i_id": "H", "item_j_id": "V", "quadratic_profit": 209 }, { "item_i_id": "H", "item_j_id": "W", "quadratic_profit": 174 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 125 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 142 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 130 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 198 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 184 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 193 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 161 }, { "item_i_id": "I", "item_j_id": "T", "quadratic_profit": 150 }, { "item_i_id": "I", "item_j_id": "U", "quadratic_profit": 127 }, { "item_i_id": "I", "item_j_id": "W", "quadratic_profit": 203 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 172 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 172 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 139 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 117 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 130 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 158 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 123 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 151 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 146 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 132 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 194 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 219 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 164 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 173 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 160 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 199 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 185 }, { "item_i_id": "K", "item_j_id": "U", "quadratic_profit": 177 }, { "item_i_id": "K", "item_j_id": "V", "quadratic_profit": 205 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 130 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 129 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 128 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 145 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 144 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 110 }, { "item_i_id": "L", "item_j_id": "U", "quadratic_profit": 152 }, { "item_i_id": "L", "item_j_id": "V", "quadratic_profit": 154 }, { "item_i_id": "L", "item_j_id": "W", "quadratic_profit": 148 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 137 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 126 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 141 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 181 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 182 }, { "item_i_id": "M", "item_j_id": "U", "quadratic_profit": 219 }, { "item_i_id": "M", "item_j_id": "W", "quadratic_profit": 231 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 230 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 282 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 207 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 191 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 152 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 179 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 152 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 229 }, { "item_i_id": "N", "item_j_id": "W", "quadratic_profit": 244 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 146 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 130 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 130 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 208 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 210 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 178 }, { "item_i_id": "O", "item_j_id": "V", "quadratic_profit": 143 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 223 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 179 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 159 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 164 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 172 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 193 }, { "item_i_id": "P", "item_j_id": "W", "quadratic_profit": 141 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 139 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 147 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 136 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 142 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 122 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 148 }, { "item_i_id": "R", "item_j_id": "T", "quadratic_profit": 148 }, { "item_i_id": "R", "item_j_id": "V", "quadratic_profit": 246 }, { "item_i_id": "R", "item_j_id": "W", "quadratic_profit": 169 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 196 }, { "item_i_id": "S", "item_j_id": "T", "quadratic_profit": 253 }, { "item_i_id": "S", "item_j_id": "U", "quadratic_profit": 235 }, { "item_i_id": "S", "item_j_id": "W", "quadratic_profit": 217 }, { "item_i_id": "T", "item_j_id": "U", "quadratic_profit": 223 }, { "item_i_id": "T", "item_j_id": "V", "quadratic_profit": 185 }, { "item_i_id": "T", "item_j_id": "W", "quadratic_profit": 185 }, { "item_i_id": "U", "item_j_id": "U", "quadratic_profit": 163 }, { "item_i_id": "U", "item_j_id": "V", "quadratic_profit": 208 }, { "item_i_id": "U", "item_j_id": "W", "quadratic_profit": 229 }, { "item_i_id": "V", "item_j_id": "V", "quadratic_profit": 167 }, { "item_i_id": "V", "item_j_id": "W", "quadratic_profit": 141 }, { "item_i_id": "W", "item_j_id": "W", "quadratic_profit": 195 } ] }, "solution_variant": [ "F", "Q" ], "context_index": 41, "input_format": "nl", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "I’m hauling a crate of vinyl to a gig and need to pick what goes in it. Each record has its own crowd-pleasing score, and certain pairs of records boost the vibe even more if both are in the set — the total payoff is the sum of each record’s score plus any extra bonuses from pairs that end up together. The catch is the crate can only hold so much weight and there’s only one copy of each record, so the aim is to get the highest total score while keeping the total weight under the transport limit. The exact records, weights, and pair bonuses are listed below.\n\nI'm choosing from 23 records: A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, and my crate holds up to 2733 weight — details below.\n\n| record_id | crowd_pleasing_score |\n|---|---|\n| A | 118 |\n| B | 217 |\n| C | 123 |\n| D | 165 |\n| E | 180 |\n| F | 231 |\n| G | 105 |\n| H | 105 |\n| I | 141 |\n| J | 226 |\n| K | 203 |\n| L | 274 |\n| M | 208 |\n| N | 162 |\n| O | 199 |\n| P | 267 |\n| Q | 208 |\n| R | 235 |\n| S | 239 |\n| T | 266 |\n| U | 196 |\n| V | 255 |\n| W | 301 |\n\n| record_id | record_weight |\n|---|---|\n| A | 122 |\n| B | 221 |\n| C | 133 |\n| D | 154 |\n| E | 171 |\n| F | 233 |\n| G | 101 |\n| H | 102 |\n| I | 132 |\n| J | 214 |\n| K | 205 |\n| L | 274 |\n| M | 223 |\n| N | 161 |\n| O | 201 |\n| P | 275 |\n| Q | 214 |\n| R | 246 |\n| S | 235 |\n| T | 279 |\n| U | 194 |\n| V | 253 |\n| W | 294 |\n\n| record_i_id | record_j_id | pair_synergy_bonus |\n|---|---|---|\n| A | H | 122 |\n| A | J | 122 |\n| A | L | 122 |\n| A | O | 103 |\n| A | P | 122 |\n| A | Q | 122 |\n| A | R | 122 |\n| A | U | 122 |\n| A | V | 114 |\n| A | W | 147 |\n| B | D | 148 |\n| B | E | 165 |\n| B | I | 174 |\n| B | J | 122 |\n| B | K | 221 |\n| B | N | 103 |\n| B | V | 163 |\n| C | Q | 133 |\n| C | W | 191 |\n| D | G | 154 |\n| D | H | 154 |\n| D | I | 133 |\n| D | K | 154 |\n| D | M | 154 |\n| D | U | 153 |\n| D | V | 153 |\n| E | G | 114 |\n| E | I | 171 |\n| E | M | 123 |\n| E | N | 171 |\n| E | T | 185 |\n| F | I | 186 |\n| F | J | 213 |\n| F | P | 233 |\n| F | R | 224 |\n| F | U | 165 |\n| F | W | 165 |\n| G | L | 101 |\n| G | P | 101 |\n| G | R | 101 |\n| H | I | 102 |\n| H | K | 102 |\n| H | O | 102 |\n| H | T | 245 |\n| H | U | 245 |\n| I | K | 132 |\n| I | O | 132 |\n| I | T | 199 |\n| J | N | 164 |\n| J | O | 107 |\n| J | U | 111 |\n| K | O | 202 |\n| L | T | 114 |\n| M | O | 156 |\n| M | P | 149 |\n| N | Q | 144 |\n| N | T | 132 |\n| O | S | 151 |\n| O | U | 186 |\n| O | W | 164 |\n| P | V | 137 |\n| R | S | 114 |\n| S | V | 131 |\n| T | W | 119 |\n| U | V | 184 |\n\nI'll aim to pack the best-scoring mix without exceeding 2733.\n\nAlso, when you tell me which records make the cut, a tiny JSON snippet like this is the easiest way to send it back — nice and simple:\n\n{\n \"solution\": [, , ...]\n}\n\nHere, \"solution\" is just a list of the record IDs you want in the crate — nothing fancy, just the exact identifiers of the records you picked. Think of it as the checklist: each placeholder like stands for one record you include.\n\nThis is just the shape I need, not your final score or any calculations — just the chosen IDs. Please use the item identifiers exactly as they appear in the instance input — do not rename them or invent new labels.\n\n- 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”.\"", "instance": { "linear_coeffs": [ 118, 217, 123, 165, 180, 231, 105, 105, 141, 226, 203, 274, 208, 162, 199, 267, 208, 235, 239, 266, 196, 255, 301 ], "quadratic_coeffs": [ [ 0, 0, 0, 0, 0, 0, 0, 122, 0, 122, 0, 122, 0, 0, 103, 122, 122, 122, 0, 0, 122, 114, 147 ], [ 0, 191, 0, 148, 165, 0, 0, 0, 174, 122, 221, 0, 0, 103, 0, 0, 0, 0, 0, 0, 0, 163, 0 ], [ 0, 0, 133, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 133, 0, 0, 0, 0, 0, 191 ], [ 0, 0, 0, 0, 0, 0, 154, 154, 133, 0, 154, 0, 154, 0, 0, 0, 0, 0, 0, 0, 153, 153, 0 ], [ 0, 0, 0, 0, 0, 0, 114, 0, 171, 0, 0, 0, 123, 171, 0, 0, 0, 0, 0, 185, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 186, 213, 0, 0, 0, 0, 0, 233, 0, 224, 0, 0, 165, 0, 165 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 101, 0, 101, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 102, 0, 0, 0, 102, 0, 0, 0, 0, 245, 245, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 132, 0, 0, 0, 132, 0, 0, 0, 0, 199, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 164, 107, 0, 0, 0, 0, 0, 111, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 0, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 114, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 149, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 144, 0, 0, 132, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 151, 0, 186, 0, 164 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 137, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 114, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 131, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 119 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 184, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 122, 221, 133, 154, 171, 233, 101, 102, 132, 214, 205, 274, 223, 161, 201, 275, 214, 246, 235, 279, 194, 253, 294 ], "capacity": 2733, "solution": [ 0, 1, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14, 19, 20, 21 ], "obj": 8745.0, "problem_type": "QKP" }, "solution": [ 0, 1, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14, 19, 20, 21 ], "obj": 8745.0, "instance_variant": { "problem_type": "QKP", "num_items": 23, "capacity": 2733, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 118 }, { "item_id": "B", "linear_profit": 217 }, { "item_id": "C", "linear_profit": 123 }, { "item_id": "D", "linear_profit": 165 }, { "item_id": "E", "linear_profit": 180 }, { "item_id": "F", "linear_profit": 231 }, { "item_id": "G", "linear_profit": 105 }, { "item_id": "H", "linear_profit": 105 }, { "item_id": "I", "linear_profit": 141 }, { "item_id": "J", "linear_profit": 226 }, { "item_id": "K", "linear_profit": 203 }, { "item_id": "L", "linear_profit": 274 }, { "item_id": "M", "linear_profit": 208 }, { "item_id": "N", "linear_profit": 162 }, { "item_id": "O", "linear_profit": 199 }, { "item_id": "P", "linear_profit": 267 }, { "item_id": "Q", "linear_profit": 208 }, { "item_id": "R", "linear_profit": 235 }, { "item_id": "S", "linear_profit": 239 }, { "item_id": "T", "linear_profit": 266 }, { "item_id": "U", "linear_profit": 196 }, { "item_id": "V", "linear_profit": 255 }, { "item_id": "W", "linear_profit": 301 } ], "weight_pairs": [ { "item_id": "A", "weight": 122 }, { "item_id": "B", "weight": 221 }, { "item_id": "C", "weight": 133 }, { "item_id": "D", "weight": 154 }, { "item_id": "E", "weight": 171 }, { "item_id": "F", "weight": 233 }, { "item_id": "G", "weight": 101 }, { "item_id": "H", "weight": 102 }, { "item_id": "I", "weight": 132 }, { "item_id": "J", "weight": 214 }, { "item_id": "K", "weight": 205 }, { "item_id": "L", "weight": 274 }, { "item_id": "M", "weight": 223 }, { "item_id": "N", "weight": 161 }, { "item_id": "O", "weight": 201 }, { "item_id": "P", "weight": 275 }, { "item_id": "Q", "weight": 214 }, { "item_id": "R", "weight": 246 }, { "item_id": "S", "weight": 235 }, { "item_id": "T", "weight": 279 }, { "item_id": "U", "weight": 194 }, { "item_id": "V", "weight": 253 }, { "item_id": "W", "weight": 294 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 114 }, { "item_i_id": "A", "item_j_id": "W", "quadratic_profit": 147 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 191 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 148 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 165 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 174 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 122 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 221 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "V", "quadratic_profit": 163 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 133 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 133 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 191 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 154 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 154 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 133 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 154 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 154 }, { "item_i_id": "D", "item_j_id": "U", "quadratic_profit": 153 }, { "item_i_id": "D", "item_j_id": "V", "quadratic_profit": 153 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 114 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 171 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 123 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 171 }, { "item_i_id": "E", "item_j_id": "T", "quadratic_profit": 185 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 186 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 213 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 233 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 224 }, { "item_i_id": "F", "item_j_id": "U", "quadratic_profit": 165 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 165 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 245 }, { "item_i_id": "H", "item_j_id": "U", "quadratic_profit": 245 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 132 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 132 }, { "item_i_id": "I", "item_j_id": "T", "quadratic_profit": 199 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 164 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 107 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 111 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 205 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 202 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 114 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 156 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 149 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 144 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 132 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 151 }, { "item_i_id": "O", "item_j_id": "U", "quadratic_profit": 186 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 164 }, { "item_i_id": "P", "item_j_id": "V", "quadratic_profit": 137 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 114 }, { "item_i_id": "S", "item_j_id": "V", "quadratic_profit": 131 }, { "item_i_id": "T", "item_j_id": "W", "quadratic_profit": 119 }, { "item_i_id": "U", "item_j_id": "U", "quadratic_profit": 109 }, { "item_i_id": "U", "item_j_id": "V", "quadratic_profit": 184 } ] }, "solution_variant": [ "A", "B", "D", "E", "G", "H", "I", "J", "K", "M", "N", "O", "T", "U", "V" ], "context_index": 42, "input_format": "markdown_table", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We picture an aid team packing a single cargo box: there are a bunch of different aid kits, each with its own weight and a base amount of good it will do once delivered. On top of that, certain combinations of two kits create extra effectiveness when both travel together. The task is simple in idea — try to get as much total relief as possible by adding up each selected kit’s base impact and any extra pairwise bonuses — but stay within the box’s weight limit. Only whole kits are available and you can’t pick the same kit twice. The exact weights, impacts, and combo bonuses appear below.\n\n# num_kits=24\n# container_capacity=356\n# kit_ids=0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23\n\nkit_id,base_impact\n0,99\n1,105\n2,103\n3,103\n4,105\n5,103\n6,104\n7,106\n8,102\n9,101\n10,101\n11,97\n12,99\n13,96\n14,108\n15,101\n16,99\n17,103\n18,96\n19,102\n20,110\n21,104\n22,102\n23,101\n\nkit_id,kit_weight\n0,100\n1,100\n2,103\n3,103\n4,103\n5,102\n6,105\n7,101\n8,100\n9,101\n10,100\n11,100\n12,101\n13,100\n14,103\n15,100\n16,104\n17,105\n18,100\n19,103\n20,105\n21,102\n22,104\n23,105\n\nkit_i_id,kit_j_id,pairwise_boost\n0,4,100\n0,5,100\n0,8,100\n0,9,100\n0,10,100\n0,11,100\n0,16,100\n0,18,100\n0,21,100\n1,5,100\n1,11,100\n1,13,100\n1,17,100\n1,20,100\n1,22,101\n2,4,103\n2,5,103\n2,6,102\n2,11,103\n2,13,103\n2,14,102\n2,15,103\n2,16,100\n2,17,103\n2,19,103\n2,21,102\n3,4,101\n3,5,103\n3,6,103\n3,7,103\n3,8,103\n3,9,103\n3,10,102\n3,13,103\n3,14,103\n3,15,103\n3,19,101\n3,20,104\n3,21,100\n3,22,101\n4,5,103\n4,6,103\n4,8,101\n4,10,101\n4,11,103\n4,15,101\n4,16,100\n4,18,102\n4,19,102\n4,20,102\n4,22,102\n4,23,101\n5,7,101\n5,11,102\n5,12,102\n5,13,102\n5,14,102\n5,15,102\n5,17,101\n5,19,100\n5,21,100\n5,22,100\n6,7,100\n6,9,103\n6,14,100\n6,15,103\n6,17,100\n6,20,101\n7,13,101\n7,14,101\n7,16,100\n7,19,100\n7,20,100\n7,23,100\n8,10,100\n8,12,100\n8,13,100\n8,14,100\n8,18,101\n8,19,104\n8,21,102\n8,23,104\n9,10,101\n9,11,100\n9,12,101\n9,14,101\n9,17,103\n9,19,103\n9,21,101\n9,23,103\n10,12,100\n10,13,103\n10,14,100\n10,15,105\n10,17,105\n10,18,103\n10,20,104\n10,21,100\n10,22,101\n10,23,105\n11,12,100\n11,13,100\n11,15,100\n11,16,100\n11,17,100\n11,19,100\n11,20,100\n12,14,102\n12,16,102\n12,17,102\n12,18,100\n12,21,100\n12,22,102\n12,23,102\n13,17,100\n13,18,100\n13,20,102\n13,21,103\n14,17,103\n14,18,103\n14,20,100\n14,22,103\n15,18,100\n15,21,100\n15,23,102\n16,18,101\n16,19,103\n16,20,103\n16,22,105\n16,23,103\n17,19,100\n17,20,100\n17,21,100\n18,19,100\n18,20,101\n18,22,103\n19,20,103\n19,21,102\n19,22,104\n20,22,100\n20,23,100\n21,22,101\n21,23,104\n\nOh—and before you send your pick, it'd be great if you put it in a tiny JSON note like this so it's easy to read by the rest of the team:\n\n{\n \"solution\": [, , ...]\n}\n\nHere \"solution\" is just the list of which kits you want in the box — put each kit's identifier in the array. This is just a sketch of the shape I expect, not your final answer; replace the placeholders with the actual identifiers from the instance.\n\nPlease use the identifiers exactly as they appear in the instance input — don't rename them or invent new labels.\n- 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”.\"", "instance": { "linear_coeffs": [ 99, 105, 103, 103, 105, 103, 104, 106, 102, 101, 101, 97, 99, 96, 108, 101, 99, 103, 96, 102, 110, 104, 102, 101 ], "quadratic_coeffs": [ [ 0, 0, 0, 0, 100, 100, 0, 0, 100, 100, 100, 100, 0, 0, 0, 0, 100, 0, 100, 0, 0, 100, 0, 0 ], [ 0, 100, 0, 0, 0, 100, 0, 0, 0, 0, 0, 100, 0, 100, 0, 0, 0, 100, 0, 0, 100, 0, 101, 0 ], [ 0, 0, 101, 0, 103, 103, 102, 0, 0, 0, 0, 103, 0, 103, 102, 103, 100, 103, 0, 103, 0, 102, 0, 0 ], [ 0, 0, 0, 103, 101, 103, 103, 103, 103, 103, 102, 0, 0, 103, 103, 103, 0, 0, 0, 101, 104, 100, 101, 0 ], [ 0, 0, 0, 0, 102, 103, 103, 0, 101, 0, 101, 103, 0, 0, 0, 101, 100, 0, 102, 102, 102, 0, 102, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 102, 102, 102, 102, 102, 0, 101, 0, 100, 0, 100, 100, 0 ], [ 0, 0, 0, 0, 0, 0, 100, 100, 0, 103, 0, 0, 0, 0, 100, 103, 0, 100, 0, 0, 101, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 101, 101, 0, 100, 0, 0, 100, 100, 0, 0, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 100, 0, 100, 100, 100, 0, 0, 0, 101, 104, 0, 102, 0, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 100, 101, 0, 101, 0, 0, 103, 0, 103, 0, 101, 0, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 103, 100, 105, 0, 105, 103, 0, 104, 100, 101, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 0, 100, 100, 100, 0, 100, 100, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 102, 0, 102, 102, 100, 0, 0, 100, 102, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 100, 100, 0, 102, 103, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 103, 0, 100, 0, 103, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 100, 0, 0, 100, 0, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 103, 103, 0, 105, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 100, 101, 0, 103, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 103, 102, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, 101, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 100, 100, 103, 103, 103, 102, 105, 101, 100, 101, 100, 100, 101, 100, 103, 100, 104, 105, 100, 103, 105, 102, 104, 105 ], "capacity": 356, "solution": [ 3, 14, 20 ], "obj": 628.0, "problem_type": "QKP" }, "solution": [ 3, 14, 20 ], "obj": 628.0, "instance_variant": { "problem_type": "QKP", "num_items": 24, "capacity": 356, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 99 }, { "item_id": 1, "linear_profit": 105 }, { "item_id": 2, "linear_profit": 103 }, { "item_id": 3, "linear_profit": 103 }, { "item_id": 4, "linear_profit": 105 }, { "item_id": 5, "linear_profit": 103 }, { "item_id": 6, "linear_profit": 104 }, { "item_id": 7, "linear_profit": 106 }, { "item_id": 8, "linear_profit": 102 }, { "item_id": 9, "linear_profit": 101 }, { "item_id": 10, "linear_profit": 101 }, { "item_id": 11, "linear_profit": 97 }, { "item_id": 12, "linear_profit": 99 }, { "item_id": 13, "linear_profit": 96 }, { "item_id": 14, "linear_profit": 108 }, { "item_id": 15, "linear_profit": 101 }, { "item_id": 16, "linear_profit": 99 }, { "item_id": 17, "linear_profit": 103 }, { "item_id": 18, "linear_profit": 96 }, { "item_id": 19, "linear_profit": 102 }, { "item_id": 20, "linear_profit": 110 }, { "item_id": 21, "linear_profit": 104 }, { "item_id": 22, "linear_profit": 102 }, { "item_id": 23, "linear_profit": 101 } ], "weight_pairs": [ { "item_id": 0, "weight": 100 }, { "item_id": 1, "weight": 100 }, { "item_id": 2, "weight": 103 }, { "item_id": 3, "weight": 103 }, { "item_id": 4, "weight": 103 }, { "item_id": 5, "weight": 102 }, { "item_id": 6, "weight": 105 }, { "item_id": 7, "weight": 101 }, { "item_id": 8, "weight": 100 }, { "item_id": 9, "weight": 101 }, { "item_id": 10, "weight": 100 }, { "item_id": 11, "weight": 100 }, { "item_id": 12, "weight": 101 }, { "item_id": 13, "weight": 100 }, { "item_id": 14, "weight": 103 }, { "item_id": 15, "weight": 100 }, { "item_id": 16, "weight": 104 }, { "item_id": 17, "weight": 105 }, { "item_id": 18, "weight": 100 }, { "item_id": 19, "weight": 103 }, { "item_id": 20, "weight": 105 }, { "item_id": 21, "weight": 102 }, { "item_id": 22, "weight": 104 }, { "item_id": 23, "weight": 105 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 21, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 104 }, { "item_i_id": 3, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 22, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 23, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 22, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 7, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 21, "quadratic_profit": 102 }, { "item_i_id": 8, "item_j_id": 23, "quadratic_profit": 104 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 21, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 105 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 105 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 104 }, { "item_i_id": 10, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 23, "quadratic_profit": 105 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 22, "quadratic_profit": 102 }, { "item_i_id": 12, "item_j_id": 23, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 100 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 13, "item_j_id": 21, "quadratic_profit": 103 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 103 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 103 }, { "item_i_id": 14, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 22, "quadratic_profit": 103 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 15, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 15, "item_j_id": 23, "quadratic_profit": 102 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 103 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 16, "item_j_id": 22, "quadratic_profit": 105 }, { "item_i_id": 16, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 17, "item_j_id": 20, "quadratic_profit": 100 }, { "item_i_id": 17, "item_j_id": 21, "quadratic_profit": 100 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 100 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 101 }, { "item_i_id": 18, "item_j_id": 22, "quadratic_profit": 103 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 19, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 19, "item_j_id": 21, "quadratic_profit": 102 }, { "item_i_id": 19, "item_j_id": 22, "quadratic_profit": 104 }, { "item_i_id": 20, "item_j_id": 20, "quadratic_profit": 102 }, { "item_i_id": 20, "item_j_id": 22, "quadratic_profit": 100 }, { "item_i_id": 20, "item_j_id": 23, "quadratic_profit": 100 }, { "item_i_id": 21, "item_j_id": 21, "quadratic_profit": 105 }, { "item_i_id": 21, "item_j_id": 22, "quadratic_profit": 101 }, { "item_i_id": 21, "item_j_id": 23, "quadratic_profit": 104 } ] }, "solution_variant": [ 3, 14, 20 ], "context_index": 43, "input_format": "csv", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "I was loading up a mobile repair van and had to pick which tools to bring so the total weight fits in the back. Each tool can help on its own with a certain service value, and some tool pairs make jobs faster or smoother — adding a little extra value if both are on board. The trick is to pick a combination that gives the highest possible total service value (add up every chosen tool’s individual value, and include any extra bonuses for pairs that are both included) while making sure the summed weight doesn’t exceed the van’s storage limit; every tool is unique, so only one of each can be taken. The concrete weights, values, and pair bonuses are shown below.\n\n# total_tools_count=25\n# van_weight_capacity=12157\n# tool_identifiers=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\n\ntool_id,tool_service_value\n1,1377\n2,805\n3,502\n4,661\n5,603\n6,714\n7,722\n8,1782\n9,1162\n10,1524\n11,1835\n12,1097\n13,526\n14,1845\n15,1315\n16,1688\n17,1057\n18,400\n19,1622\n20,980\n21,873\n22,1842\n23,903\n24,460\n25,634\n\ntool_id,tool_weight\n1,1207\n2,635\n3,332\n4,491\n5,433\n6,544\n7,552\n8,1612\n9,992\n10,1354\n11,1665\n12,927\n13,356\n14,1675\n15,1145\n16,1518\n17,887\n18,230\n19,1452\n20,810\n21,703\n22,1672\n23,733\n24,290\n25,464\n\ntool_i_id,tool_j_id,pair_bonus_service\n1,2,483\n1,3,1091\n1,4,835\n1,5,1327\n1,6,1394\n1,8,1051\n1,9,583\n1,10,1026\n1,11,833\n1,12,1423\n1,13,696\n1,14,1188\n1,15,539\n1,17,614\n1,19,480\n1,20,1405\n1,21,987\n1,22,378\n1,24,612\n1,25,827\n2,4,343\n2,5,1031\n2,6,830\n2,7,793\n2,8,393\n2,10,693\n2,11,824\n2,12,505\n2,13,723\n2,14,960\n2,15,387\n2,16,654\n2,17,266\n2,18,845\n2,19,1574\n2,23,1246\n3,5,256\n3,6,743\n3,8,437\n3,9,347\n3,11,604\n3,12,727\n3,13,548\n3,15,957\n3,16,360\n3,17,941\n3,19,615\n3,20,317\n3,21,935\n3,23,767\n3,25,824\n4,7,537\n4,11,906\n4,12,242\n4,16,543\n4,17,952\n4,18,1591\n4,19,1531\n4,20,1155\n4,22,1496\n4,23,462\n4,25,753\n5,6,394\n5,7,630\n5,8,704\n5,9,664\n5,10,672\n5,11,335\n5,12,652\n5,13,619\n5,15,705\n5,18,989\n5,19,1134\n5,21,350\n5,23,1226\n5,24,469\n5,25,1190\n6,7,747\n6,8,955\n6,10,862\n6,11,930\n6,12,596\n6,13,845\n6,15,512\n6,16,702\n6,17,804\n6,18,643\n6,19,539\n6,21,753\n6,22,387\n6,23,515\n6,24,516\n6,25,648\n7,8,786\n7,10,679\n7,11,736\n7,12,755\n7,13,815\n7,15,799\n7,16,1120\n7,19,1009\n7,20,1118\n7,21,1086\n7,22,460\n7,23,664\n7,24,577\n8,9,1521\n8,10,608\n8,11,1393\n8,13,1005\n8,14,1018\n8,15,613\n8,16,1062\n8,17,927\n8,18,1203\n8,20,794\n8,22,1293\n8,23,1018\n8,24,1280\n8,25,1581\n9,11,557\n9,14,500\n9,15,274\n9,18,744\n9,19,588\n9,20,293\n9,21,615\n9,22,726\n9,23,526\n9,24,622\n9,25,659\n10,13,461\n10,14,251\n10,15,623\n10,16,534\n10,17,502\n10,20,238\n10,21,638\n10,22,422\n10,25,1075\n11,12,1515\n11,14,1581\n11,15,1501\n11,16,615\n11,17,601\n11,18,1620\n11,20,1073\n11,21,1025\n11,22,1527\n11,23,992\n11,25,722\n12,13,758\n12,14,459\n12,15,803\n12,16,758\n12,17,787\n12,18,573\n12,21,353\n12,22,403\n12,23,640\n12,24,570\n12,25,336\n13,14,975\n13,15,862\n13,17,579\n13,18,402\n13,20,705\n13,21,422\n13,22,421\n13,23,604\n14,15,480\n14,16,246\n14,17,659\n14,18,621\n14,22,222\n14,25,1318\n15,16,859\n15,17,1614\n15,18,753\n15,19,784\n15,20,913\n15,21,369\n15,22,1111\n15,23,465\n16,17,780\n16,18,317\n16,19,183\n16,20,488\n16,21,392\n16,24,235\n16,25,538\n17,18,401\n17,19,396\n17,20,598\n17,22,403\n17,23,214\n17,24,498\n17,25,410\n18,19,358\n18,20,413\n18,21,168\n18,22,342\n18,23,690\n18,24,583\n18,25,659\n19,20,583\n19,21,647\n19,22,440\n19,23,1046\n19,24,549\n19,25,681\n20,21,767\n20,22,586\n20,25,559\n21,22,428\n21,23,688\n\nYou can just show your pick as a tiny JSON snippet so it's easy to read and copy back — something like this:\n\n{\n \"solution\": [, , ...]\n}\n\n\"solution\" is the list of tool IDs you'd bring in the van; each is a placeholder for one of the tools from the instance. Think of it like filling in a simple checklist: put the exact tool IDs from the problem inside the brackets. This JSON is only a sketch of the shape I expect, not the final selection.\n\nPlease make sure to use the identifiers exactly as they appear in the instance input — don't rename them or invent new labels.\n\n- 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”.\"", "instance": { "linear_coeffs": [ 1377, 805, 502, 661, 603, 714, 722, 1782, 1162, 1524, 1835, 1097, 526, 1845, 1315, 1688, 1057, 400, 1622, 980, 873, 1842, 903, 460, 634 ], "quadratic_coeffs": [ [ 1107, 483, 1091, 835, 1327, 1394, 0, 1051, 583, 1026, 833, 1423, 696, 1188, 539, 0, 614, 0, 480, 1405, 987, 378, 0, 612, 827 ], [ 0, 524, 0, 343, 1031, 830, 793, 393, 0, 693, 824, 505, 723, 960, 387, 654, 266, 845, 1574, 0, 0, 0, 1246, 0, 0 ], [ 0, 0, 644, 0, 256, 743, 0, 437, 347, 0, 604, 727, 548, 0, 957, 360, 941, 0, 615, 317, 935, 0, 767, 0, 824 ], [ 0, 0, 0, 421, 0, 0, 537, 0, 0, 0, 906, 242, 0, 0, 0, 543, 952, 1591, 1531, 1155, 0, 1496, 462, 0, 753 ], [ 0, 0, 0, 0, 824, 394, 630, 704, 664, 672, 335, 652, 619, 0, 705, 0, 0, 989, 1134, 0, 350, 0, 1226, 469, 1190 ], [ 0, 0, 0, 0, 0, 710, 747, 955, 0, 862, 930, 596, 845, 0, 512, 702, 804, 643, 539, 0, 753, 387, 515, 516, 648 ], [ 0, 0, 0, 0, 0, 0, 645, 786, 0, 679, 736, 755, 815, 0, 799, 1120, 0, 0, 1009, 1118, 1086, 460, 664, 577, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 1643, 1521, 608, 1393, 0, 1005, 1018, 613, 1062, 927, 1203, 0, 794, 0, 1293, 1018, 1280, 1581 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1141, 0, 557, 0, 0, 500, 274, 0, 0, 744, 588, 293, 615, 726, 526, 622, 659 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 619, 0, 0, 461, 251, 623, 534, 502, 0, 0, 238, 638, 422, 0, 0, 1075 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 961, 1515, 0, 1581, 1501, 615, 601, 1620, 0, 1073, 1025, 1527, 992, 0, 722 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1014, 758, 459, 803, 758, 787, 573, 0, 0, 353, 403, 640, 570, 336 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 616, 975, 862, 0, 579, 402, 0, 705, 422, 421, 604, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 562, 480, 246, 659, 621, 0, 0, 0, 222, 0, 0, 1318 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 859, 1614, 753, 784, 913, 369, 1111, 465, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 500, 780, 317, 183, 488, 392, 0, 0, 235, 538 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 401, 396, 598, 0, 403, 214, 498, 410 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 566, 358, 413, 168, 342, 690, 583, 659 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 996, 583, 647, 440, 1046, 549, 681 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 767, 586, 0, 0, 559 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 428, 688, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 1207, 635, 332, 491, 433, 544, 552, 1612, 992, 1354, 1665, 927, 356, 1675, 1145, 1518, 887, 230, 1452, 810, 703, 1672, 733, 290, 464 ], "capacity": 12157, "solution": [ 0, 1, 2, 3, 4, 5, 6, 10, 11, 12, 14, 16, 17, 19, 20, 22, 24 ], "obj": 96078.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 10, 11, 12, 14, 16, 17, 19, 20, 22, 24 ], "obj": 96078.0, "instance_variant": { "problem_type": "QKP", "num_items": 25, "capacity": 12157, "items": [ 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 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 1377 }, { "item_id": 2, "linear_profit": 805 }, { "item_id": 3, "linear_profit": 502 }, { "item_id": 4, "linear_profit": 661 }, { "item_id": 5, "linear_profit": 603 }, { "item_id": 6, "linear_profit": 714 }, { "item_id": 7, "linear_profit": 722 }, { "item_id": 8, "linear_profit": 1782 }, { "item_id": 9, "linear_profit": 1162 }, { "item_id": 10, "linear_profit": 1524 }, { "item_id": 11, "linear_profit": 1835 }, { "item_id": 12, "linear_profit": 1097 }, { "item_id": 13, "linear_profit": 526 }, { "item_id": 14, "linear_profit": 1845 }, { "item_id": 15, "linear_profit": 1315 }, { "item_id": 16, "linear_profit": 1688 }, { "item_id": 17, "linear_profit": 1057 }, { "item_id": 18, "linear_profit": 400 }, { "item_id": 19, "linear_profit": 1622 }, { "item_id": 20, "linear_profit": 980 }, { "item_id": 21, "linear_profit": 873 }, { "item_id": 22, "linear_profit": 1842 }, { "item_id": 23, "linear_profit": 903 }, { "item_id": 24, "linear_profit": 460 }, { "item_id": 25, "linear_profit": 634 } ], "weight_pairs": [ { "item_id": 1, "weight": 1207 }, { "item_id": 2, "weight": 635 }, { "item_id": 3, "weight": 332 }, { "item_id": 4, "weight": 491 }, { "item_id": 5, "weight": 433 }, { "item_id": 6, "weight": 544 }, { "item_id": 7, "weight": 552 }, { "item_id": 8, "weight": 1612 }, { "item_id": 9, "weight": 992 }, { "item_id": 10, "weight": 1354 }, { "item_id": 11, "weight": 1665 }, { "item_id": 12, "weight": 927 }, { "item_id": 13, "weight": 356 }, { "item_id": 14, "weight": 1675 }, { "item_id": 15, "weight": 1145 }, { "item_id": 16, "weight": 1518 }, { "item_id": 17, "weight": 887 }, { "item_id": 18, "weight": 230 }, { "item_id": 19, "weight": 1452 }, { "item_id": 20, "weight": 810 }, { "item_id": 21, "weight": 703 }, { "item_id": 22, "weight": 1672 }, { "item_id": 23, "weight": 733 }, { "item_id": 24, "weight": 290 }, { "item_id": 25, "weight": 464 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 1107 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 483 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 1091 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 835 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 1327 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 1394 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 1051 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 583 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 1026 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 833 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 1423 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 696 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 1188 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 539 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 614 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 480 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 1405 }, { "item_i_id": 1, "item_j_id": 21, "quadratic_profit": 987 }, { "item_i_id": 1, "item_j_id": 22, "quadratic_profit": 378 }, { "item_i_id": 1, "item_j_id": 24, "quadratic_profit": 612 }, { "item_i_id": 1, "item_j_id": 25, "quadratic_profit": 827 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 524 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 343 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 1031 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 830 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 793 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 393 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 693 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 824 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 505 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 723 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 960 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 387 }, { "item_i_id": 2, "item_j_id": 16, "quadratic_profit": 654 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 266 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 845 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 1574 }, { "item_i_id": 2, "item_j_id": 23, "quadratic_profit": 1246 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 644 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 256 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 743 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 437 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 347 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 604 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 727 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 548 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 957 }, { "item_i_id": 3, "item_j_id": 16, "quadratic_profit": 360 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 941 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 615 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 317 }, { "item_i_id": 3, "item_j_id": 21, "quadratic_profit": 935 }, { "item_i_id": 3, "item_j_id": 23, "quadratic_profit": 767 }, { "item_i_id": 3, "item_j_id": 25, "quadratic_profit": 824 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 421 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 537 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 906 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 242 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 543 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 952 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 1591 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 1531 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 1155 }, { "item_i_id": 4, "item_j_id": 22, "quadratic_profit": 1496 }, { "item_i_id": 4, "item_j_id": 23, "quadratic_profit": 462 }, { "item_i_id": 4, "item_j_id": 25, "quadratic_profit": 753 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 824 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 394 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 630 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 704 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 664 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 672 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 335 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 652 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 619 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 705 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 989 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 1134 }, { "item_i_id": 5, "item_j_id": 21, "quadratic_profit": 350 }, { "item_i_id": 5, "item_j_id": 23, "quadratic_profit": 1226 }, { "item_i_id": 5, "item_j_id": 24, "quadratic_profit": 469 }, { "item_i_id": 5, "item_j_id": 25, "quadratic_profit": 1190 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 710 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 747 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 955 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 862 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 930 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 596 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 845 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 512 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 702 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 804 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 643 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 539 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 753 }, { "item_i_id": 6, "item_j_id": 22, "quadratic_profit": 387 }, { "item_i_id": 6, "item_j_id": 23, "quadratic_profit": 515 }, { "item_i_id": 6, "item_j_id": 24, "quadratic_profit": 516 }, { "item_i_id": 6, "item_j_id": 25, "quadratic_profit": 648 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 645 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 786 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 679 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 736 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 755 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 815 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 799 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 1120 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 1009 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 1118 }, { "item_i_id": 7, "item_j_id": 21, "quadratic_profit": 1086 }, { "item_i_id": 7, "item_j_id": 22, "quadratic_profit": 460 }, { "item_i_id": 7, "item_j_id": 23, "quadratic_profit": 664 }, { "item_i_id": 7, "item_j_id": 24, "quadratic_profit": 577 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 1643 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 1521 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 608 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 1393 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 1005 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 1018 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 613 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 1062 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 927 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 1203 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 794 }, { "item_i_id": 8, "item_j_id": 22, "quadratic_profit": 1293 }, { "item_i_id": 8, "item_j_id": 23, "quadratic_profit": 1018 }, { "item_i_id": 8, "item_j_id": 24, "quadratic_profit": 1280 }, { "item_i_id": 8, "item_j_id": 25, "quadratic_profit": 1581 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 1141 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 557 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 500 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 274 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 744 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 588 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 293 }, { "item_i_id": 9, "item_j_id": 21, "quadratic_profit": 615 }, { "item_i_id": 9, "item_j_id": 22, "quadratic_profit": 726 }, { "item_i_id": 9, "item_j_id": 23, "quadratic_profit": 526 }, { "item_i_id": 9, "item_j_id": 24, "quadratic_profit": 622 }, { "item_i_id": 9, "item_j_id": 25, "quadratic_profit": 659 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 619 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 461 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 251 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 623 }, { "item_i_id": 10, "item_j_id": 16, "quadratic_profit": 534 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 502 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 238 }, { "item_i_id": 10, "item_j_id": 21, "quadratic_profit": 638 }, { "item_i_id": 10, "item_j_id": 22, "quadratic_profit": 422 }, { "item_i_id": 10, "item_j_id": 25, "quadratic_profit": 1075 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 961 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 1515 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 1581 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 1501 }, { "item_i_id": 11, "item_j_id": 16, "quadratic_profit": 615 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 601 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 1620 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 1073 }, { "item_i_id": 11, "item_j_id": 21, "quadratic_profit": 1025 }, { "item_i_id": 11, "item_j_id": 22, "quadratic_profit": 1527 }, { "item_i_id": 11, "item_j_id": 23, "quadratic_profit": 992 }, { "item_i_id": 11, "item_j_id": 25, "quadratic_profit": 722 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 1014 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 758 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 459 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 803 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 758 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 787 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 573 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 353 }, { "item_i_id": 12, "item_j_id": 22, "quadratic_profit": 403 }, { "item_i_id": 12, "item_j_id": 23, "quadratic_profit": 640 }, { "item_i_id": 12, "item_j_id": 24, "quadratic_profit": 570 }, { "item_i_id": 12, "item_j_id": 25, "quadratic_profit": 336 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 616 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 975 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 862 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 579 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 402 }, { "item_i_id": 13, "item_j_id": 20, "quadratic_profit": 705 }, { "item_i_id": 13, "item_j_id": 21, "quadratic_profit": 422 }, { "item_i_id": 13, "item_j_id": 22, "quadratic_profit": 421 }, { "item_i_id": 13, "item_j_id": 23, "quadratic_profit": 604 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 562 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 480 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 246 }, { "item_i_id": 14, "item_j_id": 17, "quadratic_profit": 659 }, { "item_i_id": 14, "item_j_id": 18, "quadratic_profit": 621 }, { "item_i_id": 14, "item_j_id": 22, "quadratic_profit": 222 }, { "item_i_id": 14, "item_j_id": 25, "quadratic_profit": 1318 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 859 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 1614 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 753 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 784 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 913 }, { "item_i_id": 15, "item_j_id": 21, "quadratic_profit": 369 }, { "item_i_id": 15, "item_j_id": 22, "quadratic_profit": 1111 }, { "item_i_id": 15, "item_j_id": 23, "quadratic_profit": 465 }, { "item_i_id": 16, "item_j_id": 16, "quadratic_profit": 500 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 780 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 317 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 183 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 488 }, { "item_i_id": 16, "item_j_id": 21, "quadratic_profit": 392 }, { "item_i_id": 16, "item_j_id": 24, "quadratic_profit": 235 }, { "item_i_id": 16, "item_j_id": 25, "quadratic_profit": 538 }, { "item_i_id": 17, "item_j_id": 18, "quadratic_profit": 401 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 396 }, { "item_i_id": 17, "item_j_id": 20, "quadratic_profit": 598 }, { "item_i_id": 17, "item_j_id": 22, "quadratic_profit": 403 }, { "item_i_id": 17, "item_j_id": 23, "quadratic_profit": 214 }, { "item_i_id": 17, "item_j_id": 24, "quadratic_profit": 498 }, { "item_i_id": 17, "item_j_id": 25, "quadratic_profit": 410 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 566 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 358 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 413 }, { "item_i_id": 18, "item_j_id": 21, "quadratic_profit": 168 }, { "item_i_id": 18, "item_j_id": 22, "quadratic_profit": 342 }, { "item_i_id": 18, "item_j_id": 23, "quadratic_profit": 690 }, { "item_i_id": 18, "item_j_id": 24, "quadratic_profit": 583 }, { "item_i_id": 18, "item_j_id": 25, "quadratic_profit": 659 }, { "item_i_id": 19, "item_j_id": 19, "quadratic_profit": 996 }, { "item_i_id": 19, "item_j_id": 20, "quadratic_profit": 583 }, { "item_i_id": 19, "item_j_id": 21, "quadratic_profit": 647 }, { "item_i_id": 19, "item_j_id": 22, "quadratic_profit": 440 }, { "item_i_id": 19, "item_j_id": 23, "quadratic_profit": 1046 }, { "item_i_id": 19, "item_j_id": 24, "quadratic_profit": 549 }, { "item_i_id": 19, "item_j_id": 25, "quadratic_profit": 681 }, { "item_i_id": 20, "item_j_id": 20, "quadratic_profit": 492 }, { "item_i_id": 20, "item_j_id": 21, "quadratic_profit": 767 }, { "item_i_id": 20, "item_j_id": 22, "quadratic_profit": 586 }, { "item_i_id": 20, "item_j_id": 25, "quadratic_profit": 559 }, { "item_i_id": 21, "item_j_id": 21, "quadratic_profit": 180 }, { "item_i_id": 21, "item_j_id": 22, "quadratic_profit": 428 }, { "item_i_id": 21, "item_j_id": 23, "quadratic_profit": 688 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 7, 11, 12, 13, 15, 17, 18, 20, 21, 23, 25 ], "context_index": 44, "input_format": "csv", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Recently the boutique owner decided to refresh a display case and now has to pick a handful of accessories to show. Each accessory takes up some room and contributes a basic sales value, and a few lucky couples of items add extra cross-selling value when they’re placed together. The task is to assemble a set that fits in the case and brings in the highest combined revenue—simply the sum of each selected item’s base value plus any pair bonuses for items that are both included—keeping total bulk under the capacity and never duplicating an item. The full breakdown of items, sizes, values and pair bonuses is shown below.\n\nThere are 20 distinct accessories (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19) and the display case can hold up to 5093 units of space.\nAccessory 0 has a base sales value of 2222.\nAccessory 1 has a base sales value of 1173.\nAccessory 2 has a base sales value of 1910.\nAccessory 3 has a base sales value of 2867.\nAccessory 4 has a base sales value of 2945.\nAccessory 5 has a base sales value of 508.\nAccessory 6 has a base sales value of 437.\nAccessory 7 has a base sales value of 2582.\nAccessory 8 has a base sales value of 2044.\nAccessory 9 has a base sales value of 2464.\nAccessory 10 has a base sales value of 140.\nAccessory 11 has a base sales value of 1914.\nAccessory 12 has a base sales value of 1860.\nAccessory 13 has a base sales value of 2346.\nAccessory 14 has a base sales value of 1091.\nAccessory 15 has a base sales value of 774.\nAccessory 16 has a base sales value of 2590.\nAccessory 17 has a base sales value of 2325.\nAccessory 18 has a base sales value of 2748.\nAccessory 19 has a base sales value of 1030.\nAccessory 0 requires 2584 units of display space.\nAccessory 1 requires 260 units of display space.\nAccessory 2 requires 1664 units of display space.\nAccessory 3 requires 336 units of display space.\nAccessory 4 requires 2866 units of display space.\nAccessory 5 requires 1510 units of display space.\nAccessory 6 requires 930 units of display space.\nAccessory 7 requires 2125 units of display space.\nAccessory 8 requires 2277 units of display space.\nAccessory 9 requires 1214 units of display space.\nAccessory 10 requires 2879 units of display space.\nAccessory 11 requires 675 units of display space.\nAccessory 12 requires 1266 units of display space.\nAccessory 13 requires 925 units of display space.\nAccessory 14 requires 1783 units of display space.\nAccessory 15 requires 2200 units of display space.\nAccessory 16 requires 309 units of display space.\nAccessory 17 requires 2200 units of display space.\nAccessory 18 requires 802 units of display space.\nAccessory 19 requires 2657 units of display space.\nAccessories 0 and 4 together yield a cross-selling bonus of 2692.\nAccessories 0 and 5 together yield a cross-selling bonus of 714.\nAccessories 0 and 12 together yield a cross-selling bonus of 2943.\nAccessories 0 and 13 together yield a cross-selling bonus of 537.\nAccessories 0 and 16 together yield a cross-selling bonus of 2430.\nAccessories 1 and 4 together yield a cross-selling bonus of 1188.\nAccessories 1 and 10 together yield a cross-selling bonus of 3007.\nAccessories 1 and 11 together yield a cross-selling bonus of 1158.\nAccessories 1 and 14 together yield a cross-selling bonus of 3046.\nAccessories 2 and 13 together yield a cross-selling bonus of 1659.\nAccessories 2 and 19 together yield a cross-selling bonus of 2834.\nAccessories 3 and 4 together yield a cross-selling bonus of 818.\nAccessories 3 and 8 together yield a cross-selling bonus of 2519.\nAccessories 3 and 11 together yield a cross-selling bonus of 851.\nAccessories 3 and 14 together yield a cross-selling bonus of 1504.\nAccessories 4 and 10 together yield a cross-selling bonus of 2437.\nAccessories 4 and 11 together yield a cross-selling bonus of 2957.\nAccessories 4 and 13 together yield a cross-selling bonus of 655.\nAccessories 4 and 14 together yield a cross-selling bonus of 2657.\nAccessories 4 and 15 together yield a cross-selling bonus of 1520.\nAccessories 4 and 17 together yield a cross-selling bonus of 2964.\nAccessories 4 and 18 together yield a cross-selling bonus of 850.\nAccessories 5 and 8 together yield a cross-selling bonus of 2681.\nAccessories 5 and 10 together yield a cross-selling bonus of 141.\nAccessories 5 and 11 together yield a cross-selling bonus of 3196.\nAccessories 5 and 14 together yield a cross-selling bonus of 1571.\nAccessories 5 and 19 together yield a cross-selling bonus of 2933.\nAccessories 6 and 16 together yield a cross-selling bonus of 3093.\nAccessories 6 and 18 together yield a cross-selling bonus of 3002.\nAccessories 7 and 17 together yield a cross-selling bonus of 1558.\nAccessories 7 and 18 together yield a cross-selling bonus of 241.\nAccessories 8 and 9 together yield a cross-selling bonus of 1952.\nAccessories 8 and 11 together yield a cross-selling bonus of 966.\nAccessories 8 and 17 together yield a cross-selling bonus of 2151.\nAccessories 8 and 18 together yield a cross-selling bonus of 898.\nAccessories 9 and 15 together yield a cross-selling bonus of 576.\nAccessories 9 and 18 together yield a cross-selling bonus of 156.\nAccessories 10 and 15 together yield a cross-selling bonus of 984.\nAccessories 10 and 18 together yield a cross-selling bonus of 3038.\nAccessories 11 and 12 together yield a cross-selling bonus of 1238.\nAccessories 11 and 13 together yield a cross-selling bonus of 2079.\nAccessories 11 and 14 together yield a cross-selling bonus of 970.\nAccessories 11 and 19 together yield a cross-selling bonus of 1517.\nAccessories 12 and 13 together yield a cross-selling bonus of 2933.\nAccessories 13 and 19 together yield a cross-selling bonus of 2157.\nAccessories 14 and 15 together yield a cross-selling bonus of 792.\nAccessories 14 and 16 together yield a cross-selling bonus of 1946.\nAccessories 14 and 19 together yield a cross-selling bonus of 1436.\nA selection must respect the 5093 limit and maximize the sum of base sales values plus any cross-selling bonuses.\n\nIf you'd like the final pick in a simple, copy‑pasteable form, just send it back using this JSON layout:\n\n{\n \"solution\": [, , ...]\n}\n\nThis \"solution\" list is where you put the accessories you choose for the display case — just drop in each selected item's identifier exactly as it appears in the instance. Think of it like a little checklist: the array holds the item labels you want to show. The JSON above is only a sketch of the shape I expect, not the actual answer.\n\nPlease use the exact identifiers from the instance input — no renaming and no new labels.\n\"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”.\"", "instance": { "linear_coeffs": [ 2222, 1173, 1910, 2867, 2945, 508, 437, 2582, 2044, 2464, 140, 1914, 1860, 2346, 1091, 774, 2590, 2325, 2748, 1030 ], "quadratic_coeffs": [ [ 0, 0, 0, 0, 2692, 714, 0, 0, 0, 0, 0, 0, 2943, 537, 0, 0, 2430, 0, 0, 0 ], [ 0, 3011, 0, 0, 1188, 0, 0, 0, 0, 0, 3007, 1158, 0, 0, 3046, 0, 0, 0, 0, 0 ], [ 0, 0, 3132, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1659, 0, 0, 0, 0, 0, 2834 ], [ 0, 0, 0, 0, 818, 0, 0, 0, 2519, 0, 0, 851, 0, 0, 1504, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 429, 0, 0, 0, 0, 0, 2437, 2957, 0, 655, 2657, 1520, 0, 2964, 850, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 2681, 0, 141, 3196, 0, 0, 1571, 0, 0, 0, 0, 2933 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3093, 0, 3002, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1558, 241, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1952, 0, 966, 0, 0, 0, 0, 0, 2151, 898, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 576, 0, 0, 156, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 984, 0, 0, 3038, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1238, 2079, 970, 0, 0, 0, 0, 1517 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2933, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2157 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 792, 1946, 0, 0, 1436 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 2584, 260, 1664, 336, 2866, 1510, 930, 2125, 2277, 1214, 2879, 675, 1266, 925, 1783, 2200, 309, 2200, 802, 2657 ], "capacity": 5093, "solution": [ 1, 3, 11, 13, 14, 16, 18 ], "obj": 26283.0, "problem_type": "QKP" }, "solution": [ 1, 3, 11, 13, 14, 16, 18 ], "obj": 26283.0, "instance_variant": { "problem_type": "QKP", "num_items": 20, "capacity": 5093, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 2222 }, { "item_id": 1, "linear_profit": 1173 }, { "item_id": 2, "linear_profit": 1910 }, { "item_id": 3, "linear_profit": 2867 }, { "item_id": 4, "linear_profit": 2945 }, { "item_id": 5, "linear_profit": 508 }, { "item_id": 6, "linear_profit": 437 }, { "item_id": 7, "linear_profit": 2582 }, { "item_id": 8, "linear_profit": 2044 }, { "item_id": 9, "linear_profit": 2464 }, { "item_id": 10, "linear_profit": 140 }, { "item_id": 11, "linear_profit": 1914 }, { "item_id": 12, "linear_profit": 1860 }, { "item_id": 13, "linear_profit": 2346 }, { "item_id": 14, "linear_profit": 1091 }, { "item_id": 15, "linear_profit": 774 }, { "item_id": 16, "linear_profit": 2590 }, { "item_id": 17, "linear_profit": 2325 }, { "item_id": 18, "linear_profit": 2748 }, { "item_id": 19, "linear_profit": 1030 } ], "weight_pairs": [ { "item_id": 0, "weight": 2584 }, { "item_id": 1, "weight": 260 }, { "item_id": 2, "weight": 1664 }, { "item_id": 3, "weight": 336 }, { "item_id": 4, "weight": 2866 }, { "item_id": 5, "weight": 1510 }, { "item_id": 6, "weight": 930 }, { "item_id": 7, "weight": 2125 }, { "item_id": 8, "weight": 2277 }, { "item_id": 9, "weight": 1214 }, { "item_id": 10, "weight": 2879 }, { "item_id": 11, "weight": 675 }, { "item_id": 12, "weight": 1266 }, { "item_id": 13, "weight": 925 }, { "item_id": 14, "weight": 1783 }, { "item_id": 15, "weight": 2200 }, { "item_id": 16, "weight": 309 }, { "item_id": 17, "weight": 2200 }, { "item_id": 18, "weight": 802 }, { "item_id": 19, "weight": 2657 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 2692 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 714 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 2943 }, { "item_i_id": 0, "item_j_id": 13, "quadratic_profit": 537 }, { "item_i_id": 0, "item_j_id": 16, "quadratic_profit": 2430 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 3011 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 1188 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 3007 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 1158 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 3046 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 3132 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 1659 }, { "item_i_id": 2, "item_j_id": 19, "quadratic_profit": 2834 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 818 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 2519 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 851 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 1504 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 429 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 2437 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 2957 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 655 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 2657 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 1520 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 2964 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 850 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 2681 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 141 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 3196 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 1571 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 2933 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 3093 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 3002 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 1558 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 241 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 1952 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 966 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 2151 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 898 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 576 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 156 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 984 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 3038 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 1238 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 2079 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 970 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 1517 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 2933 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 2157 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 792 }, { "item_i_id": 14, "item_j_id": 16, "quadratic_profit": 1946 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 1436 } ] }, "solution_variant": [ 1, 3, 11, 13, 14, 16, 18 ], "context_index": 45, "input_format": "nl", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Someone in the kitchen is trying to build a killer tasting platter from a set of small plates. Each option has a satisfaction score and uses some of the platter’s limited space, and a few specific pairings add extra enjoyment if both dishes make the cut. The plan is to choose a selection of different plates (no repeats) that stays within the platter’s capacity, and to maximize the total satisfaction by summing the plates’ scores plus any bonus points for chosen pairs. Exact weights, scores, and combo values are shown below.\n\n{\n \"num_plates\": 25,\n \"platter_capacity\": 814,\n \"plate_ids\": [\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19,\n 20,\n 21,\n 22,\n 23,\n 24\n ],\n \"linear\": [\n {\n \"plate_id\": 0,\n \"satisfaction_score\": 140\n },\n {\n \"plate_id\": 1,\n \"satisfaction_score\": 148\n },\n {\n \"plate_id\": 2,\n \"satisfaction_score\": 104\n },\n {\n \"plate_id\": 3,\n \"satisfaction_score\": 147\n },\n {\n \"plate_id\": 4,\n \"satisfaction_score\": 116\n },\n {\n \"plate_id\": 5,\n \"satisfaction_score\": 123\n },\n {\n \"plate_id\": 6,\n \"satisfaction_score\": 105\n },\n {\n \"plate_id\": 7,\n \"satisfaction_score\": 101\n },\n {\n \"plate_id\": 8,\n \"satisfaction_score\": 116\n },\n {\n \"plate_id\": 9,\n \"satisfaction_score\": 123\n },\n {\n \"plate_id\": 10,\n \"satisfaction_score\": 132\n },\n {\n \"plate_id\": 11,\n \"satisfaction_score\": 117\n },\n {\n \"plate_id\": 12,\n \"satisfaction_score\": 128\n },\n {\n \"plate_id\": 13,\n \"satisfaction_score\": 140\n },\n {\n \"plate_id\": 14,\n \"satisfaction_score\": 102\n },\n {\n \"plate_id\": 15,\n \"satisfaction_score\": 115\n },\n {\n \"plate_id\": 16,\n \"satisfaction_score\": 129\n },\n {\n \"plate_id\": 17,\n \"satisfaction_score\": 109\n },\n {\n \"plate_id\": 18,\n \"satisfaction_score\": 119\n },\n {\n \"plate_id\": 19,\n \"satisfaction_score\": 111\n },\n {\n \"plate_id\": 20,\n \"satisfaction_score\": 144\n },\n {\n \"plate_id\": 21,\n \"satisfaction_score\": 131\n },\n {\n \"plate_id\": 22,\n \"satisfaction_score\": 103\n },\n {\n \"plate_id\": 23,\n \"satisfaction_score\": 106\n },\n {\n \"plate_id\": 24,\n \"satisfaction_score\": 119\n }\n ],\n \"weights\": [\n {\n \"plate_id\": 0,\n \"plate_space\": 131\n },\n {\n \"plate_id\": 1,\n \"plate_space\": 137\n },\n {\n \"plate_id\": 2,\n \"plate_space\": 100\n },\n {\n \"plate_id\": 3,\n \"plate_space\": 109\n },\n {\n \"plate_id\": 4,\n \"plate_space\": 142\n },\n {\n \"plate_id\": 5,\n \"plate_space\": 123\n },\n {\n \"plate_id\": 6,\n \"plate_space\": 119\n },\n {\n \"plate_id\": 7,\n \"plate_space\": 126\n },\n {\n \"plate_id\": 8,\n \"plate_space\": 124\n },\n {\n \"plate_id\": 9,\n \"plate_space\": 128\n },\n {\n \"plate_id\": 10,\n \"plate_space\": 106\n },\n {\n \"plate_id\": 11,\n \"plate_space\": 149\n },\n {\n \"plate_id\": 12,\n \"plate_space\": 104\n },\n {\n \"plate_id\": 13,\n \"plate_space\": 119\n },\n {\n \"plate_id\": 14,\n \"plate_space\": 120\n },\n {\n \"plate_id\": 15,\n \"plate_space\": 128\n },\n {\n \"plate_id\": 16,\n \"plate_space\": 117\n },\n {\n \"plate_id\": 17,\n \"plate_space\": 133\n },\n {\n \"plate_id\": 18,\n \"plate_space\": 119\n },\n {\n \"plate_id\": 19,\n \"plate_space\": 102\n },\n {\n \"plate_id\": 20,\n \"plate_space\": 146\n },\n {\n \"plate_id\": 21,\n \"plate_space\": 140\n },\n {\n \"plate_id\": 22,\n \"plate_space\": 104\n },\n {\n \"plate_id\": 23,\n \"plate_space\": 117\n },\n {\n \"plate_id\": 24,\n \"plate_space\": 137\n }\n ],\n \"quadratic\": [\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 1,\n \"combo_bonus\": 132\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 4,\n \"combo_bonus\": 148\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 5,\n \"combo_bonus\": 129\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 6,\n \"combo_bonus\": 126\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 7,\n \"combo_bonus\": 110\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 8,\n \"combo_bonus\": 102\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 11,\n \"combo_bonus\": 121\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 12,\n \"combo_bonus\": 114\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 14,\n \"combo_bonus\": 126\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 15,\n \"combo_bonus\": 104\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 17,\n \"combo_bonus\": 137\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 18,\n \"combo_bonus\": 140\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 19,\n \"combo_bonus\": 125\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 20,\n \"combo_bonus\": 111\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 21,\n \"combo_bonus\": 123\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 22,\n \"combo_bonus\": 139\n },\n {\n \"plate_i_id\": 0,\n \"plate_j_id\": 24,\n \"combo_bonus\": 116\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 3,\n \"combo_bonus\": 106\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 4,\n \"combo_bonus\": 109\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 5,\n \"combo_bonus\": 131\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 6,\n \"combo_bonus\": 146\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 7,\n \"combo_bonus\": 139\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 8,\n \"combo_bonus\": 104\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 9,\n \"combo_bonus\": 103\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 10,\n \"combo_bonus\": 111\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 12,\n \"combo_bonus\": 127\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 13,\n \"combo_bonus\": 117\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 16,\n \"combo_bonus\": 140\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 17,\n \"combo_bonus\": 110\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 18,\n \"combo_bonus\": 123\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 19,\n \"combo_bonus\": 110\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 20,\n \"combo_bonus\": 126\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 21,\n \"combo_bonus\": 130\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 22,\n \"combo_bonus\": 112\n },\n {\n \"plate_i_id\": 1,\n \"plate_j_id\": 23,\n \"combo_bonus\": 121\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 3,\n \"combo_bonus\": 134\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 4,\n \"combo_bonus\": 104\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 6,\n \"combo_bonus\": 136\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 7,\n \"combo_bonus\": 144\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 8,\n \"combo_bonus\": 142\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 9,\n \"combo_bonus\": 109\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 10,\n \"combo_bonus\": 110\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 11,\n \"combo_bonus\": 133\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 12,\n \"combo_bonus\": 134\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 13,\n \"combo_bonus\": 108\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 14,\n \"combo_bonus\": 115\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 17,\n \"combo_bonus\": 112\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 18,\n \"combo_bonus\": 133\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 20,\n \"combo_bonus\": 111\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 21,\n \"combo_bonus\": 123\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 22,\n \"combo_bonus\": 119\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 23,\n \"combo_bonus\": 105\n },\n {\n \"plate_i_id\": 2,\n \"plate_j_id\": 24,\n \"combo_bonus\": 101\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 4,\n \"combo_bonus\": 123\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 5,\n \"combo_bonus\": 131\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 8,\n \"combo_bonus\": 105\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 9,\n \"combo_bonus\": 142\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 10,\n \"combo_bonus\": 131\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 11,\n \"combo_bonus\": 110\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 12,\n \"combo_bonus\": 109\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 14,\n \"combo_bonus\": 112\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 15,\n \"combo_bonus\": 101\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 17,\n \"combo_bonus\": 136\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 19,\n \"combo_bonus\": 113\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 20,\n \"combo_bonus\": 114\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 22,\n \"combo_bonus\": 127\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 23,\n \"combo_bonus\": 113\n },\n {\n \"plate_i_id\": 3,\n \"plate_j_id\": 24,\n \"combo_bonus\": 114\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 5,\n \"combo_bonus\": 136\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 6,\n \"combo_bonus\": 137\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 7,\n \"combo_bonus\": 107\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 8,\n \"combo_bonus\": 141\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 9,\n \"combo_bonus\": 107\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 10,\n \"combo_bonus\": 142\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 11,\n \"combo_bonus\": 123\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 12,\n \"combo_bonus\": 109\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 13,\n \"combo_bonus\": 140\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 15,\n \"combo_bonus\": 111\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 16,\n \"combo_bonus\": 140\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 17,\n \"combo_bonus\": 109\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 18,\n \"combo_bonus\": 133\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 19,\n \"combo_bonus\": 133\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 20,\n \"combo_bonus\": 139\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 21,\n \"combo_bonus\": 125\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 22,\n \"combo_bonus\": 144\n },\n {\n \"plate_i_id\": 4,\n \"plate_j_id\": 23,\n \"combo_bonus\": 103\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 6,\n \"combo_bonus\": 137\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 7,\n \"combo_bonus\": 121\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 8,\n \"combo_bonus\": 132\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 9,\n \"combo_bonus\": 141\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 10,\n \"combo_bonus\": 102\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 11,\n \"combo_bonus\": 121\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 12,\n \"combo_bonus\": 128\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 13,\n \"combo_bonus\": 149\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 14,\n \"combo_bonus\": 146\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 17,\n \"combo_bonus\": 104\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 18,\n \"combo_bonus\": 122\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 19,\n \"combo_bonus\": 131\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 20,\n \"combo_bonus\": 124\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 23,\n \"combo_bonus\": 122\n },\n {\n \"plate_i_id\": 5,\n \"plate_j_id\": 24,\n \"combo_bonus\": 113\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 8,\n \"combo_bonus\": 107\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 10,\n \"combo_bonus\": 123\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 12,\n \"combo_bonus\": 124\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 13,\n \"combo_bonus\": 119\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 14,\n \"combo_bonus\": 120\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 15,\n \"combo_bonus\": 139\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 16,\n \"combo_bonus\": 139\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 18,\n \"combo_bonus\": 101\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 19,\n \"combo_bonus\": 149\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 20,\n \"combo_bonus\": 137\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 21,\n \"combo_bonus\": 142\n },\n {\n \"plate_i_id\": 6,\n \"plate_j_id\": 23,\n \"combo_bonus\": 129\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 8,\n \"combo_bonus\": 127\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 9,\n \"combo_bonus\": 125\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 11,\n \"combo_bonus\": 131\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 12,\n \"combo_bonus\": 103\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 13,\n \"combo_bonus\": 104\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 14,\n \"combo_bonus\": 149\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 16,\n \"combo_bonus\": 135\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 17,\n \"combo_bonus\": 107\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 18,\n \"combo_bonus\": 117\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 19,\n \"combo_bonus\": 144\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 20,\n \"combo_bonus\": 145\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 21,\n \"combo_bonus\": 125\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 22,\n \"combo_bonus\": 132\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 23,\n \"combo_bonus\": 102\n },\n {\n \"plate_i_id\": 7,\n \"plate_j_id\": 24,\n \"combo_bonus\": 116\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 9,\n \"combo_bonus\": 129\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 10,\n \"combo_bonus\": 140\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 11,\n \"combo_bonus\": 129\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 12,\n \"combo_bonus\": 124\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 14,\n \"combo_bonus\": 146\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 16,\n \"combo_bonus\": 146\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 17,\n \"combo_bonus\": 140\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 18,\n \"combo_bonus\": 100\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 20,\n \"combo_bonus\": 140\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 21,\n \"combo_bonus\": 137\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 22,\n \"combo_bonus\": 114\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 23,\n \"combo_bonus\": 124\n },\n {\n \"plate_i_id\": 8,\n \"plate_j_id\": 24,\n \"combo_bonus\": 104\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 12,\n \"combo_bonus\": 134\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 13,\n \"combo_bonus\": 119\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 14,\n \"combo_bonus\": 116\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 15,\n \"combo_bonus\": 139\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 16,\n \"combo_bonus\": 125\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 17,\n \"combo_bonus\": 125\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 19,\n \"combo_bonus\": 115\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 20,\n \"combo_bonus\": 146\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 21,\n \"combo_bonus\": 117\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 23,\n \"combo_bonus\": 132\n },\n {\n \"plate_i_id\": 9,\n \"plate_j_id\": 24,\n \"combo_bonus\": 138\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 11,\n \"combo_bonus\": 123\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 12,\n \"combo_bonus\": 109\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 13,\n \"combo_bonus\": 100\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 15,\n \"combo_bonus\": 100\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 17,\n \"combo_bonus\": 144\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 18,\n \"combo_bonus\": 149\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 19,\n \"combo_bonus\": 144\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 20,\n \"combo_bonus\": 129\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 23,\n \"combo_bonus\": 134\n },\n {\n \"plate_i_id\": 10,\n \"plate_j_id\": 24,\n \"combo_bonus\": 104\n },\n {\n \"plate_i_id\": 11,\n \"plate_j_id\": 12,\n \"combo_bonus\": 149\n },\n {\n \"plate_i_id\": 11,\n \"plate_j_id\": 13,\n \"combo_bonus\": 128\n },\n {\n \"plate_i_id\": 11,\n \"plate_j_id\": 14,\n \"combo_bonus\": 138\n },\n {\n \"plate_i_id\": 11,\n \"plate_j_id\": 15,\n \"combo_bonus\": 147\n },\n {\n \"plate_i_id\": 11,\n \"plate_j_id\": 17,\n \"combo_bonus\": 141\n },\n {\n \"plate_i_id\": 11,\n \"plate_j_id\": 18,\n \"combo_bonus\": 111\n },\n {\n \"plate_i_id\": 11,\n \"plate_j_id\": 19,\n \"combo_bonus\": 121\n },\n {\n \"plate_i_id\": 11,\n \"plate_j_id\": 20,\n \"combo_bonus\": 140\n },\n {\n \"plate_i_id\": 11,\n \"plate_j_id\": 23,\n \"combo_bonus\": 137\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 13,\n \"combo_bonus\": 146\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 15,\n \"combo_bonus\": 110\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 16,\n \"combo_bonus\": 139\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 17,\n \"combo_bonus\": 119\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 18,\n \"combo_bonus\": 107\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 19,\n \"combo_bonus\": 109\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 20,\n \"combo_bonus\": 133\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 21,\n \"combo_bonus\": 114\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 22,\n \"combo_bonus\": 110\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 23,\n \"combo_bonus\": 131\n },\n {\n \"plate_i_id\": 12,\n \"plate_j_id\": 24,\n \"combo_bonus\": 111\n },\n {\n \"plate_i_id\": 13,\n \"plate_j_id\": 14,\n \"combo_bonus\": 100\n },\n {\n \"plate_i_id\": 13,\n \"plate_j_id\": 17,\n \"combo_bonus\": 126\n },\n {\n \"plate_i_id\": 13,\n \"plate_j_id\": 18,\n \"combo_bonus\": 128\n },\n {\n \"plate_i_id\": 13,\n \"plate_j_id\": 19,\n \"combo_bonus\": 110\n },\n {\n \"plate_i_id\": 13,\n \"plate_j_id\": 22,\n \"combo_bonus\": 106\n },\n {\n \"plate_i_id\": 13,\n \"plate_j_id\": 23,\n \"combo_bonus\": 138\n },\n {\n \"plate_i_id\": 14,\n \"plate_j_id\": 15,\n \"combo_bonus\": 142\n },\n {\n \"plate_i_id\": 14,\n \"plate_j_id\": 19,\n \"combo_bonus\": 108\n },\n {\n \"plate_i_id\": 14,\n \"plate_j_id\": 21,\n \"combo_bonus\": 145\n },\n {\n \"plate_i_id\": 14,\n \"plate_j_id\": 22,\n \"combo_bonus\": 114\n },\n {\n \"plate_i_id\": 14,\n \"plate_j_id\": 23,\n \"combo_bonus\": 109\n },\n {\n \"plate_i_id\": 14,\n \"plate_j_id\": 24,\n \"combo_bonus\": 149\n },\n {\n \"plate_i_id\": 15,\n \"plate_j_id\": 16,\n \"combo_bonus\": 146\n },\n {\n \"plate_i_id\": 15,\n \"plate_j_id\": 17,\n \"combo_bonus\": 143\n },\n {\n \"plate_i_id\": 15,\n \"plate_j_id\": 18,\n \"combo_bonus\": 124\n },\n {\n \"plate_i_id\": 15,\n \"plate_j_id\": 19,\n \"combo_bonus\": 145\n },\n {\n \"plate_i_id\": 15,\n \"plate_j_id\": 20,\n \"combo_bonus\": 103\n },\n {\n \"plate_i_id\": 15,\n \"plate_j_id\": 21,\n \"combo_bonus\": 103\n },\n {\n \"plate_i_id\": 15,\n \"plate_j_id\": 24,\n \"combo_bonus\": 131\n },\n {\n \"plate_i_id\": 16,\n \"plate_j_id\": 17,\n \"combo_bonus\": 144\n },\n {\n \"plate_i_id\": 16,\n \"plate_j_id\": 18,\n \"combo_bonus\": 103\n },\n {\n \"plate_i_id\": 16,\n \"plate_j_id\": 19,\n \"combo_bonus\": 112\n },\n {\n \"plate_i_id\": 16,\n \"plate_j_id\": 20,\n \"combo_bonus\": 111\n },\n {\n \"plate_i_id\": 16,\n \"plate_j_id\": 21,\n \"combo_bonus\": 106\n },\n {\n \"plate_i_id\": 16,\n \"plate_j_id\": 24,\n \"combo_bonus\": 144\n },\n {\n \"plate_i_id\": 17,\n \"plate_j_id\": 18,\n \"combo_bonus\": 134\n },\n {\n \"plate_i_id\": 17,\n \"plate_j_id\": 19,\n \"combo_bonus\": 104\n },\n {\n \"plate_i_id\": 17,\n \"plate_j_id\": 21,\n \"combo_bonus\": 141\n },\n {\n \"plate_i_id\": 17,\n \"plate_j_id\": 22,\n \"combo_bonus\": 140\n },\n {\n \"plate_i_id\": 18,\n \"plate_j_id\": 19,\n \"combo_bonus\": 105\n },\n {\n \"plate_i_id\": 18,\n \"plate_j_id\": 20,\n \"combo_bonus\": 130\n },\n {\n \"plate_i_id\": 18,\n \"plate_j_id\": 21,\n \"combo_bonus\": 123\n },\n {\n \"plate_i_id\": 18,\n \"plate_j_id\": 22,\n \"combo_bonus\": 113\n },\n {\n \"plate_i_id\": 18,\n \"plate_j_id\": 23,\n \"combo_bonus\": 135\n },\n {\n \"plate_i_id\": 18,\n \"plate_j_id\": 24,\n \"combo_bonus\": 117\n },\n {\n \"plate_i_id\": 19,\n \"plate_j_id\": 22,\n \"combo_bonus\": 134\n },\n {\n \"plate_i_id\": 19,\n \"plate_j_id\": 23,\n \"combo_bonus\": 134\n },\n {\n \"plate_i_id\": 20,\n \"plate_j_id\": 21,\n \"combo_bonus\": 118\n },\n {\n \"plate_i_id\": 20,\n \"plate_j_id\": 22,\n \"combo_bonus\": 127\n },\n {\n \"plate_i_id\": 20,\n \"plate_j_id\": 23,\n \"combo_bonus\": 109\n },\n {\n \"plate_i_id\": 21,\n \"plate_j_id\": 22,\n \"combo_bonus\": 113\n },\n {\n \"plate_i_id\": 21,\n \"plate_j_id\": 23,\n \"combo_bonus\": 123\n },\n {\n \"plate_i_id\": 22,\n \"plate_j_id\": 24,\n \"combo_bonus\": 149\n }\n ]\n}\n\nOh, and when you send back your chosen plates, you can just drop them into a tiny JSON snippet so it's clear and machine-friendly. Something like this works:\n\n{\n \"solution\": [, , ...]\n}\n\nHere \"solution\" is just the list of plates you want on the tasting platter — one entry per chosen plate, using the exact plate identifiers from the instance. This block is just a little template showing the shape I expect, not the final answer itself.\n\nPlease make sure to use the identifiers exactly as they appear in the instance input — no renaming, no made-up labels.\n- \"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”.\"", "instance": { "linear_coeffs": [ 140, 148, 104, 147, 116, 123, 105, 101, 116, 123, 132, 117, 128, 140, 102, 115, 129, 109, 119, 111, 144, 131, 103, 106, 119 ], "quadratic_coeffs": [ [ 141, 132, 0, 0, 148, 129, 126, 110, 102, 0, 0, 121, 114, 0, 126, 104, 0, 137, 140, 125, 111, 123, 139, 0, 116 ], [ 0, 101, 0, 106, 109, 131, 146, 139, 104, 103, 111, 0, 127, 117, 0, 0, 140, 110, 123, 110, 126, 130, 112, 121, 0 ], [ 0, 0, 101, 134, 104, 0, 136, 144, 142, 109, 110, 133, 134, 108, 115, 0, 0, 112, 133, 0, 111, 123, 119, 105, 101 ], [ 0, 0, 0, 140, 123, 131, 0, 0, 105, 142, 131, 110, 109, 0, 112, 101, 0, 136, 0, 113, 114, 0, 127, 113, 114 ], [ 0, 0, 0, 0, 141, 136, 137, 107, 141, 107, 142, 123, 109, 140, 0, 111, 140, 109, 133, 133, 139, 125, 144, 103, 0 ], [ 0, 0, 0, 0, 0, 143, 137, 121, 132, 141, 102, 121, 128, 149, 146, 0, 0, 104, 122, 131, 124, 0, 0, 122, 113 ], [ 0, 0, 0, 0, 0, 0, 127, 0, 107, 0, 123, 0, 124, 119, 120, 139, 139, 0, 101, 149, 137, 142, 0, 129, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 127, 125, 0, 131, 103, 104, 149, 0, 135, 107, 117, 144, 145, 125, 132, 102, 116 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 137, 129, 140, 129, 124, 0, 146, 0, 146, 140, 100, 0, 140, 137, 114, 124, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 132, 0, 0, 134, 119, 116, 139, 125, 125, 0, 115, 146, 117, 0, 132, 138 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 123, 109, 100, 0, 100, 0, 144, 149, 144, 129, 0, 0, 134, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 149, 128, 138, 147, 0, 141, 111, 121, 140, 0, 0, 137, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 146, 0, 110, 139, 119, 107, 109, 133, 114, 110, 131, 111 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 126, 128, 110, 0, 0, 106, 138, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 130, 142, 0, 0, 0, 108, 0, 145, 114, 109, 149 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124, 146, 143, 124, 145, 103, 103, 0, 0, 131 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 144, 103, 112, 111, 106, 0, 0, 144 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 135, 134, 104, 0, 141, 140, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 105, 130, 123, 113, 135, 117 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 134, 134, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 118, 127, 109, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 123, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 149 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 131, 137, 100, 109, 142, 123, 119, 126, 124, 128, 106, 149, 104, 119, 120, 128, 117, 133, 119, 102, 146, 140, 104, 117, 137 ], "capacity": 814, "solution": [ 5, 6, 10, 12, 13, 19, 23 ], "obj": 3513.0, "problem_type": "QKP" }, "solution": [ 5, 6, 10, 12, 13, 19, 23 ], "obj": 3513.0, "instance_variant": { "problem_type": "QKP", "num_items": 25, "capacity": 814, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 140 }, { "item_id": 1, "linear_profit": 148 }, { "item_id": 2, "linear_profit": 104 }, { "item_id": 3, "linear_profit": 147 }, { "item_id": 4, "linear_profit": 116 }, { "item_id": 5, "linear_profit": 123 }, { "item_id": 6, "linear_profit": 105 }, { "item_id": 7, "linear_profit": 101 }, { "item_id": 8, "linear_profit": 116 }, { "item_id": 9, "linear_profit": 123 }, { "item_id": 10, "linear_profit": 132 }, { "item_id": 11, "linear_profit": 117 }, { "item_id": 12, "linear_profit": 128 }, { "item_id": 13, "linear_profit": 140 }, { "item_id": 14, "linear_profit": 102 }, { "item_id": 15, "linear_profit": 115 }, { "item_id": 16, "linear_profit": 129 }, { "item_id": 17, "linear_profit": 109 }, { "item_id": 18, "linear_profit": 119 }, { "item_id": 19, "linear_profit": 111 }, { "item_id": 20, "linear_profit": 144 }, { "item_id": 21, "linear_profit": 131 }, { "item_id": 22, "linear_profit": 103 }, { "item_id": 23, "linear_profit": 106 }, { "item_id": 24, "linear_profit": 119 } ], "weight_pairs": [ { "item_id": 0, "weight": 131 }, { "item_id": 1, "weight": 137 }, { "item_id": 2, "weight": 100 }, { "item_id": 3, "weight": 109 }, { "item_id": 4, "weight": 142 }, { "item_id": 5, "weight": 123 }, { "item_id": 6, "weight": 119 }, { "item_id": 7, "weight": 126 }, { "item_id": 8, "weight": 124 }, { "item_id": 9, "weight": 128 }, { "item_id": 10, "weight": 106 }, { "item_id": 11, "weight": 149 }, { "item_id": 12, "weight": 104 }, { "item_id": 13, "weight": 119 }, { "item_id": 14, "weight": 120 }, { "item_id": 15, "weight": 128 }, { "item_id": 16, "weight": 117 }, { "item_id": 17, "weight": 133 }, { "item_id": 18, "weight": 119 }, { "item_id": 19, "weight": 102 }, { "item_id": 20, "weight": 146 }, { "item_id": 21, "weight": 140 }, { "item_id": 22, "weight": 104 }, { "item_id": 23, "weight": 117 }, { "item_id": 24, "weight": 137 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 141 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 132 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 148 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 129 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 126 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 110 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 121 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 114 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 126 }, { "item_i_id": 0, "item_j_id": 15, "quadratic_profit": 104 }, { "item_i_id": 0, "item_j_id": 17, "quadratic_profit": 137 }, { "item_i_id": 0, "item_j_id": 18, "quadratic_profit": 140 }, { "item_i_id": 0, "item_j_id": 19, "quadratic_profit": 125 }, { "item_i_id": 0, "item_j_id": 20, "quadratic_profit": 111 }, { "item_i_id": 0, "item_j_id": 21, "quadratic_profit": 123 }, { "item_i_id": 0, "item_j_id": 22, "quadratic_profit": 139 }, { "item_i_id": 0, "item_j_id": 24, "quadratic_profit": 116 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 106 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 109 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 131 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 146 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 139 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 127 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 117 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 140 }, { "item_i_id": 1, "item_j_id": 17, "quadratic_profit": 110 }, { "item_i_id": 1, "item_j_id": 18, "quadratic_profit": 123 }, { "item_i_id": 1, "item_j_id": 19, "quadratic_profit": 110 }, { "item_i_id": 1, "item_j_id": 20, "quadratic_profit": 126 }, { "item_i_id": 1, "item_j_id": 21, "quadratic_profit": 130 }, { "item_i_id": 1, "item_j_id": 22, "quadratic_profit": 112 }, { "item_i_id": 1, "item_j_id": 23, "quadratic_profit": 121 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 134 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 136 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 144 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 142 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 109 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 133 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 134 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 108 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 115 }, { "item_i_id": 2, "item_j_id": 17, "quadratic_profit": 112 }, { "item_i_id": 2, "item_j_id": 18, "quadratic_profit": 133 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 21, "quadratic_profit": 123 }, { "item_i_id": 2, "item_j_id": 22, "quadratic_profit": 119 }, { "item_i_id": 2, "item_j_id": 23, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 24, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 140 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 123 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 131 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 142 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 131 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 110 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 109 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 112 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 17, "quadratic_profit": 136 }, { "item_i_id": 3, "item_j_id": 19, "quadratic_profit": 113 }, { "item_i_id": 3, "item_j_id": 20, "quadratic_profit": 114 }, { "item_i_id": 3, "item_j_id": 22, "quadratic_profit": 127 }, { "item_i_id": 3, "item_j_id": 23, "quadratic_profit": 113 }, { "item_i_id": 3, "item_j_id": 24, "quadratic_profit": 114 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 141 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 136 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 137 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 107 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 141 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 107 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 142 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 123 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 109 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 140 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 111 }, { "item_i_id": 4, "item_j_id": 16, "quadratic_profit": 140 }, { "item_i_id": 4, "item_j_id": 17, "quadratic_profit": 109 }, { "item_i_id": 4, "item_j_id": 18, "quadratic_profit": 133 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 133 }, { "item_i_id": 4, "item_j_id": 20, "quadratic_profit": 139 }, { "item_i_id": 4, "item_j_id": 21, "quadratic_profit": 125 }, { "item_i_id": 4, "item_j_id": 22, "quadratic_profit": 144 }, { "item_i_id": 4, "item_j_id": 23, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 143 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 137 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 121 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 132 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 141 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 121 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 128 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 149 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 146 }, { "item_i_id": 5, "item_j_id": 17, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 18, "quadratic_profit": 122 }, { "item_i_id": 5, "item_j_id": 19, "quadratic_profit": 131 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 124 }, { "item_i_id": 5, "item_j_id": 23, "quadratic_profit": 122 }, { "item_i_id": 5, "item_j_id": 24, "quadratic_profit": 113 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 127 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 107 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 123 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 124 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 119 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 120 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 139 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 139 }, { "item_i_id": 6, "item_j_id": 18, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 19, "quadratic_profit": 149 }, { "item_i_id": 6, "item_j_id": 20, "quadratic_profit": 137 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 142 }, { "item_i_id": 6, "item_j_id": 23, "quadratic_profit": 129 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 127 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 125 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 131 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 149 }, { "item_i_id": 7, "item_j_id": 16, "quadratic_profit": 135 }, { "item_i_id": 7, "item_j_id": 17, "quadratic_profit": 107 }, { "item_i_id": 7, "item_j_id": 18, "quadratic_profit": 117 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 144 }, { "item_i_id": 7, "item_j_id": 20, "quadratic_profit": 145 }, { "item_i_id": 7, "item_j_id": 21, "quadratic_profit": 125 }, { "item_i_id": 7, "item_j_id": 22, "quadratic_profit": 132 }, { "item_i_id": 7, "item_j_id": 23, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 24, "quadratic_profit": 116 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 137 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 129 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 140 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 129 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 124 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 146 }, { "item_i_id": 8, "item_j_id": 16, "quadratic_profit": 146 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 140 }, { "item_i_id": 8, "item_j_id": 18, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 140 }, { "item_i_id": 8, "item_j_id": 21, "quadratic_profit": 137 }, { "item_i_id": 8, "item_j_id": 22, "quadratic_profit": 114 }, { "item_i_id": 8, "item_j_id": 23, "quadratic_profit": 124 }, { "item_i_id": 8, "item_j_id": 24, "quadratic_profit": 104 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 132 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 134 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 119 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 116 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 139 }, { "item_i_id": 9, "item_j_id": 16, "quadratic_profit": 125 }, { "item_i_id": 9, "item_j_id": 17, "quadratic_profit": 125 }, { "item_i_id": 9, "item_j_id": 19, "quadratic_profit": 115 }, { "item_i_id": 9, "item_j_id": 20, "quadratic_profit": 146 }, { "item_i_id": 9, "item_j_id": 21, "quadratic_profit": 117 }, { "item_i_id": 9, "item_j_id": 23, "quadratic_profit": 132 }, { "item_i_id": 9, "item_j_id": 24, "quadratic_profit": 138 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 110 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 123 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 109 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 17, "quadratic_profit": 144 }, { "item_i_id": 10, "item_j_id": 18, "quadratic_profit": 149 }, { "item_i_id": 10, "item_j_id": 19, "quadratic_profit": 144 }, { "item_i_id": 10, "item_j_id": 20, "quadratic_profit": 129 }, { "item_i_id": 10, "item_j_id": 23, "quadratic_profit": 134 }, { "item_i_id": 10, "item_j_id": 24, "quadratic_profit": 104 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 109 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 149 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 128 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 138 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 147 }, { "item_i_id": 11, "item_j_id": 17, "quadratic_profit": 141 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 111 }, { "item_i_id": 11, "item_j_id": 19, "quadratic_profit": 121 }, { "item_i_id": 11, "item_j_id": 20, "quadratic_profit": 140 }, { "item_i_id": 11, "item_j_id": 23, "quadratic_profit": 137 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 146 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 110 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 139 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 119 }, { "item_i_id": 12, "item_j_id": 18, "quadratic_profit": 107 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 109 }, { "item_i_id": 12, "item_j_id": 20, "quadratic_profit": 133 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 114 }, { "item_i_id": 12, "item_j_id": 22, "quadratic_profit": 110 }, { "item_i_id": 12, "item_j_id": 23, "quadratic_profit": 131 }, { "item_i_id": 12, "item_j_id": 24, "quadratic_profit": 111 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 13, "item_j_id": 17, "quadratic_profit": 126 }, { "item_i_id": 13, "item_j_id": 18, "quadratic_profit": 128 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 110 }, { "item_i_id": 13, "item_j_id": 22, "quadratic_profit": 106 }, { "item_i_id": 13, "item_j_id": 23, "quadratic_profit": 138 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 130 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 142 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 108 }, { "item_i_id": 14, "item_j_id": 21, "quadratic_profit": 145 }, { "item_i_id": 14, "item_j_id": 22, "quadratic_profit": 114 }, { "item_i_id": 14, "item_j_id": 23, "quadratic_profit": 109 }, { "item_i_id": 14, "item_j_id": 24, "quadratic_profit": 149 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 124 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 146 }, { "item_i_id": 15, "item_j_id": 17, "quadratic_profit": 143 }, { "item_i_id": 15, "item_j_id": 18, "quadratic_profit": 124 }, { "item_i_id": 15, "item_j_id": 19, "quadratic_profit": 145 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 103 }, { "item_i_id": 15, "item_j_id": 21, "quadratic_profit": 103 }, { "item_i_id": 15, "item_j_id": 24, "quadratic_profit": 131 }, { "item_i_id": 16, "item_j_id": 16, "quadratic_profit": 115 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 144 }, { "item_i_id": 16, "item_j_id": 18, "quadratic_profit": 103 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 112 }, { "item_i_id": 16, "item_j_id": 20, "quadratic_profit": 111 }, { "item_i_id": 16, "item_j_id": 21, "quadratic_profit": 106 }, { "item_i_id": 16, "item_j_id": 24, "quadratic_profit": 144 }, { "item_i_id": 17, "item_j_id": 17, "quadratic_profit": 135 }, { "item_i_id": 17, "item_j_id": 18, "quadratic_profit": 134 }, { "item_i_id": 17, "item_j_id": 19, "quadratic_profit": 104 }, { "item_i_id": 17, "item_j_id": 21, "quadratic_profit": 141 }, { "item_i_id": 17, "item_j_id": 22, "quadratic_profit": 140 }, { "item_i_id": 18, "item_j_id": 18, "quadratic_profit": 123 }, { "item_i_id": 18, "item_j_id": 19, "quadratic_profit": 105 }, { "item_i_id": 18, "item_j_id": 20, "quadratic_profit": 130 }, { "item_i_id": 18, "item_j_id": 21, "quadratic_profit": 123 }, { "item_i_id": 18, "item_j_id": 22, "quadratic_profit": 113 }, { "item_i_id": 18, "item_j_id": 23, "quadratic_profit": 135 }, { "item_i_id": 18, "item_j_id": 24, "quadratic_profit": 117 }, { "item_i_id": 19, "item_j_id": 22, "quadratic_profit": 134 }, { "item_i_id": 19, "item_j_id": 23, "quadratic_profit": 134 }, { "item_i_id": 20, "item_j_id": 21, "quadratic_profit": 118 }, { "item_i_id": 20, "item_j_id": 22, "quadratic_profit": 127 }, { "item_i_id": 20, "item_j_id": 23, "quadratic_profit": 109 }, { "item_i_id": 21, "item_j_id": 22, "quadratic_profit": 113 }, { "item_i_id": 21, "item_j_id": 23, "quadratic_profit": 123 }, { "item_i_id": 22, "item_j_id": 22, "quadratic_profit": 111 }, { "item_i_id": 22, "item_j_id": 24, "quadratic_profit": 149 } ] }, "solution_variant": [ 5, 6, 10, 12, 13, 19, 23 ], "context_index": 46, "input_format": "json", "input_index_base": 0 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "I’m loading up a rental truck with a pile of furniture and trying to decide which pieces to take so the truck doesn’t get overloaded. Each item has its own resale or reuse value, and a few specific combinations — like a matching table and set of chairs — add extra value if they travel together. The idea is to pick a bunch of items whose total weight stays under the truck’s limit while getting the biggest total payout, which is just the sum of each piece’s value plus any pair bonuses for items that were both brought along; each item can only be taken once or left behind. The exact list of pieces, weights, values and the pair bonuses is shown below.\n\n{\n \"num_pieces\": 19,\n \"truck_weight_limit\": 5148,\n \"piece_ids\": [\n \"A\",\n \"B\",\n \"C\",\n \"D\",\n \"E\",\n \"F\",\n \"G\",\n \"H\",\n \"I\",\n \"J\",\n \"K\",\n \"L\",\n \"M\",\n \"N\",\n \"O\",\n \"P\",\n \"Q\",\n \"R\",\n \"S\"\n ],\n \"linear\": [\n {\n \"piece_id\": \"A\",\n \"resale_value\": 170\n },\n {\n \"piece_id\": \"B\",\n \"resale_value\": 321\n },\n {\n \"piece_id\": \"C\",\n \"resale_value\": 191\n },\n {\n \"piece_id\": \"D\",\n \"resale_value\": 422\n },\n {\n \"piece_id\": \"E\",\n \"resale_value\": 482\n },\n {\n \"piece_id\": \"F\",\n \"resale_value\": 308\n },\n {\n \"piece_id\": \"G\",\n \"resale_value\": 113\n },\n {\n \"piece_id\": \"H\",\n \"resale_value\": 248\n },\n {\n \"piece_id\": \"I\",\n \"resale_value\": 402\n },\n {\n \"piece_id\": \"J\",\n \"resale_value\": 142\n },\n {\n \"piece_id\": \"K\",\n \"resale_value\": 107\n },\n {\n \"piece_id\": \"L\",\n \"resale_value\": 236\n },\n {\n \"piece_id\": \"M\",\n \"resale_value\": 211\n },\n {\n \"piece_id\": \"N\",\n \"resale_value\": 450\n },\n {\n \"piece_id\": \"O\",\n \"resale_value\": 383\n },\n {\n \"piece_id\": \"P\",\n \"resale_value\": 403\n },\n {\n \"piece_id\": \"Q\",\n \"resale_value\": 145\n },\n {\n \"piece_id\": \"R\",\n \"resale_value\": 126\n },\n {\n \"piece_id\": \"S\",\n \"resale_value\": 435\n }\n ],\n \"weights\": [\n {\n \"piece_id\": \"A\",\n \"piece_weight\": 438\n },\n {\n \"piece_id\": \"B\",\n \"piece_weight\": 429\n },\n {\n \"piece_id\": \"C\",\n \"piece_weight\": 212\n },\n {\n \"piece_id\": \"D\",\n \"piece_weight\": 312\n },\n {\n \"piece_id\": \"E\",\n \"piece_weight\": 147\n },\n {\n \"piece_id\": \"F\",\n \"piece_weight\": 380\n },\n {\n \"piece_id\": \"G\",\n \"piece_weight\": 153\n },\n {\n \"piece_id\": \"H\",\n \"piece_weight\": 182\n },\n {\n \"piece_id\": \"I\",\n \"piece_weight\": 153\n },\n {\n \"piece_id\": \"J\",\n \"piece_weight\": 207\n },\n {\n \"piece_id\": \"K\",\n \"piece_weight\": 174\n },\n {\n \"piece_id\": \"L\",\n \"piece_weight\": 206\n },\n {\n \"piece_id\": \"M\",\n \"piece_weight\": 360\n },\n {\n \"piece_id\": \"N\",\n \"piece_weight\": 421\n },\n {\n \"piece_id\": \"O\",\n \"piece_weight\": 332\n },\n {\n \"piece_id\": \"P\",\n \"piece_weight\": 106\n },\n {\n \"piece_id\": \"Q\",\n \"piece_weight\": 475\n },\n {\n \"piece_id\": \"R\",\n \"piece_weight\": 238\n },\n {\n \"piece_id\": \"S\",\n \"piece_weight\": 369\n }\n ],\n \"quadratic\": [\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"B\",\n \"pair_bonus_value\": 270\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"H\",\n \"pair_bonus_value\": 333\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"I\",\n \"pair_bonus_value\": 151\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"J\",\n \"pair_bonus_value\": 437\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"K\",\n \"pair_bonus_value\": 118\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 432\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 122\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 232\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 397\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 437\n },\n {\n \"piece_a_id\": \"A\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 428\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"D\",\n \"pair_bonus_value\": 469\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"E\",\n \"pair_bonus_value\": 380\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"F\",\n \"pair_bonus_value\": 315\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"G\",\n \"pair_bonus_value\": 225\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"H\",\n \"pair_bonus_value\": 191\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"J\",\n \"pair_bonus_value\": 444\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"K\",\n \"pair_bonus_value\": 457\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"L\",\n \"pair_bonus_value\": 293\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 461\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 339\n },\n {\n \"piece_a_id\": \"B\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 481\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"D\",\n \"pair_bonus_value\": 330\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"E\",\n \"pair_bonus_value\": 223\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"F\",\n \"pair_bonus_value\": 271\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"G\",\n \"pair_bonus_value\": 260\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"I\",\n \"pair_bonus_value\": 210\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"J\",\n \"pair_bonus_value\": 363\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"K\",\n \"pair_bonus_value\": 250\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"L\",\n \"pair_bonus_value\": 126\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 312\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 498\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 264\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 170\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 440\n },\n {\n \"piece_a_id\": \"C\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 411\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"E\",\n \"pair_bonus_value\": 103\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"F\",\n \"pair_bonus_value\": 450\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"I\",\n \"pair_bonus_value\": 379\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"J\",\n \"pair_bonus_value\": 266\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"K\",\n \"pair_bonus_value\": 410\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"L\",\n \"pair_bonus_value\": 339\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 210\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 456\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 115\n },\n {\n \"piece_a_id\": \"D\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 255\n },\n {\n \"piece_a_id\": \"E\",\n \"piece_b_id\": \"G\",\n \"pair_bonus_value\": 380\n },\n {\n \"piece_a_id\": \"E\",\n \"piece_b_id\": \"H\",\n \"pair_bonus_value\": 219\n },\n {\n \"piece_a_id\": \"E\",\n \"piece_b_id\": \"I\",\n \"pair_bonus_value\": 327\n },\n {\n \"piece_a_id\": \"E\",\n \"piece_b_id\": \"J\",\n \"pair_bonus_value\": 262\n },\n {\n \"piece_a_id\": \"E\",\n \"piece_b_id\": \"K\",\n \"pair_bonus_value\": 427\n },\n {\n \"piece_a_id\": \"E\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 266\n },\n {\n \"piece_a_id\": \"E\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 428\n },\n {\n \"piece_a_id\": \"E\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 405\n },\n {\n \"piece_a_id\": \"E\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 319\n },\n {\n \"piece_a_id\": \"F\",\n \"piece_b_id\": \"G\",\n \"pair_bonus_value\": 358\n },\n {\n \"piece_a_id\": \"F\",\n \"piece_b_id\": \"H\",\n \"pair_bonus_value\": 178\n },\n {\n \"piece_a_id\": \"F\",\n \"piece_b_id\": \"J\",\n \"pair_bonus_value\": 444\n },\n {\n \"piece_a_id\": \"F\",\n \"piece_b_id\": \"K\",\n \"pair_bonus_value\": 361\n },\n {\n \"piece_a_id\": \"F\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 262\n },\n {\n \"piece_a_id\": \"F\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 348\n },\n {\n \"piece_a_id\": \"F\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 138\n },\n {\n \"piece_a_id\": \"F\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 287\n },\n {\n \"piece_a_id\": \"F\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 433\n },\n {\n \"piece_a_id\": \"G\",\n \"piece_b_id\": \"H\",\n \"pair_bonus_value\": 304\n },\n {\n \"piece_a_id\": \"G\",\n \"piece_b_id\": \"I\",\n \"pair_bonus_value\": 499\n },\n {\n \"piece_a_id\": \"G\",\n \"piece_b_id\": \"J\",\n \"pair_bonus_value\": 275\n },\n {\n \"piece_a_id\": \"G\",\n \"piece_b_id\": \"K\",\n \"pair_bonus_value\": 208\n },\n {\n \"piece_a_id\": \"G\",\n \"piece_b_id\": \"L\",\n \"pair_bonus_value\": 105\n },\n {\n \"piece_a_id\": \"G\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 302\n },\n {\n \"piece_a_id\": \"G\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 171\n },\n {\n \"piece_a_id\": \"G\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 288\n },\n {\n \"piece_a_id\": \"G\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 424\n },\n {\n \"piece_a_id\": \"H\",\n \"piece_b_id\": \"J\",\n \"pair_bonus_value\": 177\n },\n {\n \"piece_a_id\": \"H\",\n \"piece_b_id\": \"K\",\n \"pair_bonus_value\": 140\n },\n {\n \"piece_a_id\": \"H\",\n \"piece_b_id\": \"L\",\n \"pair_bonus_value\": 378\n },\n {\n \"piece_a_id\": \"H\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 299\n },\n {\n \"piece_a_id\": \"H\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 441\n },\n {\n \"piece_a_id\": \"H\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 483\n },\n {\n \"piece_a_id\": \"H\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 386\n },\n {\n \"piece_a_id\": \"H\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 224\n },\n {\n \"piece_a_id\": \"H\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 389\n },\n {\n \"piece_a_id\": \"I\",\n \"piece_b_id\": \"L\",\n \"pair_bonus_value\": 369\n },\n {\n \"piece_a_id\": \"I\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 207\n },\n {\n \"piece_a_id\": \"I\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 424\n },\n {\n \"piece_a_id\": \"I\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 323\n },\n {\n \"piece_a_id\": \"I\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 204\n },\n {\n \"piece_a_id\": \"I\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 403\n },\n {\n \"piece_a_id\": \"J\",\n \"piece_b_id\": \"K\",\n \"pair_bonus_value\": 364\n },\n {\n \"piece_a_id\": \"J\",\n \"piece_b_id\": \"L\",\n \"pair_bonus_value\": 244\n },\n {\n \"piece_a_id\": \"J\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 222\n },\n {\n \"piece_a_id\": \"J\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 207\n },\n {\n \"piece_a_id\": \"J\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 413\n },\n {\n \"piece_a_id\": \"J\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 218\n },\n {\n \"piece_a_id\": \"J\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 441\n },\n {\n \"piece_a_id\": \"K\",\n \"piece_b_id\": \"L\",\n \"pair_bonus_value\": 199\n },\n {\n \"piece_a_id\": \"K\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 316\n },\n {\n \"piece_a_id\": \"K\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 198\n },\n {\n \"piece_a_id\": \"K\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 212\n },\n {\n \"piece_a_id\": \"K\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 467\n },\n {\n \"piece_a_id\": \"L\",\n \"piece_b_id\": \"M\",\n \"pair_bonus_value\": 240\n },\n {\n \"piece_a_id\": \"L\",\n \"piece_b_id\": \"N\",\n \"pair_bonus_value\": 430\n },\n {\n \"piece_a_id\": \"L\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 338\n },\n {\n \"piece_a_id\": \"L\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 450\n },\n {\n \"piece_a_id\": \"L\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 310\n },\n {\n \"piece_a_id\": \"M\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 482\n },\n {\n \"piece_a_id\": \"M\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 485\n },\n {\n \"piece_a_id\": \"M\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 157\n },\n {\n \"piece_a_id\": \"M\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 246\n },\n {\n \"piece_a_id\": \"N\",\n \"piece_b_id\": \"O\",\n \"pair_bonus_value\": 348\n },\n {\n \"piece_a_id\": \"N\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 150\n },\n {\n \"piece_a_id\": \"N\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 245\n },\n {\n \"piece_a_id\": \"N\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 292\n },\n {\n \"piece_a_id\": \"N\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 445\n },\n {\n \"piece_a_id\": \"O\",\n \"piece_b_id\": \"P\",\n \"pair_bonus_value\": 205\n },\n {\n \"piece_a_id\": \"O\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 327\n },\n {\n \"piece_a_id\": \"O\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 489\n },\n {\n \"piece_a_id\": \"O\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 484\n },\n {\n \"piece_a_id\": \"P\",\n \"piece_b_id\": \"Q\",\n \"pair_bonus_value\": 443\n },\n {\n \"piece_a_id\": \"P\",\n \"piece_b_id\": \"R\",\n \"pair_bonus_value\": 196\n },\n {\n \"piece_a_id\": \"P\",\n \"piece_b_id\": \"S\",\n \"pair_bonus_value\": 164\n }\n ]\n}\n\nOh, and when you send your pick, please use this simple JSON layout so it's easy to read and parse:\n\n{\n \"solution\": [, , ...]\n}\n\nThink of \"solution\" as just a short list of the pieces you’re loading into the truck — each entry is the identifier for one item you want to take. This JSON is just a sketch of the shape I expect, not the actual answer itself.\n\nPlease use the exact identifiers from the instance input — no renaming, no new labels. \nFor 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”.\"", "instance": { "linear_coeffs": [ 170, 321, 191, 422, 482, 308, 113, 248, 402, 142, 107, 236, 211, 450, 383, 403, 145, 126, 435 ], "quadratic_coeffs": [ [ 393, 270, 0, 0, 0, 0, 0, 333, 151, 437, 118, 0, 0, 432, 122, 232, 397, 437, 428 ], [ 0, 109, 0, 469, 380, 315, 225, 191, 0, 444, 457, 293, 461, 0, 0, 0, 339, 0, 481 ], [ 0, 0, 0, 330, 223, 271, 260, 0, 210, 363, 250, 126, 312, 498, 264, 170, 440, 411, 0 ], [ 0, 0, 0, 0, 103, 450, 0, 0, 379, 266, 410, 339, 210, 456, 0, 0, 0, 115, 255 ], [ 0, 0, 0, 0, 487, 0, 380, 219, 327, 262, 427, 0, 266, 428, 405, 0, 319, 0, 0 ], [ 0, 0, 0, 0, 0, 200, 358, 178, 0, 444, 361, 0, 262, 348, 138, 287, 0, 0, 433 ], [ 0, 0, 0, 0, 0, 0, 235, 304, 499, 275, 208, 105, 302, 171, 0, 288, 424, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 140, 378, 299, 441, 483, 386, 0, 224, 389 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 369, 207, 424, 323, 204, 0, 0, 403 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 364, 244, 0, 0, 222, 207, 413, 218, 441 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 316, 198, 0, 212, 0, 467, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 422, 240, 430, 338, 0, 0, 450, 310 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 482, 485, 157, 0, 246 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 343, 348, 150, 245, 292, 445 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 420, 205, 327, 489, 484 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 324, 443, 196, 164 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 438, 429, 212, 312, 147, 380, 153, 182, 153, 207, 174, 206, 360, 421, 332, 106, 475, 238, 369 ], "capacity": 5148, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18 ], "obj": 40085.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18 ], "obj": 40085.0, "instance_variant": { "problem_type": "QKP", "num_items": 19, "capacity": 5148, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 170 }, { "item_id": "B", "linear_profit": 321 }, { "item_id": "C", "linear_profit": 191 }, { "item_id": "D", "linear_profit": 422 }, { "item_id": "E", "linear_profit": 482 }, { "item_id": "F", "linear_profit": 308 }, { "item_id": "G", "linear_profit": 113 }, { "item_id": "H", "linear_profit": 248 }, { "item_id": "I", "linear_profit": 402 }, { "item_id": "J", "linear_profit": 142 }, { "item_id": "K", "linear_profit": 107 }, { "item_id": "L", "linear_profit": 236 }, { "item_id": "M", "linear_profit": 211 }, { "item_id": "N", "linear_profit": 450 }, { "item_id": "O", "linear_profit": 383 }, { "item_id": "P", "linear_profit": 403 }, { "item_id": "Q", "linear_profit": 145 }, { "item_id": "R", "linear_profit": 126 }, { "item_id": "S", "linear_profit": 435 } ], "weight_pairs": [ { "item_id": "A", "weight": 438 }, { "item_id": "B", "weight": 429 }, { "item_id": "C", "weight": 212 }, { "item_id": "D", "weight": 312 }, { "item_id": "E", "weight": 147 }, { "item_id": "F", "weight": 380 }, { "item_id": "G", "weight": 153 }, { "item_id": "H", "weight": 182 }, { "item_id": "I", "weight": 153 }, { "item_id": "J", "weight": 207 }, { "item_id": "K", "weight": 174 }, { "item_id": "L", "weight": 206 }, { "item_id": "M", "weight": 360 }, { "item_id": "N", "weight": 421 }, { "item_id": "O", "weight": 332 }, { "item_id": "P", "weight": 106 }, { "item_id": "Q", "weight": 475 }, { "item_id": "R", "weight": 238 }, { "item_id": "S", "weight": 369 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 393 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 270 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 333 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 151 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 437 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 118 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 432 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 232 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 397 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 437 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 428 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 109 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 469 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 380 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 315 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 225 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 191 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 444 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 457 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 293 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 461 }, { "item_i_id": "B", "item_j_id": "Q", "quadratic_profit": 339 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 481 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 330 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 223 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 271 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 260 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 210 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 363 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 250 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 126 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 312 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 498 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 264 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 170 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 440 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 411 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 450 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 379 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 266 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 410 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 339 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 210 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 456 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 115 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 255 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 487 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 380 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 219 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 327 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 262 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 427 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 266 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 428 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 405 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 319 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 200 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 358 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 178 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 444 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 361 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 262 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 348 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 138 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 287 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 433 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 235 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 304 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 499 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 275 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 208 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 302 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 171 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 288 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 424 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 177 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 140 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 378 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 299 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 441 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 483 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 386 }, { "item_i_id": "H", "item_j_id": "R", "quadratic_profit": 224 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 389 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 123 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 369 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 207 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 424 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 323 }, { "item_i_id": "I", "item_j_id": "P", "quadratic_profit": 204 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 403 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 364 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 244 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 222 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 207 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 413 }, { "item_i_id": "J", "item_j_id": "R", "quadratic_profit": 218 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 441 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 199 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 316 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 198 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 212 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 467 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 422 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 240 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 430 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 338 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 450 }, { "item_i_id": "L", "item_j_id": "S", "quadratic_profit": 310 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 482 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 485 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 157 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 246 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 343 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 348 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 150 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 245 }, { "item_i_id": "N", "item_j_id": "R", "quadratic_profit": 292 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 445 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 420 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 205 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 327 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 489 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 484 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 324 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 443 }, { "item_i_id": "P", "item_j_id": "R", "quadratic_profit": 196 }, { "item_i_id": "P", "item_j_id": "S", "quadratic_profit": 164 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "S" ], "context_index": 47, "input_format": "json", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Back at the makerspace there’s one shelf with a strict weight capacity and a bunch of cool equipment to pick from. Each item brings its own usefulness number and adds to the total weight, and certain item pairs produce an extra boost if they’re both on the shelf. The objective is to choose which individual items to put there — no duplicates, and don’t exceed the shelf’s weight — so that the overall usefulness (individual scores plus any pairwise boosts that apply) ends up as high as possible. The full list of weights, usefulness values, and pair bonuses is given below.\n\n# num_equipment_items=21\n# shelf_weight_capacity=35975\n# equipment_ids=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21\n\nequipment_id,base_usefulness_value\n1,1652\n2,2905\n3,2860\n4,2583\n5,292\n6,1661\n7,1713\n8,2017\n9,2738\n10,490\n11,542\n12,1873\n13,1587\n14,2342\n15,148\n16,1623\n17,2180\n18,728\n19,1485\n20,2249\n21,420\n\nequipment_id,equipment_weight\n1,2160\n2,1544\n3,2734\n4,3144\n5,2472\n6,646\n7,2678\n8,2847\n9,2205\n10,968\n11,3049\n12,132\n13,1380\n14,1646\n15,1992\n16,801\n17,297\n18,2340\n19,801\n20,2948\n21,1058\n\nequipment_i_id,equipment_j_id,pair_bonus_usefulness\n1,3,1123\n1,11,2514\n1,16,1934\n2,3,1363\n2,7,1683\n2,8,1845\n2,11,1498\n2,13,1045\n2,20,1844\n2,21,2209\n3,6,2705\n3,12,1942\n3,13,1591\n4,5,3121\n4,15,1120\n4,19,1800\n4,21,1920\n5,6,945\n5,8,2346\n5,13,1837\n5,14,2054\n5,15,1313\n5,20,1836\n5,21,2021\n6,16,1054\n6,17,571\n6,21,2958\n7,13,1560\n7,15,1846\n7,19,2097\n8,11,1414\n8,13,2307\n8,17,531\n8,20,974\n9,11,1328\n9,18,1156\n9,21,1298\n10,13,1679\n10,19,545\n11,12,2663\n11,13,2671\n11,14,1317\n11,15,1543\n11,18,1755\n12,13,303\n12,16,1625\n12,17,805\n12,19,1104\n12,21,976\n13,19,540\n14,15,2372\n14,19,2560\n15,16,1983\n15,20,635\n16,17,2702\n16,19,1932\n17,21,2284\n\nOh, and when you send back your pick, just use this little JSON shape so it's easy to read and machine-friendly:\n\n{\n \"solution\": [, , ...]\n}\n\n\"solution\" is just the list of items you want on the shelf — put each item's identifier in that array. Think of it like filling out a short form: which items go on the shelf (no duplicates), listed by their exact IDs. This snippet is only a sketch of the expected shape, not the actual answer.\n\nValid 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”.", "instance": { "linear_coeffs": [ 1652, 2905, 2860, 2583, 292, 1661, 1713, 2017, 2738, 490, 542, 1873, 1587, 2342, 148, 1623, 2180, 728, 1485, 2249, 420 ], "quadratic_coeffs": [ [ 0, 0, 1123, 0, 0, 0, 0, 0, 0, 0, 2514, 0, 0, 0, 0, 1934, 0, 0, 0, 0, 0 ], [ 0, 949, 1363, 0, 0, 0, 1683, 1845, 0, 0, 1498, 0, 1045, 0, 0, 0, 0, 0, 0, 1844, 2209 ], [ 0, 0, 0, 0, 0, 2705, 0, 0, 0, 0, 0, 1942, 1591, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 3121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1120, 0, 0, 0, 1800, 0, 1920 ], [ 0, 0, 0, 0, 1171, 945, 0, 2346, 0, 0, 0, 0, 1837, 2054, 1313, 0, 0, 0, 0, 1836, 2021 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1054, 571, 0, 0, 0, 2958 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1560, 0, 1846, 0, 0, 0, 2097, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1414, 0, 2307, 0, 0, 0, 531, 0, 0, 974, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1328, 0, 0, 0, 0, 0, 0, 1156, 0, 0, 1298 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1679, 0, 0, 0, 0, 0, 545, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2282, 2663, 2671, 1317, 1543, 0, 0, 1755, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 303, 0, 0, 1625, 805, 0, 1104, 0, 976 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1308, 0, 0, 0, 0, 0, 540, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2372, 0, 0, 0, 2560, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1983, 0, 0, 0, 635, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2702, 0, 1932, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2284 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 2160, 1544, 2734, 3144, 2472, 646, 2678, 2847, 2205, 968, 3049, 132, 1380, 1646, 1992, 801, 297, 2340, 801, 2948, 1058 ], "capacity": 35975, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20 ], "obj": 125146.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, 19, 20 ], "obj": 125146.0, "instance_variant": { "problem_type": "QKP", "num_items": 21, "capacity": 35975, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 1652 }, { "item_id": 2, "linear_profit": 2905 }, { "item_id": 3, "linear_profit": 2860 }, { "item_id": 4, "linear_profit": 2583 }, { "item_id": 5, "linear_profit": 292 }, { "item_id": 6, "linear_profit": 1661 }, { "item_id": 7, "linear_profit": 1713 }, { "item_id": 8, "linear_profit": 2017 }, { "item_id": 9, "linear_profit": 2738 }, { "item_id": 10, "linear_profit": 490 }, { "item_id": 11, "linear_profit": 542 }, { "item_id": 12, "linear_profit": 1873 }, { "item_id": 13, "linear_profit": 1587 }, { "item_id": 14, "linear_profit": 2342 }, { "item_id": 15, "linear_profit": 148 }, { "item_id": 16, "linear_profit": 1623 }, { "item_id": 17, "linear_profit": 2180 }, { "item_id": 18, "linear_profit": 728 }, { "item_id": 19, "linear_profit": 1485 }, { "item_id": 20, "linear_profit": 2249 }, { "item_id": 21, "linear_profit": 420 } ], "weight_pairs": [ { "item_id": 1, "weight": 2160 }, { "item_id": 2, "weight": 1544 }, { "item_id": 3, "weight": 2734 }, { "item_id": 4, "weight": 3144 }, { "item_id": 5, "weight": 2472 }, { "item_id": 6, "weight": 646 }, { "item_id": 7, "weight": 2678 }, { "item_id": 8, "weight": 2847 }, { "item_id": 9, "weight": 2205 }, { "item_id": 10, "weight": 968 }, { "item_id": 11, "weight": 3049 }, { "item_id": 12, "weight": 132 }, { "item_id": 13, "weight": 1380 }, { "item_id": 14, "weight": 1646 }, { "item_id": 15, "weight": 1992 }, { "item_id": 16, "weight": 801 }, { "item_id": 17, "weight": 297 }, { "item_id": 18, "weight": 2340 }, { "item_id": 19, "weight": 801 }, { "item_id": 20, "weight": 2948 }, { "item_id": 21, "weight": 1058 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 1123 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 2514 }, { "item_i_id": 1, "item_j_id": 16, "quadratic_profit": 1934 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 949 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 1363 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 1683 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 1845 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 1498 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 1045 }, { "item_i_id": 2, "item_j_id": 20, "quadratic_profit": 1844 }, { "item_i_id": 2, "item_j_id": 21, "quadratic_profit": 2209 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 2705 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 1942 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 1591 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 3121 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 1120 }, { "item_i_id": 4, "item_j_id": 19, "quadratic_profit": 1800 }, { "item_i_id": 4, "item_j_id": 21, "quadratic_profit": 1920 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 1171 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 945 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 2346 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 1837 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 2054 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 1313 }, { "item_i_id": 5, "item_j_id": 20, "quadratic_profit": 1836 }, { "item_i_id": 5, "item_j_id": 21, "quadratic_profit": 2021 }, { "item_i_id": 6, "item_j_id": 16, "quadratic_profit": 1054 }, { "item_i_id": 6, "item_j_id": 17, "quadratic_profit": 571 }, { "item_i_id": 6, "item_j_id": 21, "quadratic_profit": 2958 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 1560 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 1846 }, { "item_i_id": 7, "item_j_id": 19, "quadratic_profit": 2097 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 1414 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 2307 }, { "item_i_id": 8, "item_j_id": 17, "quadratic_profit": 531 }, { "item_i_id": 8, "item_j_id": 20, "quadratic_profit": 974 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 1328 }, { "item_i_id": 9, "item_j_id": 18, "quadratic_profit": 1156 }, { "item_i_id": 9, "item_j_id": 21, "quadratic_profit": 1298 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 1679 }, { "item_i_id": 10, "item_j_id": 19, "quadratic_profit": 545 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 2282 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 2663 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 2671 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 1317 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 1543 }, { "item_i_id": 11, "item_j_id": 18, "quadratic_profit": 1755 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 303 }, { "item_i_id": 12, "item_j_id": 16, "quadratic_profit": 1625 }, { "item_i_id": 12, "item_j_id": 17, "quadratic_profit": 805 }, { "item_i_id": 12, "item_j_id": 19, "quadratic_profit": 1104 }, { "item_i_id": 12, "item_j_id": 21, "quadratic_profit": 976 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 1308 }, { "item_i_id": 13, "item_j_id": 19, "quadratic_profit": 540 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 2372 }, { "item_i_id": 14, "item_j_id": 19, "quadratic_profit": 2560 }, { "item_i_id": 15, "item_j_id": 16, "quadratic_profit": 1983 }, { "item_i_id": 15, "item_j_id": 20, "quadratic_profit": 635 }, { "item_i_id": 16, "item_j_id": 17, "quadratic_profit": 2702 }, { "item_i_id": 16, "item_j_id": 19, "quadratic_profit": 1932 }, { "item_i_id": 17, "item_j_id": 21, "quadratic_profit": 2284 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 19, 20, 21 ], "context_index": 48, "input_format": "csv", "input_index_base": 1 }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "Many people on the events team know the drill: one courier bag, a pile of flyers and kits, and a short list of choices. Every item adds some outreach value and some pairs bring extra bang when they’re combined. The goal is to end up with the highest possible outreach total — add the values of the chosen items and any extra pair bonuses — while respecting the bag’s weight limit and the rule that each piece is unique and can only be included once. The full breakdown of weights, values, and pair boosts is listed below.\n\nThere are 25 distinct pieces listed as A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, and the courier bag holds up to 1052 weight units.\n\n| material_id | outreach_value |\n|---|---|\n| A | 111 |\n| B | 113 |\n| C | 113 |\n| D | 119 |\n| E | 117 |\n| F | 112 |\n| G | 113 |\n| H | 122 |\n| I | 121 |\n| J | 122 |\n| K | 117 |\n| L | 114 |\n| M | 112 |\n| N | 122 |\n| O | 120 |\n| P | 114 |\n| Q | 115 |\n| R | 111 |\n| S | 113 |\n| T | 116 |\n| U | 112 |\n| V | 111 |\n| W | 122 |\n| X | 113 |\n| Y | 111 |\n\n| material_id | item_weight |\n|---|---|\n| A | 100 |\n| B | 102 |\n| C | 102 |\n| D | 108 |\n| E | 106 |\n| F | 101 |\n| G | 102 |\n| H | 111 |\n| I | 110 |\n| J | 111 |\n| K | 106 |\n| L | 103 |\n| M | 101 |\n| N | 111 |\n| O | 109 |\n| P | 103 |\n| Q | 104 |\n| R | 100 |\n| S | 102 |\n| T | 105 |\n| U | 101 |\n| V | 100 |\n| W | 111 |\n| X | 102 |\n| Y | 100 |\n\n| material_i_id | material_j_id | combo_bonus |\n|---|---|---|\n| A | B | 108 |\n| A | C | 111 |\n| A | D | 107 |\n| A | E | 108 |\n| A | F | 101 |\n| A | G | 110 |\n| A | H | 109 |\n| A | I | 104 |\n| A | J | 106 |\n| A | K | 102 |\n| A | L | 106 |\n| A | P | 101 |\n| A | Q | 105 |\n| A | R | 103 |\n| A | S | 100 |\n| A | T | 107 |\n| A | U | 103 |\n| A | V | 102 |\n| A | W | 109 |\n| A | X | 107 |\n| A | Y | 101 |\n| B | C | 107 |\n| B | D | 100 |\n| B | E | 110 |\n| B | F | 109 |\n| B | G | 111 |\n| B | H | 106 |\n| B | I | 109 |\n| B | J | 107 |\n| B | K | 104 |\n| B | L | 108 |\n| B | M | 102 |\n| B | N | 111 |\n| B | O | 108 |\n| B | R | 110 |\n| B | S | 108 |\n| B | T | 110 |\n| B | W | 111 |\n| B | X | 103 |\n| C | D | 106 |\n| C | E | 104 |\n| C | F | 104 |\n| C | G | 105 |\n| C | H | 102 |\n| C | I | 105 |\n| C | K | 105 |\n| C | L | 108 |\n| C | M | 106 |\n| C | N | 102 |\n| C | P | 107 |\n| C | Q | 110 |\n| C | R | 105 |\n| C | S | 110 |\n| C | T | 101 |\n| C | U | 111 |\n| C | V | 108 |\n| C | W | 111 |\n| C | X | 101 |\n| D | E | 105 |\n| D | F | 101 |\n| D | G | 109 |\n| D | H | 105 |\n| D | I | 101 |\n| D | K | 110 |\n| D | L | 100 |\n| D | M | 107 |\n| D | O | 108 |\n| D | P | 101 |\n| D | Q | 104 |\n| D | R | 107 |\n| D | T | 107 |\n| D | U | 105 |\n| D | V | 104 |\n| D | W | 102 |\n| D | Y | 102 |\n| E | F | 108 |\n| E | G | 105 |\n| E | H | 105 |\n| E | I | 105 |\n| E | J | 107 |\n| E | K | 105 |\n| E | M | 101 |\n| E | N | 110 |\n| E | O | 109 |\n| E | P | 108 |\n| E | Q | 101 |\n| E | X | 100 |\n| F | G | 107 |\n| F | H | 109 |\n| F | I | 104 |\n| F | J | 101 |\n| F | K | 106 |\n| F | L | 106 |\n| F | M | 105 |\n| F | N | 111 |\n| F | P | 103 |\n| F | Q | 108 |\n| F | R | 100 |\n| F | S | 109 |\n| F | T | 110 |\n| F | U | 103 |\n| F | V | 100 |\n| F | W | 107 |\n| F | X | 101 |\n| F | Y | 102 |\n| G | H | 111 |\n| G | I | 103 |\n| G | J | 106 |\n| G | M | 102 |\n| G | N | 102 |\n| G | O | 105 |\n| G | P | 104 |\n| G | Q | 100 |\n| G | R | 100 |\n| G | S | 100 |\n| G | T | 104 |\n| G | U | 107 |\n| G | W | 100 |\n| G | Y | 111 |\n| H | K | 110 |\n| H | L | 100 |\n| H | M | 109 |\n| H | O | 106 |\n| H | S | 101 |\n| H | U | 102 |\n| H | V | 111 |\n| H | X | 109 |\n| I | K | 102 |\n| I | L | 100 |\n| I | M | 104 |\n| I | N | 107 |\n| I | Q | 109 |\n| I | R | 109 |\n| I | S | 104 |\n| I | U | 102 |\n| I | W | 109 |\n| I | X | 111 |\n| J | K | 100 |\n| J | L | 100 |\n| J | M | 102 |\n| J | O | 105 |\n| J | P | 109 |\n| J | Q | 104 |\n| J | S | 106 |\n| J | T | 105 |\n| J | U | 110 |\n| J | V | 101 |\n| J | W | 110 |\n| K | L | 102 |\n| K | M | 105 |\n| K | N | 110 |\n| K | P | 100 |\n| K | Q | 104 |\n| K | R | 104 |\n| K | S | 107 |\n| K | U | 104 |\n| K | V | 110 |\n| K | X | 105 |\n| K | Y | 105 |\n| L | M | 103 |\n| L | N | 105 |\n| L | O | 103 |\n| L | P | 109 |\n| L | Q | 103 |\n| L | V | 108 |\n| L | W | 109 |\n| L | X | 101 |\n| L | Y | 100 |\n| M | N | 104 |\n| M | P | 108 |\n| M | Q | 103 |\n| M | R | 104 |\n| M | S | 102 |\n| M | V | 106 |\n| M | X | 103 |\n| M | Y | 102 |\n| N | O | 105 |\n| N | P | 109 |\n| N | S | 101 |\n| N | U | 103 |\n| N | V | 106 |\n| N | W | 102 |\n| N | X | 108 |\n| N | Y | 100 |\n| O | P | 106 |\n| O | Q | 105 |\n| O | R | 101 |\n| O | S | 105 |\n| O | T | 101 |\n| O | V | 111 |\n| O | W | 106 |\n| O | X | 110 |\n| O | Y | 100 |\n| P | Q | 111 |\n| P | U | 106 |\n| P | W | 101 |\n| P | X | 109 |\n| P | Y | 103 |\n| Q | R | 102 |\n| Q | S | 110 |\n| Q | T | 109 |\n| Q | U | 110 |\n| Q | V | 105 |\n| Q | X | 102 |\n| Q | Y | 103 |\n| R | S | 104 |\n| R | T | 111 |\n| R | V | 107 |\n| R | W | 108 |\n| R | X | 106 |\n| S | U | 100 |\n| S | V | 106 |\n| S | X | 109 |\n| T | U | 105 |\n| T | V | 108 |\n| T | W | 105 |\n| T | X | 101 |\n| T | Y | 107 |\n| U | V | 109 |\n| U | X | 111 |\n| U | Y | 110 |\n| V | W | 104 |\n| W | X | 101 |\n| W | Y | 101 |\n\nStick to the bag limit and unique-piece rule — aim for the highest outreach.\n\nOh, and when you tell me which items you’re packing, a tiny JSON snippet like this works great — super simple and keeps everything clear:\n\n{\n \"solution\": [, , ...]\n}\n\nThink of \"solution\" as the list of item IDs you picked to put in the bag. The angle-bracket placeholders are just a sketch of the shape I expect — when you send your actual answer, swap those placeholders for the real item IDs from the instance.\n\nPlease use the item identifiers exactly as they appear in the problem 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\".", "instance": { "linear_coeffs": [ 111, 113, 113, 119, 117, 112, 113, 122, 121, 122, 117, 114, 112, 122, 120, 114, 115, 111, 113, 116, 112, 111, 122, 113, 111 ], "quadratic_coeffs": [ [ 104, 108, 111, 107, 108, 101, 110, 109, 104, 106, 102, 106, 0, 0, 0, 101, 105, 103, 100, 107, 103, 102, 109, 107, 101 ], [ 0, 103, 107, 100, 110, 109, 111, 106, 109, 107, 104, 108, 102, 111, 108, 0, 0, 110, 108, 110, 0, 0, 111, 103, 0 ], [ 0, 0, 107, 106, 104, 104, 105, 102, 105, 0, 105, 108, 106, 102, 0, 107, 110, 105, 110, 101, 111, 108, 111, 101, 0 ], [ 0, 0, 0, 104, 105, 101, 109, 105, 101, 0, 110, 100, 107, 0, 108, 101, 104, 107, 0, 107, 105, 104, 102, 0, 102 ], [ 0, 0, 0, 0, 108, 108, 105, 105, 105, 107, 105, 0, 101, 110, 109, 108, 101, 0, 0, 0, 0, 0, 0, 100, 0 ], [ 0, 0, 0, 0, 0, 109, 107, 109, 104, 101, 106, 106, 105, 111, 0, 103, 108, 100, 109, 110, 103, 100, 107, 101, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 111, 103, 106, 0, 0, 102, 102, 105, 104, 100, 100, 100, 104, 107, 0, 100, 0, 111 ], [ 0, 0, 0, 0, 0, 0, 0, 110, 0, 0, 110, 100, 109, 0, 106, 0, 0, 0, 101, 0, 102, 111, 0, 109, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 106, 0, 102, 100, 104, 107, 0, 0, 109, 109, 104, 0, 102, 0, 109, 111, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 100, 100, 102, 0, 105, 109, 104, 0, 106, 105, 110, 101, 110, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 102, 105, 110, 0, 100, 104, 104, 107, 0, 104, 110, 0, 105, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 103, 105, 103, 109, 103, 0, 0, 0, 0, 108, 109, 101, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 104, 0, 108, 103, 104, 102, 0, 0, 106, 0, 103, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 105, 109, 0, 0, 101, 0, 103, 106, 102, 108, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 108, 106, 105, 101, 105, 101, 0, 111, 106, 110, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 111, 0, 0, 0, 106, 0, 101, 109, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 102, 110, 109, 110, 105, 0, 102, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 104, 111, 0, 107, 108, 106, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 100, 106, 0, 109, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 105, 108, 105, 101, 107 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 106, 109, 0, 111, 110 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 100, 102, 102, 108, 106, 101, 102, 111, 110, 111, 106, 103, 101, 111, 109, 103, 104, 100, 102, 105, 101, 100, 111, 102, 100 ], "capacity": 1052, "solution": [ 0, 1, 2, 3, 5, 6, 8, 17, 19, 22 ], "obj": 5819.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 5, 6, 8, 17, 19, 22 ], "obj": 5819.0, "instance_variant": { "problem_type": "QKP", "num_items": 25, "capacity": 1052, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 111 }, { "item_id": "B", "linear_profit": 113 }, { "item_id": "C", "linear_profit": 113 }, { "item_id": "D", "linear_profit": 119 }, { "item_id": "E", "linear_profit": 117 }, { "item_id": "F", "linear_profit": 112 }, { "item_id": "G", "linear_profit": 113 }, { "item_id": "H", "linear_profit": 122 }, { "item_id": "I", "linear_profit": 121 }, { "item_id": "J", "linear_profit": 122 }, { "item_id": "K", "linear_profit": 117 }, { "item_id": "L", "linear_profit": 114 }, { "item_id": "M", "linear_profit": 112 }, { "item_id": "N", "linear_profit": 122 }, { "item_id": "O", "linear_profit": 120 }, { "item_id": "P", "linear_profit": 114 }, { "item_id": "Q", "linear_profit": 115 }, { "item_id": "R", "linear_profit": 111 }, { "item_id": "S", "linear_profit": 113 }, { "item_id": "T", "linear_profit": 116 }, { "item_id": "U", "linear_profit": 112 }, { "item_id": "V", "linear_profit": 111 }, { "item_id": "W", "linear_profit": 122 }, { "item_id": "X", "linear_profit": 113 }, { "item_id": "Y", "linear_profit": 111 } ], "weight_pairs": [ { "item_id": "A", "weight": 100 }, { "item_id": "B", "weight": 102 }, { "item_id": "C", "weight": 102 }, { "item_id": "D", "weight": 108 }, { "item_id": "E", "weight": 106 }, { "item_id": "F", "weight": 101 }, { "item_id": "G", "weight": 102 }, { "item_id": "H", "weight": 111 }, { "item_id": "I", "weight": 110 }, { "item_id": "J", "weight": 111 }, { "item_id": "K", "weight": 106 }, { "item_id": "L", "weight": 103 }, { "item_id": "M", "weight": 101 }, { "item_id": "N", "weight": 111 }, { "item_id": "O", "weight": 109 }, { "item_id": "P", "weight": 103 }, { "item_id": "Q", "weight": 104 }, { "item_id": "R", "weight": 100 }, { "item_id": "S", "weight": 102 }, { "item_id": "T", "weight": 105 }, { "item_id": "U", "weight": 101 }, { "item_id": "V", "weight": 100 }, { "item_id": "W", "weight": 111 }, { "item_id": "X", "weight": 102 }, { "item_id": "Y", "weight": 100 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 108 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 111 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 107 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 108 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 110 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 109 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 106 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 106 }, { "item_i_id": "A", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "Q", "quadratic_profit": 105 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 103 }, { "item_i_id": "A", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 107 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "A", "item_j_id": "V", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "W", "quadratic_profit": 109 }, { "item_i_id": "A", "item_j_id": "X", "quadratic_profit": 107 }, { "item_i_id": "A", "item_j_id": "Y", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 103 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 107 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 110 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 109 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 106 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 109 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 107 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 108 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 108 }, { "item_i_id": "B", "item_j_id": "R", "quadratic_profit": 110 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 108 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 110 }, { "item_i_id": "B", "item_j_id": "W", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "X", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 107 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 106 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 105 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 105 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 105 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 108 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 106 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 107 }, { "item_i_id": "C", "item_j_id": "Q", "quadratic_profit": 110 }, { "item_i_id": "C", "item_j_id": "R", "quadratic_profit": 105 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 110 }, { "item_i_id": "C", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "U", "quadratic_profit": 111 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 108 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 111 }, { "item_i_id": "C", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 104 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 105 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 109 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 105 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 110 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 107 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 108 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "D", "item_j_id": "R", "quadratic_profit": 107 }, { "item_i_id": "D", "item_j_id": "T", "quadratic_profit": 107 }, { "item_i_id": "D", "item_j_id": "U", "quadratic_profit": 105 }, { "item_i_id": "D", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "D", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "Y", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 108 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 108 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 105 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 105 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 105 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 107 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 105 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 110 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 109 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 108 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 109 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 107 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 109 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 104 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 106 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 106 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 105 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 111 }, { "item_i_id": "F", "item_j_id": "P", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "Q", "quadratic_profit": 108 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "S", "quadratic_profit": 109 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 110 }, { "item_i_id": "F", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 107 }, { "item_i_id": "F", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "Y", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 111 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 106 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "P", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "U", "quadratic_profit": 107 }, { "item_i_id": "G", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "Y", "quadratic_profit": 111 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 110 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 110 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 109 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 106 }, { "item_i_id": "H", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "V", "quadratic_profit": 111 }, { "item_i_id": "H", "item_j_id": "X", "quadratic_profit": 109 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 106 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 104 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 107 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 109 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 109 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 104 }, { "item_i_id": "I", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "I", "item_j_id": "W", "quadratic_profit": 109 }, { "item_i_id": "I", "item_j_id": "X", "quadratic_profit": 111 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 107 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 105 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 109 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 106 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 105 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 110 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "W", "quadratic_profit": 110 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 102 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 105 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 110 }, { "item_i_id": "K", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "K", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 107 }, { "item_i_id": "K", "item_j_id": "U", "quadratic_profit": 104 }, { "item_i_id": "K", "item_j_id": "V", "quadratic_profit": 110 }, { "item_i_id": "K", "item_j_id": "X", "quadratic_profit": 105 }, { "item_i_id": "K", "item_j_id": "Y", "quadratic_profit": 105 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 106 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 105 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 109 }, { "item_i_id": "L", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "V", "quadratic_profit": 108 }, { "item_i_id": "L", "item_j_id": "W", "quadratic_profit": 109 }, { "item_i_id": "L", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "Y", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 110 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 104 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 108 }, { "item_i_id": "M", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "M", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "M", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "M", "item_j_id": "V", "quadratic_profit": 106 }, { "item_i_id": "M", "item_j_id": "X", "quadratic_profit": 103 }, { "item_i_id": "M", "item_j_id": "Y", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 110 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 105 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 109 }, { "item_i_id": "N", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "N", "item_j_id": "U", "quadratic_profit": 103 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 106 }, { "item_i_id": "N", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "X", "quadratic_profit": 108 }, { "item_i_id": "N", "item_j_id": "Y", "quadratic_profit": 100 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 108 }, { "item_i_id": "O", "item_j_id": "P", "quadratic_profit": 106 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 105 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "S", "quadratic_profit": 105 }, { "item_i_id": "O", "item_j_id": "T", "quadratic_profit": 101 }, { "item_i_id": "O", "item_j_id": "V", "quadratic_profit": 111 }, { "item_i_id": "O", "item_j_id": "W", "quadratic_profit": 106 }, { "item_i_id": "O", "item_j_id": "X", "quadratic_profit": 110 }, { "item_i_id": "O", "item_j_id": "Y", "quadratic_profit": 100 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 109 }, { "item_i_id": "P", "item_j_id": "Q", "quadratic_profit": 111 }, { "item_i_id": "P", "item_j_id": "U", "quadratic_profit": 106 }, { "item_i_id": "P", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "P", "item_j_id": "X", "quadratic_profit": 109 }, { "item_i_id": "P", "item_j_id": "Y", "quadratic_profit": 103 }, { "item_i_id": "Q", "item_j_id": "Q", "quadratic_profit": 109 }, { "item_i_id": "Q", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "Q", "item_j_id": "S", "quadratic_profit": 110 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 109 }, { "item_i_id": "Q", "item_j_id": "U", "quadratic_profit": 110 }, { "item_i_id": "Q", "item_j_id": "V", "quadratic_profit": 105 }, { "item_i_id": "Q", "item_j_id": "X", "quadratic_profit": 102 }, { "item_i_id": "Q", "item_j_id": "Y", "quadratic_profit": 103 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 109 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 104 }, { "item_i_id": "R", "item_j_id": "T", "quadratic_profit": 111 }, { "item_i_id": "R", "item_j_id": "V", "quadratic_profit": 107 }, { "item_i_id": "R", "item_j_id": "W", "quadratic_profit": 108 }, { "item_i_id": "R", "item_j_id": "X", "quadratic_profit": 106 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 111 }, { "item_i_id": "S", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "S", "item_j_id": "V", "quadratic_profit": 106 }, { "item_i_id": "S", "item_j_id": "X", "quadratic_profit": 109 }, { "item_i_id": "T", "item_j_id": "T", "quadratic_profit": 109 }, { "item_i_id": "T", "item_j_id": "U", "quadratic_profit": 105 }, { "item_i_id": "T", "item_j_id": "V", "quadratic_profit": 108 }, { "item_i_id": "T", "item_j_id": "W", "quadratic_profit": 105 }, { "item_i_id": "T", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "T", "item_j_id": "Y", "quadratic_profit": 107 }, { "item_i_id": "U", "item_j_id": "U", "quadratic_profit": 106 }, { "item_i_id": "U", "item_j_id": "V", "quadratic_profit": 109 }, { "item_i_id": "U", "item_j_id": "X", "quadratic_profit": 111 }, { "item_i_id": "U", "item_j_id": "Y", "quadratic_profit": 110 }, { "item_i_id": "V", "item_j_id": "W", "quadratic_profit": 104 }, { "item_i_id": "W", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "W", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "W", "item_j_id": "Y", "quadratic_profit": 101 }, { "item_i_id": "X", "item_j_id": "X", "quadratic_profit": 101 } ] }, "solution_variant": [ "A", "B", "C", "D", "F", "G", "I", "R", "T", "W" ], "context_index": 49, "input_format": "markdown_table", "input_index_base": "names" }, { "task_name": "QKP", "problem_type": "QKP", "instruction": "We’ve got a stack of product samples and one small mailer to fill for a marketing push. Every sample contributes a certain conversion value on its own, and certain combinations add a little extra lift when they’re sent together. The best choice is the kit that brings in the most total conversion value — add up each sample’s value and add any extra value for pairs that are both present — but the total weight has to fit the mailer and each sample can only appear once. The exact items, weights, and numbers are listed below.\n\nBelow are the 24 samples A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X and the mailer capacity 1843.\nSample A on its own yields 102 conversion value.\nSample B on its own yields 105 conversion value.\nSample C on its own yields 104 conversion value.\nSample D on its own yields 105 conversion value.\nSample E on its own yields 101 conversion value.\nSample F on its own yields 103 conversion value.\nSample G on its own yields 103 conversion value.\nSample H on its own yields 105 conversion value.\nSample I on its own yields 104 conversion value.\nSample J on its own yields 102 conversion value.\nSample K on its own yields 102 conversion value.\nSample L on its own yields 103 conversion value.\nSample M on its own yields 102 conversion value.\nSample N on its own yields 100 conversion value.\nSample O on its own yields 100 conversion value.\nSample P on its own yields 103 conversion value.\nSample Q on its own yields 100 conversion value.\nSample R on its own yields 104 conversion value.\nSample S on its own yields 102 conversion value.\nSample T on its own yields 101 conversion value.\nSample U on its own yields 104 conversion value.\nSample V on its own yields 104 conversion value.\nSample W on its own yields 105 conversion value.\nSample X on its own yields 102 conversion value.\nSample A has weight 100 that counts toward the mailer.\nSample B has weight 105 that counts toward the mailer.\nSample C has weight 103 that counts toward the mailer.\nSample D has weight 100 that counts toward the mailer.\nSample E has weight 102 that counts toward the mailer.\nSample F has weight 100 that counts toward the mailer.\nSample G has weight 101 that counts toward the mailer.\nSample H has weight 105 that counts toward the mailer.\nSample I has weight 103 that counts toward the mailer.\nSample J has weight 101 that counts toward the mailer.\nSample K has weight 101 that counts toward the mailer.\nSample L has weight 102 that counts toward the mailer.\nSample M has weight 101 that counts toward the mailer.\nSample N has weight 102 that counts toward the mailer.\nSample O has weight 100 that counts toward the mailer.\nSample P has weight 100 that counts toward the mailer.\nSample Q has weight 104 that counts toward the mailer.\nSample R has weight 100 that counts toward the mailer.\nSample S has weight 102 that counts toward the mailer.\nSample T has weight 105 that counts toward the mailer.\nSample U has weight 101 that counts toward the mailer.\nSample V has weight 100 that counts toward the mailer.\nSample W has weight 102 that counts toward the mailer.\nSample X has weight 105 that counts toward the mailer.\nSending A with E together adds 100 extra conversion value.\nSending A with G together adds 100 extra conversion value.\nSending A with K together adds 100 extra conversion value.\nSending A with L together adds 100 extra conversion value.\nSending A with M together adds 100 extra conversion value.\nSending A with O together adds 100 extra conversion value.\nSending A with R together adds 100 extra conversion value.\nSending A with T together adds 100 extra conversion value.\nSending A with U together adds 100 extra conversion value.\nSending A with W together adds 100 extra conversion value.\nSending B with D together adds 104 extra conversion value.\nSending B with F together adds 104 extra conversion value.\nSending B with G together adds 104 extra conversion value.\nSending B with H together adds 105 extra conversion value.\nSending B with I together adds 102 extra conversion value.\nSending B with J together adds 105 extra conversion value.\nSending B with M together adds 101 extra conversion value.\nSending B with N together adds 102 extra conversion value.\nSending B with S together adds 100 extra conversion value.\nSending B with T together adds 104 extra conversion value.\nSending B with U together adds 102 extra conversion value.\nSending B with V together adds 100 extra conversion value.\nSending B with X together adds 101 extra conversion value.\nSending C with D together adds 101 extra conversion value.\nSending C with E together adds 103 extra conversion value.\nSending C with G together adds 103 extra conversion value.\nSending C with H together adds 100 extra conversion value.\nSending C with J together adds 100 extra conversion value.\nSending C with N together adds 101 extra conversion value.\nSending C with O together adds 103 extra conversion value.\nSending C with P together adds 102 extra conversion value.\nSending C with S together adds 102 extra conversion value.\nSending C with V together adds 101 extra conversion value.\nSending C with W together adds 102 extra conversion value.\nSending D with G together adds 100 extra conversion value.\nSending D with H together adds 100 extra conversion value.\nSending D with L together adds 100 extra conversion value.\nSending D with P together adds 100 extra conversion value.\nSending D with S together adds 100 extra conversion value.\nSending D with V together adds 100 extra conversion value.\nSending D with W together adds 100 extra conversion value.\nSending E with F together adds 100 extra conversion value.\nSending E with G together adds 101 extra conversion value.\nSending E with I together adds 102 extra conversion value.\nSending E with J together adds 104 extra conversion value.\nSending E with K together adds 103 extra conversion value.\nSending E with M together adds 104 extra conversion value.\nSending E with O together adds 100 extra conversion value.\nSending E with P together adds 100 extra conversion value.\nSending E with Q together adds 104 extra conversion value.\nSending E with R together adds 101 extra conversion value.\nSending F with G together adds 100 extra conversion value.\nSending F with I together adds 100 extra conversion value.\nSending F with J together adds 100 extra conversion value.\nSending F with K together adds 100 extra conversion value.\nSending F with M together adds 100 extra conversion value.\nSending F with O together adds 100 extra conversion value.\nSending F with R together adds 100 extra conversion value.\nSending F with T together adds 100 extra conversion value.\nSending F with W together adds 100 extra conversion value.\nSending F with X together adds 100 extra conversion value.\nSending G with H together adds 103 extra conversion value.\nSending G with I together adds 105 extra conversion value.\nSending G with J together adds 103 extra conversion value.\nSending G with L together adds 100 extra conversion value.\nSending G with M together adds 100 extra conversion value.\nSending G with O together adds 104 extra conversion value.\nSending G with Q together adds 103 extra conversion value.\nSending G with V together adds 105 extra conversion value.\nSending G with X together adds 100 extra conversion value.\nSending H with J together adds 100 extra conversion value.\nSending H with K together adds 102 extra conversion value.\nSending H with N together adds 102 extra conversion value.\nSending H with O together adds 102 extra conversion value.\nSending H with P together adds 102 extra conversion value.\nSending H with T together adds 102 extra conversion value.\nSending H with X together adds 103 extra conversion value.\nSending I with K together adds 101 extra conversion value.\nSending I with Q together adds 101 extra conversion value.\nSending I with R together adds 101 extra conversion value.\nSending I with S together adds 101 extra conversion value.\nSending I with V together adds 100 extra conversion value.\nSending I with W together adds 104 extra conversion value.\nSending J with N together adds 102 extra conversion value.\nSending J with O together adds 100 extra conversion value.\nSending J with P together adds 101 extra conversion value.\nSending J with Q together adds 101 extra conversion value.\nSending J with S together adds 102 extra conversion value.\nSending J with T together adds 103 extra conversion value.\nSending J with U together adds 101 extra conversion value.\nSending J with V together adds 103 extra conversion value.\nSending J with W together adds 100 extra conversion value.\nSending K with M together adds 103 extra conversion value.\nSending K with N together adds 102 extra conversion value.\nSending K with O together adds 103 extra conversion value.\nSending K with S together adds 104 extra conversion value.\nSending K with T together adds 102 extra conversion value.\nSending K with W together adds 101 extra conversion value.\nSending K with X together adds 102 extra conversion value.\nSending L with N together adds 101 extra conversion value.\nSending L with P together adds 102 extra conversion value.\nSending L with R together adds 102 extra conversion value.\nSending L with T together adds 103 extra conversion value.\nSending L with V together adds 105 extra conversion value.\nSending L with X together adds 101 extra conversion value.\nSending M with N together adds 100 extra conversion value.\nSending M with P together adds 100 extra conversion value.\nSending M with T together adds 100 extra conversion value.\nSending N with O together adds 100 extra conversion value.\nSending N with P together adds 102 extra conversion value.\nSending N with Q together adds 100 extra conversion value.\nSending N with T together adds 100 extra conversion value.\nSending N with V together adds 100 extra conversion value.\nSending O with Q together adds 103 extra conversion value.\nSending O with R together adds 104 extra conversion value.\nSending O with X together adds 103 extra conversion value.\nSending P with T together adds 104 extra conversion value.\nSending P with W together adds 104 extra conversion value.\nSending Q with T together adds 104 extra conversion value.\nSending Q with U together adds 102 extra conversion value.\nSending R with S together adds 102 extra conversion value.\nSending R with V together adds 103 extra conversion value.\nSending R with X together adds 100 extra conversion value.\nSending S with U together adds 101 extra conversion value.\nSending T with U together adds 104 extra conversion value.\nSending T with V together adds 104 extra conversion value.\nSending T with X together adds 101 extra conversion value.\nSending U with V together adds 104 extra conversion value.\nSending U with W together adds 101 extra conversion value.\nSending U with X together adds 104 extra conversion value.\nWe’ll pick the kit that maximizes total conversion while staying within the 1843 limit.\n\nAlso, when you’re ready to give your final pick, a tiny JSON snippet like this works great — simple and machine-friendly, but still easy to read:\n\n{\n \"solution\": [, , ...]\n}\n\nThe \"solution\" array is where you list the samples you want to put in the mailer — one entry per selected item. Think of it like filling in a shopping list: just put the exact item IDs you’re choosing inside the brackets. This JSON is just the shape I’m expecting, not your final answer.\n\nPlease use the item identifiers exactly as they appear in the instance input — don’t rename them or invent new labels. \n- 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\".", "instance": { "linear_coeffs": [ 102, 105, 104, 105, 101, 103, 103, 105, 104, 102, 102, 103, 102, 100, 100, 103, 100, 104, 102, 101, 104, 104, 105, 102 ], "quadratic_coeffs": [ [ 0, 0, 0, 0, 100, 0, 100, 0, 0, 0, 100, 100, 100, 0, 100, 0, 0, 100, 0, 100, 100, 0, 100, 0 ], [ 0, 0, 0, 104, 0, 104, 104, 105, 102, 105, 0, 0, 101, 102, 0, 0, 0, 0, 100, 104, 102, 100, 0, 101 ], [ 0, 0, 0, 101, 103, 0, 103, 100, 0, 100, 0, 0, 0, 101, 103, 102, 0, 0, 102, 0, 0, 101, 102, 0 ], [ 0, 0, 0, 0, 0, 0, 100, 100, 0, 0, 0, 100, 0, 0, 0, 100, 0, 0, 100, 0, 0, 100, 100, 0 ], [ 0, 0, 0, 0, 101, 100, 101, 0, 102, 104, 103, 0, 104, 0, 100, 100, 104, 101, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 100, 100, 0, 100, 100, 100, 0, 100, 0, 100, 0, 0, 100, 0, 100, 0, 0, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 104, 103, 105, 103, 0, 100, 100, 0, 104, 0, 103, 0, 0, 0, 0, 105, 0, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 102, 0, 0, 102, 102, 102, 0, 0, 0, 102, 0, 0, 0, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 101, 101, 101, 0, 0, 100, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 100, 101, 101, 0, 102, 103, 101, 103, 100, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 103, 102, 103, 0, 0, 0, 104, 102, 0, 0, 101, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 101, 0, 102, 0, 102, 0, 103, 0, 105, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 100, 0, 0, 0, 100, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 100, 102, 100, 0, 0, 100, 0, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 103, 104, 0, 0, 0, 0, 0, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 0, 0, 104, 0, 0, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 102, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 102, 0, 0, 103, 0, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 101, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 104, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 101, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 100, 105, 103, 100, 102, 100, 101, 105, 103, 101, 101, 102, 101, 102, 100, 100, 104, 100, 102, 105, 101, 100, 102, 105 ], "capacity": 1843, "solution": [ 0, 1, 2, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 23 ], "obj": 10482.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 17, 19, 21, 23 ], "obj": 10482.0, "instance_variant": { "problem_type": "QKP", "num_items": 24, "capacity": 1843, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 102 }, { "item_id": "B", "linear_profit": 105 }, { "item_id": "C", "linear_profit": 104 }, { "item_id": "D", "linear_profit": 105 }, { "item_id": "E", "linear_profit": 101 }, { "item_id": "F", "linear_profit": 103 }, { "item_id": "G", "linear_profit": 103 }, { "item_id": "H", "linear_profit": 105 }, { "item_id": "I", "linear_profit": 104 }, { "item_id": "J", "linear_profit": 102 }, { "item_id": "K", "linear_profit": 102 }, { "item_id": "L", "linear_profit": 103 }, { "item_id": "M", "linear_profit": 102 }, { "item_id": "N", "linear_profit": 100 }, { "item_id": "O", "linear_profit": 100 }, { "item_id": "P", "linear_profit": 103 }, { "item_id": "Q", "linear_profit": 100 }, { "item_id": "R", "linear_profit": 104 }, { "item_id": "S", "linear_profit": 102 }, { "item_id": "T", "linear_profit": 101 }, { "item_id": "U", "linear_profit": 104 }, { "item_id": "V", "linear_profit": 104 }, { "item_id": "W", "linear_profit": 105 }, { "item_id": "X", "linear_profit": 102 } ], "weight_pairs": [ { "item_id": "A", "weight": 100 }, { "item_id": "B", "weight": 105 }, { "item_id": "C", "weight": 103 }, { "item_id": "D", "weight": 100 }, { "item_id": "E", "weight": 102 }, { "item_id": "F", "weight": 100 }, { "item_id": "G", "weight": 101 }, { "item_id": "H", "weight": 105 }, { "item_id": "I", "weight": 103 }, { "item_id": "J", "weight": 101 }, { "item_id": "K", "weight": 101 }, { "item_id": "L", "weight": 102 }, { "item_id": "M", "weight": 101 }, { "item_id": "N", "weight": 102 }, { "item_id": "O", "weight": 100 }, { "item_id": "P", "weight": 100 }, { "item_id": "Q", "weight": 104 }, { "item_id": "R", "weight": 100 }, { "item_id": "S", "weight": 102 }, { "item_id": "T", "weight": 105 }, { "item_id": "U", "weight": 101 }, { "item_id": "V", "weight": 100 }, { "item_id": "W", "weight": 102 }, { "item_id": "X", "weight": 105 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "U", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 105 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 105 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "V", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "W", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 104 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 104 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "E", "item_j_id": "Q", "quadratic_profit": 104 }, { "item_i_id": "E", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "R", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "V", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "X", "quadratic_profit": 103 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "S", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "W", "quadratic_profit": 104 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "J", "item_j_id": "P", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "Q", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "J", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "V", "quadratic_profit": 103 }, { "item_i_id": "J", "item_j_id": "W", "quadratic_profit": 100 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "K", "item_j_id": "S", "quadratic_profit": 104 }, { "item_i_id": "K", "item_j_id": "T", "quadratic_profit": 102 }, { "item_i_id": "K", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "K", "item_j_id": "X", "quadratic_profit": 102 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "L", "item_j_id": "R", "quadratic_profit": 102 }, { "item_i_id": "L", "item_j_id": "T", "quadratic_profit": 103 }, { "item_i_id": "L", "item_j_id": "V", "quadratic_profit": 105 }, { "item_i_id": "L", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "P", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "P", "quadratic_profit": 102 }, { "item_i_id": "N", "item_j_id": "Q", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "T", "quadratic_profit": 100 }, { "item_i_id": "N", "item_j_id": "V", "quadratic_profit": 100 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 102 }, { "item_i_id": "O", "item_j_id": "Q", "quadratic_profit": 103 }, { "item_i_id": "O", "item_j_id": "R", "quadratic_profit": 104 }, { "item_i_id": "O", "item_j_id": "X", "quadratic_profit": 103 }, { "item_i_id": "P", "item_j_id": "P", "quadratic_profit": 104 }, { "item_i_id": "P", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "P", "item_j_id": "W", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "T", "quadratic_profit": 104 }, { "item_i_id": "Q", "item_j_id": "U", "quadratic_profit": 102 }, { "item_i_id": "R", "item_j_id": "R", "quadratic_profit": 101 }, { "item_i_id": "R", "item_j_id": "S", "quadratic_profit": 102 }, { "item_i_id": "R", "item_j_id": "V", "quadratic_profit": 103 }, { "item_i_id": "R", "item_j_id": "X", "quadratic_profit": 100 }, { "item_i_id": "S", "item_j_id": "S", "quadratic_profit": 100 }, { "item_i_id": "S", "item_j_id": "U", "quadratic_profit": 101 }, { "item_i_id": "T", "item_j_id": "U", "quadratic_profit": 104 }, { "item_i_id": "T", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "T", "item_j_id": "X", "quadratic_profit": 101 }, { "item_i_id": "U", "item_j_id": "V", "quadratic_profit": 104 }, { "item_i_id": "U", "item_j_id": "W", "quadratic_profit": 101 }, { "item_i_id": "U", "item_j_id": "X", "quadratic_profit": 104 } ] }, "solution_variant": [ "A", "B", "C", "E", "F", "G", "H", "J", "K", "L", "M", "N", "O", "P", "R", "T", "V", "X" ], "context_index": 50, "input_format": "nl", "input_index_base": "names" } ]