[ { "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 15 available items (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15) and the backpack weight limit 262.\n\n| gear_id | base_usefulness |\n|---|---|\n| 1 | 103 |\n| 2 | 100 |\n| 3 | 103 |\n| 4 | 104 |\n| 5 | 101 |\n| 6 | 101 |\n| 7 | 105 |\n| 8 | 103 |\n| 9 | 105 |\n| 10 | 101 |\n| 11 | 102 |\n| 12 | 100 |\n| 13 | 105 |\n| 14 | 104 |\n| 15 | 103 |\n\n| gear_id | item_weight |\n|---|---|\n| 1 | 105 |\n| 2 | 102 |\n| 3 | 101 |\n| 4 | 100 |\n| 5 | 105 |\n| 6 | 102 |\n| 7 | 101 |\n| 8 | 100 |\n| 9 | 103 |\n| 10 | 103 |\n| 11 | 105 |\n| 12 | 100 |\n| 13 | 101 |\n| 14 | 105 |\n| 15 | 105 |\n\n| gear_i_id | gear_j_id | pair_bonus |\n|---|---|---|\n| 1 | 3 | 104 |\n| 1 | 14 | 101 |\n| 2 | 8 | 102 |\n| 2 | 9 | 102 |\n| 2 | 12 | 103 |\n| 2 | 15 | 102 |\n| 3 | 4 | 101 |\n| 3 | 6 | 101 |\n| 3 | 8 | 101 |\n| 3 | 15 | 101 |\n| 5 | 14 | 100 |\n| 5 | 15 | 102 |\n| 6 | 8 | 103 |\n| 6 | 11 | 104 |\n| 6 | 12 | 104 |\n| 6 | 14 | 102 |\n| 6 | 15 | 101 |\n| 9 | 11 | 100 |\n| 9 | 13 | 100 |\n| 10 | 12 | 100 |\n| 10 | 13 | 100 |\n| 10 | 15 | 101 |\n| 11 | 12 | 100 |\n| 12 | 14 | 101 |\n| 13 | 15 | 101 |\n| 14 | 15 | 100 |\n\nChoose a subset that stays within the 262 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": [ 103, 100, 103, 104, 101, 101, 105, 103, 105, 101, 102, 100, 105, 104, 103 ], "quadratic_coeffs": [ [ 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0 ], [ 0, 102, 0, 0, 0, 0, 0, 102, 102, 0, 0, 103, 0, 0, 102 ], [ 0, 0, 101, 101, 0, 101, 0, 101, 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, 100, 0, 0, 0, 0, 0, 0, 0, 0, 100, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 103, 0, 0, 104, 104, 0, 102, 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, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 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, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 105, 102, 101, 100, 105, 102, 101, 100, 103, 103, 105, 100, 101, 105, 105 ], "capacity": 262, "solution": [ 0, 2 ], "obj": 310.0, "problem_type": "QKP" }, "solution": [ 0, 2 ], "obj": 310.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 262, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 103 }, { "item_id": 2, "linear_profit": 100 }, { "item_id": 3, "linear_profit": 103 }, { "item_id": 4, "linear_profit": 104 }, { "item_id": 5, "linear_profit": 101 }, { "item_id": 6, "linear_profit": 101 }, { "item_id": 7, "linear_profit": 105 }, { "item_id": 8, "linear_profit": 103 }, { "item_id": 9, "linear_profit": 105 }, { "item_id": 10, "linear_profit": 101 }, { "item_id": 11, "linear_profit": 102 }, { "item_id": 12, "linear_profit": 100 }, { "item_id": 13, "linear_profit": 105 }, { "item_id": 14, "linear_profit": 104 }, { "item_id": 15, "linear_profit": 103 } ], "weight_pairs": [ { "item_id": 1, "weight": 105 }, { "item_id": 2, "weight": 102 }, { "item_id": 3, "weight": 101 }, { "item_id": 4, "weight": 100 }, { "item_id": 5, "weight": 105 }, { "item_id": 6, "weight": 102 }, { "item_id": 7, "weight": 101 }, { "item_id": 8, "weight": 100 }, { "item_id": 9, "weight": 103 }, { "item_id": 10, "weight": 103 }, { "item_id": 11, "weight": 105 }, { "item_id": 12, "weight": 100 }, { "item_id": 13, "weight": 101 }, { "item_id": 14, "weight": 105 }, { "item_id": 15, "weight": 105 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 103 }, { "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": 6, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 101 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 100 } ] }, "solution_variant": [ 1, 3 ], "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 13 candidate dishes 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 against an oven capacity of 776.\n\n| dish_id | dish_appeal |\n|---|---|\n| 0 | 104 |\n| 1 | 113 |\n| 2 | 121 |\n| 3 | 107 |\n| 4 | 123 |\n| 5 | 122 |\n| 6 | 101 |\n| 7 | 114 |\n| 8 | 101 |\n| 9 | 115 |\n| 10 | 116 |\n| 11 | 108 |\n| 12 | 107 |\n\n| dish_id | oven_load |\n|---|---|\n| 0 | 112 |\n| 1 | 105 |\n| 2 | 102 |\n| 3 | 114 |\n| 4 | 124 |\n| 5 | 114 |\n| 6 | 105 |\n| 7 | 103 |\n| 8 | 121 |\n| 9 | 104 |\n| 10 | 123 |\n| 11 | 108 |\n| 12 | 107 |\n\n| dish_i_id | dish_j_id | pair_bonus_appeal |\n|---|---|---|\n| 0 | 1 | 113 |\n| 0 | 2 | 117 |\n| 0 | 3 | 124 |\n| 0 | 4 | 113 |\n| 0 | 5 | 106 |\n| 0 | 6 | 107 |\n| 0 | 7 | 100 |\n| 0 | 8 | 118 |\n| 0 | 9 | 116 |\n| 0 | 10 | 116 |\n| 0 | 11 | 102 |\n| 0 | 12 | 102 |\n| 1 | 2 | 111 |\n| 1 | 3 | 117 |\n| 1 | 4 | 109 |\n| 1 | 5 | 101 |\n| 1 | 6 | 116 |\n| 1 | 7 | 108 |\n| 1 | 8 | 119 |\n| 1 | 9 | 100 |\n| 1 | 10 | 103 |\n| 1 | 11 | 119 |\n| 1 | 12 | 108 |\n| 2 | 3 | 119 |\n| 2 | 4 | 116 |\n| 2 | 5 | 104 |\n| 2 | 6 | 118 |\n| 2 | 7 | 115 |\n| 2 | 8 | 114 |\n| 2 | 9 | 106 |\n| 2 | 10 | 100 |\n| 2 | 11 | 108 |\n| 2 | 12 | 115 |\n| 3 | 4 | 108 |\n| 3 | 5 | 121 |\n| 3 | 6 | 108 |\n| 3 | 7 | 101 |\n| 3 | 8 | 124 |\n| 3 | 9 | 115 |\n| 3 | 10 | 105 |\n| 3 | 11 | 111 |\n| 3 | 12 | 110 |\n| 4 | 5 | 115 |\n| 4 | 6 | 114 |\n| 4 | 7 | 105 |\n| 4 | 8 | 109 |\n| 4 | 9 | 103 |\n| 4 | 10 | 100 |\n| 4 | 11 | 109 |\n| 4 | 12 | 123 |\n| 5 | 6 | 111 |\n| 5 | 7 | 101 |\n| 5 | 8 | 101 |\n| 5 | 9 | 103 |\n| 5 | 10 | 118 |\n| 5 | 11 | 112 |\n| 5 | 12 | 121 |\n| 6 | 7 | 121 |\n| 6 | 8 | 116 |\n| 6 | 9 | 106 |\n| 6 | 10 | 112 |\n| 6 | 11 | 101 |\n| 6 | 12 | 112 |\n| 7 | 8 | 114 |\n| 7 | 9 | 107 |\n| 7 | 10 | 111 |\n| 7 | 11 | 119 |\n| 7 | 12 | 111 |\n| 8 | 9 | 108 |\n| 8 | 10 | 101 |\n| 8 | 11 | 124 |\n| 8 | 12 | 105 |\n| 9 | 10 | 105 |\n| 9 | 11 | 102 |\n| 9 | 12 | 124 |\n| 10 | 11 | 111 |\n| 10 | 12 | 123 |\n| 11 | 12 | 108 |\n\nThe aim is to select a subset within the 776 oven limit that maximizes total guest satisfaction across the 13 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": [ 104, 113, 121, 107, 123, 122, 101, 114, 101, 115, 116, 108, 107 ], "quadratic_coeffs": [ [ 120, 113, 117, 124, 113, 106, 107, 100, 118, 116, 116, 102, 102 ], [ 0, 120, 111, 117, 109, 101, 116, 108, 119, 100, 103, 119, 108 ], [ 0, 0, 120, 119, 116, 104, 118, 115, 114, 106, 100, 108, 115 ], [ 0, 0, 0, 114, 108, 121, 108, 101, 124, 115, 105, 111, 110 ], [ 0, 0, 0, 0, 103, 115, 114, 105, 109, 103, 100, 109, 123 ], [ 0, 0, 0, 0, 0, 120, 111, 101, 101, 103, 118, 112, 121 ], [ 0, 0, 0, 0, 0, 0, 117, 121, 116, 106, 112, 101, 112 ], [ 0, 0, 0, 0, 0, 0, 0, 116, 114, 107, 111, 119, 111 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 101, 108, 101, 124, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 105, 102, 124 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 111, 123 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 108 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113 ] ], "weights": [ 112, 105, 102, 114, 124, 114, 105, 103, 121, 104, 123, 108, 107 ], "capacity": 776, "solution": [ 1, 2, 3, 4, 5, 6, 12 ], "obj": 3171.0, "problem_type": "QKP" }, "solution": [ 1, 2, 3, 4, 5, 6, 12 ], "obj": 3171.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 776, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 104 }, { "item_id": 1, "linear_profit": 113 }, { "item_id": 2, "linear_profit": 121 }, { "item_id": 3, "linear_profit": 107 }, { "item_id": 4, "linear_profit": 123 }, { "item_id": 5, "linear_profit": 122 }, { "item_id": 6, "linear_profit": 101 }, { "item_id": 7, "linear_profit": 114 }, { "item_id": 8, "linear_profit": 101 }, { "item_id": 9, "linear_profit": 115 }, { "item_id": 10, "linear_profit": 116 }, { "item_id": 11, "linear_profit": 108 }, { "item_id": 12, "linear_profit": 107 } ], "weight_pairs": [ { "item_id": 0, "weight": 112 }, { "item_id": 1, "weight": 105 }, { "item_id": 2, "weight": 102 }, { "item_id": 3, "weight": 114 }, { "item_id": 4, "weight": 124 }, { "item_id": 5, "weight": 114 }, { "item_id": 6, "weight": 105 }, { "item_id": 7, "weight": 103 }, { "item_id": 8, "weight": 121 }, { "item_id": 9, "weight": 104 }, { "item_id": 10, "weight": 123 }, { "item_id": 11, "weight": 108 }, { "item_id": 12, "weight": 107 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 120 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 113 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 117 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 124 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 113 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 106 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 107 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 118 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 116 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 116 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 120 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 111 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 117 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 109 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 116 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 119 }, { "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": 119 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 108 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 120 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 119 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 116 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 118 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 115 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 114 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 106 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 108 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 115 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 114 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 108 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 121 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 108 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 124 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 115 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 110 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 115 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 114 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 109 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 109 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 123 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 120 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 118 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 112 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 121 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 117 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 121 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 116 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 106 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 112 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 112 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 116 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 114 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 107 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 119 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 111 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 108 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 124 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 124 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 115 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 111 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 123 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 123 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 108 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 113 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 12 ], "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\nBelow are the 13 distinct boxes (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13) and the trunk weight capacity 1437.\nBox 1 provides base value 124.\nBox 2 provides base value 291.\nBox 3 provides base value 282.\nBox 4 provides base value 259.\nBox 5 provides base value 228.\nBox 6 provides base value 88.\nBox 7 provides base value 155.\nBox 8 provides base value 179.\nBox 9 provides base value 235.\nBox 10 provides base value 121.\nBox 11 provides base value 185.\nBox 12 provides base value 193.\nBox 13 provides base value 94.\nBox 1 has weight 130.\nBox 2 has weight 284.\nBox 3 has weight 269.\nBox 4 has weight 251.\nBox 5 has weight 242.\nBox 6 has weight 103.\nBox 7 has weight 166.\nBox 8 has weight 171.\nBox 9 has weight 228.\nBox 10 has weight 106.\nBox 11 has weight 196.\nBox 12 has weight 191.\nBox 13 has weight 101.\nBoxes 1 and 2 together add pair bonus 130.\nBoxes 1 and 3 together add pair bonus 130.\nBoxes 1 and 4 together add pair bonus 130.\nBoxes 1 and 8 together add pair bonus 122.\nBoxes 1 and 9 together add pair bonus 130.\nBoxes 1 and 10 together add pair bonus 130.\nBoxes 2 and 10 together add pair bonus 274.\nBoxes 2 and 13 together add pair bonus 126.\nBoxes 3 and 7 together add pair bonus 213.\nBoxes 3 and 9 together add pair bonus 269.\nBoxes 3 and 10 together add pair bonus 122.\nBoxes 3 and 12 together add pair bonus 183.\nBoxes 4 and 6 together add pair bonus 251.\nBoxes 5 and 7 together add pair bonus 104.\nBoxes 6 and 7 together add pair bonus 123.\nBoxes 6 and 10 together add pair bonus 184.\nBoxes 7 and 9 together add pair bonus 110.\nBoxes 9 and 11 together add pair bonus 100.\nBoxes 9 and 12 together add pair bonus 100.\nPick the combination that yields the highest total worth without exceeding the trunk weight capacity 1437.\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": [ 124, 291, 282, 259, 228, 88, 155, 179, 235, 121, 185, 193, 94 ], "quadratic_coeffs": [ [ 0, 130, 130, 130, 0, 0, 0, 122, 130, 130, 0, 0, 0 ], [ 0, 181, 0, 0, 0, 0, 0, 0, 0, 274, 0, 0, 126 ], [ 0, 0, 180, 0, 0, 0, 213, 0, 269, 122, 0, 183, 0 ], [ 0, 0, 0, 0, 0, 251, 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, 123, 0, 0, 184, 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, 100, 100, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 128, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 130, 284, 269, 251, 242, 103, 166, 171, 228, 106, 196, 191, 101 ], "capacity": 1437, "solution": [ 0, 2, 3, 5, 6, 7, 8, 9 ], "obj": 3357.0, "problem_type": "QKP" }, "solution": [ 0, 2, 3, 5, 6, 7, 8, 9 ], "obj": 3357.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 1437, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 124 }, { "item_id": 2, "linear_profit": 291 }, { "item_id": 3, "linear_profit": 282 }, { "item_id": 4, "linear_profit": 259 }, { "item_id": 5, "linear_profit": 228 }, { "item_id": 6, "linear_profit": 88 }, { "item_id": 7, "linear_profit": 155 }, { "item_id": 8, "linear_profit": 179 }, { "item_id": 9, "linear_profit": 235 }, { "item_id": 10, "linear_profit": 121 }, { "item_id": 11, "linear_profit": 185 }, { "item_id": 12, "linear_profit": 193 }, { "item_id": 13, "linear_profit": 94 } ], "weight_pairs": [ { "item_id": 1, "weight": 130 }, { "item_id": 2, "weight": 284 }, { "item_id": 3, "weight": 269 }, { "item_id": 4, "weight": 251 }, { "item_id": 5, "weight": 242 }, { "item_id": 6, "weight": 103 }, { "item_id": 7, "weight": 166 }, { "item_id": 8, "weight": 171 }, { "item_id": 9, "weight": 228 }, { "item_id": 10, "weight": 106 }, { "item_id": 11, "weight": 196 }, { "item_id": 12, "weight": 191 }, { "item_id": 13, "weight": 101 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 130 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 130 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 130 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 122 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 130 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 130 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 181 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 274 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 126 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 180 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 213 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 269 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 122 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 183 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 251 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 123 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 184 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 110 }, { "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": 10, "item_j_id": 10, "quadratic_profit": 128 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 184 } ] }, "solution_variant": [ 1, 3, 4, 6, 7, 8, 9, 10 ], "context_index": 3, "input_format": "nl", "input_index_base": 1 }, { "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\nThere are 11 tracks available (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) and the set must fit within 1029 minutes.\n\n| track_id | track_enjoyment |\n|---|---|\n| 1 | 132 |\n| 2 | 118 |\n| 3 | 113 |\n| 4 | 122 |\n| 5 | 120 |\n| 6 | 134 |\n| 7 | 114 |\n| 8 | 118 |\n| 9 | 113 |\n| 10 | 117 |\n| 11 | 126 |\n\n| track_id | track_runtime |\n|---|---|\n| 1 | 120 |\n| 2 | 106 |\n| 3 | 101 |\n| 4 | 110 |\n| 5 | 108 |\n| 6 | 122 |\n| 7 | 102 |\n| 8 | 106 |\n| 9 | 101 |\n| 10 | 105 |\n| 11 | 114 |\n\n| track_i_id | track_j_id | transition_bonus |\n|---|---|---|\n| 1 | 2 | 108 |\n| 1 | 3 | 109 |\n| 1 | 4 | 106 |\n| 1 | 5 | 111 |\n| 1 | 6 | 102 |\n| 1 | 8 | 120 |\n| 1 | 9 | 118 |\n| 1 | 10 | 106 |\n| 2 | 3 | 105 |\n| 2 | 5 | 106 |\n| 2 | 7 | 106 |\n| 2 | 8 | 102 |\n| 2 | 9 | 106 |\n| 2 | 11 | 106 |\n| 3 | 4 | 101 |\n| 3 | 7 | 101 |\n| 3 | 9 | 100 |\n| 3 | 10 | 101 |\n| 3 | 11 | 101 |\n| 4 | 5 | 110 |\n| 4 | 6 | 110 |\n| 4 | 7 | 110 |\n| 4 | 8 | 109 |\n| 4 | 9 | 108 |\n| 4 | 10 | 105 |\n| 4 | 11 | 106 |\n| 5 | 6 | 101 |\n| 5 | 7 | 108 |\n| 5 | 9 | 108 |\n| 5 | 10 | 107 |\n| 5 | 11 | 108 |\n| 6 | 7 | 114 |\n| 6 | 8 | 117 |\n| 6 | 10 | 104 |\n| 7 | 8 | 102 |\n| 7 | 10 | 103 |\n| 7 | 11 | 103 |\n| 8 | 9 | 101 |\n| 8 | 11 | 101 |\n| 9 | 10 | 112 |\n| 9 | 11 | 105 |\n| 10 | 11 | 103 |\n\nChoose the combination that maximizes total enjoyment without exceeding 1029 minutes.\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": [ 132, 118, 113, 122, 120, 134, 114, 118, 113, 117, 126 ], "quadratic_coeffs": [ [ 108, 108, 109, 106, 111, 102, 0, 120, 118, 106, 0 ], [ 0, 0, 105, 0, 106, 0, 106, 102, 106, 0, 106 ], [ 0, 0, 101, 101, 0, 0, 101, 0, 100, 101, 101 ], [ 0, 0, 0, 102, 110, 110, 110, 109, 108, 105, 106 ], [ 0, 0, 0, 0, 108, 101, 108, 0, 108, 107, 108 ], [ 0, 0, 0, 0, 0, 122, 114, 117, 0, 104, 0 ], [ 0, 0, 0, 0, 0, 0, 101, 102, 0, 103, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 106, 112, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 120, 106, 101, 110, 108, 122, 102, 106, 101, 105, 114 ], "capacity": 1029, "solution": [ 0, 1, 2, 3, 4, 6, 8, 9, 10 ], "obj": 4262.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 6, 8, 9, 10 ], "obj": 4262.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 1029, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 132 }, { "item_id": 2, "linear_profit": 118 }, { "item_id": 3, "linear_profit": 113 }, { "item_id": 4, "linear_profit": 122 }, { "item_id": 5, "linear_profit": 120 }, { "item_id": 6, "linear_profit": 134 }, { "item_id": 7, "linear_profit": 114 }, { "item_id": 8, "linear_profit": 118 }, { "item_id": 9, "linear_profit": 113 }, { "item_id": 10, "linear_profit": 117 }, { "item_id": 11, "linear_profit": 126 } ], "weight_pairs": [ { "item_id": 1, "weight": 120 }, { "item_id": 2, "weight": 106 }, { "item_id": 3, "weight": 101 }, { "item_id": 4, "weight": 110 }, { "item_id": 5, "weight": 108 }, { "item_id": 6, "weight": 122 }, { "item_id": 7, "weight": 102 }, { "item_id": 8, "weight": 106 }, { "item_id": 9, "weight": 101 }, { "item_id": 10, "weight": 105 }, { "item_id": 11, "weight": 114 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 109 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 106 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 111 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 120 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 118 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 106 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 106 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 106 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 106 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 106 }, { "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": 7, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 110 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 110 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 110 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 109 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 108 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 106 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 108 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 108 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 108 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 107 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 108 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 122 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 114 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 117 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 102 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 106 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 112 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 103 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 7, 9, 10, 11 ], "context_index": 4, "input_format": "markdown_table", "input_index_base": 1 }, { "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 11 distinct lenses and accessories listed as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and the bag's weight capacity is 1015.\nItem 0 provides a base usefulness score of 131.\nItem 1 provides a base usefulness score of 123.\nItem 2 provides a base usefulness score of 132.\nItem 3 provides a base usefulness score of 114.\nItem 4 provides a base usefulness score of 124.\nItem 5 provides a base usefulness score of 123.\nItem 6 provides a base usefulness score of 141.\nItem 7 provides a base usefulness score of 101.\nItem 8 provides a base usefulness score of 110.\nItem 9 provides a base usefulness score of 106.\nItem 10 provides a base usefulness score of 103.\nItem 0 has a weight of 125.\nItem 1 has a weight of 117.\nItem 2 has a weight of 138.\nItem 3 has a weight of 121.\nItem 4 has a weight of 118.\nItem 5 has a weight of 116.\nItem 6 has a weight of 137.\nItem 7 has a weight of 103.\nItem 8 has a weight of 102.\nItem 9 has a weight of 100.\nItem 10 has a weight of 106.\nIf both 0 and 2 are packed, they add an extra usefulness of 107.\nIf both 0 and 3 are packed, they add an extra usefulness of 140.\nIf both 0 and 5 are packed, they add an extra usefulness of 112.\nIf both 0 and 8 are packed, they add an extra usefulness of 106.\nIf both 1 and 3 are packed, they add an extra usefulness of 143.\nIf both 1 and 6 are packed, they add an extra usefulness of 107.\nIf both 2 and 3 are packed, they add an extra usefulness of 113.\nIf both 2 and 5 are packed, they add an extra usefulness of 147.\nIf both 2 and 7 are packed, they add an extra usefulness of 112.\nIf both 2 and 8 are packed, they add an extra usefulness of 125.\nIf both 2 and 10 are packed, they add an extra usefulness of 119.\nIf both 3 and 4 are packed, they add an extra usefulness of 123.\nIf both 3 and 9 are packed, they add an extra usefulness of 126.\nIf both 3 and 10 are packed, they add an extra usefulness of 110.\nIf both 4 and 7 are packed, they add an extra usefulness of 107.\nIf both 4 and 9 are packed, they add an extra usefulness of 105.\nIf both 4 and 10 are packed, they add an extra usefulness of 124.\nIf both 5 and 7 are packed, they add an extra usefulness of 125.\nIf both 5 and 9 are packed, they add an extra usefulness of 138.\nIf both 6 and 9 are packed, they add an extra usefulness of 138.\nIf both 6 and 10 are packed, they add an extra usefulness of 125.\nIf both 7 and 10 are packed, they add an extra usefulness of 125.\nIf both 8 and 9 are packed, they add an extra usefulness of 141.\nIf both 8 and 10 are packed, they add an extra usefulness of 121.\nSelections must stay within the 1015 limit to maximize overall usefulness across the 11 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": [ 131, 123, 132, 114, 124, 123, 141, 101, 110, 106, 103 ], "quadratic_coeffs": [ [ 103, 0, 107, 140, 0, 112, 0, 0, 106, 0, 0 ], [ 0, 109, 0, 143, 0, 0, 107, 0, 0, 0, 0 ], [ 0, 0, 0, 113, 0, 147, 0, 112, 125, 0, 119 ], [ 0, 0, 0, 146, 123, 0, 0, 0, 0, 126, 110 ], [ 0, 0, 0, 0, 124, 0, 0, 107, 0, 105, 124 ], [ 0, 0, 0, 0, 0, 148, 0, 125, 0, 138, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 138, 125 ], [ 0, 0, 0, 0, 0, 0, 0, 144, 0, 0, 125 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 116, 141, 121 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 149, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 125, 117, 138, 121, 118, 116, 137, 103, 102, 100, 106 ], "capacity": 1015, "solution": [ 0, 2, 3, 4, 5, 8, 9, 10 ], "obj": 2900.0, "problem_type": "QKP" }, "solution": [ 0, 2, 3, 4, 5, 8, 9, 10 ], "obj": 2900.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 1015, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 131 }, { "item_id": 1, "linear_profit": 123 }, { "item_id": 2, "linear_profit": 132 }, { "item_id": 3, "linear_profit": 114 }, { "item_id": 4, "linear_profit": 124 }, { "item_id": 5, "linear_profit": 123 }, { "item_id": 6, "linear_profit": 141 }, { "item_id": 7, "linear_profit": 101 }, { "item_id": 8, "linear_profit": 110 }, { "item_id": 9, "linear_profit": 106 }, { "item_id": 10, "linear_profit": 103 } ], "weight_pairs": [ { "item_id": 0, "weight": 125 }, { "item_id": 1, "weight": 117 }, { "item_id": 2, "weight": 138 }, { "item_id": 3, "weight": 121 }, { "item_id": 4, "weight": 118 }, { "item_id": 5, "weight": 116 }, { "item_id": 6, "weight": 137 }, { "item_id": 7, "weight": 103 }, { "item_id": 8, "weight": 102 }, { "item_id": 9, "weight": 100 }, { "item_id": 10, "weight": 106 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 103 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 107 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 140 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 112 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 106 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 109 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 143 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 107 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 113 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 147 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 112 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 125 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 119 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 146 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 123 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 126 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 110 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 124 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 107 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 105 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 124 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 148 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 125 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 138 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 138 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 125 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 144 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 125 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 116 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 141 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 121 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 149 } ] }, "solution_variant": [ 0, 2, 3, 4, 5, 8, 9, 10 ], "context_index": 5, "input_format": "nl", "input_index_base": 0 }, { "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\": 15,\n \"root_space_capacity\": 750,\n \"plant_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 ],\n \"linear\": [\n {\n \"plant_id\": 1,\n \"base_yield\": 104\n },\n {\n \"plant_id\": 2,\n \"base_yield\": 142\n },\n {\n \"plant_id\": 3,\n \"base_yield\": 123\n },\n {\n \"plant_id\": 4,\n \"base_yield\": 107\n },\n {\n \"plant_id\": 5,\n \"base_yield\": 124\n },\n {\n \"plant_id\": 6,\n \"base_yield\": 97\n },\n {\n \"plant_id\": 7,\n \"base_yield\": 142\n },\n {\n \"plant_id\": 8,\n \"base_yield\": 108\n },\n {\n \"plant_id\": 9,\n \"base_yield\": 145\n },\n {\n \"plant_id\": 10,\n \"base_yield\": 134\n },\n {\n \"plant_id\": 11,\n \"base_yield\": 108\n },\n {\n \"plant_id\": 12,\n \"base_yield\": 149\n },\n {\n \"plant_id\": 13,\n \"base_yield\": 114\n },\n {\n \"plant_id\": 14,\n \"base_yield\": 132\n },\n {\n \"plant_id\": 15,\n \"base_yield\": 98\n }\n ],\n \"weights\": [\n {\n \"plant_id\": 1,\n \"root_space\": 111\n },\n {\n \"plant_id\": 2,\n \"root_space\": 145\n },\n {\n \"plant_id\": 3,\n \"root_space\": 129\n },\n {\n \"plant_id\": 4,\n \"root_space\": 106\n },\n {\n \"plant_id\": 5,\n \"root_space\": 130\n },\n {\n \"plant_id\": 6,\n \"root_space\": 100\n },\n {\n \"plant_id\": 7,\n \"root_space\": 147\n },\n {\n \"plant_id\": 8,\n \"root_space\": 113\n },\n {\n \"plant_id\": 9,\n \"root_space\": 143\n },\n {\n \"plant_id\": 10,\n \"root_space\": 138\n },\n {\n \"plant_id\": 11,\n \"root_space\": 110\n },\n {\n \"plant_id\": 12,\n \"root_space\": 148\n },\n {\n \"plant_id\": 13,\n \"root_space\": 110\n },\n {\n \"plant_id\": 14,\n \"root_space\": 128\n },\n {\n \"plant_id\": 15,\n \"root_space\": 102\n }\n ],\n \"quadratic\": [\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 3,\n \"companion_bonus\": 124\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 4,\n \"companion_bonus\": 125\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 5,\n \"companion_bonus\": 113\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 8,\n \"companion_bonus\": 123\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 9,\n \"companion_bonus\": 108\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 11,\n \"companion_bonus\": 105\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 13,\n \"companion_bonus\": 126\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 14,\n \"companion_bonus\": 117\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 15,\n \"companion_bonus\": 125\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 4,\n \"companion_bonus\": 145\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 7,\n \"companion_bonus\": 139\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 8,\n \"companion_bonus\": 131\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 9,\n \"companion_bonus\": 130\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 10,\n \"companion_bonus\": 142\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 11,\n \"companion_bonus\": 145\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 12,\n \"companion_bonus\": 131\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 13,\n \"companion_bonus\": 144\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 14,\n \"companion_bonus\": 138\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 15,\n \"companion_bonus\": 146\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 4,\n \"companion_bonus\": 124\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 5,\n \"companion_bonus\": 127\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 6,\n \"companion_bonus\": 120\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 7,\n \"companion_bonus\": 129\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 9,\n \"companion_bonus\": 124\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 11,\n \"companion_bonus\": 138\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 12,\n \"companion_bonus\": 137\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 13,\n \"companion_bonus\": 124\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 14,\n \"companion_bonus\": 123\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 15,\n \"companion_bonus\": 130\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 5,\n \"companion_bonus\": 104\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 6,\n \"companion_bonus\": 112\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 7,\n \"companion_bonus\": 114\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 8,\n \"companion_bonus\": 114\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 9,\n \"companion_bonus\": 111\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 10,\n \"companion_bonus\": 119\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 11,\n \"companion_bonus\": 124\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 12,\n \"companion_bonus\": 123\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 15,\n \"companion_bonus\": 138\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 6,\n \"companion_bonus\": 136\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 8,\n \"companion_bonus\": 122\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 9,\n \"companion_bonus\": 132\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 10,\n \"companion_bonus\": 120\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 12,\n \"companion_bonus\": 127\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 14,\n \"companion_bonus\": 118\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 15,\n \"companion_bonus\": 116\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 7,\n \"companion_bonus\": 104\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 8,\n \"companion_bonus\": 121\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 9,\n \"companion_bonus\": 109\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 10,\n \"companion_bonus\": 100\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 11,\n \"companion_bonus\": 141\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 12,\n \"companion_bonus\": 129\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 13,\n \"companion_bonus\": 121\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 8,\n \"companion_bonus\": 147\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 10,\n \"companion_bonus\": 131\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 12,\n \"companion_bonus\": 115\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 13,\n \"companion_bonus\": 124\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 9,\n \"companion_bonus\": 109\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 10,\n \"companion_bonus\": 122\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 12,\n \"companion_bonus\": 147\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 13,\n \"companion_bonus\": 144\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 14,\n \"companion_bonus\": 126\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 15,\n \"companion_bonus\": 141\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 10,\n \"companion_bonus\": 142\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 11,\n \"companion_bonus\": 144\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 12,\n \"companion_bonus\": 130\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 13,\n \"companion_bonus\": 144\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 14,\n \"companion_bonus\": 137\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 15,\n \"companion_bonus\": 145\n },\n {\n \"plant_i_id\": 10,\n \"plant_j_id\": 11,\n \"companion_bonus\": 133\n },\n {\n \"plant_i_id\": 10,\n \"plant_j_id\": 13,\n \"companion_bonus\": 120\n },\n {\n \"plant_i_id\": 10,\n \"plant_j_id\": 14,\n \"companion_bonus\": 136\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\": 113\n },\n {\n \"plant_i_id\": 11,\n \"plant_j_id\": 13,\n \"companion_bonus\": 127\n },\n {\n \"plant_i_id\": 11,\n \"plant_j_id\": 14,\n \"companion_bonus\": 142\n },\n {\n \"plant_i_id\": 12,\n \"plant_j_id\": 13,\n \"companion_bonus\": 108\n },\n {\n \"plant_i_id\": 12,\n \"plant_j_id\": 14,\n \"companion_bonus\": 140\n },\n {\n \"plant_i_id\": 12,\n \"plant_j_id\": 15,\n \"companion_bonus\": 137\n },\n {\n \"plant_i_id\": 13,\n \"plant_j_id\": 14,\n \"companion_bonus\": 127\n },\n {\n \"plant_i_id\": 13,\n \"plant_j_id\": 15,\n \"companion_bonus\": 127\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": [ 104, 142, 123, 107, 124, 97, 142, 108, 145, 134, 108, 149, 114, 132, 98 ], "quadratic_coeffs": [ [ 0, 0, 124, 125, 113, 0, 0, 123, 108, 0, 105, 0, 126, 117, 125 ], [ 0, 143, 0, 145, 0, 0, 139, 131, 130, 142, 145, 131, 144, 138, 146 ], [ 0, 0, 116, 124, 127, 120, 129, 0, 124, 0, 138, 137, 124, 123, 130 ], [ 0, 0, 0, 103, 104, 112, 114, 114, 111, 119, 124, 123, 0, 0, 138 ], [ 0, 0, 0, 0, 129, 136, 0, 122, 132, 120, 0, 127, 0, 118, 116 ], [ 0, 0, 0, 0, 0, 120, 104, 121, 109, 100, 141, 129, 121, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 147, 147, 0, 131, 0, 115, 124, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 108, 109, 122, 0, 147, 144, 126, 141 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 142, 144, 130, 144, 137, 145 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, 133, 0, 120, 136, 126 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 129, 113, 127, 142, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, 108, 140, 137 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 144, 127, 127 ], [ 0, 0, 0, 0, 0, 0, 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, 145, 129, 106, 130, 100, 147, 113, 143, 138, 110, 148, 110, 128, 102 ], "capacity": 750, "solution": [ 1, 3, 7, 8, 9, 14 ], "obj": 2695.0, "problem_type": "QKP" }, "solution": [ 1, 3, 7, 8, 9, 14 ], "obj": 2695.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 750, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 104 }, { "item_id": 2, "linear_profit": 142 }, { "item_id": 3, "linear_profit": 123 }, { "item_id": 4, "linear_profit": 107 }, { "item_id": 5, "linear_profit": 124 }, { "item_id": 6, "linear_profit": 97 }, { "item_id": 7, "linear_profit": 142 }, { "item_id": 8, "linear_profit": 108 }, { "item_id": 9, "linear_profit": 145 }, { "item_id": 10, "linear_profit": 134 }, { "item_id": 11, "linear_profit": 108 }, { "item_id": 12, "linear_profit": 149 }, { "item_id": 13, "linear_profit": 114 }, { "item_id": 14, "linear_profit": 132 }, { "item_id": 15, "linear_profit": 98 } ], "weight_pairs": [ { "item_id": 1, "weight": 111 }, { "item_id": 2, "weight": 145 }, { "item_id": 3, "weight": 129 }, { "item_id": 4, "weight": 106 }, { "item_id": 5, "weight": 130 }, { "item_id": 6, "weight": 100 }, { "item_id": 7, "weight": 147 }, { "item_id": 8, "weight": 113 }, { "item_id": 9, "weight": 143 }, { "item_id": 10, "weight": 138 }, { "item_id": 11, "weight": 110 }, { "item_id": 12, "weight": 148 }, { "item_id": 13, "weight": 110 }, { "item_id": 14, "weight": 128 }, { "item_id": 15, "weight": 102 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 124 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 125 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 113 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 123 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 126 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 117 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 125 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 143 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 145 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 139 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 131 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 130 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 142 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 145 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 131 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 144 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 138 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 146 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 116 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 124 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 127 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 120 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 129 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 124 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 138 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 137 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 124 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 123 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 130 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 112 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 114 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 114 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 111 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 119 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 124 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 123 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 138 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 129 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 136 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 122 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 132 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 120 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 127 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 118 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 116 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 120 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 121 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 109 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 141 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 129 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 121 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 147 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 147 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 131 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 115 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 124 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 108 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 109 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 122 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 147 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 144 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 126 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 141 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 142 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 144 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 130 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 144 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 137 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 145 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 122 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 133 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 120 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 136 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 126 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 129 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 113 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 127 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 142 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 122 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 108 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 140 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 137 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 144 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 127 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 127 } ] }, "solution_variant": [ 2, 4, 8, 9, 10, 15 ], "context_index": 6, "input_format": "json", "input_index_base": 1 }, { "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\nThe team is considering 14 candidate features 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 with a sprint effort budget of 1890.\nFeature 1 delivers a baseline user value of 361.\nFeature 2 delivers a baseline user value of 823.\nFeature 3 delivers a baseline user value of 302.\nFeature 4 delivers a baseline user value of 201.\nFeature 5 delivers a baseline user value of 580.\nFeature 6 delivers a baseline user value of 737.\nFeature 7 delivers a baseline user value of 821.\nFeature 8 delivers a baseline user value of 174.\nFeature 9 delivers a baseline user value of 565.\nFeature 10 delivers a baseline user value of 845.\nFeature 11 delivers a baseline user value of 828.\nFeature 12 delivers a baseline user value of 593.\nFeature 13 delivers a baseline user value of 792.\nFeature 14 delivers a baseline user value of 795.\nFeature 1 requires 397 effort.\nFeature 2 requires 829 effort.\nFeature 3 requires 287 effort.\nFeature 4 requires 240 effort.\nFeature 5 requires 590 effort.\nFeature 6 requires 710 effort.\nFeature 7 requires 814 effort.\nFeature 8 requires 202 effort.\nFeature 9 requires 567 effort.\nFeature 10 requires 806 effort.\nFeature 11 requires 853 effort.\nFeature 12 requires 612 effort.\nFeature 13 requires 769 effort.\nFeature 14 requires 826 effort.\nFeatures 1 and 2 together yield an additional interaction value of 536.\nFeatures 1 and 3 together yield an additional interaction value of 562.\nFeatures 1 and 4 together yield an additional interaction value of 557.\nFeatures 1 and 5 together yield an additional interaction value of 567.\nFeatures 1 and 6 together yield an additional interaction value of 332.\nFeatures 1 and 7 together yield an additional interaction value of 480.\nFeatures 1 and 8 together yield an additional interaction value of 479.\nFeatures 1 and 9 together yield an additional interaction value of 220.\nFeatures 1 and 10 together yield an additional interaction value of 561.\nFeatures 1 and 11 together yield an additional interaction value of 483.\nFeatures 1 and 12 together yield an additional interaction value of 531.\nFeatures 1 and 13 together yield an additional interaction value of 572.\nFeatures 1 and 14 together yield an additional interaction value of 372.\nFeatures 2 and 3 together yield an additional interaction value of 699.\nFeatures 2 and 4 together yield an additional interaction value of 782.\nFeatures 2 and 5 together yield an additional interaction value of 763.\nFeatures 2 and 6 together yield an additional interaction value of 599.\nFeatures 2 and 7 together yield an additional interaction value of 808.\nFeatures 2 and 8 together yield an additional interaction value of 528.\nFeatures 2 and 9 together yield an additional interaction value of 811.\nFeatures 2 and 10 together yield an additional interaction value of 808.\nFeatures 2 and 11 together yield an additional interaction value of 743.\nFeatures 2 and 12 together yield an additional interaction value of 849.\nFeatures 2 and 13 together yield an additional interaction value of 482.\nFeatures 2 and 14 together yield an additional interaction value of 775.\nFeatures 3 and 4 together yield an additional interaction value of 462.\nFeatures 3 and 5 together yield an additional interaction value of 281.\nFeatures 3 and 6 together yield an additional interaction value of 420.\nFeatures 3 and 7 together yield an additional interaction value of 503.\nFeatures 3 and 8 together yield an additional interaction value of 406.\nFeatures 3 and 9 together yield an additional interaction value of 475.\nFeatures 3 and 10 together yield an additional interaction value of 436.\nFeatures 3 and 11 together yield an additional interaction value of 474.\nFeatures 3 and 12 together yield an additional interaction value of 469.\nFeatures 3 and 13 together yield an additional interaction value of 235.\nFeatures 3 and 14 together yield an additional interaction value of 450.\nFeatures 4 and 5 together yield an additional interaction value of 290.\nFeatures 4 and 6 together yield an additional interaction value of 246.\nFeatures 4 and 7 together yield an additional interaction value of 228.\nFeatures 4 and 8 together yield an additional interaction value of 341.\nFeatures 4 and 9 together yield an additional interaction value of 425.\nFeatures 4 and 10 together yield an additional interaction value of 297.\nFeatures 4 and 11 together yield an additional interaction value of 375.\nFeatures 4 and 12 together yield an additional interaction value of 452.\nFeatures 4 and 13 together yield an additional interaction value of 185.\nFeatures 4 and 14 together yield an additional interaction value of 452.\nFeatures 5 and 6 together yield an additional interaction value of 643.\nFeatures 5 and 7 together yield an additional interaction value of 718.\nFeatures 5 and 8 together yield an additional interaction value of 332.\nFeatures 5 and 9 together yield an additional interaction value of 387.\nFeatures 5 and 10 together yield an additional interaction value of 658.\nFeatures 5 and 11 together yield an additional interaction value of 335.\nFeatures 5 and 12 together yield an additional interaction value of 407.\nFeatures 5 and 13 together yield an additional interaction value of 470.\nFeatures 5 and 14 together yield an additional interaction value of 602.\nFeatures 6 and 7 together yield an additional interaction value of 586.\nFeatures 6 and 8 together yield an additional interaction value of 758.\nFeatures 6 and 9 together yield an additional interaction value of 658.\nFeatures 6 and 10 together yield an additional interaction value of 604.\nFeatures 6 and 11 together yield an additional interaction value of 446.\nFeatures 6 and 12 together yield an additional interaction value of 328.\nFeatures 6 and 13 together yield an additional interaction value of 399.\nFeatures 6 and 14 together yield an additional interaction value of 499.\nFeatures 7 and 8 together yield an additional interaction value of 288.\nFeatures 7 and 9 together yield an additional interaction value of 843.\nFeatures 7 and 10 together yield an additional interaction value of 497.\nFeatures 7 and 11 together yield an additional interaction value of 507.\nFeatures 7 and 12 together yield an additional interaction value of 379.\nFeatures 7 and 13 together yield an additional interaction value of 474.\nFeatures 7 and 14 together yield an additional interaction value of 360.\nFeatures 8 and 9 together yield an additional interaction value of 301.\nFeatures 8 and 10 together yield an additional interaction value of 413.\nFeatures 8 and 11 together yield an additional interaction value of 288.\nFeatures 8 and 12 together yield an additional interaction value of 332.\nFeatures 8 and 13 together yield an additional interaction value of 602.\nFeatures 8 and 14 together yield an additional interaction value of 552.\nFeatures 9 and 10 together yield an additional interaction value of 674.\nFeatures 9 and 11 together yield an additional interaction value of 602.\nFeatures 9 and 12 together yield an additional interaction value of 565.\nFeatures 9 and 13 together yield an additional interaction value of 664.\nFeatures 9 and 14 together yield an additional interaction value of 440.\nFeatures 10 and 11 together yield an additional interaction value of 364.\nFeatures 10 and 12 together yield an additional interaction value of 347.\nFeatures 10 and 13 together yield an additional interaction value of 636.\nFeatures 10 and 14 together yield an additional interaction value of 624.\nFeatures 11 and 12 together yield an additional interaction value of 447.\nFeatures 11 and 13 together yield an additional interaction value of 182.\nFeatures 11 and 14 together yield an additional interaction value of 446.\nFeatures 12 and 13 together yield an additional interaction value of 512.\nFeatures 12 and 14 together yield an additional interaction value of 458.\nFeatures 13 and 14 together yield an additional interaction value of 530.\nChoose a combination that stays within the 1890 budget and maximizes total user value.\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": [ 361, 823, 302, 201, 580, 737, 821, 174, 565, 845, 828, 593, 792, 795 ], "quadratic_coeffs": [ [ 591, 536, 562, 557, 567, 332, 480, 479, 220, 561, 483, 531, 572, 372 ], [ 0, 812, 699, 782, 763, 599, 808, 528, 811, 808, 743, 849, 482, 775 ], [ 0, 0, 402, 462, 281, 420, 503, 406, 475, 436, 474, 469, 235, 450 ], [ 0, 0, 0, 276, 290, 246, 228, 341, 425, 297, 375, 452, 185, 452 ], [ 0, 0, 0, 0, 694, 643, 718, 332, 387, 658, 335, 407, 470, 602 ], [ 0, 0, 0, 0, 0, 792, 586, 758, 658, 604, 446, 328, 399, 499 ], [ 0, 0, 0, 0, 0, 0, 363, 288, 843, 497, 507, 379, 474, 360 ], [ 0, 0, 0, 0, 0, 0, 0, 217, 301, 413, 288, 332, 602, 552 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 586, 674, 602, 565, 664, 440 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 758, 364, 347, 636, 624 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 370, 447, 182, 446 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 383, 512, 458 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 632, 530 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 489 ] ], "weights": [ 397, 829, 287, 240, 590, 710, 814, 202, 567, 806, 853, 612, 769, 826 ], "capacity": 1890, "solution": [ 0, 2, 3, 5, 7 ], "obj": 6338.0, "problem_type": "QKP" }, "solution": [ 0, 2, 3, 5, 7 ], "obj": 6338.0, "instance_variant": { "problem_type": "QKP", "num_items": 14, "capacity": 1890, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 361 }, { "item_id": 2, "linear_profit": 823 }, { "item_id": 3, "linear_profit": 302 }, { "item_id": 4, "linear_profit": 201 }, { "item_id": 5, "linear_profit": 580 }, { "item_id": 6, "linear_profit": 737 }, { "item_id": 7, "linear_profit": 821 }, { "item_id": 8, "linear_profit": 174 }, { "item_id": 9, "linear_profit": 565 }, { "item_id": 10, "linear_profit": 845 }, { "item_id": 11, "linear_profit": 828 }, { "item_id": 12, "linear_profit": 593 }, { "item_id": 13, "linear_profit": 792 }, { "item_id": 14, "linear_profit": 795 } ], "weight_pairs": [ { "item_id": 1, "weight": 397 }, { "item_id": 2, "weight": 829 }, { "item_id": 3, "weight": 287 }, { "item_id": 4, "weight": 240 }, { "item_id": 5, "weight": 590 }, { "item_id": 6, "weight": 710 }, { "item_id": 7, "weight": 814 }, { "item_id": 8, "weight": 202 }, { "item_id": 9, "weight": 567 }, { "item_id": 10, "weight": 806 }, { "item_id": 11, "weight": 853 }, { "item_id": 12, "weight": 612 }, { "item_id": 13, "weight": 769 }, { "item_id": 14, "weight": 826 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 591 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 536 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 562 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 557 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 567 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 332 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 480 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 479 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 220 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 561 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 483 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 531 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 572 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 372 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 812 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 699 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 782 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 763 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 599 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 808 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 528 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 811 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 808 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 743 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 849 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 482 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 775 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 402 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 462 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 281 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 420 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 503 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 406 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 475 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 436 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 474 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 469 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 235 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 450 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 276 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 290 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 246 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 228 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 341 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 425 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 297 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 375 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 452 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 185 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 452 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 694 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 643 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 718 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 332 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 387 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 658 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 335 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 407 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 470 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 602 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 792 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 586 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 758 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 658 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 604 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 446 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 328 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 399 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 499 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 363 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 288 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 843 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 497 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 507 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 379 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 474 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 360 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 217 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 301 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 413 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 288 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 332 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 602 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 552 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 586 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 674 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 602 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 565 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 664 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 440 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 758 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 364 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 347 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 636 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 624 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 370 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 447 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 182 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 446 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 383 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 512 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 458 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 632 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 530 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 489 } ] }, "solution_variant": [ 1, 3, 4, 6, 8 ], "context_index": 7, "input_format": "nl", "input_index_base": 1 }, { "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\": 15,\n \"kitchen_capacity\": 1120,\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 ],\n \"linear\": [\n {\n \"course_id\": \"A\",\n \"base_delight\": 112\n },\n {\n \"course_id\": \"B\",\n \"base_delight\": 112\n },\n {\n \"course_id\": \"C\",\n \"base_delight\": 114\n },\n {\n \"course_id\": \"D\",\n \"base_delight\": 113\n },\n {\n \"course_id\": \"E\",\n \"base_delight\": 111\n },\n {\n \"course_id\": \"F\",\n \"base_delight\": 113\n },\n {\n \"course_id\": \"G\",\n \"base_delight\": 110\n },\n {\n \"course_id\": \"H\",\n \"base_delight\": 112\n },\n {\n \"course_id\": \"I\",\n \"base_delight\": 111\n },\n {\n \"course_id\": \"J\",\n \"base_delight\": 111\n },\n {\n \"course_id\": \"K\",\n \"base_delight\": 113\n },\n {\n \"course_id\": \"L\",\n \"base_delight\": 110\n },\n {\n \"course_id\": \"M\",\n \"base_delight\": 111\n },\n {\n \"course_id\": \"N\",\n \"base_delight\": 110\n },\n {\n \"course_id\": \"O\",\n \"base_delight\": 114\n }\n ],\n \"weights\": [\n {\n \"course_id\": \"A\",\n \"prep_plating_load\": 102\n },\n {\n \"course_id\": \"B\",\n \"prep_plating_load\": 102\n },\n {\n \"course_id\": \"C\",\n \"prep_plating_load\": 104\n },\n {\n \"course_id\": \"D\",\n \"prep_plating_load\": 103\n },\n {\n \"course_id\": \"E\",\n \"prep_plating_load\": 101\n },\n {\n \"course_id\": \"F\",\n \"prep_plating_load\": 103\n },\n {\n \"course_id\": \"G\",\n \"prep_plating_load\": 100\n },\n {\n \"course_id\": \"H\",\n \"prep_plating_load\": 102\n },\n {\n \"course_id\": \"I\",\n \"prep_plating_load\": 101\n },\n {\n \"course_id\": \"J\",\n \"prep_plating_load\": 101\n },\n {\n \"course_id\": \"K\",\n \"prep_plating_load\": 103\n },\n {\n \"course_id\": \"L\",\n \"prep_plating_load\": 100\n },\n {\n \"course_id\": \"M\",\n \"prep_plating_load\": 101\n },\n {\n \"course_id\": \"N\",\n \"prep_plating_load\": 100\n },\n {\n \"course_id\": \"O\",\n \"prep_plating_load\": 104\n }\n ],\n \"quadratic\": [\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"B\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"C\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"D\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"E\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"F\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"A\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"C\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"D\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"E\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"F\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"B\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"D\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"E\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"F\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 104\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 104\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"C\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"E\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"F\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"D\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"F\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"E\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"G\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"F\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"H\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"G\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"I\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"H\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"J\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"I\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"K\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 102\n },\n {\n \"course_i_id\": \"J\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"L\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 104\n },\n {\n \"course_i_id\": \"K\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 100\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"M\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"L\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 101\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"N\",\n \"pair_complement_boost\": 103\n },\n {\n \"course_i_id\": \"M\",\n \"course_j_id\": \"O\",\n \"pair_complement_boost\": 102\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": [ 112, 112, 114, 113, 111, 113, 110, 112, 111, 111, 113, 110, 111, 110, 114 ], "quadratic_coeffs": [ [ 102, 102, 102, 102, 100, 102, 102, 101, 102, 101, 100, 102, 102, 102, 100 ], [ 0, 100, 102, 102, 102, 100, 100, 100, 102, 102, 102, 102, 102, 102, 103 ], [ 0, 0, 101, 101, 102, 102, 100, 103, 101, 100, 104, 103, 104, 100, 100 ], [ 0, 0, 0, 100, 103, 101, 103, 102, 103, 103, 101, 103, 102, 103, 103 ], [ 0, 0, 0, 0, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101, 101 ], [ 0, 0, 0, 0, 0, 103, 103, 101, 100, 103, 103, 102, 102, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 102, 101, 102, 102, 101, 100, 101, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 101, 101, 100, 100, 100, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 103, 103, 103, 102, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 101, 101, 104, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 101, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 103, 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 ] ], "weights": [ 102, 102, 104, 103, 101, 103, 100, 102, 101, 101, 103, 100, 101, 100, 104 ], "capacity": 1120, "solution": [ 0, 2, 3, 5, 7, 8, 9, 10, 11, 12, 13 ], "obj": 6824.0, "problem_type": "QKP" }, "solution": [ 0, 2, 3, 5, 7, 8, 9, 10, 11, 12, 13 ], "obj": 6824.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 1120, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 112 }, { "item_id": "B", "linear_profit": 112 }, { "item_id": "C", "linear_profit": 114 }, { "item_id": "D", "linear_profit": 113 }, { "item_id": "E", "linear_profit": 111 }, { "item_id": "F", "linear_profit": 113 }, { "item_id": "G", "linear_profit": 110 }, { "item_id": "H", "linear_profit": 112 }, { "item_id": "I", "linear_profit": 111 }, { "item_id": "J", "linear_profit": 111 }, { "item_id": "K", "linear_profit": 113 }, { "item_id": "L", "linear_profit": 110 }, { "item_id": "M", "linear_profit": 111 }, { "item_id": "N", "linear_profit": 110 }, { "item_id": "O", "linear_profit": 114 } ], "weight_pairs": [ { "item_id": "A", "weight": 102 }, { "item_id": "B", "weight": 102 }, { "item_id": "C", "weight": 104 }, { "item_id": "D", "weight": 103 }, { "item_id": "E", "weight": 101 }, { "item_id": "F", "weight": 103 }, { "item_id": "G", "weight": 100 }, { "item_id": "H", "weight": 102 }, { "item_id": "I", "weight": 101 }, { "item_id": "J", "weight": 101 }, { "item_id": "K", "weight": 103 }, { "item_id": "L", "weight": 100 }, { "item_id": "M", "weight": 101 }, { "item_id": "N", "weight": 100 }, { "item_id": "O", "weight": 104 } ], "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": 102 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 102 }, { "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": 100 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 100 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 102 }, { "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": 103 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 102 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 100 }, { "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": 100 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 104 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 100 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 100 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 102 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 103 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 101 }, { "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": 101 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 103 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 103 }, { "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": 103 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 103 }, { "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": 100 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 100 }, { "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": "N", "quadratic_profit": 100 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 102 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 102 }, { "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": 100 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 103 }, { "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": 103 }, { "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": "K", "item_j_id": "K", "quadratic_profit": 100 }, { "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": 104 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 100 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 101 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 103 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 102 } ] }, "solution_variant": [ "A", "C", "D", "F", "H", "I", "J", "K", "L", "M", "N" ], "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 14 available, listed as 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, and the shipping threshold is 3318.\n\n| item_ref_for_weight | base_value |\n|---|---|\n| 1 | 219 |\n| 2 | 516 |\n| 3 | 366 |\n| 4 | 189 |\n| 5 | 243 |\n| 6 | 510 |\n| 7 | 339 |\n| 8 | 275 |\n| 9 | 257 |\n| 10 | 340 |\n| 11 | 490 |\n| 12 | 318 |\n| 13 | 190 |\n| 14 | 227 |\n\n| item_ref_for_weight | item_weight |\n|---|---|\n| 1 | 169 |\n| 2 | 466 |\n| 3 | 316 |\n| 4 | 139 |\n| 5 | 193 |\n| 6 | 460 |\n| 7 | 289 |\n| 8 | 225 |\n| 9 | 207 |\n| 10 | 290 |\n| 11 | 440 |\n| 12 | 268 |\n| 13 | 140 |\n| 14 | 177 |\n\n| pair_item_i | pair_item_j | pair_synergy_value |\n|---|---|---|\n| 1 | 3 | 169 |\n| 1 | 5 | 169 |\n| 1 | 7 | 169 |\n| 1 | 8 | 169 |\n| 1 | 9 | 169 |\n| 1 | 14 | 169 |\n| 2 | 8 | 262 |\n| 2 | 12 | 283 |\n| 3 | 6 | 316 |\n| 3 | 11 | 204 |\n| 4 | 8 | 139 |\n| 4 | 10 | 250 |\n| 4 | 14 | 250 |\n| 5 | 10 | 314 |\n| 6 | 7 | 155 |\n| 6 | 12 | 155 |\n| 6 | 14 | 155 |\n| 7 | 9 | 150 |\n| 7 | 10 | 150 |\n| 8 | 11 | 425 |\n| 8 | 12 | 337 |\n| 8 | 13 | 339 |\n| 9 | 10 | 214 |\n| 9 | 12 | 290 |\n| 11 | 13 | 242 |\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": [ 219, 516, 366, 189, 243, 510, 339, 275, 257, 340, 490, 318, 190, 227 ], "quadratic_coeffs": [ [ 0, 0, 169, 0, 169, 0, 169, 169, 169, 0, 0, 0, 0, 169 ], [ 0, 0, 0, 0, 0, 0, 0, 262, 0, 0, 0, 283, 0, 0 ], [ 0, 0, 162, 0, 0, 316, 0, 0, 0, 0, 204, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 139, 0, 250, 0, 0, 0, 250 ], [ 0, 0, 0, 0, 193, 0, 0, 0, 0, 314, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 155, 0, 0, 0, 0, 155, 0, 155 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 150, 150, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 425, 337, 339, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 0, 290, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 0, 242, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 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": [ 169, 466, 316, 139, 193, 460, 289, 225, 207, 290, 440, 268, 140, 177 ], "capacity": 3318, "solution": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "obj": 9062.0, "problem_type": "QKP" }, "solution": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "obj": 9062.0, "instance_variant": { "problem_type": "QKP", "num_items": 14, "capacity": 3318, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 219 }, { "item_id": 2, "linear_profit": 516 }, { "item_id": 3, "linear_profit": 366 }, { "item_id": 4, "linear_profit": 189 }, { "item_id": 5, "linear_profit": 243 }, { "item_id": 6, "linear_profit": 510 }, { "item_id": 7, "linear_profit": 339 }, { "item_id": 8, "linear_profit": 275 }, { "item_id": 9, "linear_profit": 257 }, { "item_id": 10, "linear_profit": 340 }, { "item_id": 11, "linear_profit": 490 }, { "item_id": 12, "linear_profit": 318 }, { "item_id": 13, "linear_profit": 190 }, { "item_id": 14, "linear_profit": 227 } ], "weight_pairs": [ { "item_id": 1, "weight": 169 }, { "item_id": 2, "weight": 466 }, { "item_id": 3, "weight": 316 }, { "item_id": 4, "weight": 139 }, { "item_id": 5, "weight": 193 }, { "item_id": 6, "weight": 460 }, { "item_id": 7, "weight": 289 }, { "item_id": 8, "weight": 225 }, { "item_id": 9, "weight": 207 }, { "item_id": 10, "weight": 290 }, { "item_id": 11, "weight": 440 }, { "item_id": 12, "weight": 268 }, { "item_id": 13, "weight": 140 }, { "item_id": 14, "weight": 177 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 169 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 169 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 169 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 169 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 169 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 169 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 262 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 283 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 162 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 316 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 204 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 139 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 250 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 250 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 193 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 314 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 155 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 155 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 155 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 150 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 150 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 425 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 337 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 339 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 214 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 290 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 214 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 242 } ] }, "solution_variant": [ 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ], "context_index": 9, "input_format": "markdown_table", "input_index_base": 1 }, { "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\nI have 11 souvenirs listed as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, and my suitcase weight limit is 937.\nSouvenir 0 is worth 117 sentimental points to me.\nSouvenir 1 is worth 116 sentimental points to me.\nSouvenir 2 is worth 114 sentimental points to me.\nSouvenir 3 is worth 119 sentimental points to me.\nSouvenir 4 is worth 118 sentimental points to me.\nSouvenir 5 is worth 117 sentimental points to me.\nSouvenir 6 is worth 113 sentimental points to me.\nSouvenir 7 is worth 117 sentimental points to me.\nSouvenir 8 is worth 111 sentimental points to me.\nSouvenir 9 is worth 119 sentimental points to me.\nSouvenir 10 is worth 115 sentimental points to me.\nSouvenir 0 weighs 106 units in my suitcase.\nSouvenir 1 weighs 105 units in my suitcase.\nSouvenir 2 weighs 103 units in my suitcase.\nSouvenir 3 weighs 108 units in my suitcase.\nSouvenir 4 weighs 107 units in my suitcase.\nSouvenir 5 weighs 106 units in my suitcase.\nSouvenir 6 weighs 102 units in my suitcase.\nSouvenir 7 weighs 106 units in my suitcase.\nSouvenir 8 weighs 100 units in my suitcase.\nSouvenir 9 weighs 108 units in my suitcase.\nSouvenir 10 weighs 104 units in my suitcase.\nPacking 0 together with 3 gives me an extra 103 sentimental points.\nPacking 0 together with 7 gives me an extra 105 sentimental points.\nPacking 0 together with 9 gives me an extra 104 sentimental points.\nPacking 1 together with 3 gives me an extra 108 sentimental points.\nPacking 1 together with 6 gives me an extra 105 sentimental points.\nPacking 1 together with 7 gives me an extra 108 sentimental points.\nPacking 1 together with 10 gives me an extra 105 sentimental points.\nPacking 2 together with 8 gives me an extra 105 sentimental points.\nPacking 3 together with 7 gives me an extra 106 sentimental points.\nPacking 3 together with 10 gives me an extra 102 sentimental points.\nPacking 4 together with 10 gives me an extra 104 sentimental points.\nPacking 6 together with 7 gives me an extra 100 sentimental points.\nI'll use these details to decide what to pack so I maximize sentimental payoff while staying under the 937 limit.\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": [ 117, 116, 114, 119, 118, 117, 113, 117, 111, 119, 115 ], "quadratic_coeffs": [ [ 0, 0, 0, 103, 0, 0, 0, 105, 0, 104, 0 ], [ 0, 0, 0, 108, 0, 0, 105, 108, 0, 0, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 105, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 106, 0, 0, 102 ], [ 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, 100, 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, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 106, 105, 103, 108, 107, 106, 102, 106, 100, 108, 104 ], "capacity": 937, "solution": [ 0, 1, 3, 4, 6, 7, 9, 10 ], "obj": 2084.0, "problem_type": "QKP" }, "solution": [ 0, 1, 3, 4, 6, 7, 9, 10 ], "obj": 2084.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 937, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 117 }, { "item_id": 1, "linear_profit": 116 }, { "item_id": 2, "linear_profit": 114 }, { "item_id": 3, "linear_profit": 119 }, { "item_id": 4, "linear_profit": 118 }, { "item_id": 5, "linear_profit": 117 }, { "item_id": 6, "linear_profit": 113 }, { "item_id": 7, "linear_profit": 117 }, { "item_id": 8, "linear_profit": 111 }, { "item_id": 9, "linear_profit": 119 }, { "item_id": 10, "linear_profit": 115 } ], "weight_pairs": [ { "item_id": 0, "weight": 106 }, { "item_id": 1, "weight": 105 }, { "item_id": 2, "weight": 103 }, { "item_id": 3, "weight": 108 }, { "item_id": 4, "weight": 107 }, { "item_id": 5, "weight": 106 }, { "item_id": 6, "weight": 102 }, { "item_id": 7, "weight": 106 }, { "item_id": 8, "weight": 100 }, { "item_id": 9, "weight": 108 }, { "item_id": 10, "weight": 104 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 103 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 106 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 106 } ] }, "solution_variant": [ 0, 1, 3, 4, 6, 7, 9, 10 ], "context_index": 10, "input_format": "nl", "input_index_base": 0 }, { "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 11 available deluxe components 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 and the box's shipping capacity 412.\nComponent 1 provides a base player value of 271.\nComponent 2 provides a base player value of 143.\nComponent 3 provides a base player value of 298.\nComponent 4 provides a base player value of 231.\nComponent 5 provides a base player value of 180.\nComponent 6 provides a base player value of 418.\nComponent 7 provides a base player value of 504.\nComponent 8 provides a base player value of 444.\nComponent 9 provides a base player value of 221.\nComponent 10 provides a base player value of 184.\nComponent 11 provides a base player value of 391.\nComponent 1 contributes 277 to the package weight.\nComponent 2 contributes 123 to the package weight.\nComponent 3 contributes 285 to the package weight.\nComponent 4 contributes 241 to the package weight.\nComponent 5 contributes 175 to the package weight.\nComponent 6 contributes 427 to the package weight.\nComponent 7 contributes 489 to the package weight.\nComponent 8 contributes 468 to the package weight.\nComponent 9 contributes 242 to the package weight.\nComponent 10 contributes 206 to the package weight.\nComponent 11 contributes 404 to the package weight.\nIncluding both 1 and 3 grants an extra pair synergy of 328.\nIncluding both 2 and 7 grants an extra pair synergy of 177.\nIncluding both 3 and 11 grants an extra pair synergy of 250.\nIncluding both 4 and 11 grants an extra pair synergy of 228.\nIncluding both 5 and 7 grants an extra pair synergy of 268.\nIncluding both 5 and 8 grants an extra pair synergy of 329.\nIncluding both 5 and 11 grants an extra pair synergy of 157.\nIncluding both 6 and 8 grants an extra pair synergy of 403.\nIncluding both 6 and 10 grants an extra pair synergy of 318.\nIncluding both 8 and 9 grants an extra pair synergy of 399.\nSelections must respect the 412 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": [ 271, 143, 298, 231, 180, 418, 504, 444, 221, 184, 391 ], "quadratic_coeffs": [ [ 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 177, 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, 228 ], [ 0, 0, 0, 0, 0, 0, 268, 329, 0, 0, 157 ], [ 0, 0, 0, 0, 0, 388, 0, 403, 0, 318, 0 ], [ 0, 0, 0, 0, 0, 0, 364, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 430, 399, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 260, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 372, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 277, 123, 285, 241, 175, 427, 489, 468, 242, 206, 404 ], "capacity": 412, "solution": [ 1, 2 ], "obj": 441.0, "problem_type": "QKP" }, "solution": [ 1, 2 ], "obj": 441.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 412, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 271 }, { "item_id": 2, "linear_profit": 143 }, { "item_id": 3, "linear_profit": 298 }, { "item_id": 4, "linear_profit": 231 }, { "item_id": 5, "linear_profit": 180 }, { "item_id": 6, "linear_profit": 418 }, { "item_id": 7, "linear_profit": 504 }, { "item_id": 8, "linear_profit": 444 }, { "item_id": 9, "linear_profit": 221 }, { "item_id": 10, "linear_profit": 184 }, { "item_id": 11, "linear_profit": 391 } ], "weight_pairs": [ { "item_id": 1, "weight": 277 }, { "item_id": 2, "weight": 123 }, { "item_id": 3, "weight": 285 }, { "item_id": 4, "weight": 241 }, { "item_id": 5, "weight": 175 }, { "item_id": 6, "weight": 427 }, { "item_id": 7, "weight": 489 }, { "item_id": 8, "weight": 468 }, { "item_id": 9, "weight": 242 }, { "item_id": 10, "weight": 206 }, { "item_id": 11, "weight": 404 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 328 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 177 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 250 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 228 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 268 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 329 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 157 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 388 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 403 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 318 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 364 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 430 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 399 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 260 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 372 } ] }, "solution_variant": [ 2, 3 ], "context_index": 11, "input_format": "nl", "input_index_base": 1 }, { "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\nHere are the 15 available photos (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14) and the page limit of 1163 pages.\n\n| photo_id | baseline_effect |\n|---|---|\n| 0 | 102 |\n| 1 | 104 |\n| 2 | 101 |\n| 3 | 104 |\n| 4 | 103 |\n| 5 | 103 |\n| 6 | 100 |\n| 7 | 101 |\n| 8 | 104 |\n| 9 | 105 |\n| 10 | 100 |\n| 11 | 100 |\n| 12 | 104 |\n| 13 | 103 |\n| 14 | 102 |\n\n| photo_id | page_cost |\n|---|---|\n| 0 | 105 |\n| 1 | 102 |\n| 2 | 105 |\n| 3 | 103 |\n| 4 | 104 |\n| 5 | 101 |\n| 6 | 103 |\n| 7 | 100 |\n| 8 | 105 |\n| 9 | 105 |\n| 10 | 103 |\n| 11 | 102 |\n| 12 | 102 |\n| 13 | 100 |\n| 14 | 103 |\n\n| photo_i_id | photo_j_id | pairing_bonus |\n|---|---|---|\n| 0 | 1 | 103 |\n| 0 | 2 | 103 |\n| 0 | 3 | 103 |\n| 0 | 5 | 100 |\n| 0 | 6 | 104 |\n| 0 | 8 | 104 |\n| 0 | 9 | 103 |\n| 0 | 11 | 104 |\n| 1 | 4 | 102 |\n| 1 | 6 | 101 |\n| 1 | 8 | 100 |\n| 1 | 9 | 100 |\n| 1 | 10 | 100 |\n| 1 | 11 | 101 |\n| 1 | 12 | 102 |\n| 1 | 13 | 102 |\n| 2 | 7 | 105 |\n| 2 | 9 | 100 |\n| 2 | 10 | 104 |\n| 2 | 12 | 103 |\n| 2 | 14 | 104 |\n| 3 | 4 | 101 |\n| 3 | 7 | 102 |\n| 3 | 8 | 103 |\n| 3 | 11 | 101 |\n| 3 | 12 | 103 |\n| 3 | 13 | 102 |\n| 3 | 14 | 102 |\n| 4 | 5 | 104 |\n| 4 | 6 | 104 |\n| 4 | 14 | 105 |\n| 5 | 6 | 101 |\n| 5 | 8 | 101 |\n| 5 | 10 | 101 |\n| 5 | 12 | 104 |\n| 6 | 10 | 102 |\n| 6 | 12 | 100 |\n| 6 | 14 | 100 |\n| 7 | 9 | 100 |\n| 7 | 10 | 100 |\n| 7 | 13 | 101 |\n| 7 | 14 | 101 |\n| 8 | 9 | 103 |\n| 8 | 10 | 101 |\n| 8 | 11 | 105 |\n| 8 | 12 | 103 |\n| 9 | 11 | 100 |\n| 9 | 12 | 102 |\n| 9 | 14 | 102 |\n| 10 | 12 | 105 |\n| 10 | 13 | 104 |\n| 10 | 14 | 102 |\n| 11 | 13 | 100 |\n\nSelections must stay within the 1163-page limit and include no duplicates so the portfolio’s total effect is maximized.\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": [ 102, 104, 101, 104, 103, 103, 100, 101, 104, 105, 100, 100, 104, 103, 102 ], "quadratic_coeffs": [ [ 100, 103, 103, 103, 0, 100, 104, 0, 104, 103, 0, 104, 0, 0, 0 ], [ 0, 0, 0, 0, 102, 0, 101, 0, 100, 100, 100, 101, 102, 102, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 105, 0, 100, 104, 0, 103, 0, 104 ], [ 0, 0, 0, 0, 101, 0, 0, 102, 103, 0, 0, 101, 103, 102, 102 ], [ 0, 0, 0, 0, 0, 104, 104, 0, 0, 0, 0, 0, 0, 0, 105 ], [ 0, 0, 0, 0, 0, 100, 101, 0, 101, 0, 101, 0, 104, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 100, 0, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100, 0, 0, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 105, 103, 101, 105, 103, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 100, 102, 0, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0, 105, 104, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 100 ] ], "weights": [ 105, 102, 105, 103, 104, 101, 103, 100, 105, 105, 103, 102, 102, 100, 103 ], "capacity": 1163, "solution": [ 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 14 ], "obj": 4501.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 14 ], "obj": 4501.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 1163, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 102 }, { "item_id": 1, "linear_profit": 104 }, { "item_id": 2, "linear_profit": 101 }, { "item_id": 3, "linear_profit": 104 }, { "item_id": 4, "linear_profit": 103 }, { "item_id": 5, "linear_profit": 103 }, { "item_id": 6, "linear_profit": 100 }, { "item_id": 7, "linear_profit": 101 }, { "item_id": 8, "linear_profit": 104 }, { "item_id": 9, "linear_profit": 105 }, { "item_id": 10, "linear_profit": 100 }, { "item_id": 11, "linear_profit": 100 }, { "item_id": 12, "linear_profit": 104 }, { "item_id": 13, "linear_profit": 103 }, { "item_id": 14, "linear_profit": 102 } ], "weight_pairs": [ { "item_id": 0, "weight": 105 }, { "item_id": 1, "weight": 102 }, { "item_id": 2, "weight": 105 }, { "item_id": 3, "weight": 103 }, { "item_id": 4, "weight": 104 }, { "item_id": 5, "weight": 101 }, { "item_id": 6, "weight": 103 }, { "item_id": 7, "weight": 100 }, { "item_id": 8, "weight": 105 }, { "item_id": 9, "weight": 105 }, { "item_id": 10, "weight": 103 }, { "item_id": 11, "weight": 102 }, { "item_id": 12, "weight": 102 }, { "item_id": 13, "weight": 100 }, { "item_id": 14, "weight": 103 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 103 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 103 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 103 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 104 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 104 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 101 }, { "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": 100 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 104 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 8, "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": 13, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 100 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 100 }, { "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": 8, "item_j_id": 8, "quadratic_profit": 105 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 105 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 104 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 100 } ] }, "solution_variant": [ 0, 1, 2, 4, 5, 6, 8, 9, 10, 12, 14 ], "context_index": 12, "input_format": "markdown_table", "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 13 food options (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13) and a gear weight limit of 16392 to respect.\nBring 1 — it adds 1957 comfort on its own.\nBring 2 — it adds 3259 comfort on its own.\nBring 3 — it adds 6099 comfort on its own.\nBring 4 — it adds 3962 comfort on its own.\nBring 5 — it adds 2775 comfort on its own.\nBring 6 — it adds 5589 comfort on its own.\nBring 7 — it adds 785 comfort on its own.\nBring 8 — it adds 5779 comfort on its own.\nBring 9 — it adds 6437 comfort on its own.\nBring 10 — it adds 4569 comfort on its own.\nBring 11 — it adds 1616 comfort on its own.\nBring 12 — it adds 2718 comfort on its own.\nBring 13 — it adds 1369 comfort on its own.\n1 consumes 1307 of your pack's weight.\n2 consumes 2609 of your pack's weight.\n3 consumes 5449 of your pack's weight.\n4 consumes 3312 of your pack's weight.\n5 consumes 2125 of your pack's weight.\n6 consumes 4939 of your pack's weight.\n7 consumes 135 of your pack's weight.\n8 consumes 5129 of your pack's weight.\n9 consumes 5787 of your pack's weight.\n10 consumes 3919 of your pack's weight.\n11 consumes 966 of your pack's weight.\n12 consumes 2068 of your pack's weight.\n13 consumes 719 of your pack's weight.\nPacking 1 with 3 grants an extra 2754 morale bonus.\nPacking 1 with 5 grants an extra 2540 morale bonus.\nPacking 1 with 8 grants an extra 2742 morale bonus.\nPacking 1 with 11 grants an extra 2864 morale bonus.\nPacking 2 with 3 grants an extra 664 morale bonus.\nPacking 2 with 4 grants an extra 2297 morale bonus.\nPacking 2 with 7 grants an extra 2139 morale bonus.\nPacking 2 with 8 grants an extra 2935 morale bonus.\nPacking 2 with 10 grants an extra 3008 morale bonus.\nPacking 2 with 11 grants an extra 3657 morale bonus.\nPacking 3 with 5 grants an extra 4534 morale bonus.\nPacking 3 with 6 grants an extra 5603 morale bonus.\nPacking 3 with 8 grants an extra 4228 morale bonus.\nPacking 3 with 10 grants an extra 4895 morale bonus.\nPacking 3 with 11 grants an extra 3902 morale bonus.\nPacking 3 with 13 grants an extra 1168 morale bonus.\nPacking 4 with 5 grants an extra 3602 morale bonus.\nPacking 4 with 8 grants an extra 3060 morale bonus.\nPacking 4 with 11 grants an extra 1316 morale bonus.\nPacking 5 with 6 grants an extra 3057 morale bonus.\nPacking 5 with 7 grants an extra 2664 morale bonus.\nPacking 5 with 9 grants an extra 2107 morale bonus.\nPacking 5 with 11 grants an extra 3640 morale bonus.\nPacking 5 with 12 grants an extra 4782 morale bonus.\nPacking 6 with 7 grants an extra 4912 morale bonus.\nPacking 6 with 8 grants an extra 1459 morale bonus.\nPacking 6 with 10 grants an extra 2878 morale bonus.\nPacking 6 with 11 grants an extra 3051 morale bonus.\nPacking 7 with 9 grants an extra 4100 morale bonus.\nPacking 7 with 13 grants an extra 2882 morale bonus.\nPacking 8 with 10 grants an extra 2486 morale bonus.\nPacking 8 with 11 grants an extra 1615 morale bonus.\nPacking 8 with 12 grants an extra 1853 morale bonus.\nPacking 9 with 10 grants an extra 5123 morale bonus.\nPacking 9 with 11 grants an extra 6087 morale bonus.\nPacking 9 with 12 grants an extra 3791 morale bonus.\nPacking 10 with 12 grants an extra 2962 morale bonus.\nPacking 11 with 13 grants an extra 1020 morale bonus.\nPacking 12 with 13 grants an extra 6009 morale bonus.\nChoose the set that fits the 16392 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": [ 1957, 3259, 6099, 3962, 2775, 5589, 785, 5779, 6437, 4569, 1616, 2718, 1369 ], "quadratic_coeffs": [ [ 0, 0, 2754, 0, 2540, 0, 0, 2742, 0, 0, 2864, 0, 0 ], [ 0, 3853, 664, 2297, 0, 0, 2139, 2935, 0, 3008, 3657, 0, 0 ], [ 0, 0, 4372, 0, 4534, 5603, 0, 4228, 0, 4895, 3902, 0, 1168 ], [ 0, 0, 0, 0, 3602, 0, 0, 3060, 0, 0, 1316, 0, 0 ], [ 0, 0, 0, 0, 0, 3057, 2664, 0, 2107, 0, 3640, 4782, 0 ], [ 0, 0, 0, 0, 0, 0, 4912, 1459, 0, 2878, 3051, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 4100, 0, 0, 0, 2882 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2486, 1615, 1853, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 4439, 5123, 6087, 3791, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2781, 0, 2962, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2018, 0, 1020 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6009 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 954 ] ], "weights": [ 1307, 2609, 5449, 3312, 2125, 4939, 135, 5129, 5787, 3919, 966, 2068, 719 ], "capacity": 16392, "solution": [ 0, 1, 4, 6, 8, 10, 11, 12 ], "obj": 69198.0, "problem_type": "QKP" }, "solution": [ 0, 1, 4, 6, 8, 10, 11, 12 ], "obj": 69198.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 16392, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 1957 }, { "item_id": 2, "linear_profit": 3259 }, { "item_id": 3, "linear_profit": 6099 }, { "item_id": 4, "linear_profit": 3962 }, { "item_id": 5, "linear_profit": 2775 }, { "item_id": 6, "linear_profit": 5589 }, { "item_id": 7, "linear_profit": 785 }, { "item_id": 8, "linear_profit": 5779 }, { "item_id": 9, "linear_profit": 6437 }, { "item_id": 10, "linear_profit": 4569 }, { "item_id": 11, "linear_profit": 1616 }, { "item_id": 12, "linear_profit": 2718 }, { "item_id": 13, "linear_profit": 1369 } ], "weight_pairs": [ { "item_id": 1, "weight": 1307 }, { "item_id": 2, "weight": 2609 }, { "item_id": 3, "weight": 5449 }, { "item_id": 4, "weight": 3312 }, { "item_id": 5, "weight": 2125 }, { "item_id": 6, "weight": 4939 }, { "item_id": 7, "weight": 135 }, { "item_id": 8, "weight": 5129 }, { "item_id": 9, "weight": 5787 }, { "item_id": 10, "weight": 3919 }, { "item_id": 11, "weight": 966 }, { "item_id": 12, "weight": 2068 }, { "item_id": 13, "weight": 719 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 2754 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 2540 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 2742 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 2864 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 3853 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 664 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 2297 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 2139 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 2935 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 3008 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 3657 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 4372 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 4534 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 5603 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 4228 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 4895 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 3902 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 1168 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 3602 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 3060 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 1316 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 3057 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 2664 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 2107 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 3640 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 4782 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 4912 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 1459 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 2878 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 3051 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 4100 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 2882 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 2486 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 1615 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 1853 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 4439 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 5123 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 6087 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 3791 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 2781 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 2962 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 2018 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 1020 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 6009 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 954 } ] }, "solution_variant": [ 1, 2, 5, 7, 9, 11, 12, 13 ], "context_index": 13, "input_format": "nl", "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 14 distinct supplies (listed as 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14), and we have 691 total shelf volume to fill.\nWe get 137 usefulness if we stock 1.\nWe get 126 usefulness if we stock 2.\nWe get 146 usefulness if we stock 3.\nWe get 115 usefulness if we stock 4.\nWe get 111 usefulness if we stock 5.\nWe get 106 usefulness if we stock 6.\nWe get 106 usefulness if we stock 7.\nWe get 145 usefulness if we stock 8.\nWe get 114 usefulness if we stock 9.\nWe get 114 usefulness if we stock 10.\nWe get 131 usefulness if we stock 11.\nWe get 132 usefulness if we stock 12.\nWe get 150 usefulness if we stock 13.\nWe get 123 usefulness if we stock 14.\n1 occupies 136 shelf volume.\n2 occupies 120 shelf volume.\n3 occupies 141 shelf volume.\n4 occupies 108 shelf volume.\n5 occupies 115 shelf volume.\n6 occupies 109 shelf volume.\n7 occupies 104 shelf volume.\n8 occupies 143 shelf volume.\n9 occupies 110 shelf volume.\n10 occupies 113 shelf volume.\n11 occupies 131 shelf volume.\n12 occupies 125 shelf volume.\n13 occupies 142 shelf volume.\n14 occupies 117 shelf volume.\nIf we stock both 1 and 2, we gain 127 extra usefulness.\nIf we stock both 1 and 3, we gain 132 extra usefulness.\nIf we stock both 1 and 4, we gain 126 extra usefulness.\nIf we stock both 1 and 6, we gain 136 extra usefulness.\nIf we stock both 1 and 7, we gain 131 extra usefulness.\nIf we stock both 1 and 8, we gain 140 extra usefulness.\nIf we stock both 1 and 10, we gain 133 extra usefulness.\nIf we stock both 1 and 11, we gain 138 extra usefulness.\nIf we stock both 1 and 12, we gain 130 extra usefulness.\nIf we stock both 1 and 13, we gain 136 extra usefulness.\nIf we stock both 2 and 4, we gain 124 extra usefulness.\nIf we stock both 2 and 5, we gain 122 extra usefulness.\nIf we stock both 2 and 6, we gain 120 extra usefulness.\nIf we stock both 2 and 8, we gain 122 extra usefulness.\nIf we stock both 2 and 9, we gain 111 extra usefulness.\nIf we stock both 2 and 11, we gain 121 extra usefulness.\nIf we stock both 2 and 12, we gain 129 extra usefulness.\nIf we stock both 2 and 14, we gain 128 extra usefulness.\nIf we stock both 3 and 4, we gain 144 extra usefulness.\nIf we stock both 3 and 6, we gain 126 extra usefulness.\nIf we stock both 3 and 7, we gain 121 extra usefulness.\nIf we stock both 3 and 8, we gain 131 extra usefulness.\nIf we stock both 3 and 10, we gain 143 extra usefulness.\nIf we stock both 3 and 11, we gain 131 extra usefulness.\nIf we stock both 3 and 12, we gain 137 extra usefulness.\nIf we stock both 3 and 13, we gain 123 extra usefulness.\nIf we stock both 4 and 6, we gain 113 extra usefulness.\nIf we stock both 4 and 7, we gain 110 extra usefulness.\nIf we stock both 4 and 9, we gain 113 extra usefulness.\nIf we stock both 4 and 11, we gain 124 extra usefulness.\nIf we stock both 4 and 12, we gain 121 extra usefulness.\nIf we stock both 4 and 13, we gain 129 extra usefulness.\nIf we stock both 4 and 14, we gain 117 extra usefulness.\nIf we stock both 5 and 6, we gain 102 extra usefulness.\nIf we stock both 5 and 7, we gain 116 extra usefulness.\nIf we stock both 5 and 9, we gain 128 extra usefulness.\nIf we stock both 5 and 10, we gain 126 extra usefulness.\nIf we stock both 5 and 11, we gain 124 extra usefulness.\nIf we stock both 5 and 12, we gain 111 extra usefulness.\nIf we stock both 5 and 13, we gain 125 extra usefulness.\nIf we stock both 6 and 7, we gain 134 extra usefulness.\nIf we stock both 6 and 8, we gain 127 extra usefulness.\nIf we stock both 6 and 9, we gain 141 extra usefulness.\nIf we stock both 6 and 10, we gain 118 extra usefulness.\nIf we stock both 6 and 12, we gain 141 extra usefulness.\nIf we stock both 6 and 13, we gain 122 extra usefulness.\nIf we stock both 7 and 9, we gain 119 extra usefulness.\nIf we stock both 7 and 10, we gain 124 extra usefulness.\nIf we stock both 7 and 11, we gain 127 extra usefulness.\nIf we stock both 7 and 12, we gain 130 extra usefulness.\nIf we stock both 7 and 14, we gain 118 extra usefulness.\nIf we stock both 8 and 9, we gain 119 extra usefulness.\nIf we stock both 8 and 10, we gain 115 extra usefulness.\nIf we stock both 8 and 11, we gain 128 extra usefulness.\nIf we stock both 8 and 13, we gain 119 extra usefulness.\nIf we stock both 8 and 14, we gain 120 extra usefulness.\nIf we stock both 9 and 10, we gain 136 extra usefulness.\nIf we stock both 9 and 11, we gain 133 extra usefulness.\nIf we stock both 9 and 12, we gain 136 extra usefulness.\nIf we stock both 9 and 13, we gain 131 extra usefulness.\nIf we stock both 9 and 14, we gain 124 extra usefulness.\nIf we stock both 10 and 11, we gain 143 extra usefulness.\nIf we stock both 10 and 14, we gain 129 extra usefulness.\nWe'll pick non-duplicated supplies that fit within 691 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": [ 137, 126, 146, 115, 111, 106, 106, 145, 114, 114, 131, 132, 150, 123 ], "quadratic_coeffs": [ [ 136, 127, 132, 126, 0, 136, 131, 140, 0, 133, 138, 130, 136, 0 ], [ 0, 112, 0, 124, 122, 120, 0, 122, 111, 0, 121, 129, 0, 128 ], [ 0, 0, 128, 144, 0, 126, 121, 131, 0, 143, 131, 137, 123, 0 ], [ 0, 0, 0, 0, 0, 113, 110, 0, 113, 0, 124, 121, 129, 117 ], [ 0, 0, 0, 0, 111, 102, 116, 0, 128, 126, 124, 111, 125, 0 ], [ 0, 0, 0, 0, 0, 138, 134, 127, 141, 118, 0, 141, 122, 0 ], [ 0, 0, 0, 0, 0, 0, 141, 0, 119, 124, 127, 130, 0, 118 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 119, 115, 128, 0, 119, 120 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 132, 136, 133, 136, 131, 124 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 126, 143, 0, 0, 129 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 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": [ 136, 120, 141, 108, 115, 109, 104, 143, 110, 113, 131, 125, 142, 117 ], "capacity": 691, "solution": [ 4, 5, 6, 8, 9, 10 ], "obj": 2453.0, "problem_type": "QKP" }, "solution": [ 4, 5, 6, 8, 9, 10 ], "obj": 2453.0, "instance_variant": { "problem_type": "QKP", "num_items": 14, "capacity": 691, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 137 }, { "item_id": 2, "linear_profit": 126 }, { "item_id": 3, "linear_profit": 146 }, { "item_id": 4, "linear_profit": 115 }, { "item_id": 5, "linear_profit": 111 }, { "item_id": 6, "linear_profit": 106 }, { "item_id": 7, "linear_profit": 106 }, { "item_id": 8, "linear_profit": 145 }, { "item_id": 9, "linear_profit": 114 }, { "item_id": 10, "linear_profit": 114 }, { "item_id": 11, "linear_profit": 131 }, { "item_id": 12, "linear_profit": 132 }, { "item_id": 13, "linear_profit": 150 }, { "item_id": 14, "linear_profit": 123 } ], "weight_pairs": [ { "item_id": 1, "weight": 136 }, { "item_id": 2, "weight": 120 }, { "item_id": 3, "weight": 141 }, { "item_id": 4, "weight": 108 }, { "item_id": 5, "weight": 115 }, { "item_id": 6, "weight": 109 }, { "item_id": 7, "weight": 104 }, { "item_id": 8, "weight": 143 }, { "item_id": 9, "weight": 110 }, { "item_id": 10, "weight": 113 }, { "item_id": 11, "weight": 131 }, { "item_id": 12, "weight": 125 }, { "item_id": 13, "weight": 142 }, { "item_id": 14, "weight": 117 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 136 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 127 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 132 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 126 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 136 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 131 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 140 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 133 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 138 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 130 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 136 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 112 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 124 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 122 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 120 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 122 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 121 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 129 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 128 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 128 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 144 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 126 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 121 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 131 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 143 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 131 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 137 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 123 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 113 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 110 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 113 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 124 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 121 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 129 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 117 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 116 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 128 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 126 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 124 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 125 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 138 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 134 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 127 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 141 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 118 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 141 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 122 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 141 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 119 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 124 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 127 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 130 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 118 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 119 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 115 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 128 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 119 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 120 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 132 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 136 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 133 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 136 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 131 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 124 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 126 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 143 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 129 } ] }, "solution_variant": [ 5, 6, 7, 9, 10, 11 ], "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=15\n# max_kit_weight=319\n# available_item_ids=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15\n\nitem_identifier,base_learning_value\n1,427\n2,589\n3,340\n4,760\n5,297\n6,416\n7,730\n8,168\n9,694\n10,614\n11,457\n12,135\n13,485\n14,424\n15,420\n\nitem_identifier,item_weight\n1,239\n2,313\n3,588\n4,583\n5,751\n6,890\n7,759\n8,646\n9,102\n10,205\n11,101\n12,801\n13,494\n14,132\n15,748\n\nitem_i_identifier,item_j_identifier,interaction_learning_bonus\n1,2,340\n1,5,136\n1,6,499\n1,7,725\n1,10,279\n1,12,300\n1,14,337\n2,3,433\n2,4,836\n2,5,817\n2,8,757\n2,12,449\n2,13,792\n2,14,261\n3,4,278\n3,5,740\n3,6,113\n3,7,357\n3,8,849\n3,10,297\n3,11,269\n3,13,501\n3,14,388\n3,15,756\n4,5,558\n4,6,196\n4,7,495\n4,8,206\n4,9,729\n4,12,497\n4,14,246\n4,15,868\n5,6,469\n5,9,663\n5,11,769\n5,12,156\n5,13,519\n5,15,751\n6,11,880\n6,12,300\n6,15,683\n7,8,555\n7,9,459\n7,11,310\n7,12,656\n7,13,884\n7,14,502\n8,10,275\n8,11,837\n8,13,185\n8,14,306\n8,15,370\n9,13,417\n9,14,339\n9,15,859\n10,12,536\n10,13,708\n10,14,352\n10,15,359\n11,13,206\n11,14,191\n12,13,552\n12,14,578\n13,14,460\n14,15,735\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": [ 427, 589, 340, 760, 297, 416, 730, 168, 694, 614, 457, 135, 485, 424, 420 ], "quadratic_coeffs": [ [ 0, 340, 0, 0, 136, 499, 725, 0, 0, 279, 0, 300, 0, 337, 0 ], [ 0, 0, 433, 836, 817, 0, 0, 757, 0, 0, 0, 449, 792, 261, 0 ], [ 0, 0, 847, 278, 740, 113, 357, 849, 0, 297, 269, 0, 501, 388, 756 ], [ 0, 0, 0, 0, 558, 196, 495, 206, 729, 0, 0, 497, 0, 246, 868 ], [ 0, 0, 0, 0, 0, 469, 0, 0, 663, 0, 769, 156, 519, 0, 751 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 880, 300, 0, 0, 683 ], [ 0, 0, 0, 0, 0, 0, 0, 555, 459, 0, 310, 656, 884, 502, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 378, 0, 275, 837, 0, 185, 306, 370 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 426, 0, 0, 0, 417, 339, 859 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 653, 0, 536, 708, 352, 359 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 191, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 552, 578, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 462, 460, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 338, 735 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 360 ] ], "weights": [ 239, 313, 588, 583, 751, 890, 759, 646, 102, 205, 101, 801, 494, 132, 748 ], "capacity": 319, "solution": [ 8, 13 ], "obj": 1457.0, "problem_type": "QKP" }, "solution": [ 8, 13 ], "obj": 1457.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 319, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 427 }, { "item_id": 2, "linear_profit": 589 }, { "item_id": 3, "linear_profit": 340 }, { "item_id": 4, "linear_profit": 760 }, { "item_id": 5, "linear_profit": 297 }, { "item_id": 6, "linear_profit": 416 }, { "item_id": 7, "linear_profit": 730 }, { "item_id": 8, "linear_profit": 168 }, { "item_id": 9, "linear_profit": 694 }, { "item_id": 10, "linear_profit": 614 }, { "item_id": 11, "linear_profit": 457 }, { "item_id": 12, "linear_profit": 135 }, { "item_id": 13, "linear_profit": 485 }, { "item_id": 14, "linear_profit": 424 }, { "item_id": 15, "linear_profit": 420 } ], "weight_pairs": [ { "item_id": 1, "weight": 239 }, { "item_id": 2, "weight": 313 }, { "item_id": 3, "weight": 588 }, { "item_id": 4, "weight": 583 }, { "item_id": 5, "weight": 751 }, { "item_id": 6, "weight": 890 }, { "item_id": 7, "weight": 759 }, { "item_id": 8, "weight": 646 }, { "item_id": 9, "weight": 102 }, { "item_id": 10, "weight": 205 }, { "item_id": 11, "weight": 101 }, { "item_id": 12, "weight": 801 }, { "item_id": 13, "weight": 494 }, { "item_id": 14, "weight": 132 }, { "item_id": 15, "weight": 748 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 340 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 136 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 499 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 725 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 279 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 300 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 337 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 433 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 836 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 817 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 757 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 449 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 792 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 261 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 847 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 278 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 740 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 113 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 357 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 849 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 297 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 269 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 501 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 388 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 756 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 558 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 196 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 495 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 206 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 729 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 497 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 246 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 868 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 469 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 663 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 769 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 156 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 519 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 751 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 880 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 300 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 683 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 555 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 459 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 310 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 656 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 884 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 502 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 378 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 275 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 837 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 185 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 306 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 370 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 426 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 417 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 339 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 859 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 653 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 536 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 708 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 352 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 359 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 206 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 191 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 552 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 578 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 462 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 460 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 338 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 735 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 360 } ] }, "solution_variant": [ 9, 14 ], "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 14 prints available — A, B, C, D, E, F, G, H, I, J, K, L, M, N — and the curator has 1654 total wall area to allocate.\nPrint A provides a base visual value of 127 when hung.\nPrint B provides a base visual value of 116 when hung.\nPrint C provides a base visual value of 146 when hung.\nPrint D provides a base visual value of 105 when hung.\nPrint E provides a base visual value of 137 when hung.\nPrint F provides a base visual value of 123 when hung.\nPrint G provides a base visual value of 110 when hung.\nPrint H provides a base visual value of 147 when hung.\nPrint I provides a base visual value of 142 when hung.\nPrint J provides a base visual value of 146 when hung.\nPrint K provides a base visual value of 138 when hung.\nPrint L provides a base visual value of 112 when hung.\nPrint M provides a base visual value of 139 when hung.\nPrint N provides a base visual value of 133 when hung.\nPrint A consumes 113 of the available wall area.\nPrint B consumes 135 of the available wall area.\nPrint C consumes 134 of the available wall area.\nPrint D consumes 102 of the available wall area.\nPrint E consumes 135 of the available wall area.\nPrint F consumes 122 of the available wall area.\nPrint G consumes 127 of the available wall area.\nPrint H consumes 106 of the available wall area.\nPrint I consumes 121 of the available wall area.\nPrint J consumes 121 of the available wall area.\nPrint K consumes 111 of the available wall area.\nPrint L consumes 124 of the available wall area.\nPrint M consumes 140 of the available wall area.\nPrint N consumes 113 of the available wall area.\nDisplaying prints A and C together yields an additional synergy of 129.\nDisplaying prints A and D together yields an additional synergy of 111.\nDisplaying prints A and E together yields an additional synergy of 118.\nDisplaying prints A and F together yields an additional synergy of 114.\nDisplaying prints A and H together yields an additional synergy of 111.\nDisplaying prints A and I together yields an additional synergy of 127.\nDisplaying prints A and J together yields an additional synergy of 122.\nDisplaying prints A and K together yields an additional synergy of 128.\nDisplaying prints A and L together yields an additional synergy of 121.\nDisplaying prints B and C together yields an additional synergy of 131.\nDisplaying prints B and D together yields an additional synergy of 124.\nDisplaying prints B and E together yields an additional synergy of 120.\nDisplaying prints B and F together yields an additional synergy of 131.\nDisplaying prints B and G together yields an additional synergy of 119.\nDisplaying prints B and H together yields an additional synergy of 124.\nDisplaying prints B and I together yields an additional synergy of 122.\nDisplaying prints B and J together yields an additional synergy of 139.\nDisplaying prints B and K together yields an additional synergy of 104.\nDisplaying prints B and L together yields an additional synergy of 115.\nDisplaying prints B and M together yields an additional synergy of 122.\nDisplaying prints C and E together yields an additional synergy of 138.\nDisplaying prints C and G together yields an additional synergy of 121.\nDisplaying prints C and H together yields an additional synergy of 139.\nDisplaying prints C and I together yields an additional synergy of 116.\nDisplaying prints C and J together yields an additional synergy of 132.\nDisplaying prints C and L together yields an additional synergy of 113.\nDisplaying prints C and M together yields an additional synergy of 105.\nDisplaying prints C and N together yields an additional synergy of 118.\nDisplaying prints D and H together yields an additional synergy of 120.\nDisplaying prints D and I together yields an additional synergy of 112.\nDisplaying prints D and K together yields an additional synergy of 130.\nDisplaying prints D and L together yields an additional synergy of 125.\nDisplaying prints D and N together yields an additional synergy of 143.\nDisplaying prints E and F together yields an additional synergy of 139.\nDisplaying prints E and H together yields an additional synergy of 133.\nDisplaying prints E and J together yields an additional synergy of 123.\nDisplaying prints E and K together yields an additional synergy of 127.\nDisplaying prints E and L together yields an additional synergy of 127.\nDisplaying prints E and M together yields an additional synergy of 116.\nDisplaying prints E and N together yields an additional synergy of 116.\nDisplaying prints F and G together yields an additional synergy of 121.\nDisplaying prints F and I together yields an additional synergy of 107.\nDisplaying prints F and J together yields an additional synergy of 125.\nDisplaying prints F and K together yields an additional synergy of 114.\nDisplaying prints F and M together yields an additional synergy of 123.\nDisplaying prints F and N together yields an additional synergy of 114.\nDisplaying prints G and H together yields an additional synergy of 113.\nDisplaying prints G and J together yields an additional synergy of 124.\nDisplaying prints G and K together yields an additional synergy of 116.\nDisplaying prints G and L together yields an additional synergy of 114.\nDisplaying prints G and M together yields an additional synergy of 110.\nDisplaying prints H and I together yields an additional synergy of 115.\nDisplaying prints H and J together yields an additional synergy of 120.\nDisplaying prints H and L together yields an additional synergy of 121.\nDisplaying prints H and M together yields an additional synergy of 124.\nDisplaying prints H and N together yields an additional synergy of 117.\nDisplaying prints I and J together yields an additional synergy of 126.\nDisplaying prints I and K together yields an additional synergy of 134.\nDisplaying prints I and L together yields an additional synergy of 122.\nDisplaying prints I and M together yields an additional synergy of 117.\nDisplaying prints I and N together yields an additional synergy of 141.\nDisplaying prints J and K together yields an additional synergy of 143.\nDisplaying prints J and L together yields an additional synergy of 127.\nDisplaying prints J and M together yields an additional synergy of 122.\nDisplaying prints J and N together yields an additional synergy of 133.\nDisplaying prints K and L together yields an additional synergy of 119.\nDisplaying prints K and N together yields an additional synergy of 112.\nDisplaying prints L and M together yields an additional synergy of 125.\nDisplaying prints L and N together yields an additional synergy of 126.\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": [ 127, 116, 146, 105, 137, 123, 110, 147, 142, 146, 138, 112, 139, 133 ], "quadratic_coeffs": [ [ 114, 0, 129, 111, 118, 114, 0, 111, 127, 122, 128, 121, 0, 0 ], [ 0, 139, 131, 124, 120, 131, 119, 124, 122, 139, 104, 115, 122, 0 ], [ 0, 0, 0, 0, 138, 0, 121, 139, 116, 132, 0, 113, 105, 118 ], [ 0, 0, 0, 101, 0, 0, 0, 120, 112, 0, 130, 125, 0, 143 ], [ 0, 0, 0, 0, 122, 139, 0, 133, 0, 123, 127, 127, 116, 116 ], [ 0, 0, 0, 0, 0, 120, 121, 0, 107, 125, 114, 0, 123, 114 ], [ 0, 0, 0, 0, 0, 0, 135, 113, 0, 124, 116, 114, 110, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 118, 115, 120, 0, 121, 124, 117 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 103, 126, 134, 122, 117, 141 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 143, 127, 122, 133 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 119, 0, 112 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 145, 125, 126 ], [ 0, 0, 0, 0, 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": [ 113, 135, 134, 102, 135, 122, 127, 106, 121, 121, 111, 124, 140, 113 ], "capacity": 1654, "solution": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "obj": 9301.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "obj": 9301.0, "instance_variant": { "problem_type": "QKP", "num_items": 14, "capacity": 1654, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 127 }, { "item_id": "B", "linear_profit": 116 }, { "item_id": "C", "linear_profit": 146 }, { "item_id": "D", "linear_profit": 105 }, { "item_id": "E", "linear_profit": 137 }, { "item_id": "F", "linear_profit": 123 }, { "item_id": "G", "linear_profit": 110 }, { "item_id": "H", "linear_profit": 147 }, { "item_id": "I", "linear_profit": 142 }, { "item_id": "J", "linear_profit": 146 }, { "item_id": "K", "linear_profit": 138 }, { "item_id": "L", "linear_profit": 112 }, { "item_id": "M", "linear_profit": 139 }, { "item_id": "N", "linear_profit": 133 } ], "weight_pairs": [ { "item_id": "A", "weight": 113 }, { "item_id": "B", "weight": 135 }, { "item_id": "C", "weight": 134 }, { "item_id": "D", "weight": 102 }, { "item_id": "E", "weight": 135 }, { "item_id": "F", "weight": 122 }, { "item_id": "G", "weight": 127 }, { "item_id": "H", "weight": 106 }, { "item_id": "I", "weight": 121 }, { "item_id": "J", "weight": 121 }, { "item_id": "K", "weight": 111 }, { "item_id": "L", "weight": 124 }, { "item_id": "M", "weight": 140 }, { "item_id": "N", "weight": 113 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 114 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 129 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 111 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 118 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 114 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 111 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 127 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 128 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 121 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 131 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 124 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 120 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 131 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 119 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 124 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 122 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 104 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 115 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 122 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 138 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 121 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 139 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 116 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 132 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 113 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 105 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 118 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 120 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 112 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 130 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 125 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 143 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 122 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 139 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 133 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 123 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 127 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 127 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 116 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 116 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 120 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 121 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 107 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 125 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 114 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 123 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 114 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 135 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 113 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 124 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 116 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 114 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 110 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 118 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 115 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 120 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 121 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 124 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 117 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 103 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 126 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 134 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 122 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 117 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 141 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 123 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 143 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 127 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 122 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 133 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 123 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 119 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 112 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 145 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 125 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 126 } ] }, "solution_variant": [ "A", "B", "C", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N" ], "context_index": 16, "input_format": "nl", "input_index_base": "names" }, { "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\n{\n \"num_amenities\": 14,\n \"kit_weight_capacity\": 3110,\n \"amenity_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 ],\n \"linear\": [\n {\n \"amenity_id\": 1,\n \"base_satisfaction\": 451\n },\n {\n \"amenity_id\": 2,\n \"base_satisfaction\": 442\n },\n {\n \"amenity_id\": 3,\n \"base_satisfaction\": 373\n },\n {\n \"amenity_id\": 4,\n \"base_satisfaction\": 537\n },\n {\n \"amenity_id\": 5,\n \"base_satisfaction\": 270\n },\n {\n \"amenity_id\": 6,\n \"base_satisfaction\": 161\n },\n {\n \"amenity_id\": 7,\n \"base_satisfaction\": 288\n },\n {\n \"amenity_id\": 8,\n \"base_satisfaction\": 520\n },\n {\n \"amenity_id\": 9,\n \"base_satisfaction\": 274\n },\n {\n \"amenity_id\": 10,\n \"base_satisfaction\": 309\n },\n {\n \"amenity_id\": 11,\n \"base_satisfaction\": 257\n },\n {\n \"amenity_id\": 12,\n \"base_satisfaction\": 481\n },\n {\n \"amenity_id\": 13,\n \"base_satisfaction\": 356\n },\n {\n \"amenity_id\": 14,\n \"base_satisfaction\": 209\n }\n ],\n \"weights\": [\n {\n \"amenity_id\": 1,\n \"amenity_weight\": 401\n },\n {\n \"amenity_id\": 2,\n \"amenity_weight\": 392\n },\n {\n \"amenity_id\": 3,\n \"amenity_weight\": 323\n },\n {\n \"amenity_id\": 4,\n \"amenity_weight\": 487\n },\n {\n \"amenity_id\": 5,\n \"amenity_weight\": 220\n },\n {\n \"amenity_id\": 6,\n \"amenity_weight\": 111\n },\n {\n \"amenity_id\": 7,\n \"amenity_weight\": 238\n },\n {\n \"amenity_id\": 8,\n \"amenity_weight\": 470\n },\n {\n \"amenity_id\": 9,\n \"amenity_weight\": 224\n },\n {\n \"amenity_id\": 10,\n \"amenity_weight\": 259\n },\n {\n \"amenity_id\": 11,\n \"amenity_weight\": 207\n },\n {\n \"amenity_id\": 12,\n \"amenity_weight\": 431\n },\n {\n \"amenity_id\": 13,\n \"amenity_weight\": 306\n },\n {\n \"amenity_id\": 14,\n \"amenity_weight\": 159\n }\n ],\n \"quadratic\": [\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 2,\n \"pair_bonus_satisfaction\": 184\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 3,\n \"pair_bonus_satisfaction\": 401\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 4,\n \"pair_bonus_satisfaction\": 294\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 5,\n \"pair_bonus_satisfaction\": 292\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 6,\n \"pair_bonus_satisfaction\": 134\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 7,\n \"pair_bonus_satisfaction\": 218\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 8,\n \"pair_bonus_satisfaction\": 369\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 9,\n \"pair_bonus_satisfaction\": 401\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 10,\n \"pair_bonus_satisfaction\": 262\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 266\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 145\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 213\n },\n {\n \"amenity_i_id\": 1,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 288\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 3,\n \"pair_bonus_satisfaction\": 255\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 4,\n \"pair_bonus_satisfaction\": 392\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 5,\n \"pair_bonus_satisfaction\": 160\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 6,\n \"pair_bonus_satisfaction\": 131\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 7,\n \"pair_bonus_satisfaction\": 326\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 8,\n \"pair_bonus_satisfaction\": 148\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 9,\n \"pair_bonus_satisfaction\": 392\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 10,\n \"pair_bonus_satisfaction\": 311\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 340\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 337\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 139\n },\n {\n \"amenity_i_id\": 2,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 139\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 4,\n \"pair_bonus_satisfaction\": 323\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 5,\n \"pair_bonus_satisfaction\": 131\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 6,\n \"pair_bonus_satisfaction\": 323\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 7,\n \"pair_bonus_satisfaction\": 281\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 8,\n \"pair_bonus_satisfaction\": 323\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 9,\n \"pair_bonus_satisfaction\": 281\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 10,\n \"pair_bonus_satisfaction\": 323\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 323\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 323\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 125\n },\n {\n \"amenity_i_id\": 3,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 132\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 5,\n \"pair_bonus_satisfaction\": 369\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 6,\n \"pair_bonus_satisfaction\": 305\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 7,\n \"pair_bonus_satisfaction\": 379\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 8,\n \"pair_bonus_satisfaction\": 407\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 9,\n \"pair_bonus_satisfaction\": 363\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 10,\n \"pair_bonus_satisfaction\": 485\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 216\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 217\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 436\n },\n {\n \"amenity_i_id\": 4,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 436\n },\n {\n \"amenity_i_id\": 5,\n \"amenity_j_id\": 6,\n \"pair_bonus_satisfaction\": 220\n },\n {\n \"amenity_i_id\": 5,\n \"amenity_j_id\": 7,\n \"pair_bonus_satisfaction\": 220\n },\n {\n \"amenity_i_id\": 5,\n \"amenity_j_id\": 8,\n \"pair_bonus_satisfaction\": 220\n },\n {\n \"amenity_i_id\": 5,\n \"amenity_j_id\": 9,\n \"pair_bonus_satisfaction\": 220\n },\n {\n \"amenity_i_id\": 5,\n \"amenity_j_id\": 10,\n \"pair_bonus_satisfaction\": 220\n },\n {\n \"amenity_i_id\": 5,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 184\n },\n {\n \"amenity_i_id\": 5,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 220\n },\n {\n \"amenity_i_id\": 5,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 231\n },\n {\n \"amenity_i_id\": 5,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 478\n },\n {\n \"amenity_i_id\": 6,\n \"amenity_j_id\": 7,\n \"pair_bonus_satisfaction\": 111\n },\n {\n \"amenity_i_id\": 6,\n \"amenity_j_id\": 8,\n \"pair_bonus_satisfaction\": 111\n },\n {\n \"amenity_i_id\": 6,\n \"amenity_j_id\": 9,\n \"pair_bonus_satisfaction\": 111\n },\n {\n \"amenity_i_id\": 6,\n \"amenity_j_id\": 10,\n \"pair_bonus_satisfaction\": 280\n },\n {\n \"amenity_i_id\": 6,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 403\n },\n {\n \"amenity_i_id\": 6,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 403\n },\n {\n \"amenity_i_id\": 6,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 221\n },\n {\n \"amenity_i_id\": 6,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 270\n },\n {\n \"amenity_i_id\": 7,\n \"amenity_j_id\": 8,\n \"pair_bonus_satisfaction\": 216\n },\n {\n \"amenity_i_id\": 7,\n \"amenity_j_id\": 9,\n \"pair_bonus_satisfaction\": 217\n },\n {\n \"amenity_i_id\": 7,\n \"amenity_j_id\": 10,\n \"pair_bonus_satisfaction\": 231\n },\n {\n \"amenity_i_id\": 7,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 139\n },\n {\n \"amenity_i_id\": 7,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 243\n },\n {\n \"amenity_i_id\": 7,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 243\n },\n {\n \"amenity_i_id\": 7,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 243\n },\n {\n \"amenity_i_id\": 8,\n \"amenity_j_id\": 9,\n \"pair_bonus_satisfaction\": 470\n },\n {\n \"amenity_i_id\": 8,\n \"amenity_j_id\": 10,\n \"pair_bonus_satisfaction\": 148\n },\n {\n \"amenity_i_id\": 8,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 148\n },\n {\n \"amenity_i_id\": 8,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 305\n },\n {\n \"amenity_i_id\": 8,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 396\n },\n {\n \"amenity_i_id\": 8,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 396\n },\n {\n \"amenity_i_id\": 9,\n \"amenity_j_id\": 10,\n \"pair_bonus_satisfaction\": 131\n },\n {\n \"amenity_i_id\": 9,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 131\n },\n {\n \"amenity_i_id\": 9,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 131\n },\n {\n \"amenity_i_id\": 9,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 131\n },\n {\n \"amenity_i_id\": 9,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 131\n },\n {\n \"amenity_i_id\": 10,\n \"amenity_j_id\": 11,\n \"pair_bonus_satisfaction\": 442\n },\n {\n \"amenity_i_id\": 10,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 213\n },\n {\n \"amenity_i_id\": 10,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 106\n },\n {\n \"amenity_i_id\": 10,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 106\n },\n {\n \"amenity_i_id\": 11,\n \"amenity_j_id\": 12,\n \"pair_bonus_satisfaction\": 173\n },\n {\n \"amenity_i_id\": 11,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 420\n },\n {\n \"amenity_i_id\": 11,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 173\n },\n {\n \"amenity_i_id\": 12,\n \"amenity_j_id\": 13,\n \"pair_bonus_satisfaction\": 405\n },\n {\n \"amenity_i_id\": 12,\n \"amenity_j_id\": 14,\n \"pair_bonus_satisfaction\": 302\n }\n ]\n}\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": [ 451, 442, 373, 537, 270, 161, 288, 520, 274, 309, 257, 481, 356, 209 ], "quadratic_coeffs": [ [ 401, 184, 401, 294, 292, 134, 218, 369, 401, 262, 266, 145, 213, 288 ], [ 0, 295, 255, 392, 160, 131, 326, 148, 392, 311, 340, 337, 139, 139 ], [ 0, 0, 323, 323, 131, 323, 281, 323, 281, 323, 323, 323, 125, 132 ], [ 0, 0, 0, 297, 369, 305, 379, 407, 363, 485, 216, 217, 436, 436 ], [ 0, 0, 0, 0, 220, 220, 220, 220, 220, 220, 184, 220, 231, 478 ], [ 0, 0, 0, 0, 0, 111, 111, 111, 111, 280, 403, 403, 221, 270 ], [ 0, 0, 0, 0, 0, 0, 238, 216, 217, 231, 139, 243, 243, 243 ], [ 0, 0, 0, 0, 0, 0, 0, 206, 470, 148, 148, 305, 396, 396 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 224, 131, 131, 131, 131, 131 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 126, 442, 213, 106, 106 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 342, 173, 420, 173 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 405, 405, 302 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 401, 392, 323, 487, 220, 111, 238, 470, 224, 259, 207, 431, 306, 159 ], "capacity": 3110, "solution": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13 ], "obj": 18344.0, "problem_type": "QKP" }, "solution": [ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13 ], "obj": 18344.0, "instance_variant": { "problem_type": "QKP", "num_items": 14, "capacity": 3110, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 451 }, { "item_id": 2, "linear_profit": 442 }, { "item_id": 3, "linear_profit": 373 }, { "item_id": 4, "linear_profit": 537 }, { "item_id": 5, "linear_profit": 270 }, { "item_id": 6, "linear_profit": 161 }, { "item_id": 7, "linear_profit": 288 }, { "item_id": 8, "linear_profit": 520 }, { "item_id": 9, "linear_profit": 274 }, { "item_id": 10, "linear_profit": 309 }, { "item_id": 11, "linear_profit": 257 }, { "item_id": 12, "linear_profit": 481 }, { "item_id": 13, "linear_profit": 356 }, { "item_id": 14, "linear_profit": 209 } ], "weight_pairs": [ { "item_id": 1, "weight": 401 }, { "item_id": 2, "weight": 392 }, { "item_id": 3, "weight": 323 }, { "item_id": 4, "weight": 487 }, { "item_id": 5, "weight": 220 }, { "item_id": 6, "weight": 111 }, { "item_id": 7, "weight": 238 }, { "item_id": 8, "weight": 470 }, { "item_id": 9, "weight": 224 }, { "item_id": 10, "weight": 259 }, { "item_id": 11, "weight": 207 }, { "item_id": 12, "weight": 431 }, { "item_id": 13, "weight": 306 }, { "item_id": 14, "weight": 159 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 401 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 184 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 401 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 294 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 292 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 134 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 218 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 369 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 401 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 262 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 266 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 145 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 213 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 288 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 295 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 255 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 392 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 131 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 326 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 148 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 392 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 311 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 340 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 337 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 139 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 139 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 323 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 323 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 131 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 323 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 281 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 323 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 281 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 323 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 323 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 323 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 125 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 132 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 297 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 369 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 305 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 379 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 407 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 363 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 485 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 216 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 217 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 436 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 436 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 220 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 220 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 220 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 220 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 220 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 220 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 184 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 220 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 231 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 478 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 280 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 403 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 403 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 221 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 270 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 238 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 216 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 217 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 231 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 139 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 243 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 243 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 243 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 206 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 470 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 148 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 148 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 305 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 396 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 396 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 224 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 131 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 131 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 131 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 131 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 131 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 126 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 442 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 213 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 106 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 106 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 342 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 173 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 420 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 173 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 405 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 405 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 302 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 214 } ] }, "solution_variant": [ 1, 3, 4, 5, 6, 7, 8, 9, 10, 11, 14 ], "context_index": 17, "input_format": "json", "input_index_base": 1 }, { "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\nSpecifically, there are 15 experiments labeled A, B, C, D, E, F, G, H, I, J, K, L, M, N, O and 2582 total bench time for the session.\n\n| experiment_id_for_time | base_scientific_value |\n|---|---|\n| A | 443 |\n| B | 465 |\n| C | 225 |\n| D | 354 |\n| E | 347 |\n| F | 91 |\n| G | 155 |\n| H | 107 |\n| I | 418 |\n| J | 229 |\n| K | 418 |\n| L | 394 |\n| M | 436 |\n| N | 120 |\n| O | 325 |\n\n| experiment_id_for_time | duration |\n|---|---|\n| A | 444 |\n| B | 440 |\n| C | 202 |\n| D | 363 |\n| E | 344 |\n| F | 107 |\n| G | 165 |\n| H | 108 |\n| I | 404 |\n| J | 240 |\n| K | 409 |\n| L | 403 |\n| M | 457 |\n| N | 121 |\n| O | 306 |\n\n| experiment_i_id | experiment_j_id | pair_synergy_value |\n|---|---|---|\n| A | B | 248 |\n| A | C | 128 |\n| A | D | 423 |\n| A | E | 285 |\n| A | F | 444 |\n| A | G | 339 |\n| A | H | 211 |\n| A | I | 108 |\n| A | J | 379 |\n| A | K | 318 |\n| A | L | 444 |\n| A | M | 306 |\n| A | N | 284 |\n| A | O | 218 |\n| B | C | 196 |\n| B | D | 440 |\n| B | E | 205 |\n| B | F | 141 |\n| B | G | 211 |\n| B | H | 238 |\n| B | I | 212 |\n| B | J | 409 |\n| B | K | 147 |\n| B | L | 440 |\n| B | M | 440 |\n| B | N | 170 |\n| B | O | 170 |\n| C | D | 136 |\n| C | E | 202 |\n| C | F | 202 |\n| C | G | 202 |\n| C | H | 202 |\n| C | I | 124 |\n| C | J | 202 |\n| C | K | 122 |\n| C | L | 146 |\n| C | M | 262 |\n| C | N | 196 |\n| C | O | 101 |\n| D | E | 158 |\n| D | F | 219 |\n| D | G | 356 |\n| D | H | 363 |\n| D | I | 275 |\n| D | J | 363 |\n| D | K | 323 |\n| D | L | 383 |\n| D | M | 383 |\n| D | N | 178 |\n| D | O | 281 |\n| E | F | 330 |\n| E | G | 238 |\n| E | H | 344 |\n| E | I | 146 |\n| E | J | 344 |\n| E | K | 336 |\n| E | L | 178 |\n| E | M | 258 |\n| E | N | 175 |\n| E | O | 336 |\n| F | G | 107 |\n| F | H | 107 |\n| F | I | 107 |\n| F | J | 107 |\n| F | K | 357 |\n| F | L | 357 |\n| F | M | 223 |\n| F | N | 238 |\n| F | O | 344 |\n| G | H | 165 |\n| G | I | 165 |\n| G | J | 165 |\n| G | K | 260 |\n| G | L | 260 |\n| G | M | 260 |\n| G | N | 218 |\n| G | O | 260 |\n| H | I | 108 |\n| H | J | 108 |\n| H | K | 412 |\n| H | L | 291 |\n| H | M | 194 |\n| H | N | 409 |\n| H | O | 146 |\n| I | J | 330 |\n| I | K | 283 |\n| I | L | 382 |\n| I | M | 322 |\n| I | N | 164 |\n| I | O | 164 |\n| J | K | 110 |\n| J | L | 152 |\n| J | M | 216 |\n| J | N | 216 |\n| J | O | 216 |\n| K | L | 218 |\n| K | M | 128 |\n| K | N | 218 |\n| K | O | 146 |\n| L | M | 381 |\n| L | N | 381 |\n| L | O | 340 |\n| M | N | 191 |\n| M | O | 335 |\n\nWe must respect the 2582 session time while choosing experiments to maximize total payoff.\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": [ 443, 465, 225, 354, 347, 91, 155, 107, 418, 229, 418, 394, 436, 120, 325 ], "quadratic_coeffs": [ [ 262, 248, 128, 423, 285, 444, 339, 211, 108, 379, 318, 444, 306, 284, 218 ], [ 0, 363, 196, 440, 205, 141, 211, 238, 212, 409, 147, 440, 440, 170, 170 ], [ 0, 0, 202, 136, 202, 202, 202, 202, 124, 202, 122, 146, 262, 196, 101 ], [ 0, 0, 0, 359, 158, 219, 356, 363, 275, 363, 323, 383, 383, 178, 281 ], [ 0, 0, 0, 0, 216, 330, 238, 344, 146, 344, 336, 178, 258, 175, 336 ], [ 0, 0, 0, 0, 0, 107, 107, 107, 107, 107, 357, 357, 223, 238, 344 ], [ 0, 0, 0, 0, 0, 0, 146, 165, 165, 165, 260, 260, 260, 218, 260 ], [ 0, 0, 0, 0, 0, 0, 0, 108, 108, 108, 412, 291, 194, 409, 146 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 356, 330, 283, 382, 322, 164, 164 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 152, 110, 152, 216, 216, 216 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 218, 218, 128, 218, 146 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 168, 381, 381, 340 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 382, 191, 335 ], [ 0, 0, 0, 0, 0, 0, 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": [ 444, 440, 202, 363, 344, 107, 165, 108, 404, 240, 409, 403, 457, 121, 306 ], "capacity": 2582, "solution": [ 0, 2, 3, 5, 6, 7, 9, 10, 11, 13 ], "obj": 13955.0, "problem_type": "QKP" }, "solution": [ 0, 2, 3, 5, 6, 7, 9, 10, 11, 13 ], "obj": 13955.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 2582, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 443 }, { "item_id": "B", "linear_profit": 465 }, { "item_id": "C", "linear_profit": 225 }, { "item_id": "D", "linear_profit": 354 }, { "item_id": "E", "linear_profit": 347 }, { "item_id": "F", "linear_profit": 91 }, { "item_id": "G", "linear_profit": 155 }, { "item_id": "H", "linear_profit": 107 }, { "item_id": "I", "linear_profit": 418 }, { "item_id": "J", "linear_profit": 229 }, { "item_id": "K", "linear_profit": 418 }, { "item_id": "L", "linear_profit": 394 }, { "item_id": "M", "linear_profit": 436 }, { "item_id": "N", "linear_profit": 120 }, { "item_id": "O", "linear_profit": 325 } ], "weight_pairs": [ { "item_id": "A", "weight": 444 }, { "item_id": "B", "weight": 440 }, { "item_id": "C", "weight": 202 }, { "item_id": "D", "weight": 363 }, { "item_id": "E", "weight": 344 }, { "item_id": "F", "weight": 107 }, { "item_id": "G", "weight": 165 }, { "item_id": "H", "weight": 108 }, { "item_id": "I", "weight": 404 }, { "item_id": "J", "weight": 240 }, { "item_id": "K", "weight": 409 }, { "item_id": "L", "weight": 403 }, { "item_id": "M", "weight": 457 }, { "item_id": "N", "weight": 121 }, { "item_id": "O", "weight": 306 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 262 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 248 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 128 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 423 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 285 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 444 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 339 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 211 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 108 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 379 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 318 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 444 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 306 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 284 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 218 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 363 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 196 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 440 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 205 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 141 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 211 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 238 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 212 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 409 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 147 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 440 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 440 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 170 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 170 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 202 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 136 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 202 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 202 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 202 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 202 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 124 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 202 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 122 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 146 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 262 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 196 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 359 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 158 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 219 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 356 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 363 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 275 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 363 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 323 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 383 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 383 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 178 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 281 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 216 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 330 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 238 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 344 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 146 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 344 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 336 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 178 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 258 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 175 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 336 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 107 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 107 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 107 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 107 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 107 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 357 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 357 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 223 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 238 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 344 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 146 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 165 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 165 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 165 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 260 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 260 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 260 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 218 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 260 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 108 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 108 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 108 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 412 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 291 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 194 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 409 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 146 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 356 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 330 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 283 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 382 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 322 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 164 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 164 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 152 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 110 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 152 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 216 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 216 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 216 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 218 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 218 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 128 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 218 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 146 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 168 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 381 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 381 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 340 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 382 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 191 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 335 } ] }, "solution_variant": [ "A", "C", "D", "F", "G", "H", "J", "K", "L", "N" ], "context_index": 18, "input_format": "markdown_table", "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=15\n# total_airtime_seconds=239\n# asset_identifiers=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15\n\nasset_id,baseline_impact\n1,113\n2,121\n3,121\n4,114\n5,114\n6,120\n7,121\n8,117\n9,113\n10,116\n11,122\n12,116\n13,118\n14,119\n15,120\n\nasset_id,airtime_seconds\n1,102\n2,110\n3,110\n4,103\n5,103\n6,109\n7,110\n8,106\n9,102\n10,105\n11,111\n12,105\n13,107\n14,108\n15,109\n\nasset_i_id,asset_j_id,pair_bonus_impact\n1,3,102\n1,8,100\n1,9,109\n1,13,107\n2,3,111\n2,7,110\n2,9,104\n3,12,109\n3,13,103\n3,15,103\n5,7,106\n5,9,111\n6,9,107\n7,12,108\n8,11,102\n9,10,109\n9,13,107\n10,12,109\n10,15,109\n11,13,109\n14,15,106\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": [ 113, 121, 121, 114, 114, 120, 121, 117, 113, 116, 122, 116, 118, 119, 120 ], "quadratic_coeffs": [ [ 0, 0, 102, 0, 0, 0, 0, 100, 109, 0, 0, 0, 107, 0, 0 ], [ 0, 0, 111, 0, 0, 0, 110, 0, 104, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 106, 0, 0, 0, 0, 0, 0, 0, 0, 109, 103, 0, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 106, 0, 111, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 102, 0, 0, 107, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 103, 0, 0, 0, 0, 108, 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, 109, 0, 0, 107, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 0, 0, 109 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 0, 109, 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 ], [ 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 ] ], "weights": [ 102, 110, 110, 103, 103, 109, 110, 106, 102, 105, 111, 105, 107, 108, 109 ], "capacity": 239, "solution": [ 1, 2 ], "obj": 353.0, "problem_type": "QKP" }, "solution": [ 1, 2 ], "obj": 353.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 239, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 113 }, { "item_id": 2, "linear_profit": 121 }, { "item_id": 3, "linear_profit": 121 }, { "item_id": 4, "linear_profit": 114 }, { "item_id": 5, "linear_profit": 114 }, { "item_id": 6, "linear_profit": 120 }, { "item_id": 7, "linear_profit": 121 }, { "item_id": 8, "linear_profit": 117 }, { "item_id": 9, "linear_profit": 113 }, { "item_id": 10, "linear_profit": 116 }, { "item_id": 11, "linear_profit": 122 }, { "item_id": 12, "linear_profit": 116 }, { "item_id": 13, "linear_profit": 118 }, { "item_id": 14, "linear_profit": 119 }, { "item_id": 15, "linear_profit": 120 } ], "weight_pairs": [ { "item_id": 1, "weight": 102 }, { "item_id": 2, "weight": 110 }, { "item_id": 3, "weight": 110 }, { "item_id": 4, "weight": 103 }, { "item_id": 5, "weight": 103 }, { "item_id": 6, "weight": 109 }, { "item_id": 7, "weight": 110 }, { "item_id": 8, "weight": 106 }, { "item_id": 9, "weight": 102 }, { "item_id": 10, "weight": 105 }, { "item_id": 11, "weight": 111 }, { "item_id": 12, "weight": 105 }, { "item_id": 13, "weight": 107 }, { "item_id": 14, "weight": 108 }, { "item_id": 15, "weight": 109 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 109 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 107 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 104 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 106 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 109 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 106 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 107 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 108 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 109 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 107 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 109 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 109 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 110 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 109 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 109 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 106 } ] }, "solution_variant": [ 2, 3 ], "context_index": 19, "input_format": "csv", "input_index_base": 1 }, { "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\nHere are the 11 platters (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10) and the van capacity 1082 that I must work with.\nPlatter 0: I count a base appeal of 124.\nPlatter 1: I count a base appeal of 140.\nPlatter 2: I count a base appeal of 97.\nPlatter 3: I count a base appeal of 105.\nPlatter 4: I count a base appeal of 134.\nPlatter 5: I count a base appeal of 118.\nPlatter 6: I count a base appeal of 139.\nPlatter 7: I count a base appeal of 111.\nPlatter 8: I count a base appeal of 148.\nPlatter 9: I count a base appeal of 140.\nPlatter 10: I count a base appeal of 111.\nPlatter 0: I note the weight is 120.\nPlatter 1: I note the weight is 136.\nPlatter 2: I note the weight is 101.\nPlatter 3: I note the weight is 102.\nPlatter 4: I note the weight is 127.\nPlatter 5: I note the weight is 123.\nPlatter 6: I note the weight is 140.\nPlatter 7: I note the weight is 111.\nPlatter 8: I note the weight is 148.\nPlatter 9: I note the weight is 146.\nPlatter 10: I note the weight is 104.\nIf I include both 0 and 1, I add a pair bonus of 120.\nIf I include both 0 and 2, I add a pair bonus of 113.\nIf I include both 0 and 3, I add a pair bonus of 102.\nIf I include both 0 and 4, I add a pair bonus of 120.\nIf I include both 0 and 5, I add a pair bonus of 120.\nIf I include both 0 and 6, I add a pair bonus of 120.\nIf I include both 0 and 7, I add a pair bonus of 100.\nIf I include both 0 and 8, I add a pair bonus of 117.\nIf I include both 0 and 9, I add a pair bonus of 120.\nIf I include both 0 and 10, I add a pair bonus of 111.\nIf I include both 1 and 2, I add a pair bonus of 119.\nIf I include both 1 and 3, I add a pair bonus of 136.\nIf I include both 1 and 4, I add a pair bonus of 135.\nIf I include both 1 and 5, I add a pair bonus of 136.\nIf I include both 1 and 6, I add a pair bonus of 134.\nIf I include both 1 and 7, I add a pair bonus of 124.\nIf I include both 1 and 8, I add a pair bonus of 106.\nIf I include both 1 and 9, I add a pair bonus of 128.\nIf I include both 1 and 10, I add a pair bonus of 110.\nIf I include both 2 and 3, I add a pair bonus of 101.\nIf I include both 2 and 4, I add a pair bonus of 101.\nIf I include both 2 and 5, I add a pair bonus of 111.\nIf I include both 2 and 6, I add a pair bonus of 111.\nIf I include both 2 and 7, I add a pair bonus of 111.\nIf I include both 2 and 8, I add a pair bonus of 111.\nIf I include both 2 and 9, I add a pair bonus of 111.\nIf I include both 2 and 10, I add a pair bonus of 111.\nIf I include both 3 and 4, I add a pair bonus of 102.\nIf I include both 3 and 5, I add a pair bonus of 122.\nIf I include both 3 and 6, I add a pair bonus of 122.\nIf I include both 3 and 7, I add a pair bonus of 114.\nIf I include both 3 and 8, I add a pair bonus of 122.\nIf I include both 3 and 9, I add a pair bonus of 122.\nIf I include both 3 and 10, I add a pair bonus of 122.\nIf I include both 4 and 5, I add a pair bonus of 103.\nIf I include both 4 and 6, I add a pair bonus of 103.\nIf I include both 4 and 7, I add a pair bonus of 103.\nIf I include both 4 and 8, I add a pair bonus of 103.\nIf I include both 4 and 9, I add a pair bonus of 103.\nIf I include both 4 and 10, I add a pair bonus of 103.\nIf I include both 5 and 6, I add a pair bonus of 106.\nIf I include both 5 and 7, I add a pair bonus of 131.\nIf I include both 5 and 8, I add a pair bonus of 104.\nIf I include both 5 and 9, I add a pair bonus of 131.\nIf I include both 5 and 10, I add a pair bonus of 131.\nIf I include both 6 and 7, I add a pair bonus of 122.\nIf I include both 6 and 8, I add a pair bonus of 133.\nIf I include both 6 and 9, I add a pair bonus of 108.\nIf I include both 6 and 10, I add a pair bonus of 101.\nIf I include both 7 and 8, I add a pair bonus of 115.\nIf I include both 7 and 9, I add a pair bonus of 122.\nIf I include both 7 and 10, I add a pair bonus of 100.\nIf I include both 8 and 9, I add a pair bonus of 108.\nIf I include both 8 and 10, I add a pair bonus of 108.\nIf I include both 9 and 10, I add a pair bonus of 101.\nI'll use these figures to pick the best set that fits the van capacity 1082.\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": [ 124, 140, 97, 105, 134, 118, 139, 111, 148, 140, 111 ], "quadratic_coeffs": [ [ 120, 120, 113, 102, 120, 120, 120, 100, 117, 120, 111 ], [ 0, 116, 119, 136, 135, 136, 134, 124, 106, 128, 110 ], [ 0, 0, 101, 101, 101, 111, 111, 111, 111, 111, 111 ], [ 0, 0, 0, 102, 102, 122, 122, 114, 122, 122, 122 ], [ 0, 0, 0, 0, 118, 103, 103, 103, 103, 103, 103 ], [ 0, 0, 0, 0, 0, 124, 106, 131, 104, 131, 131 ], [ 0, 0, 0, 0, 0, 0, 141, 122, 133, 108, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 118, 115, 122, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 108, 108, 108 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103 ] ], "weights": [ 120, 136, 101, 102, 127, 123, 140, 111, 148, 146, 104 ], "capacity": 1082, "solution": [ 0, 1, 2, 3, 4, 5, 7, 9, 10 ], "obj": 5230.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 7, 9, 10 ], "obj": 5230.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 1082, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 124 }, { "item_id": 1, "linear_profit": 140 }, { "item_id": 2, "linear_profit": 97 }, { "item_id": 3, "linear_profit": 105 }, { "item_id": 4, "linear_profit": 134 }, { "item_id": 5, "linear_profit": 118 }, { "item_id": 6, "linear_profit": 139 }, { "item_id": 7, "linear_profit": 111 }, { "item_id": 8, "linear_profit": 148 }, { "item_id": 9, "linear_profit": 140 }, { "item_id": 10, "linear_profit": 111 } ], "weight_pairs": [ { "item_id": 0, "weight": 120 }, { "item_id": 1, "weight": 136 }, { "item_id": 2, "weight": 101 }, { "item_id": 3, "weight": 102 }, { "item_id": 4, "weight": 127 }, { "item_id": 5, "weight": 123 }, { "item_id": 6, "weight": 140 }, { "item_id": 7, "weight": 111 }, { "item_id": 8, "weight": 148 }, { "item_id": 9, "weight": 146 }, { "item_id": 10, "weight": 104 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 120 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 120 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 113 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 120 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 120 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 120 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 117 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 120 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 116 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 136 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 135 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 136 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 134 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 124 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 106 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 128 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 122 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 122 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 114 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 122 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 122 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 122 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 118 }, { "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": 9, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 124 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 106 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 131 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 104 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 131 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 131 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 141 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 122 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 133 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 108 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 118 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 115 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 122 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 108 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 108 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 108 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 103 } ] }, "solution_variant": [ 0, 1, 2, 3, 4, 5, 7, 9, 10 ], "context_index": 20, "input_format": "nl", "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\": 13,\n \"budget_limit\": 5309,\n \"band_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 \"linear\": [\n {\n \"band_id\": \"A\",\n \"solo_draw\": 215\n },\n {\n \"band_id\": \"B\",\n \"solo_draw\": 1295\n },\n {\n \"band_id\": \"C\",\n \"solo_draw\": 793\n },\n {\n \"band_id\": \"D\",\n \"solo_draw\": 806\n },\n {\n \"band_id\": \"E\",\n \"solo_draw\": 346\n },\n {\n \"band_id\": \"F\",\n \"solo_draw\": 1225\n },\n {\n \"band_id\": \"G\",\n \"solo_draw\": 1161\n },\n {\n \"band_id\": \"H\",\n \"solo_draw\": 430\n },\n {\n \"band_id\": \"I\",\n \"solo_draw\": 879\n },\n {\n \"band_id\": \"J\",\n \"solo_draw\": 1328\n },\n {\n \"band_id\": \"K\",\n \"solo_draw\": 1638\n },\n {\n \"band_id\": \"L\",\n \"solo_draw\": 1526\n },\n {\n \"band_id\": \"M\",\n \"solo_draw\": 1087\n }\n ],\n \"weights\": [\n {\n \"band_id\": \"A\",\n \"booking_fee\": 207\n },\n {\n \"band_id\": \"B\",\n \"booking_fee\": 1289\n },\n {\n \"band_id\": \"C\",\n \"booking_fee\": 762\n },\n {\n \"band_id\": \"D\",\n \"booking_fee\": 788\n },\n {\n \"band_id\": \"E\",\n \"booking_fee\": 283\n },\n {\n \"band_id\": \"F\",\n \"booking_fee\": 1229\n },\n {\n \"band_id\": \"G\",\n \"booking_fee\": 1192\n },\n {\n \"band_id\": \"H\",\n \"booking_fee\": 479\n },\n {\n \"band_id\": \"I\",\n \"booking_fee\": 932\n },\n {\n \"band_id\": \"J\",\n \"booking_fee\": 1297\n },\n {\n \"band_id\": \"K\",\n \"booking_fee\": 1591\n },\n {\n \"band_id\": \"L\",\n \"booking_fee\": 1485\n },\n {\n \"band_id\": \"M\",\n \"booking_fee\": 1044\n }\n ],\n \"quadratic\": [\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"B\",\n \"pairing_boost\": 403\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"C\",\n \"pairing_boost\": 577\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"D\",\n \"pairing_boost\": 279\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"E\",\n \"pairing_boost\": 381\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"F\",\n \"pairing_boost\": 440\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"G\",\n \"pairing_boost\": 227\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"H\",\n \"pairing_boost\": 511\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"I\",\n \"pairing_boost\": 544\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"J\",\n \"pairing_boost\": 159\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 350\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 528\n },\n {\n \"band_i_id\": \"A\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 699\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"C\",\n \"pairing_boost\": 1261\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"D\",\n \"pairing_boost\": 1424\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"E\",\n \"pairing_boost\": 855\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"F\",\n \"pairing_boost\": 1000\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"G\",\n \"pairing_boost\": 1357\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"H\",\n \"pairing_boost\": 659\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"I\",\n \"pairing_boost\": 654\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"J\",\n \"pairing_boost\": 1287\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 890\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 795\n },\n {\n \"band_i_id\": \"B\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 834\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"D\",\n \"pairing_boost\": 1080\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"E\",\n \"pairing_boost\": 613\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"F\",\n \"pairing_boost\": 980\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"G\",\n \"pairing_boost\": 1052\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"H\",\n \"pairing_boost\": 1044\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"I\",\n \"pairing_boost\": 1088\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"J\",\n \"pairing_boost\": 460\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 711\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 1034\n },\n {\n \"band_i_id\": \"C\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 984\n },\n {\n \"band_i_id\": \"D\",\n \"band_j_id\": \"E\",\n \"pairing_boost\": 1122\n },\n {\n \"band_i_id\": \"D\",\n \"band_j_id\": \"F\",\n \"pairing_boost\": 1140\n },\n {\n \"band_i_id\": \"D\",\n \"band_j_id\": \"G\",\n \"pairing_boost\": 894\n },\n {\n \"band_i_id\": \"D\",\n \"band_j_id\": \"H\",\n \"pairing_boost\": 989\n },\n {\n \"band_i_id\": \"D\",\n \"band_j_id\": \"I\",\n \"pairing_boost\": 594\n },\n {\n \"band_i_id\": \"D\",\n \"band_j_id\": \"J\",\n \"pairing_boost\": 796\n },\n {\n \"band_i_id\": \"D\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 715\n },\n {\n \"band_i_id\": \"D\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 1165\n },\n {\n \"band_i_id\": \"D\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 1156\n },\n {\n \"band_i_id\": \"E\",\n \"band_j_id\": \"F\",\n \"pairing_boost\": 553\n },\n {\n \"band_i_id\": \"E\",\n \"band_j_id\": \"G\",\n \"pairing_boost\": 217\n },\n {\n \"band_i_id\": \"E\",\n \"band_j_id\": \"H\",\n \"pairing_boost\": 518\n },\n {\n \"band_i_id\": \"E\",\n \"band_j_id\": \"I\",\n \"pairing_boost\": 513\n },\n {\n \"band_i_id\": \"E\",\n \"band_j_id\": \"J\",\n \"pairing_boost\": 521\n },\n {\n \"band_i_id\": \"E\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 741\n },\n {\n \"band_i_id\": \"E\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 1091\n },\n {\n \"band_i_id\": \"E\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 1134\n },\n {\n \"band_i_id\": \"F\",\n \"band_j_id\": \"G\",\n \"pairing_boost\": 901\n },\n {\n \"band_i_id\": \"F\",\n \"band_j_id\": \"H\",\n \"pairing_boost\": 770\n },\n {\n \"band_i_id\": \"F\",\n \"band_j_id\": \"I\",\n \"pairing_boost\": 1305\n },\n {\n \"band_i_id\": \"F\",\n \"band_j_id\": \"J\",\n \"pairing_boost\": 1416\n },\n {\n \"band_i_id\": \"F\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 823\n },\n {\n \"band_i_id\": \"F\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 713\n },\n {\n \"band_i_id\": \"F\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 568\n },\n {\n \"band_i_id\": \"G\",\n \"band_j_id\": \"H\",\n \"pairing_boost\": 916\n },\n {\n \"band_i_id\": \"G\",\n \"band_j_id\": \"I\",\n \"pairing_boost\": 665\n },\n {\n \"band_i_id\": \"G\",\n \"band_j_id\": \"J\",\n \"pairing_boost\": 1384\n },\n {\n \"band_i_id\": \"G\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 158\n },\n {\n \"band_i_id\": \"G\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 507\n },\n {\n \"band_i_id\": \"G\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 453\n },\n {\n \"band_i_id\": \"H\",\n \"band_j_id\": \"I\",\n \"pairing_boost\": 866\n },\n {\n \"band_i_id\": \"H\",\n \"band_j_id\": \"J\",\n \"pairing_boost\": 891\n },\n {\n \"band_i_id\": \"H\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 888\n },\n {\n \"band_i_id\": \"H\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 329\n },\n {\n \"band_i_id\": \"H\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 587\n },\n {\n \"band_i_id\": \"I\",\n \"band_j_id\": \"J\",\n \"pairing_boost\": 1227\n },\n {\n \"band_i_id\": \"I\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 714\n },\n {\n \"band_i_id\": \"I\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 856\n },\n {\n \"band_i_id\": \"I\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 962\n },\n {\n \"band_i_id\": \"J\",\n \"band_j_id\": \"K\",\n \"pairing_boost\": 1158\n },\n {\n \"band_i_id\": \"J\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 1216\n },\n {\n \"band_i_id\": \"J\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 475\n },\n {\n \"band_i_id\": \"K\",\n \"band_j_id\": \"L\",\n \"pairing_boost\": 602\n },\n {\n \"band_i_id\": \"K\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 728\n },\n {\n \"band_i_id\": \"L\",\n \"band_j_id\": \"M\",\n \"pairing_boost\": 482\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": [ 215, 1295, 793, 806, 346, 1225, 1161, 430, 879, 1328, 1638, 1526, 1087 ], "quadratic_coeffs": [ [ 235, 403, 577, 279, 381, 440, 227, 511, 544, 159, 350, 528, 699 ], [ 0, 684, 1261, 1424, 855, 1000, 1357, 659, 654, 1287, 890, 795, 834 ], [ 0, 0, 732, 1080, 613, 980, 1052, 1044, 1088, 460, 711, 1034, 984 ], [ 0, 0, 0, 808, 1122, 1140, 894, 989, 594, 796, 715, 1165, 1156 ], [ 0, 0, 0, 0, 636, 553, 217, 518, 513, 521, 741, 1091, 1134 ], [ 0, 0, 0, 0, 0, 1264, 901, 770, 1305, 1416, 823, 713, 568 ], [ 0, 0, 0, 0, 0, 0, 1075, 916, 665, 1384, 158, 507, 453 ], [ 0, 0, 0, 0, 0, 0, 0, 888, 866, 891, 888, 329, 587 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 353, 1227, 714, 856, 962 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 870, 1158, 1216, 475 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 730, 602, 728 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1308, 482 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 207, 1289, 762, 788, 283, 1229, 1192, 479, 932, 1297, 1591, 1485, 1044 ], "capacity": 5309, "solution": [ 0, 1, 2, 3, 4, 8, 12 ], "obj": 22578.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 8, 12 ], "obj": 22578.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 5309, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 215 }, { "item_id": "B", "linear_profit": 1295 }, { "item_id": "C", "linear_profit": 793 }, { "item_id": "D", "linear_profit": 806 }, { "item_id": "E", "linear_profit": 346 }, { "item_id": "F", "linear_profit": 1225 }, { "item_id": "G", "linear_profit": 1161 }, { "item_id": "H", "linear_profit": 430 }, { "item_id": "I", "linear_profit": 879 }, { "item_id": "J", "linear_profit": 1328 }, { "item_id": "K", "linear_profit": 1638 }, { "item_id": "L", "linear_profit": 1526 }, { "item_id": "M", "linear_profit": 1087 } ], "weight_pairs": [ { "item_id": "A", "weight": 207 }, { "item_id": "B", "weight": 1289 }, { "item_id": "C", "weight": 762 }, { "item_id": "D", "weight": 788 }, { "item_id": "E", "weight": 283 }, { "item_id": "F", "weight": 1229 }, { "item_id": "G", "weight": 1192 }, { "item_id": "H", "weight": 479 }, { "item_id": "I", "weight": 932 }, { "item_id": "J", "weight": 1297 }, { "item_id": "K", "weight": 1591 }, { "item_id": "L", "weight": 1485 }, { "item_id": "M", "weight": 1044 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 235 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 403 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 577 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 279 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 381 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 440 }, { "item_i_id": "A", "item_j_id": "G", "quadratic_profit": 227 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 511 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 544 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 159 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 350 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 528 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 699 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 684 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 1261 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 1424 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 855 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 1000 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 1357 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 659 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 654 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 1287 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 890 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 795 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 834 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 732 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 1080 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 613 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 980 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 1052 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 1044 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 1088 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 460 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 711 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 1034 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 984 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 808 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 1122 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 1140 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 894 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 989 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 594 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 796 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 715 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 1165 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 1156 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 636 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 553 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 217 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 518 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 513 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 521 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 741 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 1091 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 1134 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 1264 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 901 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 770 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 1305 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 1416 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 823 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 713 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 568 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 1075 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 916 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 665 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 1384 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 158 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 507 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 453 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 888 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 866 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 891 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 888 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 329 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 587 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 353 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 1227 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 714 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 856 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 962 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 870 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 1158 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 1216 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 475 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 730 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 602 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 728 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 1308 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 482 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "I", "M" ], "context_index": 21, "input_format": "json", "input_index_base": "names" }, { "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\n{\n \"num_plants\": 12,\n \"bed_area_capacity\": 1188,\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 ],\n \"linear\": [\n {\n \"plant_id\": 0,\n \"base_beauty\": 108\n },\n {\n \"plant_id\": 1,\n \"base_beauty\": 111\n },\n {\n \"plant_id\": 2,\n \"base_beauty\": 102\n },\n {\n \"plant_id\": 3,\n \"base_beauty\": 100\n },\n {\n \"plant_id\": 4,\n \"base_beauty\": 105\n },\n {\n \"plant_id\": 5,\n \"base_beauty\": 110\n },\n {\n \"plant_id\": 6,\n \"base_beauty\": 104\n },\n {\n \"plant_id\": 7,\n \"base_beauty\": 111\n },\n {\n \"plant_id\": 8,\n \"base_beauty\": 100\n },\n {\n \"plant_id\": 9,\n \"base_beauty\": 110\n },\n {\n \"plant_id\": 10,\n \"base_beauty\": 102\n },\n {\n \"plant_id\": 11,\n \"base_beauty\": 102\n }\n ],\n \"weights\": [\n {\n \"plant_id\": 0,\n \"area_required\": 105\n },\n {\n \"plant_id\": 1,\n \"area_required\": 103\n },\n {\n \"plant_id\": 2,\n \"area_required\": 107\n },\n {\n \"plant_id\": 3,\n \"area_required\": 108\n },\n {\n \"plant_id\": 4,\n \"area_required\": 100\n },\n {\n \"plant_id\": 5,\n \"area_required\": 103\n },\n {\n \"plant_id\": 6,\n \"area_required\": 108\n },\n {\n \"plant_id\": 7,\n \"area_required\": 104\n },\n {\n \"plant_id\": 8,\n \"area_required\": 110\n },\n {\n \"plant_id\": 9,\n \"area_required\": 104\n },\n {\n \"plant_id\": 10,\n \"area_required\": 106\n },\n {\n \"plant_id\": 11,\n \"area_required\": 107\n }\n ],\n \"quadratic\": [\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 1,\n \"pair_bonus_beauty\": 102\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 2,\n \"pair_bonus_beauty\": 102\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 5,\n \"pair_bonus_beauty\": 105\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 8,\n \"pair_bonus_beauty\": 105\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 9,\n \"pair_bonus_beauty\": 102\n },\n {\n \"plant_i_id\": 0,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 106\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 2,\n \"pair_bonus_beauty\": 106\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 3,\n \"pair_bonus_beauty\": 105\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 4,\n \"pair_bonus_beauty\": 105\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 5,\n \"pair_bonus_beauty\": 105\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 6,\n \"pair_bonus_beauty\": 101\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 9,\n \"pair_bonus_beauty\": 101\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 10,\n \"pair_bonus_beauty\": 101\n },\n {\n \"plant_i_id\": 1,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 104\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 3,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 4,\n \"pair_bonus_beauty\": 108\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 6,\n \"pair_bonus_beauty\": 107\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 8,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 2,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 4,\n \"pair_bonus_beauty\": 105\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 6,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 10,\n \"pair_bonus_beauty\": 110\n },\n {\n \"plant_i_id\": 3,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 107\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 5,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 6,\n \"pair_bonus_beauty\": 100\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 7,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 8,\n \"pair_bonus_beauty\": 106\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 9,\n \"pair_bonus_beauty\": 104\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 10,\n \"pair_bonus_beauty\": 106\n },\n {\n \"plant_i_id\": 4,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 102\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 7,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 8,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 9,\n \"pair_bonus_beauty\": 104\n },\n {\n \"plant_i_id\": 5,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 104\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 7,\n \"pair_bonus_beauty\": 108\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 8,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 9,\n \"pair_bonus_beauty\": 104\n },\n {\n \"plant_i_id\": 6,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 105\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 8,\n \"pair_bonus_beauty\": 106\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 10,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 7,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 9,\n \"pair_bonus_beauty\": 103\n },\n {\n \"plant_i_id\": 8,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 108\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 10,\n \"pair_bonus_beauty\": 101\n },\n {\n \"plant_i_id\": 9,\n \"plant_j_id\": 11,\n \"pair_bonus_beauty\": 105\n }\n ]\n}\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": [ 108, 111, 102, 100, 105, 110, 104, 111, 100, 110, 102, 102 ], "quadratic_coeffs": [ [ 102, 102, 102, 0, 0, 105, 0, 0, 105, 102, 0, 106 ], [ 0, 105, 106, 105, 105, 105, 101, 0, 0, 101, 101, 104 ], [ 0, 0, 107, 103, 108, 0, 107, 0, 103, 0, 0, 103 ], [ 0, 0, 0, 106, 105, 0, 103, 0, 0, 0, 110, 107 ], [ 0, 0, 0, 0, 103, 103, 100, 103, 106, 104, 106, 102 ], [ 0, 0, 0, 0, 0, 105, 0, 103, 103, 104, 0, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 108, 103, 104, 0, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 105, 106, 0, 103, 103 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 109, 103, 0, 108 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 101, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 108 ] ], "weights": [ 105, 103, 107, 108, 100, 103, 108, 104, 110, 104, 106, 107 ], "capacity": 1188, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11 ], "obj": 5328.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11 ], "obj": 5328.0, "instance_variant": { "problem_type": "QKP", "num_items": 12, "capacity": 1188, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 108 }, { "item_id": 1, "linear_profit": 111 }, { "item_id": 2, "linear_profit": 102 }, { "item_id": 3, "linear_profit": 100 }, { "item_id": 4, "linear_profit": 105 }, { "item_id": 5, "linear_profit": 110 }, { "item_id": 6, "linear_profit": 104 }, { "item_id": 7, "linear_profit": 111 }, { "item_id": 8, "linear_profit": 100 }, { "item_id": 9, "linear_profit": 110 }, { "item_id": 10, "linear_profit": 102 }, { "item_id": 11, "linear_profit": 102 } ], "weight_pairs": [ { "item_id": 0, "weight": 105 }, { "item_id": 1, "weight": 103 }, { "item_id": 2, "weight": 107 }, { "item_id": 3, "weight": 108 }, { "item_id": 4, "weight": 100 }, { "item_id": 5, "weight": 103 }, { "item_id": 6, "weight": 108 }, { "item_id": 7, "weight": 104 }, { "item_id": 8, "weight": 110 }, { "item_id": 9, "weight": 104 }, { "item_id": 10, "weight": 106 }, { "item_id": 11, "weight": 107 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 105 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 105 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 106 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 106 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 105 }, { "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": 101 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 107 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 108 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 107 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 106 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 110 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 107 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 106 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 106 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 105 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 103 }, { "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": 11, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 108 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 106 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 109 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 108 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 107 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 108 } ] }, "solution_variant": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11 ], "context_index": 22, "input_format": "json", "input_index_base": 0 }, { "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 13 distinct pieces listed as A, B, C, D, E, F, G, H, I, J, K, L, M, and the bag's weight limit is 1147 — choose which to pack so the kit fits and the creative score is maximized.\n\n| gear_id | base_creative_value |\n|---|---|\n| A | 139 |\n| B | 145 |\n| C | 149 |\n| D | 135 |\n| E | 137 |\n| F | 120 |\n| G | 127 |\n| H | 103 |\n| I | 141 |\n| J | 124 |\n| K | 118 |\n| L | 136 |\n| M | 126 |\n\n| gear_id | gear_weight |\n|---|---|\n| A | 135 |\n| B | 139 |\n| C | 144 |\n| D | 140 |\n| E | 136 |\n| F | 115 |\n| G | 131 |\n| H | 105 |\n| I | 140 |\n| J | 119 |\n| K | 113 |\n| L | 142 |\n| M | 128 |\n\n| gear_i_id | gear_j_id | pair_synergy_bonus |\n|---|---|---|\n| A | B | 135 |\n| A | C | 100 |\n| A | I | 120 |\n| A | J | 100 |\n| A | K | 110 |\n| A | L | 104 |\n| A | M | 107 |\n| B | C | 129 |\n| B | D | 119 |\n| B | E | 139 |\n| B | F | 125 |\n| B | G | 139 |\n| B | H | 130 |\n| B | I | 130 |\n| B | J | 136 |\n| B | K | 112 |\n| B | L | 130 |\n| B | M | 130 |\n| C | D | 112 |\n| C | E | 111 |\n| C | G | 122 |\n| C | I | 121 |\n| C | J | 121 |\n| C | K | 121 |\n| C | M | 121 |\n| D | E | 140 |\n| D | F | 114 |\n| D | G | 128 |\n| D | J | 118 |\n| D | K | 113 |\n| D | L | 118 |\n| E | F | 131 |\n| E | G | 136 |\n| E | J | 132 |\n| E | K | 110 |\n| E | M | 129 |\n| F | G | 115 |\n| F | J | 105 |\n| F | K | 105 |\n| G | H | 103 |\n| G | I | 133 |\n| G | J | 105 |\n| G | K | 133 |\n| G | L | 110 |\n| G | M | 131 |\n| H | J | 101 |\n| H | K | 101 |\n| I | J | 119 |\n| I | K | 113 |\n| J | K | 120 |\n| J | L | 120 |\n| J | M | 120 |\n| K | M | 109 |\n| L | M | 107 |\n\nPack wisely to maximize creative value without exceeding the 1147 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": [ 139, 145, 149, 135, 137, 120, 127, 103, 141, 124, 118, 136, 126 ], "quadratic_coeffs": [ [ 0, 135, 100, 0, 0, 0, 0, 0, 120, 100, 110, 104, 107 ], [ 0, 105, 129, 119, 139, 125, 139, 130, 130, 136, 112, 130, 130 ], [ 0, 0, 124, 112, 111, 0, 122, 0, 121, 121, 121, 0, 121 ], [ 0, 0, 0, 118, 140, 114, 128, 0, 0, 118, 113, 118, 0 ], [ 0, 0, 0, 0, 110, 131, 136, 0, 0, 132, 110, 0, 129 ], [ 0, 0, 0, 0, 0, 0, 115, 0, 0, 105, 105, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 103, 133, 105, 133, 110, 131 ], [ 0, 0, 0, 0, 0, 0, 0, 101, 0, 101, 101, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 119, 113, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 120, 120, 120 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, 109 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109, 107 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 104 ] ], "weights": [ 135, 139, 144, 140, 136, 115, 131, 105, 140, 119, 113, 142, 128 ], "capacity": 1147, "solution": [ 1, 2, 3, 4, 5, 6, 7, 9, 10 ], "obj": 4884.0, "problem_type": "QKP" }, "solution": [ 1, 2, 3, 4, 5, 6, 7, 9, 10 ], "obj": 4884.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 1147, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 139 }, { "item_id": "B", "linear_profit": 145 }, { "item_id": "C", "linear_profit": 149 }, { "item_id": "D", "linear_profit": 135 }, { "item_id": "E", "linear_profit": 137 }, { "item_id": "F", "linear_profit": 120 }, { "item_id": "G", "linear_profit": 127 }, { "item_id": "H", "linear_profit": 103 }, { "item_id": "I", "linear_profit": 141 }, { "item_id": "J", "linear_profit": 124 }, { "item_id": "K", "linear_profit": 118 }, { "item_id": "L", "linear_profit": 136 }, { "item_id": "M", "linear_profit": 126 } ], "weight_pairs": [ { "item_id": "A", "weight": 135 }, { "item_id": "B", "weight": 139 }, { "item_id": "C", "weight": 144 }, { "item_id": "D", "weight": 140 }, { "item_id": "E", "weight": 136 }, { "item_id": "F", "weight": 115 }, { "item_id": "G", "weight": 131 }, { "item_id": "H", "weight": 105 }, { "item_id": "I", "weight": 140 }, { "item_id": "J", "weight": 119 }, { "item_id": "K", "weight": 113 }, { "item_id": "L", "weight": 142 }, { "item_id": "M", "weight": 128 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 135 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 120 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 100 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 110 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 104 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 107 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 105 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 129 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 119 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 125 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 130 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 130 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 136 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 112 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 130 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 130 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 124 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 112 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 111 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 122 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 121 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 121 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 121 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 121 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 118 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 140 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 114 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 128 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 118 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 113 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 118 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 110 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 131 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 136 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 132 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 110 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 129 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 115 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 105 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 103 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 133 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 133 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 110 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 131 }, { "item_i_id": "H", "item_j_id": "H", "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": "I", "item_j_id": "J", "quadratic_profit": 119 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 113 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 120 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 120 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 120 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 120 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 104 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 109 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 109 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 107 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 104 } ] }, "solution_variant": [ "B", "C", "D", "E", "F", "G", "H", "J", "K" ], "context_index": 23, "input_format": "markdown_table", "input_index_base": "names" }, { "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{\n \"num_features\": 14,\n \"total_budget\": 451,\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 ],\n \"linear\": [\n {\n \"feature_id\": \"A\",\n \"standalone_value\": 103\n },\n {\n \"feature_id\": \"B\",\n \"standalone_value\": 108\n },\n {\n \"feature_id\": \"C\",\n \"standalone_value\": 101\n },\n {\n \"feature_id\": \"D\",\n \"standalone_value\": 136\n },\n {\n \"feature_id\": \"E\",\n \"standalone_value\": 117\n },\n {\n \"feature_id\": \"F\",\n \"standalone_value\": 139\n },\n {\n \"feature_id\": \"G\",\n \"standalone_value\": 137\n },\n {\n \"feature_id\": \"H\",\n \"standalone_value\": 135\n },\n {\n \"feature_id\": \"I\",\n \"standalone_value\": 141\n },\n {\n \"feature_id\": \"J\",\n \"standalone_value\": 138\n },\n {\n \"feature_id\": \"K\",\n \"standalone_value\": 110\n },\n {\n \"feature_id\": \"L\",\n \"standalone_value\": 103\n },\n {\n \"feature_id\": \"M\",\n \"standalone_value\": 103\n },\n {\n \"feature_id\": \"N\",\n \"standalone_value\": 103\n }\n ],\n \"weights\": [\n {\n \"feature_id\": \"A\",\n \"cost\": 147\n },\n {\n \"feature_id\": \"B\",\n \"cost\": 111\n },\n {\n \"feature_id\": \"C\",\n \"cost\": 126\n },\n {\n \"feature_id\": \"D\",\n \"cost\": 133\n },\n {\n \"feature_id\": \"E\",\n \"cost\": 149\n },\n {\n \"feature_id\": \"F\",\n \"cost\": 122\n },\n {\n \"feature_id\": \"G\",\n \"cost\": 123\n },\n {\n \"feature_id\": \"H\",\n \"cost\": 117\n },\n {\n \"feature_id\": \"I\",\n \"cost\": 101\n },\n {\n \"feature_id\": \"J\",\n \"cost\": 140\n },\n {\n \"feature_id\": \"K\",\n \"cost\": 112\n },\n {\n \"feature_id\": \"L\",\n \"cost\": 111\n },\n {\n \"feature_id\": \"M\",\n \"cost\": 104\n },\n {\n \"feature_id\": \"N\",\n \"cost\": 110\n }\n ],\n \"quadratic\": [\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"B\",\n \"pair_synergy_value\": 122\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"C\",\n \"pair_synergy_value\": 129\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"D\",\n \"pair_synergy_value\": 102\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"J\",\n \"pair_synergy_value\": 123\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"K\",\n \"pair_synergy_value\": 124\n },\n {\n \"feature_i_id\": \"A\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 135\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"E\",\n \"pair_synergy_value\": 144\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"F\",\n \"pair_synergy_value\": 102\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"G\",\n \"pair_synergy_value\": 120\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"H\",\n \"pair_synergy_value\": 117\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"I\",\n \"pair_synergy_value\": 119\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"J\",\n \"pair_synergy_value\": 120\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"M\",\n \"pair_synergy_value\": 111\n },\n {\n \"feature_i_id\": \"B\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 119\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"D\",\n \"pair_synergy_value\": 108\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"E\",\n \"pair_synergy_value\": 131\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"G\",\n \"pair_synergy_value\": 140\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"H\",\n \"pair_synergy_value\": 124\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"I\",\n \"pair_synergy_value\": 149\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"J\",\n \"pair_synergy_value\": 128\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"K\",\n \"pair_synergy_value\": 113\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"L\",\n \"pair_synergy_value\": 141\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"M\",\n \"pair_synergy_value\": 132\n },\n {\n \"feature_i_id\": \"C\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 130\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"E\",\n \"pair_synergy_value\": 143\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"F\",\n \"pair_synergy_value\": 101\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"G\",\n \"pair_synergy_value\": 131\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"L\",\n \"pair_synergy_value\": 130\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"M\",\n \"pair_synergy_value\": 112\n },\n {\n \"feature_i_id\": \"D\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 108\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"F\",\n \"pair_synergy_value\": 112\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"G\",\n \"pair_synergy_value\": 125\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"I\",\n \"pair_synergy_value\": 131\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"K\",\n \"pair_synergy_value\": 107\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"L\",\n \"pair_synergy_value\": 133\n },\n {\n \"feature_i_id\": \"E\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 134\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"H\",\n \"pair_synergy_value\": 133\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"I\",\n \"pair_synergy_value\": 147\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"J\",\n \"pair_synergy_value\": 148\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"K\",\n \"pair_synergy_value\": 142\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"M\",\n \"pair_synergy_value\": 100\n },\n {\n \"feature_i_id\": \"F\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 111\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"I\",\n \"pair_synergy_value\": 105\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"J\",\n \"pair_synergy_value\": 104\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"K\",\n \"pair_synergy_value\": 124\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"L\",\n \"pair_synergy_value\": 143\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"M\",\n \"pair_synergy_value\": 144\n },\n {\n \"feature_i_id\": \"G\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 144\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"I\",\n \"pair_synergy_value\": 139\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"J\",\n \"pair_synergy_value\": 149\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"K\",\n \"pair_synergy_value\": 145\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"L\",\n \"pair_synergy_value\": 135\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"M\",\n \"pair_synergy_value\": 125\n },\n {\n \"feature_i_id\": \"H\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 129\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"J\",\n \"pair_synergy_value\": 129\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"M\",\n \"pair_synergy_value\": 108\n },\n {\n \"feature_i_id\": \"I\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 108\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"K\",\n \"pair_synergy_value\": 134\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"L\",\n \"pair_synergy_value\": 112\n },\n {\n \"feature_i_id\": \"J\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 114\n },\n {\n \"feature_i_id\": \"K\",\n \"feature_j_id\": \"M\",\n \"pair_synergy_value\": 109\n },\n {\n \"feature_i_id\": \"K\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 116\n },\n {\n \"feature_i_id\": \"L\",\n \"feature_j_id\": \"M\",\n \"pair_synergy_value\": 116\n },\n {\n \"feature_i_id\": \"L\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 132\n },\n {\n \"feature_i_id\": \"M\",\n \"feature_j_id\": \"N\",\n \"pair_synergy_value\": 104\n }\n ]\n}\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": [ 103, 108, 101, 136, 117, 139, 137, 135, 141, 138, 110, 103, 103, 103 ], "quadratic_coeffs": [ [ 114, 122, 129, 102, 0, 0, 0, 0, 0, 123, 124, 0, 0, 135 ], [ 0, 0, 0, 0, 144, 102, 120, 117, 119, 120, 0, 0, 111, 119 ], [ 0, 0, 0, 108, 131, 0, 140, 124, 149, 128, 113, 141, 132, 130 ], [ 0, 0, 0, 0, 143, 101, 131, 0, 0, 0, 0, 130, 112, 108 ], [ 0, 0, 0, 0, 109, 112, 125, 0, 131, 0, 107, 133, 0, 134 ], [ 0, 0, 0, 0, 0, 109, 0, 133, 147, 148, 142, 0, 100, 111 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 105, 104, 124, 143, 144, 144 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 139, 149, 145, 135, 125, 129 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 109, 129, 0, 0, 108, 108 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 134, 112, 0, 114 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 109, 116 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 116, 132 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 104 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 147, 111, 126, 133, 149, 122, 123, 117, 101, 140, 112, 111, 104, 110 ], "capacity": 451, "solution": [ 5, 7, 8, 13 ], "obj": 1285.0, "problem_type": "QKP" }, "solution": [ 5, 7, 8, 13 ], "obj": 1285.0, "instance_variant": { "problem_type": "QKP", "num_items": 14, "capacity": 451, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 103 }, { "item_id": "B", "linear_profit": 108 }, { "item_id": "C", "linear_profit": 101 }, { "item_id": "D", "linear_profit": 136 }, { "item_id": "E", "linear_profit": 117 }, { "item_id": "F", "linear_profit": 139 }, { "item_id": "G", "linear_profit": 137 }, { "item_id": "H", "linear_profit": 135 }, { "item_id": "I", "linear_profit": 141 }, { "item_id": "J", "linear_profit": 138 }, { "item_id": "K", "linear_profit": 110 }, { "item_id": "L", "linear_profit": 103 }, { "item_id": "M", "linear_profit": 103 }, { "item_id": "N", "linear_profit": 103 } ], "weight_pairs": [ { "item_id": "A", "weight": 147 }, { "item_id": "B", "weight": 111 }, { "item_id": "C", "weight": 126 }, { "item_id": "D", "weight": 133 }, { "item_id": "E", "weight": 149 }, { "item_id": "F", "weight": 122 }, { "item_id": "G", "weight": 123 }, { "item_id": "H", "weight": 117 }, { "item_id": "I", "weight": 101 }, { "item_id": "J", "weight": 140 }, { "item_id": "K", "weight": 112 }, { "item_id": "L", "weight": 111 }, { "item_id": "M", "weight": 104 }, { "item_id": "N", "weight": 110 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 114 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 122 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 129 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 102 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 123 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 124 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 135 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 144 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 102 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 120 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 117 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 119 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 120 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 111 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 119 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 108 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 131 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 140 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 124 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 149 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 128 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 113 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 141 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 132 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 130 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 143 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 131 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 130 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 112 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 108 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 109 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 112 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 125 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 131 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 107 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 133 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 134 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 109 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 133 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 147 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 148 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 142 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 100 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 111 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 104 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 124 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 143 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 144 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 144 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 139 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 149 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 145 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 135 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 125 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 129 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 109 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 129 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 108 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 108 }, { "item_i_id": "J", "item_j_id": "J", "quadratic_profit": 110 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 134 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 112 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 114 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 111 }, { "item_i_id": "K", "item_j_id": "M", "quadratic_profit": 109 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 116 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 116 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 132 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 111 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 104 } ] }, "solution_variant": [ "F", "H", "I", "N" ], "context_index": 24, "input_format": "json", "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 11 films to pick from (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) and 27117 minutes for the marathon.\nFor film 1 we get 5643 base enjoyment on its own.\nFor film 2 we get 3368 base enjoyment on its own.\nFor film 3 we get 1342 base enjoyment on its own.\nFor film 4 we get 6952 base enjoyment on its own.\nFor film 5 we get 3429 base enjoyment on its own.\nFor film 6 we get 2886 base enjoyment on its own.\nFor film 7 we get 5149 base enjoyment on its own.\nFor film 8 we get 3241 base enjoyment on its own.\nFor film 9 we get 5271 base enjoyment on its own.\nFor film 10 we get 5924 base enjoyment on its own.\nFor film 11 we get 6750 base enjoyment on its own.\nFilm 1 uses up 4993 minutes of the evening.\nFilm 2 uses up 2718 minutes of the evening.\nFilm 3 uses up 692 minutes of the evening.\nFilm 4 uses up 6302 minutes of the evening.\nFilm 5 uses up 2779 minutes of the evening.\nFilm 6 uses up 2236 minutes of the evening.\nFilm 7 uses up 4499 minutes of the evening.\nFilm 8 uses up 2591 minutes of the evening.\nFilm 9 uses up 4621 minutes of the evening.\nFilm 10 uses up 5274 minutes of the evening.\nFilm 11 uses up 6100 minutes of the evening.\nIf we include 1 and 2 together, they add 1847 extra enjoyment.\nIf we include 1 and 3 together, they add 1616 extra enjoyment.\nIf we include 1 and 4 together, they add 4585 extra enjoyment.\nIf we include 1 and 5 together, they add 4993 extra enjoyment.\nIf we include 1 and 6 together, they add 4499 extra enjoyment.\nIf we include 1 and 7 together, they add 4993 extra enjoyment.\nIf we include 1 and 8 together, they add 2122 extra enjoyment.\nIf we include 1 and 9 together, they add 2448 extra enjoyment.\nIf we include 1 and 10 together, they add 2854 extra enjoyment.\nIf we include 1 and 11 together, they add 4993 extra enjoyment.\nIf we include 2 and 3 together, they add 1876 extra enjoyment.\nIf we include 2 and 4 together, they add 912 extra enjoyment.\nIf we include 2 and 5 together, they add 482 extra enjoyment.\nIf we include 2 and 6 together, they add 2718 extra enjoyment.\nIf we include 2 and 7 together, they add 1770 extra enjoyment.\nIf we include 2 and 8 together, they add 734 extra enjoyment.\nIf we include 2 and 9 together, they add 1167 extra enjoyment.\nIf we include 2 and 10 together, they add 2718 extra enjoyment.\nIf we include 2 and 11 together, they add 2407 extra enjoyment.\nIf we include 3 and 4 together, they add 692 extra enjoyment.\nIf we include 3 and 5 together, they add 692 extra enjoyment.\nIf we include 3 and 6 together, they add 692 extra enjoyment.\nIf we include 3 and 7 together, they add 692 extra enjoyment.\nIf we include 3 and 8 together, they add 692 extra enjoyment.\nIf we include 3 and 9 together, they add 692 extra enjoyment.\nIf we include 3 and 10 together, they add 692 extra enjoyment.\nIf we include 3 and 11 together, they add 1616 extra enjoyment.\nIf we include 4 and 5 together, they add 3668 extra enjoyment.\nIf we include 4 and 6 together, they add 2854 extra enjoyment.\nIf we include 4 and 7 together, they add 6100 extra enjoyment.\nIf we include 4 and 8 together, they add 1174 extra enjoyment.\nIf we include 4 and 9 together, they add 1466 extra enjoyment.\nIf we include 4 and 10 together, they add 1876 extra enjoyment.\nIf we include 4 and 11 together, they add 1205 extra enjoyment.\nIf we include 5 and 6 together, they add 6100 extra enjoyment.\nIf we include 5 and 7 together, they add 5644 extra enjoyment.\nIf we include 5 and 8 together, they add 6274 extra enjoyment.\nIf we include 5 and 9 together, they add 3700 extra enjoyment.\nIf we include 5 and 10 together, they add 2289 extra enjoyment.\nIf we include 5 and 11 together, they add 2289 extra enjoyment.\nIf we include 6 and 7 together, they add 3045 extra enjoyment.\nIf we include 6 and 8 together, they add 341 extra enjoyment.\nIf we include 6 and 9 together, they add 1770 extra enjoyment.\nIf we include 6 and 10 together, they add 596 extra enjoyment.\nIf we include 6 and 11 together, they add 5274 extra enjoyment.\nIf we include 7 and 8 together, they add 2122 extra enjoyment.\nIf we include 7 and 9 together, they add 2448 extra enjoyment.\nIf we include 7 and 10 together, they add 2854 extra enjoyment.\nIf we include 7 and 11 together, they add 4953 extra enjoyment.\nIf we include 8 and 9 together, they add 3876 extra enjoyment.\nIf we include 8 and 10 together, they add 596 extra enjoyment.\nIf we include 8 and 11 together, they add 1770 extra enjoyment.\nIf we include 9 and 10 together, they add 596 extra enjoyment.\nIf we include 9 and 11 together, they add 596 extra enjoyment.\nIf we include 10 and 11 together, they add 1121 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 27117 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": [ 5643, 3368, 1342, 6952, 3429, 2886, 5149, 3241, 5271, 5924, 6750 ], "quadratic_coeffs": [ [ 1958, 1847, 1616, 4585, 4993, 4499, 4993, 2122, 2448, 2854, 4993 ], [ 0, 2718, 1876, 912, 482, 2718, 1770, 734, 1167, 2718, 2407 ], [ 0, 0, 692, 692, 692, 692, 692, 692, 692, 692, 1616 ], [ 0, 0, 0, 5248, 3668, 2854, 6100, 1174, 1466, 1876, 1205 ], [ 0, 0, 0, 0, 1928, 6100, 5644, 6274, 3700, 2289, 2289 ], [ 0, 0, 0, 0, 0, 2407, 3045, 341, 1770, 596, 5274 ], [ 0, 0, 0, 0, 0, 0, 3700, 2122, 2448, 2854, 4953 ], [ 0, 0, 0, 0, 0, 0, 0, 1121, 3876, 596, 1770 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1928, 596, 596 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1174, 1121 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2407 ] ], "weights": [ 4993, 2718, 692, 6302, 2779, 2236, 4499, 2591, 4621, 5274, 6100 ], "capacity": 27117, "solution": [ 0, 1, 2, 4, 5, 6, 7, 10 ], "obj": 109054.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 4, 5, 6, 7, 10 ], "obj": 109054.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 27117, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 5643 }, { "item_id": 2, "linear_profit": 3368 }, { "item_id": 3, "linear_profit": 1342 }, { "item_id": 4, "linear_profit": 6952 }, { "item_id": 5, "linear_profit": 3429 }, { "item_id": 6, "linear_profit": 2886 }, { "item_id": 7, "linear_profit": 5149 }, { "item_id": 8, "linear_profit": 3241 }, { "item_id": 9, "linear_profit": 5271 }, { "item_id": 10, "linear_profit": 5924 }, { "item_id": 11, "linear_profit": 6750 } ], "weight_pairs": [ { "item_id": 1, "weight": 4993 }, { "item_id": 2, "weight": 2718 }, { "item_id": 3, "weight": 692 }, { "item_id": 4, "weight": 6302 }, { "item_id": 5, "weight": 2779 }, { "item_id": 6, "weight": 2236 }, { "item_id": 7, "weight": 4499 }, { "item_id": 8, "weight": 2591 }, { "item_id": 9, "weight": 4621 }, { "item_id": 10, "weight": 5274 }, { "item_id": 11, "weight": 6100 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 1958 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 1847 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 1616 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 4585 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 4993 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 4499 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 4993 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 2122 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 2448 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 2854 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 4993 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 2718 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 1876 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 912 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 482 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 2718 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 1770 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 734 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 1167 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 2718 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 2407 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 692 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 692 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 692 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 692 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 692 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 692 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 692 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 692 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 1616 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 5248 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 3668 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 2854 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 6100 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 1174 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 1466 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 1876 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 1205 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 1928 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 6100 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 5644 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 6274 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 3700 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 2289 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 2289 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 2407 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 3045 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 341 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 1770 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 596 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 5274 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 3700 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 2122 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 2448 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 2854 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 4953 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 1121 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 3876 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 596 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 1770 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 1928 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 596 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 596 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 1174 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 1121 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 2407 } ] }, "solution_variant": [ 1, 2, 3, 5, 6, 7, 8, 11 ], "context_index": 25, "input_format": "nl", "input_index_base": 1 }, { "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 15 pastries (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15) and the box capacity is 387.\nWe can include pastry 1 for an individual appeal of 103.\nWe can include pastry 2 for an individual appeal of 101.\nWe can include pastry 3 for an individual appeal of 118.\nWe can include pastry 4 for an individual appeal of 105.\nWe can include pastry 5 for an individual appeal of 111.\nWe can include pastry 6 for an individual appeal of 119.\nWe can include pastry 7 for an individual appeal of 107.\nWe can include pastry 8 for an individual appeal of 120.\nWe can include pastry 9 for an individual appeal of 103.\nWe can include pastry 10 for an individual appeal of 123.\nWe can include pastry 11 for an individual appeal of 116.\nWe can include pastry 12 for an individual appeal of 108.\nWe can include pastry 13 for an individual appeal of 100.\nWe can include pastry 14 for an individual appeal of 120.\nWe can include pastry 15 for an individual appeal of 106.\nWe note pastry 1 weighs 102.\nWe note pastry 2 weighs 120.\nWe note pastry 3 weighs 124.\nWe note pastry 4 weighs 117.\nWe note pastry 5 weighs 106.\nWe note pastry 6 weighs 111.\nWe note pastry 7 weighs 101.\nWe note pastry 8 weighs 102.\nWe note pastry 9 weighs 124.\nWe note pastry 10 weighs 118.\nWe note pastry 11 weighs 105.\nWe note pastry 12 weighs 112.\nWe note pastry 13 weighs 117.\nWe note pastry 14 weighs 121.\nWe note pastry 15 weighs 100.\nIf we include pastries 1 and 2 together, they add a pair bonus appeal of 107.\nIf we include pastries 1 and 3 together, they add a pair bonus appeal of 103.\nIf we include pastries 1 and 4 together, they add a pair bonus appeal of 107.\nIf we include pastries 1 and 5 together, they add a pair bonus appeal of 112.\nIf we include pastries 1 and 6 together, they add a pair bonus appeal of 111.\nIf we include pastries 1 and 7 together, they add a pair bonus appeal of 105.\nIf we include pastries 1 and 8 together, they add a pair bonus appeal of 108.\nIf we include pastries 1 and 9 together, they add a pair bonus appeal of 111.\nIf we include pastries 1 and 10 together, they add a pair bonus appeal of 109.\nIf we include pastries 1 and 11 together, they add a pair bonus appeal of 107.\nIf we include pastries 1 and 12 together, they add a pair bonus appeal of 102.\nIf we include pastries 1 and 13 together, they add a pair bonus appeal of 116.\nIf we include pastries 1 and 14 together, they add a pair bonus appeal of 109.\nIf we include pastries 1 and 15 together, they add a pair bonus appeal of 114.\nIf we include pastries 2 and 3 together, they add a pair bonus appeal of 120.\nIf we include pastries 2 and 4 together, they add a pair bonus appeal of 120.\nIf we include pastries 2 and 5 together, they add a pair bonus appeal of 117.\nIf we include pastries 2 and 6 together, they add a pair bonus appeal of 115.\nIf we include pastries 2 and 7 together, they add a pair bonus appeal of 112.\nIf we include pastries 2 and 8 together, they add a pair bonus appeal of 110.\nIf we include pastries 2 and 9 together, they add a pair bonus appeal of 109.\nIf we include pastries 2 and 10 together, they add a pair bonus appeal of 111.\nIf we include pastries 2 and 11 together, they add a pair bonus appeal of 119.\nIf we include pastries 2 and 12 together, they add a pair bonus appeal of 116.\nIf we include pastries 2 and 13 together, they add a pair bonus appeal of 114.\nIf we include pastries 2 and 14 together, they add a pair bonus appeal of 118.\nIf we include pastries 2 and 15 together, they add a pair bonus appeal of 113.\nIf we include pastries 3 and 4 together, they add a pair bonus appeal of 122.\nIf we include pastries 3 and 5 together, they add a pair bonus appeal of 121.\nIf we include pastries 3 and 6 together, they add a pair bonus appeal of 111.\nIf we include pastries 3 and 7 together, they add a pair bonus appeal of 121.\nIf we include pastries 3 and 8 together, they add a pair bonus appeal of 115.\nIf we include pastries 3 and 9 together, they add a pair bonus appeal of 122.\nIf we include pastries 3 and 10 together, they add a pair bonus appeal of 112.\nIf we include pastries 3 and 11 together, they add a pair bonus appeal of 111.\nIf we include pastries 3 and 12 together, they add a pair bonus appeal of 106.\nIf we include pastries 3 and 13 together, they add a pair bonus appeal of 116.\nIf we include pastries 3 and 14 together, they add a pair bonus appeal of 111.\nIf we include pastries 3 and 15 together, they add a pair bonus appeal of 113.\nIf we include pastries 4 and 5 together, they add a pair bonus appeal of 109.\nIf we include pastries 4 and 6 together, they add a pair bonus appeal of 114.\nIf we include pastries 4 and 7 together, they add a pair bonus appeal of 117.\nIf we include pastries 4 and 8 together, they add a pair bonus appeal of 118.\nIf we include pastries 4 and 9 together, they add a pair bonus appeal of 119.\nIf we include pastries 4 and 10 together, they add a pair bonus appeal of 116.\nIf we include pastries 4 and 11 together, they add a pair bonus appeal of 110.\nIf we include pastries 4 and 12 together, they add a pair bonus appeal of 120.\nIf we include pastries 4 and 13 together, they add a pair bonus appeal of 120.\nIf we include pastries 4 and 14 together, they add a pair bonus appeal of 120.\nIf we include pastries 4 and 15 together, they add a pair bonus appeal of 117.\nIf we include pastries 5 and 6 together, they add a pair bonus appeal of 113.\nIf we include pastries 5 and 7 together, they add a pair bonus appeal of 113.\nIf we include pastries 5 and 8 together, they add a pair bonus appeal of 118.\nIf we include pastries 5 and 9 together, they add a pair bonus appeal of 111.\nIf we include pastries 5 and 10 together, they add a pair bonus appeal of 115.\nIf we include pastries 5 and 11 together, they add a pair bonus appeal of 117.\nIf we include pastries 5 and 12 together, they add a pair bonus appeal of 113.\nIf we include pastries 5 and 13 together, they add a pair bonus appeal of 107.\nIf we include pastries 5 and 14 together, they add a pair bonus appeal of 117.\nIf we include pastries 5 and 15 together, they add a pair bonus appeal of 117.\nIf we include pastries 6 and 7 together, they add a pair bonus appeal of 105.\nIf we include pastries 6 and 8 together, they add a pair bonus appeal of 115.\nIf we include pastries 6 and 9 together, they add a pair bonus appeal of 114.\nIf we include pastries 6 and 10 together, they add a pair bonus appeal of 110.\nIf we include pastries 6 and 11 together, they add a pair bonus appeal of 105.\nIf we include pastries 6 and 12 together, they add a pair bonus appeal of 112.\nIf we include pastries 6 and 13 together, they add a pair bonus appeal of 114.\nIf we include pastries 6 and 14 together, they add a pair bonus appeal of 115.\nIf we include pastries 6 and 15 together, they add a pair bonus appeal of 114.\nIf we include pastries 7 and 8 together, they add a pair bonus appeal of 105.\nIf we include pastries 7 and 9 together, they add a pair bonus appeal of 111.\nIf we include pastries 7 and 10 together, they add a pair bonus appeal of 106.\nIf we include pastries 7 and 11 together, they add a pair bonus appeal of 111.\nIf we include pastries 7 and 12 together, they add a pair bonus appeal of 112.\nIf we include pastries 7 and 13 together, they add a pair bonus appeal of 121.\nIf we include pastries 7 and 14 together, they add a pair bonus appeal of 121.\nIf we include pastries 7 and 15 together, they add a pair bonus appeal of 115.\nIf we include pastries 8 and 9 together, they add a pair bonus appeal of 122.\nIf we include pastries 8 and 10 together, they add a pair bonus appeal of 117.\nIf we include pastries 8 and 11 together, they add a pair bonus appeal of 122.\nIf we include pastries 8 and 12 together, they add a pair bonus appeal of 110.\nIf we include pastries 8 and 13 together, they add a pair bonus appeal of 122.\nIf we include pastries 8 and 14 together, they add a pair bonus appeal of 116.\nIf we include pastries 8 and 15 together, they add a pair bonus appeal of 122.\nIf we include pastries 9 and 10 together, they add a pair bonus appeal of 121.\nIf we include pastries 9 and 11 together, they add a pair bonus appeal of 111.\nIf we include pastries 9 and 12 together, they add a pair bonus appeal of 119.\nIf we include pastries 9 and 13 together, they add a pair bonus appeal of 118.\nIf we include pastries 9 and 14 together, they add a pair bonus appeal of 111.\nIf we include pastries 9 and 15 together, they add a pair bonus appeal of 116.\nIf we include pastries 10 and 11 together, they add a pair bonus appeal of 117.\nIf we include pastries 10 and 12 together, they add a pair bonus appeal of 119.\nIf we include pastries 10 and 13 together, they add a pair bonus appeal of 120.\nIf we include pastries 10 and 14 together, they add a pair bonus appeal of 108.\nIf we include pastries 10 and 15 together, they add a pair bonus appeal of 106.\nIf we include pastries 11 and 12 together, they add a pair bonus appeal of 114.\nIf we include pastries 11 and 13 together, they add a pair bonus appeal of 116.\nIf we include pastries 11 and 14 together, they add a pair bonus appeal of 117.\nIf we include pastries 11 and 15 together, they add a pair bonus appeal of 115.\nIf we include pastries 12 and 13 together, they add a pair bonus appeal of 121.\nIf we include pastries 12 and 14 together, they add a pair bonus appeal of 121.\nIf we include pastries 12 and 15 together, they add a pair bonus appeal of 120.\nWe'll pick the combination that fits within 387 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": [ 103, 101, 118, 105, 111, 119, 107, 120, 103, 123, 116, 108, 100, 120, 106 ], "quadratic_coeffs": [ [ 108, 107, 103, 107, 112, 111, 105, 108, 111, 109, 107, 102, 116, 109, 114 ], [ 0, 116, 120, 120, 117, 115, 112, 110, 109, 111, 119, 116, 114, 118, 113 ], [ 0, 0, 119, 122, 121, 111, 121, 115, 122, 112, 111, 106, 116, 111, 113 ], [ 0, 0, 0, 115, 109, 114, 117, 118, 119, 116, 110, 120, 120, 120, 117 ], [ 0, 0, 0, 0, 113, 113, 113, 118, 111, 115, 117, 113, 107, 117, 117 ], [ 0, 0, 0, 0, 0, 115, 105, 115, 114, 110, 105, 112, 114, 115, 114 ], [ 0, 0, 0, 0, 0, 0, 103, 105, 111, 106, 111, 112, 121, 121, 115 ], [ 0, 0, 0, 0, 0, 0, 0, 121, 122, 117, 122, 110, 122, 116, 122 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 119, 121, 111, 119, 118, 111, 116 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 111, 117, 119, 120, 108, 106 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 114, 116, 117, 115 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 121, 121, 121, 120 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 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, 120, 124, 117, 106, 111, 101, 102, 124, 118, 105, 112, 117, 121, 100 ], "capacity": 387, "solution": [ 7, 9, 10 ], "obj": 715.0, "problem_type": "QKP" }, "solution": [ 7, 9, 10 ], "obj": 715.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 387, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 103 }, { "item_id": 2, "linear_profit": 101 }, { "item_id": 3, "linear_profit": 118 }, { "item_id": 4, "linear_profit": 105 }, { "item_id": 5, "linear_profit": 111 }, { "item_id": 6, "linear_profit": 119 }, { "item_id": 7, "linear_profit": 107 }, { "item_id": 8, "linear_profit": 120 }, { "item_id": 9, "linear_profit": 103 }, { "item_id": 10, "linear_profit": 123 }, { "item_id": 11, "linear_profit": 116 }, { "item_id": 12, "linear_profit": 108 }, { "item_id": 13, "linear_profit": 100 }, { "item_id": 14, "linear_profit": 120 }, { "item_id": 15, "linear_profit": 106 } ], "weight_pairs": [ { "item_id": 1, "weight": 102 }, { "item_id": 2, "weight": 120 }, { "item_id": 3, "weight": 124 }, { "item_id": 4, "weight": 117 }, { "item_id": 5, "weight": 106 }, { "item_id": 6, "weight": 111 }, { "item_id": 7, "weight": 101 }, { "item_id": 8, "weight": 102 }, { "item_id": 9, "weight": 124 }, { "item_id": 10, "weight": 118 }, { "item_id": 11, "weight": 105 }, { "item_id": 12, "weight": 112 }, { "item_id": 13, "weight": 117 }, { "item_id": 14, "weight": 121 }, { "item_id": 15, "weight": 100 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 107 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 107 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 112 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 111 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 111 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 109 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 107 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 116 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 109 }, { "item_i_id": 1, "item_j_id": 15, "quadratic_profit": 114 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 116 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 120 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 120 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 117 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 115 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 112 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 109 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 119 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 116 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 114 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 118 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 113 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 119 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 122 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 121 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 121 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 115 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 122 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 112 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 106 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 116 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 113 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 115 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 109 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 114 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 117 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 118 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 119 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 116 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 110 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 120 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 120 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 120 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 117 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 113 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 113 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 113 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 118 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 115 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 117 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 113 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 107 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 117 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 117 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 115 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 115 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 114 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 110 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 105 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 112 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 114 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 115 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 114 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 111 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 106 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 111 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 112 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 121 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 121 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 115 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 121 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 122 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 117 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 122 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 110 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 122 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 116 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 122 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 119 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 121 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 111 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 119 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 118 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 111 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 116 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 111 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 117 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 119 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 120 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 108 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 106 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 117 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 114 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 116 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 117 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 115 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 121 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 121 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 121 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 120 } ] }, "solution_variant": [ 8, 10, 11 ], "context_index": 26, "input_format": "nl", "input_index_base": 1 }, { "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{\n \"total_items_count\": 14,\n \"pannier_capacity\": 21309,\n \"item_ids_list\": [\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 ],\n \"linear\": [\n {\n \"item_id\": 1,\n \"usefulness_score\": 1263\n },\n {\n \"item_id\": 2,\n \"usefulness_score\": 1784\n },\n {\n \"item_id\": 3,\n \"usefulness_score\": 1307\n },\n {\n \"item_id\": 4,\n \"usefulness_score\": 3364\n },\n {\n \"item_id\": 5,\n \"usefulness_score\": 3375\n },\n {\n \"item_id\": 6,\n \"usefulness_score\": 1347\n },\n {\n \"item_id\": 7,\n \"usefulness_score\": 823\n },\n {\n \"item_id\": 8,\n \"usefulness_score\": 2875\n },\n {\n \"item_id\": 9,\n \"usefulness_score\": 518\n },\n {\n \"item_id\": 10,\n \"usefulness_score\": 3260\n },\n {\n \"item_id\": 11,\n \"usefulness_score\": 1117\n },\n {\n \"item_id\": 12,\n \"usefulness_score\": 1941\n },\n {\n \"item_id\": 13,\n \"usefulness_score\": 3249\n },\n {\n \"item_id\": 14,\n \"usefulness_score\": 2201\n }\n ],\n \"weights\": [\n {\n \"item_id\": 1,\n \"item_weight\": 933\n },\n {\n \"item_id\": 2,\n \"item_weight\": 1454\n },\n {\n \"item_id\": 3,\n \"item_weight\": 977\n },\n {\n \"item_id\": 4,\n \"item_weight\": 3034\n },\n {\n \"item_id\": 5,\n \"item_weight\": 3045\n },\n {\n \"item_id\": 6,\n \"item_weight\": 1017\n },\n {\n \"item_id\": 7,\n \"item_weight\": 493\n },\n {\n \"item_id\": 8,\n \"item_weight\": 2545\n },\n {\n \"item_id\": 9,\n \"item_weight\": 188\n },\n {\n \"item_id\": 10,\n \"item_weight\": 2930\n },\n {\n \"item_id\": 11,\n \"item_weight\": 787\n },\n {\n \"item_id\": 12,\n \"item_weight\": 1611\n },\n {\n \"item_id\": 13,\n \"item_weight\": 2919\n },\n {\n \"item_id\": 14,\n \"item_weight\": 1871\n }\n ],\n \"quadratic\": [\n {\n \"first_item_id\": 1,\n \"second_item_id\": 2,\n \"complementary_bonus\": 897\n },\n {\n \"first_item_id\": 1,\n \"second_item_id\": 6,\n \"complementary_bonus\": 1211\n },\n {\n \"first_item_id\": 3,\n \"second_item_id\": 9,\n \"complementary_bonus\": 1341\n },\n {\n \"first_item_id\": 3,\n \"second_item_id\": 10,\n \"complementary_bonus\": 1762\n },\n {\n \"first_item_id\": 4,\n \"second_item_id\": 8,\n \"complementary_bonus\": 2608\n },\n {\n \"first_item_id\": 5,\n \"second_item_id\": 12,\n \"complementary_bonus\": 454\n },\n {\n \"first_item_id\": 5,\n \"second_item_id\": 13,\n \"complementary_bonus\": 1193\n },\n {\n \"first_item_id\": 5,\n \"second_item_id\": 14,\n \"complementary_bonus\": 406\n },\n {\n \"first_item_id\": 6,\n \"second_item_id\": 7,\n \"complementary_bonus\": 1948\n },\n {\n \"first_item_id\": 6,\n \"second_item_id\": 10,\n \"complementary_bonus\": 2003\n },\n {\n \"first_item_id\": 6,\n \"second_item_id\": 13,\n \"complementary_bonus\": 1916\n },\n {\n \"first_item_id\": 7,\n \"second_item_id\": 8,\n \"complementary_bonus\": 753\n },\n {\n \"first_item_id\": 7,\n \"second_item_id\": 9,\n \"complementary_bonus\": 1477\n },\n {\n \"first_item_id\": 8,\n \"second_item_id\": 10,\n \"complementary_bonus\": 2692\n },\n {\n \"first_item_id\": 10,\n \"second_item_id\": 12,\n \"complementary_bonus\": 1769\n }\n ]\n}\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": [ 1263, 1784, 1307, 3364, 3375, 1347, 823, 2875, 518, 3260, 1117, 1941, 3249, 2201 ], "quadratic_coeffs": [ [ 0, 897, 0, 0, 0, 1211, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1341, 1762, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 2608, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 1868, 0, 0, 0, 0, 0, 0, 454, 1193, 406 ], [ 0, 0, 0, 0, 0, 0, 1948, 0, 0, 2003, 0, 0, 1916, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 753, 1477, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2692, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1006, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3067, 0, 1769, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 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": [ 933, 1454, 977, 3034, 3045, 1017, 493, 2545, 188, 2930, 787, 1611, 2919, 1871 ], "capacity": 21309, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12 ], "obj": 47130.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12 ], "obj": 47130.0, "instance_variant": { "problem_type": "QKP", "num_items": 14, "capacity": 21309, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 1263 }, { "item_id": 2, "linear_profit": 1784 }, { "item_id": 3, "linear_profit": 1307 }, { "item_id": 4, "linear_profit": 3364 }, { "item_id": 5, "linear_profit": 3375 }, { "item_id": 6, "linear_profit": 1347 }, { "item_id": 7, "linear_profit": 823 }, { "item_id": 8, "linear_profit": 2875 }, { "item_id": 9, "linear_profit": 518 }, { "item_id": 10, "linear_profit": 3260 }, { "item_id": 11, "linear_profit": 1117 }, { "item_id": 12, "linear_profit": 1941 }, { "item_id": 13, "linear_profit": 3249 }, { "item_id": 14, "linear_profit": 2201 } ], "weight_pairs": [ { "item_id": 1, "weight": 933 }, { "item_id": 2, "weight": 1454 }, { "item_id": 3, "weight": 977 }, { "item_id": 4, "weight": 3034 }, { "item_id": 5, "weight": 3045 }, { "item_id": 6, "weight": 1017 }, { "item_id": 7, "weight": 493 }, { "item_id": 8, "weight": 2545 }, { "item_id": 9, "weight": 188 }, { "item_id": 10, "weight": 2930 }, { "item_id": 11, "weight": 787 }, { "item_id": 12, "weight": 1611 }, { "item_id": 13, "weight": 2919 }, { "item_id": 14, "weight": 1871 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 897 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 1211 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 1341 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 1762 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 2608 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 1868 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 454 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 1193 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 406 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 1948 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 2003 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 1916 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 753 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 1477 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 2692 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 1006 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 3067 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 1769 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 13 ], "context_index": 27, "input_format": "json", "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 15 optional modules listed as 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, and 5695 memory units were available for enabling them.\n\n| module_id | base_benefit |\n|---|---|\n| 1 | 1259 |\n| 2 | 330 |\n| 3 | 381 |\n| 4 | 503 |\n| 5 | 1333 |\n| 6 | 1057 |\n| 7 | 740 |\n| 8 | 518 |\n| 9 | 1465 |\n| 10 | 915 |\n| 11 | 585 |\n| 12 | 441 |\n| 13 | 1077 |\n| 14 | 1304 |\n| 15 | 1766 |\n\n| module_id | memory_usage |\n|---|---|\n| 1 | 1089 |\n| 2 | 160 |\n| 3 | 211 |\n| 4 | 333 |\n| 5 | 1163 |\n| 6 | 887 |\n| 7 | 570 |\n| 8 | 348 |\n| 9 | 1295 |\n| 10 | 745 |\n| 11 | 415 |\n| 12 | 271 |\n| 13 | 907 |\n| 14 | 1134 |\n| 15 | 1596 |\n\n| module_i_id | module_j_id | interaction_bonus |\n|---|---|---|\n| 1 | 3 | 1089 |\n| 1 | 5 | 994 |\n| 1 | 6 | 847 |\n| 1 | 9 | 1089 |\n| 1 | 10 | 878 |\n| 1 | 11 | 1089 |\n| 1 | 13 | 235 |\n| 1 | 14 | 1089 |\n| 2 | 5 | 160 |\n| 2 | 6 | 160 |\n| 2 | 7 | 160 |\n| 2 | 8 | 160 |\n| 2 | 10 | 160 |\n| 2 | 11 | 160 |\n| 2 | 12 | 160 |\n| 2 | 13 | 160 |\n| 3 | 4 | 211 |\n| 3 | 6 | 211 |\n| 3 | 7 | 211 |\n| 3 | 9 | 211 |\n| 3 | 10 | 153 |\n| 3 | 11 | 211 |\n| 3 | 12 | 211 |\n| 3 | 13 | 211 |\n| 3 | 15 | 333 |\n| 4 | 6 | 333 |\n| 4 | 8 | 333 |\n| 4 | 9 | 333 |\n| 4 | 10 | 333 |\n| 4 | 11 | 333 |\n| 4 | 13 | 333 |\n| 4 | 15 | 308 |\n| 5 | 6 | 737 |\n| 5 | 7 | 414 |\n| 5 | 9 | 838 |\n| 5 | 11 | 1163 |\n| 5 | 12 | 766 |\n| 5 | 15 | 122 |\n| 6 | 8 | 887 |\n| 6 | 9 | 173 |\n| 6 | 10 | 746 |\n| 6 | 11 | 887 |\n| 6 | 13 | 439 |\n| 6 | 15 | 171 |\n| 7 | 8 | 570 |\n| 7 | 9 | 378 |\n| 7 | 10 | 570 |\n| 7 | 11 | 439 |\n| 7 | 13 | 570 |\n| 7 | 14 | 1295 |\n| 7 | 15 | 1233 |\n| 8 | 10 | 348 |\n| 8 | 11 | 348 |\n| 8 | 12 | 348 |\n| 8 | 13 | 348 |\n| 8 | 15 | 281 |\n| 9 | 12 | 696 |\n| 9 | 13 | 329 |\n| 9 | 14 | 604 |\n| 9 | 15 | 1067 |\n| 10 | 11 | 1128 |\n| 10 | 12 | 794 |\n| 10 | 13 | 228 |\n| 11 | 13 | 434 |\n| 11 | 14 | 434 |\n| 11 | 15 | 296 |\n| 12 | 13 | 216 |\n| 12 | 14 | 109 |\n| 13 | 14 | 235 |\n| 13 | 15 | 520 |\n| 14 | 15 | 528 |\n\nThe ops team must choose modules so total memory stays within 5695 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": [ 1259, 330, 381, 503, 1333, 1057, 740, 518, 1465, 915, 585, 441, 1077, 1304, 1766 ], "quadratic_coeffs": [ [ 1089, 0, 1089, 0, 994, 847, 0, 0, 1089, 878, 1089, 0, 235, 1089, 0 ], [ 0, 160, 0, 0, 160, 160, 160, 160, 0, 160, 160, 160, 160, 0, 0 ], [ 0, 0, 211, 211, 0, 211, 211, 0, 211, 153, 211, 211, 211, 0, 333 ], [ 0, 0, 0, 0, 0, 333, 0, 333, 333, 333, 333, 0, 333, 0, 308 ], [ 0, 0, 0, 0, 1163, 737, 414, 0, 838, 0, 1163, 766, 0, 0, 122 ], [ 0, 0, 0, 0, 0, 745, 0, 887, 173, 746, 887, 0, 439, 0, 171 ], [ 0, 0, 0, 0, 0, 0, 570, 570, 378, 570, 439, 0, 570, 1295, 1233 ], [ 0, 0, 0, 0, 0, 0, 0, 348, 0, 348, 348, 348, 348, 0, 281 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1066, 0, 0, 696, 329, 604, 1067 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 1128, 794, 228, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 153, 0, 434, 434, 296 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 743, 216, 109, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 918, 235, 520 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 528, 528 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 815 ] ], "weights": [ 1089, 160, 211, 333, 1163, 887, 570, 348, 1295, 745, 415, 271, 907, 1134, 1596 ], "capacity": 5695, "solution": [ 0, 1, 2, 3, 4, 5, 7, 9, 10, 11 ], "obj": 23660.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 7, 9, 10, 11 ], "obj": 23660.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 5695, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 1259 }, { "item_id": 2, "linear_profit": 330 }, { "item_id": 3, "linear_profit": 381 }, { "item_id": 4, "linear_profit": 503 }, { "item_id": 5, "linear_profit": 1333 }, { "item_id": 6, "linear_profit": 1057 }, { "item_id": 7, "linear_profit": 740 }, { "item_id": 8, "linear_profit": 518 }, { "item_id": 9, "linear_profit": 1465 }, { "item_id": 10, "linear_profit": 915 }, { "item_id": 11, "linear_profit": 585 }, { "item_id": 12, "linear_profit": 441 }, { "item_id": 13, "linear_profit": 1077 }, { "item_id": 14, "linear_profit": 1304 }, { "item_id": 15, "linear_profit": 1766 } ], "weight_pairs": [ { "item_id": 1, "weight": 1089 }, { "item_id": 2, "weight": 160 }, { "item_id": 3, "weight": 211 }, { "item_id": 4, "weight": 333 }, { "item_id": 5, "weight": 1163 }, { "item_id": 6, "weight": 887 }, { "item_id": 7, "weight": 570 }, { "item_id": 8, "weight": 348 }, { "item_id": 9, "weight": 1295 }, { "item_id": 10, "weight": 745 }, { "item_id": 11, "weight": 415 }, { "item_id": 12, "weight": 271 }, { "item_id": 13, "weight": 907 }, { "item_id": 14, "weight": 1134 }, { "item_id": 15, "weight": 1596 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 1089 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 1089 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 994 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 847 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 1089 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 878 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 1089 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 235 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 1089 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 160 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 160 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 211 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 211 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 211 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 211 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 211 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 153 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 211 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 211 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 211 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 333 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 333 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 333 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 333 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 333 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 333 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 333 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 308 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 1163 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 737 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 414 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 838 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 1163 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 766 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 122 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 745 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 887 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 173 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 746 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 887 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 439 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 171 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 570 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 570 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 378 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 570 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 439 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 570 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 1295 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 1233 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 348 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 348 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 348 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 348 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 348 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 281 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 1066 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 696 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 329 }, { "item_i_id": 9, "item_j_id": 14, "quadratic_profit": 604 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 1067 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 183 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 1128 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 794 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 228 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 153 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 434 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 434 }, { "item_i_id": 11, "item_j_id": 15, "quadratic_profit": 296 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 743 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 216 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 109 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 918 }, { "item_i_id": 13, "item_j_id": 14, "quadratic_profit": 235 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 520 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 528 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 528 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 815 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 8, 10, 11, 12 ], "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=15\n# shelf_length=1853\n# book_ids=A, B, C, D, E, F, G, H, I, J, K, L, M, N, O\n\nbook_id,educational_points\nA,105\nB,116\nC,137\nD,105\nE,141\nF,108\nG,149\nH,126\nI,115\nJ,136\nK,122\nL,146\nM,138\nN,112\nO,137\n\nbook_id,width\nA,145\nB,135\nC,129\nD,102\nE,138\nF,128\nG,145\nH,139\nI,142\nJ,106\nK,112\nL,121\nM,142\nN,118\nO,107\n\nbook_i_id,book_j_id,pairing_bonus_points\nA,B,142\nA,C,134\nA,E,123\nA,F,135\nA,H,133\nA,I,132\nA,J,133\nA,K,143\nA,L,139\nA,M,133\nA,N,134\nB,D,131\nB,E,116\nB,F,128\nB,G,138\nB,H,128\nB,I,135\nB,J,125\nB,K,139\nB,L,126\nB,N,139\nC,D,122\nC,E,120\nC,G,129\nC,H,127\nC,K,125\nC,L,108\nC,O,110\nD,E,108\nD,G,113\nD,H,112\nD,I,121\nD,J,121\nD,K,123\nD,O,143\nE,F,110\nE,G,109\nE,I,111\nE,J,115\nE,K,119\nE,L,105\nE,N,118\nE,O,113\nF,G,120\nF,H,121\nF,I,129\nF,J,121\nF,K,128\nF,M,132\nF,N,144\nF,O,143\nG,H,109\nG,I,105\nG,J,110\nG,K,125\nG,L,128\nG,N,114\nH,I,123\nH,K,117\nH,L,108\nH,M,117\nH,O,101\nI,J,126\nI,K,133\nI,L,132\nI,M,128\nI,N,134\nI,O,132\nJ,K,120\nJ,L,123\nJ,M,126\nJ,O,126\nK,L,121\nL,M,128\nM,N,112\nM,O,118\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": [ 105, 116, 137, 105, 141, 108, 149, 126, 115, 136, 122, 146, 138, 112, 137 ], "quadratic_coeffs": [ [ 130, 142, 134, 0, 123, 135, 0, 133, 132, 133, 143, 139, 133, 134, 0 ], [ 0, 0, 0, 131, 116, 128, 138, 128, 135, 125, 139, 126, 0, 139, 0 ], [ 0, 0, 0, 122, 120, 0, 129, 127, 0, 0, 125, 108, 0, 0, 110 ], [ 0, 0, 0, 101, 108, 0, 113, 112, 121, 121, 123, 0, 0, 0, 143 ], [ 0, 0, 0, 0, 0, 110, 109, 0, 111, 115, 119, 105, 0, 118, 113 ], [ 0, 0, 0, 0, 0, 0, 120, 121, 129, 121, 128, 0, 132, 144, 143 ], [ 0, 0, 0, 0, 0, 0, 110, 109, 105, 110, 125, 128, 0, 114, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 118, 123, 0, 117, 108, 117, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 126, 133, 132, 128, 134, 132 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 120, 123, 126, 0, 126 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 121, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123, 128, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, 112, 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, 118 ] ], "weights": [ 145, 135, 129, 102, 138, 128, 145, 139, 142, 106, 112, 121, 142, 118, 107 ], "capacity": 1853, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14 ], "obj": 10308.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14 ], "obj": 10308.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 1853, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 105 }, { "item_id": "B", "linear_profit": 116 }, { "item_id": "C", "linear_profit": 137 }, { "item_id": "D", "linear_profit": 105 }, { "item_id": "E", "linear_profit": 141 }, { "item_id": "F", "linear_profit": 108 }, { "item_id": "G", "linear_profit": 149 }, { "item_id": "H", "linear_profit": 126 }, { "item_id": "I", "linear_profit": 115 }, { "item_id": "J", "linear_profit": 136 }, { "item_id": "K", "linear_profit": 122 }, { "item_id": "L", "linear_profit": 146 }, { "item_id": "M", "linear_profit": 138 }, { "item_id": "N", "linear_profit": 112 }, { "item_id": "O", "linear_profit": 137 } ], "weight_pairs": [ { "item_id": "A", "weight": 145 }, { "item_id": "B", "weight": 135 }, { "item_id": "C", "weight": 129 }, { "item_id": "D", "weight": 102 }, { "item_id": "E", "weight": 138 }, { "item_id": "F", "weight": 128 }, { "item_id": "G", "weight": 145 }, { "item_id": "H", "weight": 139 }, { "item_id": "I", "weight": 142 }, { "item_id": "J", "weight": 106 }, { "item_id": "K", "weight": 112 }, { "item_id": "L", "weight": 121 }, { "item_id": "M", "weight": 142 }, { "item_id": "N", "weight": 118 }, { "item_id": "O", "weight": 107 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 130 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 142 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 134 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 123 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 135 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 133 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 132 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 133 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 143 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 139 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 133 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 134 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 131 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 116 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 128 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 138 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 128 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 135 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 125 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 139 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 126 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 139 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 122 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 120 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 129 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 127 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 125 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 108 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 110 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 101 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 108 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 113 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 112 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 121 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 121 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 123 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 143 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 110 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 109 }, { "item_i_id": "E", "item_j_id": "I", "quadratic_profit": 111 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 115 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 119 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 105 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 118 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 113 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 120 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 121 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 129 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 121 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 128 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 132 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 144 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 143 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 110 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 109 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 105 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 110 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 125 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 128 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 114 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 118 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 123 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 117 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 108 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 117 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 101 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 126 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 133 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 132 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 128 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 134 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 132 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 120 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 123 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 126 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 126 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 117 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 121 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 123 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 128 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 122 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 112 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 118 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 118 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "O" ], "context_index": 29, "input_format": "csv", "input_index_base": "names" }, { "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\n# num_shows=11\n# block_runtime_minutes=15795\n# show_ids=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11\n\nshow_id,base_viewers\n1,6137\n2,1590\n3,6087\n4,1616\n5,6052\n6,4542\n7,6279\n8,4928\n9,4219\n10,4289\n11,5492\n\nshow_id,runtime_minutes\n1,6334\n2,1656\n3,5927\n4,1323\n5,5733\n6,4671\n7,6395\n8,5182\n9,3930\n10,4544\n11,5254\n\nshow_i_id,show_j_id,pairing_uplift_viewers\n1,2,2358\n1,3,4112\n1,8,5656\n1,9,6033\n2,3,2482\n2,5,544\n4,6,2154\n4,7,3049\n4,8,1732\n4,9,2833\n5,9,4306\n7,9,3005\n7,10,3662\n8,11,3585\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": [ 6137, 1590, 6087, 1616, 6052, 4542, 6279, 4928, 4219, 4289, 5492 ], "quadratic_coeffs": [ [ 0, 2358, 4112, 0, 0, 0, 0, 5656, 6033, 0, 0 ], [ 0, 1306, 2482, 0, 544, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 5327, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 2648, 0, 2154, 3049, 1732, 2833, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 4306, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 2639, 0, 3005, 3662, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3585 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 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": [ 6334, 1656, 5927, 1323, 5733, 4671, 6395, 5182, 3930, 4544, 5254 ], "capacity": 15795, "solution": [ 0, 7, 8 ], "obj": 26973.0, "problem_type": "QKP" }, "solution": [ 0, 7, 8 ], "obj": 26973.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 15795, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 6137 }, { "item_id": 2, "linear_profit": 1590 }, { "item_id": 3, "linear_profit": 6087 }, { "item_id": 4, "linear_profit": 1616 }, { "item_id": 5, "linear_profit": 6052 }, { "item_id": 6, "linear_profit": 4542 }, { "item_id": 7, "linear_profit": 6279 }, { "item_id": 8, "linear_profit": 4928 }, { "item_id": 9, "linear_profit": 4219 }, { "item_id": 10, "linear_profit": 4289 }, { "item_id": 11, "linear_profit": 5492 } ], "weight_pairs": [ { "item_id": 1, "weight": 6334 }, { "item_id": 2, "weight": 1656 }, { "item_id": 3, "weight": 5927 }, { "item_id": 4, "weight": 1323 }, { "item_id": 5, "weight": 5733 }, { "item_id": 6, "weight": 4671 }, { "item_id": 7, "weight": 6395 }, { "item_id": 8, "weight": 5182 }, { "item_id": 9, "weight": 3930 }, { "item_id": 10, "weight": 4544 }, { "item_id": 11, "weight": 5254 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 2358 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 4112 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 5656 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 6033 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 1306 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 2482 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 544 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 5327 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 2648 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 2154 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 3049 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 1732 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 2833 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 4306 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 2639 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 3005 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 3662 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 3585 } ] }, "solution_variant": [ 1, 8, 9 ], "context_index": 30, "input_format": "csv", "input_index_base": 1 }, { "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 12 tackle options listed as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and the pack's limit is 19422.\n\n| tackle_id | base_catch_value |\n|---|---|\n| 0 | 1284 |\n| 1 | 3565 |\n| 2 | 2004 |\n| 3 | 2843 |\n| 4 | 1472 |\n| 5 | 1398 |\n| 6 | 6409 |\n| 7 | 6104 |\n| 8 | 4347 |\n| 9 | 1182 |\n| 10 | 6274 |\n| 11 | 3856 |\n\n| tackle_id | tackle_weight |\n|---|---|\n| 0 | 4862 |\n| 1 | 3458 |\n| 2 | 5011 |\n| 3 | 3219 |\n| 4 | 2813 |\n| 5 | 3193 |\n| 6 | 1854 |\n| 7 | 5233 |\n| 8 | 4443 |\n| 9 | 1616 |\n| 10 | 2036 |\n| 11 | 4699 |\n\n| tackle_i_id | tackle_j_id | combination_bonus_value |\n|---|---|---|\n| 0 | 1 | 2477 |\n| 0 | 2 | 1748 |\n| 0 | 3 | 3209 |\n| 0 | 4 | 5010 |\n| 0 | 5 | 3032 |\n| 0 | 6 | 5483 |\n| 0 | 7 | 3989 |\n| 0 | 8 | 3441 |\n| 0 | 9 | 3763 |\n| 0 | 10 | 4327 |\n| 0 | 11 | 783 |\n| 1 | 2 | 4697 |\n| 1 | 3 | 3168 |\n| 1 | 4 | 1527 |\n| 1 | 5 | 2943 |\n| 1 | 6 | 1138 |\n| 1 | 7 | 3723 |\n| 1 | 8 | 2487 |\n| 1 | 9 | 2168 |\n| 1 | 10 | 824 |\n| 1 | 11 | 1163 |\n| 2 | 3 | 4815 |\n| 2 | 4 | 3305 |\n| 2 | 5 | 4977 |\n| 2 | 6 | 4636 |\n| 2 | 7 | 4839 |\n| 2 | 8 | 2610 |\n| 2 | 9 | 1955 |\n| 2 | 10 | 699 |\n| 2 | 11 | 1827 |\n| 3 | 4 | 3544 |\n| 3 | 5 | 2560 |\n| 3 | 6 | 2092 |\n| 3 | 7 | 4488 |\n| 3 | 8 | 3827 |\n| 3 | 9 | 2107 |\n| 3 | 10 | 1262 |\n| 3 | 11 | 1234 |\n| 4 | 5 | 3453 |\n| 4 | 6 | 1935 |\n| 4 | 7 | 2570 |\n| 4 | 8 | 2746 |\n| 4 | 9 | 825 |\n| 4 | 10 | 2041 |\n| 4 | 11 | 3549 |\n| 5 | 6 | 2811 |\n| 5 | 7 | 4747 |\n| 5 | 8 | 5221 |\n| 5 | 9 | 5531 |\n| 5 | 10 | 5027 |\n| 5 | 11 | 4470 |\n| 6 | 7 | 3498 |\n| 6 | 8 | 3260 |\n| 6 | 9 | 2580 |\n| 6 | 10 | 2347 |\n| 6 | 11 | 3063 |\n| 7 | 8 | 4474 |\n| 7 | 9 | 4830 |\n| 7 | 10 | 5252 |\n| 7 | 11 | 3682 |\n| 8 | 9 | 3867 |\n| 8 | 10 | 3349 |\n| 8 | 11 | 2360 |\n| 9 | 10 | 2446 |\n| 9 | 11 | 3127 |\n| 10 | 11 | 5776 |\n\nPack smart: choose gear and pairings that raise total expected catch while staying within the 19422 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": [ 1284, 3565, 2004, 2843, 1472, 1398, 6409, 6104, 4347, 1182, 6274, 3856 ], "quadratic_coeffs": [ [ 3297, 2477, 1748, 3209, 5010, 3032, 5483, 3989, 3441, 3763, 4327, 783 ], [ 0, 3681, 4697, 3168, 1527, 2943, 1138, 3723, 2487, 2168, 824, 1163 ], [ 0, 0, 3796, 4815, 3305, 4977, 4636, 4839, 2610, 1955, 699, 1827 ], [ 0, 0, 0, 1074, 3544, 2560, 2092, 4488, 3827, 2107, 1262, 1234 ], [ 0, 0, 0, 0, 2634, 3453, 1935, 2570, 2746, 825, 2041, 3549 ], [ 0, 0, 0, 0, 0, 5434, 2811, 4747, 5221, 5531, 5027, 4470 ], [ 0, 0, 0, 0, 0, 0, 2706, 3498, 3260, 2580, 2347, 3063 ], [ 0, 0, 0, 0, 0, 0, 0, 1368, 4474, 4830, 5252, 3682 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 3644, 3867, 3349, 2360 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2249, 2446, 3127 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5011, 5776 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2129 ] ], "weights": [ 4862, 3458, 5011, 3219, 2813, 3193, 1854, 5233, 4443, 1616, 2036, 4699 ], "capacity": 19422, "solution": [ 3, 4, 5, 6, 8, 9, 10 ], "obj": 86756.0, "problem_type": "QKP" }, "solution": [ 3, 4, 5, 6, 8, 9, 10 ], "obj": 86756.0, "instance_variant": { "problem_type": "QKP", "num_items": 12, "capacity": 19422, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 1284 }, { "item_id": 1, "linear_profit": 3565 }, { "item_id": 2, "linear_profit": 2004 }, { "item_id": 3, "linear_profit": 2843 }, { "item_id": 4, "linear_profit": 1472 }, { "item_id": 5, "linear_profit": 1398 }, { "item_id": 6, "linear_profit": 6409 }, { "item_id": 7, "linear_profit": 6104 }, { "item_id": 8, "linear_profit": 4347 }, { "item_id": 9, "linear_profit": 1182 }, { "item_id": 10, "linear_profit": 6274 }, { "item_id": 11, "linear_profit": 3856 } ], "weight_pairs": [ { "item_id": 0, "weight": 4862 }, { "item_id": 1, "weight": 3458 }, { "item_id": 2, "weight": 5011 }, { "item_id": 3, "weight": 3219 }, { "item_id": 4, "weight": 2813 }, { "item_id": 5, "weight": 3193 }, { "item_id": 6, "weight": 1854 }, { "item_id": 7, "weight": 5233 }, { "item_id": 8, "weight": 4443 }, { "item_id": 9, "weight": 1616 }, { "item_id": 10, "weight": 2036 }, { "item_id": 11, "weight": 4699 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 3297 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 2477 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 1748 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 3209 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 5010 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 3032 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 5483 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 3989 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 3441 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 3763 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 4327 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 783 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 3681 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 4697 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 3168 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 1527 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 2943 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 1138 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 3723 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 2487 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 2168 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 824 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 1163 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 3796 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 4815 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 3305 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 4977 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 4636 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 4839 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 2610 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 1955 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 699 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 1827 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 1074 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 3544 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 2560 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 2092 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 4488 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 3827 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 2107 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 1262 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 1234 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 2634 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 3453 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 1935 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 2570 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 2746 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 825 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 2041 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 3549 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 5434 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 2811 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 4747 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 5221 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 5531 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 5027 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 4470 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 2706 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 3498 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 3260 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 2580 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 2347 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 3063 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 1368 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 4474 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 4830 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 5252 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 3682 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 3644 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 3867 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 3349 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 2360 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 2249 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 2446 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 3127 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 5011 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 5776 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 2129 } ] }, "solution_variant": [ 3, 4, 5, 6, 8, 9, 10 ], "context_index": 31, "input_format": "markdown_table", "input_index_base": 0 }, { "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\n{\n \"total_items\": 15,\n \"carry_capacity\": 26697,\n \"item_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 ],\n \"linear\": [\n {\n \"gear_id\": 0,\n \"standalone_value\": 3317\n },\n {\n \"gear_id\": 1,\n \"standalone_value\": 3289\n },\n {\n \"gear_id\": 2,\n \"standalone_value\": 226\n },\n {\n \"gear_id\": 3,\n \"standalone_value\": 3229\n },\n {\n \"gear_id\": 4,\n \"standalone_value\": 2997\n },\n {\n \"gear_id\": 5,\n \"standalone_value\": 724\n },\n {\n \"gear_id\": 6,\n \"standalone_value\": 424\n },\n {\n \"gear_id\": 7,\n \"standalone_value\": 267\n },\n {\n \"gear_id\": 8,\n \"standalone_value\": 3033\n },\n {\n \"gear_id\": 9,\n \"standalone_value\": 758\n },\n {\n \"gear_id\": 10,\n \"standalone_value\": 3659\n },\n {\n \"gear_id\": 11,\n \"standalone_value\": 2079\n },\n {\n \"gear_id\": 12,\n \"standalone_value\": 3930\n },\n {\n \"gear_id\": 13,\n \"standalone_value\": 2258\n },\n {\n \"gear_id\": 14,\n \"standalone_value\": 3216\n }\n ],\n \"weights\": [\n {\n \"gear_id\": 0,\n \"item_weight\": 3282\n },\n {\n \"gear_id\": 1,\n \"item_weight\": 3040\n },\n {\n \"gear_id\": 2,\n \"item_weight\": 253\n },\n {\n \"gear_id\": 3,\n \"item_weight\": 3255\n },\n {\n \"gear_id\": 4,\n \"item_weight\": 2760\n },\n {\n \"gear_id\": 5,\n \"item_weight\": 1033\n },\n {\n \"gear_id\": 6,\n \"item_weight\": 698\n },\n {\n \"gear_id\": 7,\n \"item_weight\": 294\n },\n {\n \"gear_id\": 8,\n \"item_weight\": 2961\n },\n {\n \"gear_id\": 9,\n \"item_weight\": 1045\n },\n {\n \"gear_id\": 10,\n \"item_weight\": 3358\n },\n {\n \"gear_id\": 11,\n \"item_weight\": 2135\n },\n {\n \"gear_id\": 12,\n \"item_weight\": 3613\n },\n {\n \"gear_id\": 13,\n \"item_weight\": 2201\n },\n {\n \"gear_id\": 14,\n \"item_weight\": 3534\n }\n ],\n \"quadratic\": [\n {\n \"gear_i_id\": 0,\n \"gear_j_id\": 1,\n \"combo_bonus\": 583\n },\n {\n \"gear_i_id\": 0,\n \"gear_j_id\": 5,\n \"combo_bonus\": 3975\n },\n {\n \"gear_i_id\": 0,\n \"gear_j_id\": 6,\n \"combo_bonus\": 3953\n },\n {\n \"gear_i_id\": 0,\n \"gear_j_id\": 7,\n \"combo_bonus\": 1730\n },\n {\n \"gear_i_id\": 0,\n \"gear_j_id\": 9,\n \"combo_bonus\": 3719\n },\n {\n \"gear_i_id\": 0,\n \"gear_j_id\": 14,\n \"combo_bonus\": 5059\n },\n {\n \"gear_i_id\": 1,\n \"gear_j_id\": 3,\n \"combo_bonus\": 2396\n },\n {\n \"gear_i_id\": 1,\n \"gear_j_id\": 6,\n \"combo_bonus\": 6100\n },\n {\n \"gear_i_id\": 2,\n \"gear_j_id\": 7,\n \"combo_bonus\": 1398\n },\n {\n \"gear_i_id\": 2,\n \"gear_j_id\": 9,\n \"combo_bonus\": 4649\n },\n {\n \"gear_i_id\": 2,\n \"gear_j_id\": 12,\n \"combo_bonus\": 2635\n },\n {\n \"gear_i_id\": 3,\n \"gear_j_id\": 6,\n \"combo_bonus\": 1163\n },\n {\n \"gear_i_id\": 3,\n \"gear_j_id\": 10,\n \"combo_bonus\": 3594\n },\n {\n \"gear_i_id\": 4,\n \"gear_j_id\": 6,\n \"combo_bonus\": 3874\n },\n {\n \"gear_i_id\": 4,\n \"gear_j_id\": 12,\n \"combo_bonus\": 3606\n },\n {\n \"gear_i_id\": 4,\n \"gear_j_id\": 14,\n \"combo_bonus\": 1470\n },\n {\n \"gear_i_id\": 5,\n \"gear_j_id\": 7,\n \"combo_bonus\": 1396\n },\n {\n \"gear_i_id\": 5,\n \"gear_j_id\": 8,\n \"combo_bonus\": 509\n },\n {\n \"gear_i_id\": 5,\n \"gear_j_id\": 9,\n \"combo_bonus\": 2822\n },\n {\n \"gear_i_id\": 5,\n \"gear_j_id\": 14,\n \"combo_bonus\": 3316\n },\n {\n \"gear_i_id\": 6,\n \"gear_j_id\": 13,\n \"combo_bonus\": 550\n },\n {\n \"gear_i_id\": 7,\n \"gear_j_id\": 9,\n \"combo_bonus\": 2158\n },\n {\n \"gear_i_id\": 8,\n \"gear_j_id\": 13,\n \"combo_bonus\": 1987\n },\n {\n \"gear_i_id\": 9,\n \"gear_j_id\": 13,\n \"combo_bonus\": 1499\n },\n {\n \"gear_i_id\": 11,\n \"gear_j_id\": 13,\n \"combo_bonus\": 3575\n }\n ]\n}\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": [ 3317, 3289, 226, 3229, 2997, 724, 424, 267, 3033, 758, 3659, 2079, 3930, 2258, 3216 ], "quadratic_coeffs": [ [ 0, 583, 0, 0, 0, 3975, 3953, 1730, 0, 3719, 0, 0, 0, 0, 5059 ], [ 0, 0, 0, 2396, 0, 0, 6100, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 1398, 0, 4649, 0, 0, 2635, 0, 0 ], [ 0, 0, 0, 3580, 0, 0, 1163, 0, 0, 0, 3594, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 3874, 0, 0, 0, 0, 0, 3606, 0, 1470 ], [ 0, 0, 0, 0, 0, 0, 0, 1396, 509, 2822, 0, 0, 0, 0, 3316 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 550, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 4903, 0, 2158, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1987, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1499, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3575, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 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": [ 3282, 3040, 253, 3255, 2760, 1033, 698, 294, 2961, 1045, 3358, 2135, 3613, 2201, 3534 ], "capacity": 26697, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 12, 14 ], "obj": 85632.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 12, 14 ], "obj": 85632.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 26697, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 3317 }, { "item_id": 1, "linear_profit": 3289 }, { "item_id": 2, "linear_profit": 226 }, { "item_id": 3, "linear_profit": 3229 }, { "item_id": 4, "linear_profit": 2997 }, { "item_id": 5, "linear_profit": 724 }, { "item_id": 6, "linear_profit": 424 }, { "item_id": 7, "linear_profit": 267 }, { "item_id": 8, "linear_profit": 3033 }, { "item_id": 9, "linear_profit": 758 }, { "item_id": 10, "linear_profit": 3659 }, { "item_id": 11, "linear_profit": 2079 }, { "item_id": 12, "linear_profit": 3930 }, { "item_id": 13, "linear_profit": 2258 }, { "item_id": 14, "linear_profit": 3216 } ], "weight_pairs": [ { "item_id": 0, "weight": 3282 }, { "item_id": 1, "weight": 3040 }, { "item_id": 2, "weight": 253 }, { "item_id": 3, "weight": 3255 }, { "item_id": 4, "weight": 2760 }, { "item_id": 5, "weight": 1033 }, { "item_id": 6, "weight": 698 }, { "item_id": 7, "weight": 294 }, { "item_id": 8, "weight": 2961 }, { "item_id": 9, "weight": 1045 }, { "item_id": 10, "weight": 3358 }, { "item_id": 11, "weight": 2135 }, { "item_id": 12, "weight": 3613 }, { "item_id": 13, "weight": 2201 }, { "item_id": 14, "weight": 3534 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 583 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 3975 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 3953 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 1730 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 3719 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 5059 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 2396 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 6100 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 1398 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 4649 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 2635 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 3580 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 1163 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 3594 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 3874 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 3606 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 1470 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 1396 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 509 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 2822 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 3316 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 550 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 4903 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 2158 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 1987 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 1499 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 3575 } ] }, "solution_variant": [ 0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 12, 14 ], "context_index": 32, "input_format": "json", "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\n# num_plants=11\n# plot_area_capacity=2317\n# plant_list=0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\n\nplant_id,base_appeal\n0,2095\n1,3195\n2,1356\n3,901\n4,2536\n5,325\n6,1609\n7,1695\n8,3075\n9,789\n10,864\n\nplant_id,area_required\n0,243\n1,1236\n2,839\n3,1014\n4,568\n5,841\n6,1242\n7,3093\n8,2910\n9,1671\n10,3246\n\nplant_i_id,plant_j_id,pair_synergy_appeal\n0,1,174\n0,3,292\n0,5,742\n0,6,641\n0,10,835\n1,2,1092\n1,4,1079\n1,5,1808\n1,7,1697\n1,8,1923\n1,9,1198\n2,4,1650\n2,5,1214\n2,7,430\n2,9,1039\n3,5,1583\n3,7,1100\n3,8,843\n3,9,864\n3,10,371\n4,7,1593\n4,8,623\n4,9,2552\n5,6,2460\n5,9,1445\n5,10,1125\n6,7,713\n6,8,950\n6,9,636\n7,10,1045\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": [ 2095, 3195, 1356, 901, 2536, 325, 1609, 1695, 3075, 789, 864 ], "quadratic_coeffs": [ [ 790, 174, 0, 292, 0, 742, 641, 0, 0, 0, 835 ], [ 0, 1346, 1092, 0, 1079, 1808, 0, 1697, 1923, 1198, 0 ], [ 0, 0, 0, 0, 1650, 1214, 0, 430, 0, 1039, 0 ], [ 0, 0, 0, 0, 0, 1583, 0, 1100, 843, 864, 371 ], [ 0, 0, 0, 0, 0, 0, 0, 1593, 623, 2552, 0 ], [ 0, 0, 0, 0, 0, 0, 2460, 0, 0, 1445, 1125 ], [ 0, 0, 0, 0, 0, 0, 0, 713, 950, 636, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 1353, 0, 0, 1045 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 2878, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2548, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 243, 1236, 839, 1014, 568, 841, 1242, 3093, 2910, 1671, 3246 ], "capacity": 2317, "solution": [ 0, 1, 4 ], "obj": 9079.0, "problem_type": "QKP" }, "solution": [ 0, 1, 4 ], "obj": 9079.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 2317, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 2095 }, { "item_id": 1, "linear_profit": 3195 }, { "item_id": 2, "linear_profit": 1356 }, { "item_id": 3, "linear_profit": 901 }, { "item_id": 4, "linear_profit": 2536 }, { "item_id": 5, "linear_profit": 325 }, { "item_id": 6, "linear_profit": 1609 }, { "item_id": 7, "linear_profit": 1695 }, { "item_id": 8, "linear_profit": 3075 }, { "item_id": 9, "linear_profit": 789 }, { "item_id": 10, "linear_profit": 864 } ], "weight_pairs": [ { "item_id": 0, "weight": 243 }, { "item_id": 1, "weight": 1236 }, { "item_id": 2, "weight": 839 }, { "item_id": 3, "weight": 1014 }, { "item_id": 4, "weight": 568 }, { "item_id": 5, "weight": 841 }, { "item_id": 6, "weight": 1242 }, { "item_id": 7, "weight": 3093 }, { "item_id": 8, "weight": 2910 }, { "item_id": 9, "weight": 1671 }, { "item_id": 10, "weight": 3246 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 790 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 174 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 292 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 742 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 641 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 835 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 1346 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 1092 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 1079 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 1808 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 1697 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 1923 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 1198 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 1650 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 1214 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 430 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 1039 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 1583 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 1100 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 843 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 864 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 371 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 1593 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 623 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 2552 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 2460 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 1445 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 1125 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 713 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 950 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 636 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 1353 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 1045 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 2878 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 2548 } ] }, "solution_variant": [ 0, 1, 4 ], "context_index": 33, "input_format": "csv", "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\nThere are 12 appetizer options (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12), and the host has 2230 units of storage space to work with.\n1 gives a base satisfaction of 142 points when prepared.\n2 gives a base satisfaction of 317 points when prepared.\n3 gives a base satisfaction of 156 points when prepared.\n4 gives a base satisfaction of 279 points when prepared.\n5 gives a base satisfaction of 231 points when prepared.\n6 gives a base satisfaction of 277 points when prepared.\n7 gives a base satisfaction of 288 points when prepared.\n8 gives a base satisfaction of 199 points when prepared.\n9 gives a base satisfaction of 176 points when prepared.\n10 gives a base satisfaction of 231 points when prepared.\n11 gives a base satisfaction of 250 points when prepared.\n12 gives a base satisfaction of 329 points when prepared.\nPreparing 1 consumes 112 units of storage space.\nPreparing 2 consumes 287 units of storage space.\nPreparing 3 consumes 126 units of storage space.\nPreparing 4 consumes 249 units of storage space.\nPreparing 5 consumes 201 units of storage space.\nPreparing 6 consumes 247 units of storage space.\nPreparing 7 consumes 258 units of storage space.\nPreparing 8 consumes 169 units of storage space.\nPreparing 9 consumes 146 units of storage space.\nPreparing 10 consumes 201 units of storage space.\nPreparing 11 consumes 220 units of storage space.\nPreparing 12 consumes 299 units of storage space.\nIf both 1 and 2 are prepared, they add 284 bonus satisfaction points.\nIf both 1 and 3 are prepared, they add 168 bonus satisfaction points.\nIf both 1 and 6 are prepared, they add 196 bonus satisfaction points.\nIf both 1 and 8 are prepared, they add 127 bonus satisfaction points.\nIf both 1 and 10 are prepared, they add 202 bonus satisfaction points.\nIf both 2 and 3 are prepared, they add 161 bonus satisfaction points.\nIf both 2 and 7 are prepared, they add 203 bonus satisfaction points.\nIf both 2 and 8 are prepared, they add 240 bonus satisfaction points.\nIf both 3 and 6 are prepared, they add 231 bonus satisfaction points.\nIf both 3 and 7 are prepared, they add 189 bonus satisfaction points.\nIf both 4 and 11 are prepared, they add 181 bonus satisfaction points.\nIf both 5 and 11 are prepared, they add 171 bonus satisfaction points.\nIf both 6 and 11 are prepared, they add 193 bonus satisfaction points.\nIf both 6 and 12 are prepared, they add 128 bonus satisfaction points.\nIf both 8 and 9 are prepared, they add 238 bonus satisfaction points.\nIf both 8 and 12 are prepared, they add 270 bonus satisfaction points.\nIf both 9 and 12 are prepared, they add 279 bonus satisfaction points.\nIf both 10 and 11 are prepared, they add 156 bonus satisfaction points.\nIf both 11 and 12 are prepared, they add 124 bonus satisfaction points.\nThe host must pick appetizers that fit within the 2230 to maximize total happiness.\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": [ 142, 317, 156, 279, 231, 277, 288, 199, 176, 231, 250, 329 ], "quadratic_coeffs": [ [ 0, 284, 168, 0, 0, 196, 0, 127, 0, 202, 0, 0 ], [ 0, 234, 161, 0, 0, 0, 203, 240, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 231, 189, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 171, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 128 ], [ 0, 0, 0, 0, 0, 0, 228, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 238, 0, 0, 270 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 156, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 124 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 112, 287, 126, 249, 201, 247, 258, 169, 146, 201, 220, 299 ], "capacity": 2230, "solution": [ 0, 1, 2, 5, 6, 7, 8, 9, 10, 11 ], "obj": 5754.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 5, 6, 7, 8, 9, 10, 11 ], "obj": 5754.0, "instance_variant": { "problem_type": "QKP", "num_items": 12, "capacity": 2230, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 142 }, { "item_id": 2, "linear_profit": 317 }, { "item_id": 3, "linear_profit": 156 }, { "item_id": 4, "linear_profit": 279 }, { "item_id": 5, "linear_profit": 231 }, { "item_id": 6, "linear_profit": 277 }, { "item_id": 7, "linear_profit": 288 }, { "item_id": 8, "linear_profit": 199 }, { "item_id": 9, "linear_profit": 176 }, { "item_id": 10, "linear_profit": 231 }, { "item_id": 11, "linear_profit": 250 }, { "item_id": 12, "linear_profit": 329 } ], "weight_pairs": [ { "item_id": 1, "weight": 112 }, { "item_id": 2, "weight": 287 }, { "item_id": 3, "weight": 126 }, { "item_id": 4, "weight": 249 }, { "item_id": 5, "weight": 201 }, { "item_id": 6, "weight": 247 }, { "item_id": 7, "weight": 258 }, { "item_id": 8, "weight": 169 }, { "item_id": 9, "weight": 146 }, { "item_id": 10, "weight": 201 }, { "item_id": 11, "weight": 220 }, { "item_id": 12, "weight": 299 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 284 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 168 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 196 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 127 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 202 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 234 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 161 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 203 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 240 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 231 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 189 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 181 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 171 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 193 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 128 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 228 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 238 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 270 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 279 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 156 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 124 } ] }, "solution_variant": [ 1, 2, 3, 6, 7, 8, 9, 10, 11, 12 ], "context_index": 34, "input_format": "nl", "input_index_base": 1 }, { "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 13 materials: ids 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, backpack weight limit 406.\nWe get a base study value of 100 from 0.\nWe get a base study value of 101 from 1.\nWe get a base study value of 105 from 2.\nWe get a base study value of 103 from 3.\nWe get a base study value of 100 from 4.\nWe get a base study value of 102 from 5.\nWe get a base study value of 102 from 6.\nWe get a base study value of 105 from 7.\nWe get a base study value of 105 from 8.\nWe get a base study value of 105 from 9.\nWe get a base study value of 105 from 10.\nWe get a base study value of 104 from 11.\nWe get a base study value of 101 from 12.\nWe note 0 weighs 101.\nWe note 1 weighs 105.\nWe note 2 weighs 103.\nWe note 3 weighs 101.\nWe note 4 weighs 103.\nWe note 5 weighs 103.\nWe note 6 weighs 103.\nWe note 7 weighs 104.\nWe note 8 weighs 100.\nWe note 9 weighs 104.\nWe note 10 weighs 102.\nWe note 11 weighs 101.\nWe note 12 weighs 105.\nIf we pack 0 with 2, we gain an extra 101 study bonus.\nIf we pack 0 with 3, we gain an extra 101 study bonus.\nIf we pack 0 with 4, we gain an extra 100 study bonus.\nIf we pack 0 with 6, we gain an extra 100 study bonus.\nIf we pack 0 with 7, we gain an extra 101 study bonus.\nIf we pack 0 with 8, we gain an extra 100 study bonus.\nIf we pack 0 with 9, we gain an extra 102 study bonus.\nIf we pack 0 with 10, we gain an extra 100 study bonus.\nIf we pack 0 with 12, we gain an extra 102 study bonus.\nIf we pack 1 with 2, we gain an extra 103 study bonus.\nIf we pack 1 with 4, we gain an extra 104 study bonus.\nIf we pack 1 with 5, we gain an extra 103 study bonus.\nIf we pack 1 with 6, we gain an extra 100 study bonus.\nIf we pack 1 with 7, we gain an extra 102 study bonus.\nIf we pack 1 with 10, we gain an extra 104 study bonus.\nIf we pack 1 with 11, we gain an extra 102 study bonus.\nIf we pack 1 with 12, we gain an extra 104 study bonus.\nIf we pack 2 with 3, we gain an extra 102 study bonus.\nIf we pack 2 with 4, we gain an extra 103 study bonus.\nIf we pack 2 with 5, we gain an extra 101 study bonus.\nIf we pack 2 with 7, we gain an extra 100 study bonus.\nIf we pack 2 with 9, we gain an extra 100 study bonus.\nIf we pack 2 with 10, we gain an extra 100 study bonus.\nIf we pack 2 with 11, we gain an extra 100 study bonus.\nIf we pack 3 with 4, we gain an extra 101 study bonus.\nIf we pack 3 with 5, we gain an extra 101 study bonus.\nIf we pack 3 with 6, we gain an extra 102 study bonus.\nIf we pack 3 with 7, we gain an extra 100 study bonus.\nIf we pack 3 with 8, we gain an extra 102 study bonus.\nIf we pack 3 with 9, we gain an extra 100 study bonus.\nIf we pack 3 with 10, we gain an extra 102 study bonus.\nIf we pack 3 with 11, we gain an extra 101 study bonus.\nIf we pack 4 with 5, we gain an extra 100 study bonus.\nIf we pack 4 with 6, we gain an extra 100 study bonus.\nIf we pack 4 with 7, we gain an extra 100 study bonus.\nIf we pack 4 with 8, we gain an extra 100 study bonus.\nIf we pack 4 with 9, we gain an extra 100 study bonus.\nIf we pack 4 with 11, we gain an extra 100 study bonus.\nIf we pack 4 with 12, we gain an extra 100 study bonus.\nIf we pack 5 with 6, we gain an extra 100 study bonus.\nIf we pack 5 with 7, we gain an extra 100 study bonus.\nIf we pack 5 with 8, we gain an extra 100 study bonus.\nIf we pack 5 with 9, we gain an extra 100 study bonus.\nIf we pack 5 with 10, we gain an extra 104 study bonus.\nIf we pack 5 with 11, we gain an extra 102 study bonus.\nIf we pack 5 with 12, we gain an extra 103 study bonus.\nIf we pack 6 with 7, we gain an extra 101 study bonus.\nIf we pack 6 with 8, we gain an extra 101 study bonus.\nIf we pack 6 with 9, we gain an extra 101 study bonus.\nIf we pack 6 with 10, we gain an extra 101 study bonus.\nIf we pack 6 with 11, we gain an extra 101 study bonus.\nIf we pack 6 with 12, we gain an extra 101 study bonus.\nIf we pack 7 with 8, we gain an extra 104 study bonus.\nIf we pack 7 with 9, we gain an extra 102 study bonus.\nIf we pack 7 with 11, we gain an extra 100 study bonus.\nIf we pack 7 with 12, we gain an extra 100 study bonus.\nIf we pack 8 with 9, we gain an extra 100 study bonus.\nIf we pack 8 with 10, we gain an extra 100 study bonus.\nIf we pack 9 with 11, we gain an extra 101 study bonus.\nIf we pack 9 with 12, we gain an extra 101 study bonus.\nIf we pack 10 with 12, we gain an extra 101 study bonus.\nIf we pack 11 with 12, we gain an extra 100 study bonus.\nWe'll pack to maximize study payoff while staying within the 406 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": [ 100, 101, 105, 103, 100, 102, 102, 105, 105, 105, 105, 104, 101 ], "quadratic_coeffs": [ [ 101, 0, 101, 101, 100, 0, 100, 101, 100, 102, 100, 0, 102 ], [ 0, 104, 103, 0, 104, 103, 100, 102, 0, 0, 104, 102, 104 ], [ 0, 0, 103, 102, 103, 101, 0, 100, 0, 100, 100, 100, 0 ], [ 0, 0, 0, 101, 101, 101, 102, 100, 102, 100, 102, 101, 0 ], [ 0, 0, 0, 0, 100, 100, 100, 100, 100, 100, 0, 100, 100 ], [ 0, 0, 0, 0, 0, 100, 100, 100, 100, 100, 104, 102, 103 ], [ 0, 0, 0, 0, 0, 0, 101, 101, 101, 101, 101, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 103, 104, 102, 0, 100, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 101, 100, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 101, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 0, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 100 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 101, 105, 103, 101, 103, 103, 103, 104, 100, 104, 102, 101, 105 ], "capacity": 406, "solution": [ 3, 5, 8, 10 ], "obj": 1024.0, "problem_type": "QKP" }, "solution": [ 3, 5, 8, 10 ], "obj": 1024.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 406, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 100 }, { "item_id": 1, "linear_profit": 101 }, { "item_id": 2, "linear_profit": 105 }, { "item_id": 3, "linear_profit": 103 }, { "item_id": 4, "linear_profit": 100 }, { "item_id": 5, "linear_profit": 102 }, { "item_id": 6, "linear_profit": 102 }, { "item_id": 7, "linear_profit": 105 }, { "item_id": 8, "linear_profit": 105 }, { "item_id": 9, "linear_profit": 105 }, { "item_id": 10, "linear_profit": 105 }, { "item_id": 11, "linear_profit": 104 }, { "item_id": 12, "linear_profit": 101 } ], "weight_pairs": [ { "item_id": 0, "weight": 101 }, { "item_id": 1, "weight": 105 }, { "item_id": 2, "weight": 103 }, { "item_id": 3, "weight": 101 }, { "item_id": 4, "weight": 103 }, { "item_id": 5, "weight": 103 }, { "item_id": 6, "weight": 103 }, { "item_id": 7, "weight": 104 }, { "item_id": 8, "weight": 100 }, { "item_id": 9, "weight": 104 }, { "item_id": 10, "weight": 102 }, { "item_id": 11, "weight": 101 }, { "item_id": 12, "weight": 105 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "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": 6, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 102 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 104 }, { "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": 103 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 100 }, { "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": 101 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 100 }, { "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": 11, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 100 }, { "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": 11, "quadratic_profit": 100 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 100 }, { "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": 104 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 101 }, { "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": 9, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 103 }, { "item_i_id": 7, "item_j_id": 8, "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": 100 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 101 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 100 } ] }, "solution_variant": [ 3, 5, 8, 10 ], "context_index": 35, "input_format": "nl", "input_index_base": 0 }, { "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\n# total_products=14\n# shelf_capacity_weight=10074\n# product_ids=0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13\n\nproduct_id,estimated_sales\n0,105\n1,450\n2,1696\n3,499\n4,552\n5,2377\n6,548\n7,2711\n8,1887\n9,1182\n10,1071\n11,403\n12,761\n13,3116\n\nproduct_id,product_weight\n0,2553\n1,2597\n2,567\n3,2125\n4,2383\n5,808\n6,1339\n7,1000\n8,1458\n9,1671\n10,1379\n11,1143\n12,1475\n13,2222\n\nproduct_i_id,product_j_id,cross_sale_bonus\n0,3,304\n0,11,3117\n1,3,989\n1,4,1866\n1,7,980\n2,4,1880\n2,8,962\n3,4,1066\n3,5,233\n3,11,1063\n4,8,1555\n4,10,2869\n5,11,747\n5,13,2621\n6,7,3212\n6,8,2564\n7,9,1447\n7,13,2263\n8,11,2718\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": [ 105, 450, 1696, 499, 552, 2377, 548, 2711, 1887, 1182, 1071, 403, 761, 3116 ], "quadratic_coeffs": [ [ 2557, 0, 0, 304, 0, 0, 0, 0, 0, 0, 0, 3117, 0, 0 ], [ 0, 0, 0, 989, 1866, 0, 0, 980, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 1880, 0, 0, 0, 962, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 1066, 233, 0, 0, 0, 0, 0, 1063, 0, 0 ], [ 0, 0, 0, 0, 2358, 0, 0, 0, 1555, 0, 2869, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 747, 0, 2621 ], [ 0, 0, 0, 0, 0, 0, 1744, 3212, 2564, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1447, 0, 0, 0, 2263 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2718, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 2007, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 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": [ 2553, 2597, 567, 2125, 2383, 808, 1339, 1000, 1458, 1671, 1379, 1143, 1475, 2222 ], "capacity": 10074, "solution": [ 2, 5, 6, 7, 8, 10, 11, 13 ], "obj": 28896.0, "problem_type": "QKP" }, "solution": [ 2, 5, 6, 7, 8, 10, 11, 13 ], "obj": 28896.0, "instance_variant": { "problem_type": "QKP", "num_items": 14, "capacity": 10074, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 105 }, { "item_id": 1, "linear_profit": 450 }, { "item_id": 2, "linear_profit": 1696 }, { "item_id": 3, "linear_profit": 499 }, { "item_id": 4, "linear_profit": 552 }, { "item_id": 5, "linear_profit": 2377 }, { "item_id": 6, "linear_profit": 548 }, { "item_id": 7, "linear_profit": 2711 }, { "item_id": 8, "linear_profit": 1887 }, { "item_id": 9, "linear_profit": 1182 }, { "item_id": 10, "linear_profit": 1071 }, { "item_id": 11, "linear_profit": 403 }, { "item_id": 12, "linear_profit": 761 }, { "item_id": 13, "linear_profit": 3116 } ], "weight_pairs": [ { "item_id": 0, "weight": 2553 }, { "item_id": 1, "weight": 2597 }, { "item_id": 2, "weight": 567 }, { "item_id": 3, "weight": 2125 }, { "item_id": 4, "weight": 2383 }, { "item_id": 5, "weight": 808 }, { "item_id": 6, "weight": 1339 }, { "item_id": 7, "weight": 1000 }, { "item_id": 8, "weight": 1458 }, { "item_id": 9, "weight": 1671 }, { "item_id": 10, "weight": 1379 }, { "item_id": 11, "weight": 1143 }, { "item_id": 12, "weight": 1475 }, { "item_id": 13, "weight": 2222 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 2557 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 304 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 3117 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 989 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 1866 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 980 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 1880 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 962 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 1066 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 233 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 1063 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 2358 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 1555 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 2869 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 747 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 2621 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 1744 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 3212 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 2564 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 1447 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 2263 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 2718 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 2007 } ] }, "solution_variant": [ 2, 5, 6, 7, 8, 10, 11, 13 ], "context_index": 36, "input_format": "csv", "input_index_base": 0 }, { "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 13 crates (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) and the truck's weight capacity 2149.\n\n| crate_id | base_life_saving_value |\n|---|---|\n| 0 | 190 |\n| 1 | 174 |\n| 2 | 312 |\n| 3 | 139 |\n| 4 | 261 |\n| 5 | 123 |\n| 6 | 308 |\n| 7 | 111 |\n| 8 | 105 |\n| 9 | 183 |\n| 10 | 120 |\n| 11 | 113 |\n| 12 | 179 |\n\n| crate_id | crate_weight |\n|---|---|\n| 0 | 193 |\n| 1 | 171 |\n| 2 | 298 |\n| 3 | 143 |\n| 4 | 247 |\n| 5 | 111 |\n| 6 | 299 |\n| 7 | 121 |\n| 8 | 109 |\n| 9 | 177 |\n| 10 | 107 |\n| 11 | 117 |\n| 12 | 166 |\n\n| crate_a_id | crate_b_id | pair_synergy_bonus |\n|---|---|---|\n| 0 | 2 | 138 |\n| 0 | 3 | 193 |\n| 0 | 5 | 193 |\n| 0 | 6 | 193 |\n| 0 | 8 | 256 |\n| 1 | 2 | 171 |\n| 1 | 3 | 171 |\n| 1 | 4 | 171 |\n| 1 | 10 | 227 |\n| 2 | 4 | 108 |\n| 2 | 5 | 121 |\n| 2 | 8 | 143 |\n| 2 | 9 | 143 |\n| 2 | 11 | 143 |\n| 3 | 4 | 121 |\n| 3 | 7 | 143 |\n| 3 | 9 | 204 |\n| 4 | 6 | 236 |\n| 4 | 11 | 111 |\n| 4 | 12 | 111 |\n| 5 | 7 | 111 |\n| 5 | 9 | 203 |\n| 6 | 7 | 177 |\n| 6 | 8 | 142 |\n| 6 | 9 | 142 |\n| 6 | 10 | 142 |\n| 6 | 11 | 142 |\n| 7 | 9 | 142 |\n| 7 | 10 | 231 |\n| 7 | 12 | 150 |\n\nThe relief coordinator will select crates so total weight stays within 2149 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": [ 190, 174, 312, 139, 261, 123, 308, 111, 105, 183, 120, 113, 179 ], "quadratic_coeffs": [ [ 0, 0, 138, 193, 0, 193, 193, 0, 256, 0, 0, 0, 0 ], [ 0, 0, 171, 171, 171, 0, 0, 0, 0, 0, 227, 0, 0 ], [ 0, 0, 165, 0, 108, 121, 0, 0, 143, 143, 0, 143, 0 ], [ 0, 0, 0, 0, 121, 0, 0, 143, 0, 204, 0, 0, 0 ], [ 0, 0, 0, 0, 223, 0, 236, 0, 0, 0, 0, 111, 111 ], [ 0, 0, 0, 0, 0, 111, 0, 111, 0, 203, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 177, 142, 142, 142, 142, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 193, 0, 142, 231, 0, 150 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 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": [ 193, 171, 298, 143, 247, 111, 299, 121, 109, 177, 107, 117, 166 ], "capacity": 2149, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "obj": 6757.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "obj": 6757.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 2149, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 190 }, { "item_id": 1, "linear_profit": 174 }, { "item_id": 2, "linear_profit": 312 }, { "item_id": 3, "linear_profit": 139 }, { "item_id": 4, "linear_profit": 261 }, { "item_id": 5, "linear_profit": 123 }, { "item_id": 6, "linear_profit": 308 }, { "item_id": 7, "linear_profit": 111 }, { "item_id": 8, "linear_profit": 105 }, { "item_id": 9, "linear_profit": 183 }, { "item_id": 10, "linear_profit": 120 }, { "item_id": 11, "linear_profit": 113 }, { "item_id": 12, "linear_profit": 179 } ], "weight_pairs": [ { "item_id": 0, "weight": 193 }, { "item_id": 1, "weight": 171 }, { "item_id": 2, "weight": 298 }, { "item_id": 3, "weight": 143 }, { "item_id": 4, "weight": 247 }, { "item_id": 5, "weight": 111 }, { "item_id": 6, "weight": 299 }, { "item_id": 7, "weight": 121 }, { "item_id": 8, "weight": 109 }, { "item_id": 9, "weight": 177 }, { "item_id": 10, "weight": 107 }, { "item_id": 11, "weight": 117 }, { "item_id": 12, "weight": 166 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 138 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 193 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 193 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 193 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 256 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 171 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 171 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 171 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 227 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 165 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 108 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 121 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 143 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 143 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 143 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 121 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 143 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 204 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 223 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 236 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 111 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 203 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 177 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 142 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 142 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 142 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 142 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 193 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 142 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 231 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 150 } ] }, "solution_variant": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "context_index": 37, "input_format": "markdown_table", "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\nListed below are the 13 pieces (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13) and the truck's load limit 684.\nPiece 1 brings a rental of 125.\nPiece 2 brings a rental of 136.\nPiece 3 brings a rental of 135.\nPiece 4 brings a rental of 123.\nPiece 5 brings a rental of 119.\nPiece 6 brings a rental of 113.\nPiece 7 brings a rental of 116.\nPiece 8 brings a rental of 132.\nPiece 9 brings a rental of 125.\nPiece 10 brings a rental of 119.\nPiece 11 brings a rental of 130.\nPiece 12 brings a rental of 117.\nPiece 13 brings a rental of 134.\nPiece 1 occupies 113 capacity on the truck.\nPiece 2 occupies 124 capacity on the truck.\nPiece 3 occupies 123 capacity on the truck.\nPiece 4 occupies 111 capacity on the truck.\nPiece 5 occupies 107 capacity on the truck.\nPiece 6 occupies 101 capacity on the truck.\nPiece 7 occupies 104 capacity on the truck.\nPiece 8 occupies 120 capacity on the truck.\nPiece 9 occupies 113 capacity on the truck.\nPiece 10 occupies 107 capacity on the truck.\nPiece 11 occupies 118 capacity on the truck.\nPiece 12 occupies 105 capacity on the truck.\nPiece 13 occupies 122 capacity on the truck.\nPieces 1 and 2 together add an extra 113 payoff.\nPieces 1 and 3 together add an extra 110 payoff.\nPieces 1 and 4 together add an extra 111 payoff.\nPieces 1 and 6 together add an extra 115 payoff.\nPieces 1 and 8 together add an extra 112 payoff.\nPieces 1 and 9 together add an extra 107 payoff.\nPieces 1 and 12 together add an extra 109 payoff.\nPieces 2 and 3 together add an extra 120 payoff.\nPieces 2 and 4 together add an extra 115 payoff.\nPieces 2 and 5 together add an extra 114 payoff.\nPieces 2 and 6 together add an extra 117 payoff.\nPieces 2 and 7 together add an extra 111 payoff.\nPieces 2 and 8 together add an extra 113 payoff.\nPieces 2 and 12 together add an extra 104 payoff.\nPieces 2 and 13 together add an extra 101 payoff.\nPieces 3 and 4 together add an extra 120 payoff.\nPieces 3 and 5 together add an extra 114 payoff.\nPieces 3 and 6 together add an extra 113 payoff.\nPieces 3 and 7 together add an extra 116 payoff.\nPieces 3 and 8 together add an extra 120 payoff.\nPieces 3 and 9 together add an extra 123 payoff.\nPieces 3 and 10 together add an extra 120 payoff.\nPieces 3 and 13 together add an extra 115 payoff.\nPieces 4 and 5 together add an extra 115 payoff.\nPieces 4 and 7 together add an extra 115 payoff.\nPieces 4 and 8 together add an extra 113 payoff.\nPieces 4 and 9 together add an extra 108 payoff.\nPieces 4 and 11 together add an extra 117 payoff.\nPieces 4 and 12 together add an extra 101 payoff.\nPieces 4 and 13 together add an extra 107 payoff.\nPieces 5 and 6 together add an extra 111 payoff.\nPieces 5 and 8 together add an extra 111 payoff.\nPieces 5 and 9 together add an extra 106 payoff.\nPieces 5 and 12 together add an extra 103 payoff.\nPieces 5 and 13 together add an extra 111 payoff.\nPieces 6 and 7 together add an extra 101 payoff.\nPieces 6 and 8 together add an extra 104 payoff.\nPieces 6 and 9 together add an extra 101 payoff.\nPieces 6 and 11 together add an extra 109 payoff.\nPieces 6 and 13 together add an extra 107 payoff.\nPieces 7 and 8 together add an extra 104 payoff.\nPieces 7 and 9 together add an extra 112 payoff.\nPieces 7 and 10 together add an extra 110 payoff.\nPieces 7 and 11 together add an extra 106 payoff.\nPieces 7 and 12 together add an extra 117 payoff.\nPieces 7 and 13 together add an extra 119 payoff.\nPieces 8 and 9 together add an extra 114 payoff.\nPieces 8 and 10 together add an extra 113 payoff.\nPieces 8 and 11 together add an extra 107 payoff.\nPieces 8 and 12 together add an extra 114 payoff.\nPieces 8 and 13 together add an extra 117 payoff.\nPieces 9 and 11 together add an extra 112 payoff.\nPieces 9 and 12 together add an extra 119 payoff.\nPieces 9 and 13 together add an extra 114 payoff.\nPieces 10 and 12 together add an extra 102 payoff.\nPieces 11 and 12 together add an extra 116 payoff.\nPieces 11 and 13 together add an extra 113 payoff.\nThe stage manager will choose pieces to maximize total rental while staying within the 684 truck limit.\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": [ 125, 136, 135, 123, 119, 113, 116, 132, 125, 119, 130, 117, 134 ], "quadratic_coeffs": [ [ 110, 113, 110, 111, 0, 115, 0, 112, 107, 0, 0, 109, 0 ], [ 0, 117, 120, 115, 114, 117, 111, 113, 0, 0, 0, 104, 101 ], [ 0, 0, 117, 120, 114, 113, 116, 120, 123, 120, 0, 0, 115 ], [ 0, 0, 0, 111, 115, 0, 115, 113, 108, 0, 117, 101, 107 ], [ 0, 0, 0, 0, 109, 111, 0, 111, 106, 0, 0, 103, 111 ], [ 0, 0, 0, 0, 0, 101, 101, 104, 101, 0, 109, 0, 107 ], [ 0, 0, 0, 0, 0, 0, 0, 104, 112, 110, 106, 117, 119 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 114, 113, 107, 114, 117 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 112, 119, 114 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 113, 116, 113 ], [ 0, 0, 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": [ 113, 124, 123, 111, 107, 101, 104, 120, 113, 107, 118, 105, 122 ], "capacity": 684, "solution": [ 2, 5, 6, 7, 8, 12 ], "obj": 2435.0, "problem_type": "QKP" }, "solution": [ 2, 5, 6, 7, 8, 12 ], "obj": 2435.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 684, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 125 }, { "item_id": 2, "linear_profit": 136 }, { "item_id": 3, "linear_profit": 135 }, { "item_id": 4, "linear_profit": 123 }, { "item_id": 5, "linear_profit": 119 }, { "item_id": 6, "linear_profit": 113 }, { "item_id": 7, "linear_profit": 116 }, { "item_id": 8, "linear_profit": 132 }, { "item_id": 9, "linear_profit": 125 }, { "item_id": 10, "linear_profit": 119 }, { "item_id": 11, "linear_profit": 130 }, { "item_id": 12, "linear_profit": 117 }, { "item_id": 13, "linear_profit": 134 } ], "weight_pairs": [ { "item_id": 1, "weight": 113 }, { "item_id": 2, "weight": 124 }, { "item_id": 3, "weight": 123 }, { "item_id": 4, "weight": 111 }, { "item_id": 5, "weight": 107 }, { "item_id": 6, "weight": 101 }, { "item_id": 7, "weight": 104 }, { "item_id": 8, "weight": 120 }, { "item_id": 9, "weight": 113 }, { "item_id": 10, "weight": 107 }, { "item_id": 11, "weight": 118 }, { "item_id": 12, "weight": 105 }, { "item_id": 13, "weight": 122 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 110 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 113 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 110 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 111 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 115 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 112 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 107 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 109 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 117 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 120 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 115 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 114 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 117 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 113 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 104 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 117 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 120 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 114 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 113 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 116 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 120 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 123 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 120 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 115 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 111 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 115 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 115 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 113 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 108 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 117 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 107 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 109 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 106 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 104 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 109 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 107 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 112 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 110 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 106 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 117 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 119 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 114 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 113 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 107 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 114 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 117 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 111 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 112 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 119 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 114 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 113 }, { "item_i_id": 11, "item_j_id": 12, "quadratic_profit": 116 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 113 } ] }, "solution_variant": [ 3, 6, 7, 8, 9, 13 ], "context_index": 38, "input_format": "nl", "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\nBelow are the 11 artworks (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) with their space and value figures; we must select pieces that together do not exceed the crate capacity of 550.\nArtwork 1 has an expected sale value of 114.\nArtwork 2 has an expected sale value of 121.\nArtwork 3 has an expected sale value of 124.\nArtwork 4 has an expected sale value of 104.\nArtwork 5 has an expected sale value of 106.\nArtwork 6 has an expected sale value of 114.\nArtwork 7 has an expected sale value of 124.\nArtwork 8 has an expected sale value of 132.\nArtwork 9 has an expected sale value of 124.\nArtwork 10 has an expected sale value of 141.\nArtwork 11 has an expected sale value of 145.\nArtwork 1 occupies 119 units of crate space.\nArtwork 2 occupies 121 units of crate space.\nArtwork 3 occupies 130 units of crate space.\nArtwork 4 occupies 106 units of crate space.\nArtwork 5 occupies 102 units of crate space.\nArtwork 6 occupies 119 units of crate space.\nArtwork 7 occupies 128 units of crate space.\nArtwork 8 occupies 136 units of crate space.\nArtwork 9 occupies 122 units of crate space.\nArtwork 10 occupies 144 units of crate space.\nArtwork 11 occupies 137 units of crate space.\nIncluding both 1 and 4 yields an extra synergy value of 124.\nIncluding both 1 and 5 yields an extra synergy value of 116.\nIncluding both 1 and 6 yields an extra synergy value of 130.\nIncluding both 1 and 7 yields an extra synergy value of 128.\nIncluding both 1 and 8 yields an extra synergy value of 113.\nIncluding both 1 and 9 yields an extra synergy value of 131.\nIncluding both 1 and 11 yields an extra synergy value of 114.\nIncluding both 2 and 4 yields an extra synergy value of 124.\nIncluding both 2 and 5 yields an extra synergy value of 116.\nIncluding both 2 and 6 yields an extra synergy value of 119.\nIncluding both 2 and 7 yields an extra synergy value of 121.\nIncluding both 2 and 10 yields an extra synergy value of 112.\nIncluding both 2 and 11 yields an extra synergy value of 113.\nIncluding both 3 and 4 yields an extra synergy value of 124.\nIncluding both 3 and 6 yields an extra synergy value of 116.\nIncluding both 3 and 7 yields an extra synergy value of 115.\nIncluding both 3 and 8 yields an extra synergy value of 123.\nIncluding both 3 and 10 yields an extra synergy value of 116.\nIncluding both 3 and 11 yields an extra synergy value of 128.\nIncluding both 4 and 5 yields an extra synergy value of 120.\nIncluding both 4 and 6 yields an extra synergy value of 113.\nIncluding both 4 and 7 yields an extra synergy value of 120.\nIncluding both 4 and 9 yields an extra synergy value of 120.\nIncluding both 4 and 10 yields an extra synergy value of 112.\nIncluding both 4 and 11 yields an extra synergy value of 123.\nIncluding both 5 and 6 yields an extra synergy value of 122.\nIncluding both 5 and 8 yields an extra synergy value of 121.\nIncluding both 5 and 9 yields an extra synergy value of 113.\nIncluding both 5 and 10 yields an extra synergy value of 103.\nIncluding both 5 and 11 yields an extra synergy value of 127.\nIncluding both 6 and 7 yields an extra synergy value of 111.\nIncluding both 6 and 8 yields an extra synergy value of 131.\nIncluding both 6 and 10 yields an extra synergy value of 124.\nIncluding both 6 and 11 yields an extra synergy value of 120.\nIncluding both 7 and 8 yields an extra synergy value of 119.\nIncluding both 7 and 10 yields an extra synergy value of 140.\nIncluding both 8 and 9 yields an extra synergy value of 133.\nIncluding both 8 and 10 yields an extra synergy value of 124.\nIncluding both 8 and 11 yields an extra synergy value of 117.\nIncluding both 9 and 10 yields an extra synergy value of 122.\nIncluding both 9 and 11 yields an extra synergy value of 131.\nIncluding both 10 and 11 yields an extra synergy value of 124.\nWe’ll use these figures to choose the combination that fits within 550 and maximizes expected return.\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": [ 114, 121, 124, 104, 106, 114, 124, 132, 124, 141, 145 ], "quadratic_coeffs": [ [ 126, 0, 0, 124, 116, 130, 128, 113, 131, 0, 114 ], [ 0, 119, 0, 124, 116, 119, 121, 0, 0, 112, 113 ], [ 0, 0, 129, 124, 0, 116, 115, 123, 0, 116, 128 ], [ 0, 0, 0, 125, 120, 113, 120, 0, 120, 112, 123 ], [ 0, 0, 0, 0, 119, 122, 0, 121, 113, 103, 127 ], [ 0, 0, 0, 0, 0, 114, 111, 131, 0, 124, 120 ], [ 0, 0, 0, 0, 0, 0, 125, 119, 0, 140, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 133, 124, 117 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 109, 122, 131 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 124 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 140 ] ], "weights": [ 119, 121, 130, 106, 102, 119, 128, 136, 122, 144, 137 ], "capacity": 550, "solution": [ 7, 8, 9, 10 ], "obj": 1293.0, "problem_type": "QKP" }, "solution": [ 7, 8, 9, 10 ], "obj": 1293.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 550, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 114 }, { "item_id": 2, "linear_profit": 121 }, { "item_id": 3, "linear_profit": 124 }, { "item_id": 4, "linear_profit": 104 }, { "item_id": 5, "linear_profit": 106 }, { "item_id": 6, "linear_profit": 114 }, { "item_id": 7, "linear_profit": 124 }, { "item_id": 8, "linear_profit": 132 }, { "item_id": 9, "linear_profit": 124 }, { "item_id": 10, "linear_profit": 141 }, { "item_id": 11, "linear_profit": 145 } ], "weight_pairs": [ { "item_id": 1, "weight": 119 }, { "item_id": 2, "weight": 121 }, { "item_id": 3, "weight": 130 }, { "item_id": 4, "weight": 106 }, { "item_id": 5, "weight": 102 }, { "item_id": 6, "weight": 119 }, { "item_id": 7, "weight": 128 }, { "item_id": 8, "weight": 136 }, { "item_id": 9, "weight": 122 }, { "item_id": 10, "weight": 144 }, { "item_id": 11, "weight": 137 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 126 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 124 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 116 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 130 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 128 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 113 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 131 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 114 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 119 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 124 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 116 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 119 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 121 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 112 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 113 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 129 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 124 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 116 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 115 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 123 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 116 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 128 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 125 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 120 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 113 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 120 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 120 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 112 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 123 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 119 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 122 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 121 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 113 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 127 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 114 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 131 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 124 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 120 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 125 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 119 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 140 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 133 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 124 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 117 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 109 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 122 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 131 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 112 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 124 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 140 } ] }, "solution_variant": [ 8, 9, 10, 11 ], "context_index": 39, "input_format": "nl", "input_index_base": 1 }, { "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\nThere are 15 donated books (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) and a shelf capacity of 12086.\n\n| book_id | book_benefit |\n|---|---|\n| A | 843 |\n| B | 1009 |\n| C | 1731 |\n| D | 1147 |\n| E | 324 |\n| F | 1217 |\n| G | 1849 |\n| H | 1166 |\n| I | 1136 |\n| J | 1865 |\n| K | 1196 |\n| L | 290 |\n| M | 506 |\n| N | 652 |\n| O | 1002 |\n\n| book_id | book_size |\n|---|---|\n| A | 673 |\n| B | 839 |\n| C | 1561 |\n| D | 977 |\n| E | 154 |\n| F | 1047 |\n| G | 1679 |\n| H | 996 |\n| I | 966 |\n| J | 1695 |\n| K | 1026 |\n| L | 120 |\n| M | 336 |\n| N | 482 |\n| O | 832 |\n\n| book_i_id | book_j_id | pair_bonus |\n|---|---|---|\n| A | B | 914 |\n| A | C | 695 |\n| A | F | 1062 |\n| A | J | 711 |\n| A | K | 284 |\n| A | L | 664 |\n| A | N | 581 |\n| B | C | 975 |\n| B | F | 365 |\n| B | G | 758 |\n| B | H | 741 |\n| B | K | 1012 |\n| B | L | 814 |\n| B | M | 1144 |\n| C | D | 707 |\n| C | E | 1029 |\n| C | F | 613 |\n| C | M | 666 |\n| C | N | 1333 |\n| C | O | 1563 |\n| D | G | 1102 |\n| D | L | 801 |\n| D | M | 695 |\n| D | N | 418 |\n| E | F | 364 |\n| E | K | 372 |\n| E | N | 719 |\n| E | O | 1012 |\n| F | G | 1261 |\n| F | H | 1190 |\n| F | I | 1141 |\n| F | L | 665 |\n| F | M | 1131 |\n| F | O | 380 |\n| G | I | 977 |\n| G | J | 1420 |\n| G | L | 1143 |\n| G | M | 1663 |\n| G | N | 1292 |\n| G | O | 502 |\n| H | J | 707 |\n| H | K | 1064 |\n| H | L | 860 |\n| H | N | 1183 |\n| I | J | 931 |\n| I | L | 790 |\n| I | N | 776 |\n| J | M | 397 |\n| J | N | 961 |\n| J | O | 540 |\n| K | L | 897 |\n| K | N | 1155 |\n| K | O | 995 |\n| L | N | 1553 |\n| M | N | 777 |\n| M | O | 610 |\n| N | O | 1219 |\n\nSelections must fit within the 12086 shelf limit and are chosen to maximize total payoff across the 15 donated books listed above.\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": [ 843, 1009, 1731, 1147, 324, 1217, 1849, 1166, 1136, 1865, 1196, 290, 506, 652, 1002 ], "quadratic_coeffs": [ [ 0, 914, 695, 0, 0, 1062, 0, 0, 0, 711, 284, 664, 0, 581, 0 ], [ 0, 0, 975, 0, 0, 365, 758, 741, 0, 0, 1012, 814, 1144, 0, 0 ], [ 0, 0, 1529, 707, 1029, 613, 0, 0, 0, 0, 0, 0, 666, 1333, 1563 ], [ 0, 0, 0, 1096, 0, 0, 1102, 0, 0, 0, 0, 801, 695, 418, 0 ], [ 0, 0, 0, 0, 0, 364, 0, 0, 0, 0, 372, 0, 0, 719, 1012 ], [ 0, 0, 0, 0, 0, 941, 1261, 1190, 1141, 0, 0, 665, 1131, 0, 380 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 977, 1420, 0, 1143, 1663, 1292, 502 ], [ 0, 0, 0, 0, 0, 0, 0, 744, 0, 707, 1064, 860, 0, 1183, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1298, 931, 0, 790, 0, 776, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 397, 961, 540 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 897, 0, 1155, 995 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 930, 0, 1553, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1029, 777, 610 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1219 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1051 ] ], "weights": [ 673, 839, 1561, 977, 154, 1047, 1679, 996, 966, 1695, 1026, 120, 336, 482, 832 ], "capacity": 12086, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14 ], "obj": 58695.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 14 ], "obj": 58695.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 12086, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 843 }, { "item_id": "B", "linear_profit": 1009 }, { "item_id": "C", "linear_profit": 1731 }, { "item_id": "D", "linear_profit": 1147 }, { "item_id": "E", "linear_profit": 324 }, { "item_id": "F", "linear_profit": 1217 }, { "item_id": "G", "linear_profit": 1849 }, { "item_id": "H", "linear_profit": 1166 }, { "item_id": "I", "linear_profit": 1136 }, { "item_id": "J", "linear_profit": 1865 }, { "item_id": "K", "linear_profit": 1196 }, { "item_id": "L", "linear_profit": 290 }, { "item_id": "M", "linear_profit": 506 }, { "item_id": "N", "linear_profit": 652 }, { "item_id": "O", "linear_profit": 1002 } ], "weight_pairs": [ { "item_id": "A", "weight": 673 }, { "item_id": "B", "weight": 839 }, { "item_id": "C", "weight": 1561 }, { "item_id": "D", "weight": 977 }, { "item_id": "E", "weight": 154 }, { "item_id": "F", "weight": 1047 }, { "item_id": "G", "weight": 1679 }, { "item_id": "H", "weight": 996 }, { "item_id": "I", "weight": 966 }, { "item_id": "J", "weight": 1695 }, { "item_id": "K", "weight": 1026 }, { "item_id": "L", "weight": 120 }, { "item_id": "M", "weight": 336 }, { "item_id": "N", "weight": 482 }, { "item_id": "O", "weight": 832 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 914 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 695 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 1062 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 711 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 284 }, { "item_i_id": "A", "item_j_id": "L", "quadratic_profit": 664 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 581 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 975 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 365 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 758 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 741 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 1012 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 814 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 1144 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 1529 }, { "item_i_id": "C", "item_j_id": "D", "quadratic_profit": 707 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 1029 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 613 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 666 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 1333 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 1563 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 1096 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 1102 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 801 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 695 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 418 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 364 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 372 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 719 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 1012 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 941 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 1261 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 1190 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 1141 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 665 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 1131 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 380 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 977 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 1420 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 1143 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 1663 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 1292 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 502 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 744 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 707 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 1064 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 860 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 1183 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 1298 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 931 }, { "item_i_id": "I", "item_j_id": "L", "quadratic_profit": 790 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 776 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 397 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 961 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 540 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 897 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 1155 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 995 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 930 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 1553 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 1029 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 777 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 610 }, { "item_i_id": "N", "item_j_id": "O", "quadratic_profit": 1219 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 1051 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "K", "L", "M", "N", "O" ], "context_index": 40, "input_format": "markdown_table", "input_index_base": "names" }, { "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\n# num_plants=13\n# flatbed_max_load=5459\n# plant_ids=A, B, C, D, E, F, G, H, I, J, K, L, M\n\nplant_id,base_margin\nA,1057\nB,3010\nC,1008\nD,1248\nE,1099\nF,2074\nG,1719\nH,2421\nI,513\nJ,1268\nK,1947\nL,1809\nM,3105\n\nplant_id,pot_weight\nA,1057\nB,3077\nC,848\nD,1368\nE,982\nF,1974\nG,1777\nH,2469\nI,417\nJ,1306\nK,2069\nL,1728\nM,2994\n\nplant_i_id,plant_j_id,pair_bonus_margin\nA,B,848\nA,E,1057\nA,F,101\nA,H,1057\nA,K,1057\nA,M,437\nB,D,2848\nB,E,1496\nB,F,2278\nB,G,1929\nB,H,2037\nB,L,1757\nB,M,1757\nC,F,848\nC,G,799\nC,I,848\nC,L,1297\nD,G,1368\nD,J,444\nD,L,444\nE,F,982\nE,J,180\nE,K,557\nE,L,779\nF,J,454\nF,M,454\nG,I,101\nG,J,101\nG,L,101\nH,I,121\nH,J,963\nH,K,2516\nH,M,1467\nI,M,1411\nJ,L,2725\nJ,M,2446\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": [ 1057, 3010, 1008, 1248, 1099, 2074, 1719, 2421, 513, 1268, 1947, 1809, 3105 ], "quadratic_coeffs": [ [ 0, 848, 0, 0, 1057, 101, 0, 1057, 0, 0, 1057, 0, 437 ], [ 0, 0, 0, 2848, 1496, 2278, 1929, 2037, 0, 0, 0, 1757, 1757 ], [ 0, 0, 0, 0, 0, 848, 799, 0, 848, 0, 0, 1297, 0 ], [ 0, 0, 0, 1368, 0, 0, 1368, 0, 0, 444, 0, 444, 0 ], [ 0, 0, 0, 0, 982, 982, 0, 0, 0, 180, 557, 779, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 454, 0, 0, 454 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 101, 101, 0, 101, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 121, 963, 2516, 0, 1467 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1411 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2725, 2446 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 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": [ 1057, 3077, 848, 1368, 982, 1974, 1777, 2469, 417, 1306, 2069, 1728, 2994 ], "capacity": 5459, "solution": [ 2, 4, 8, 9, 11 ], "obj": 11526.0, "problem_type": "QKP" }, "solution": [ 2, 4, 8, 9, 11 ], "obj": 11526.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 5459, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 1057 }, { "item_id": "B", "linear_profit": 3010 }, { "item_id": "C", "linear_profit": 1008 }, { "item_id": "D", "linear_profit": 1248 }, { "item_id": "E", "linear_profit": 1099 }, { "item_id": "F", "linear_profit": 2074 }, { "item_id": "G", "linear_profit": 1719 }, { "item_id": "H", "linear_profit": 2421 }, { "item_id": "I", "linear_profit": 513 }, { "item_id": "J", "linear_profit": 1268 }, { "item_id": "K", "linear_profit": 1947 }, { "item_id": "L", "linear_profit": 1809 }, { "item_id": "M", "linear_profit": 3105 } ], "weight_pairs": [ { "item_id": "A", "weight": 1057 }, { "item_id": "B", "weight": 3077 }, { "item_id": "C", "weight": 848 }, { "item_id": "D", "weight": 1368 }, { "item_id": "E", "weight": 982 }, { "item_id": "F", "weight": 1974 }, { "item_id": "G", "weight": 1777 }, { "item_id": "H", "weight": 2469 }, { "item_id": "I", "weight": 417 }, { "item_id": "J", "weight": 1306 }, { "item_id": "K", "weight": 2069 }, { "item_id": "L", "weight": 1728 }, { "item_id": "M", "weight": 2994 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 848 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 1057 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 101 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 1057 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 1057 }, { "item_i_id": "A", "item_j_id": "M", "quadratic_profit": 437 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 2848 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 1496 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 2278 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 1929 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 2037 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 1757 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 1757 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 848 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 799 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 848 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 1297 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 1368 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 1368 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 444 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 444 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 982 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 982 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 180 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 557 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 779 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 454 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 454 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 101 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 101 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 121 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 963 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 2516 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 1467 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 1411 }, { "item_i_id": "J", "item_j_id": "L", "quadratic_profit": 2725 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 2446 } ] }, "solution_variant": [ "C", "E", "I", "J", "L" ], "context_index": 41, "input_format": "csv", "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 14 records: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, and my crate holds up to 4880 weight — details below.\n\n| record_id | crowd_pleasing_score |\n|---|---|\n| 0 | 293 |\n| 1 | 768 |\n| 2 | 460 |\n| 3 | 171 |\n| 4 | 411 |\n| 5 | 768 |\n| 6 | 185 |\n| 7 | 503 |\n| 8 | 316 |\n| 9 | 829 |\n| 10 | 632 |\n| 11 | 137 |\n| 12 | 289 |\n| 13 | 743 |\n\n| record_id | record_weight |\n|---|---|\n| 0 | 297 |\n| 1 | 737 |\n| 2 | 458 |\n| 3 | 189 |\n| 4 | 453 |\n| 5 | 780 |\n| 6 | 230 |\n| 7 | 501 |\n| 8 | 312 |\n| 9 | 793 |\n| 10 | 658 |\n| 11 | 143 |\n| 12 | 245 |\n| 13 | 770 |\n\n| record_i_id | record_j_id | pair_synergy_bonus |\n|---|---|---|\n| 0 | 2 | 110 |\n| 0 | 3 | 297 |\n| 0 | 4 | 223 |\n| 0 | 7 | 297 |\n| 0 | 8 | 297 |\n| 0 | 9 | 297 |\n| 0 | 10 | 297 |\n| 0 | 11 | 238 |\n| 0 | 12 | 297 |\n| 0 | 13 | 297 |\n| 1 | 2 | 105 |\n| 1 | 3 | 737 |\n| 1 | 4 | 349 |\n| 1 | 5 | 737 |\n| 1 | 7 | 316 |\n| 1 | 8 | 658 |\n| 1 | 9 | 689 |\n| 1 | 10 | 676 |\n| 1 | 11 | 310 |\n| 1 | 12 | 493 |\n| 1 | 13 | 152 |\n| 2 | 3 | 376 |\n| 2 | 5 | 458 |\n| 2 | 6 | 310 |\n| 2 | 7 | 458 |\n| 2 | 8 | 258 |\n| 2 | 10 | 393 |\n| 2 | 11 | 431 |\n| 2 | 12 | 319 |\n| 2 | 13 | 267 |\n| 3 | 5 | 189 |\n| 3 | 6 | 189 |\n| 3 | 7 | 105 |\n| 3 | 9 | 189 |\n| 3 | 13 | 263 |\n| 4 | 5 | 453 |\n| 4 | 6 | 453 |\n| 4 | 8 | 453 |\n| 4 | 11 | 312 |\n| 4 | 12 | 336 |\n| 4 | 13 | 336 |\n| 5 | 6 | 152 |\n| 5 | 8 | 140 |\n| 5 | 9 | 152 |\n| 5 | 10 | 152 |\n| 5 | 11 | 152 |\n| 5 | 12 | 152 |\n| 5 | 13 | 152 |\n| 6 | 7 | 790 |\n| 6 | 8 | 143 |\n| 6 | 9 | 246 |\n| 6 | 10 | 310 |\n| 6 | 12 | 152 |\n| 6 | 13 | 279 |\n| 7 | 8 | 121 |\n| 7 | 9 | 872 |\n| 7 | 10 | 105 |\n| 7 | 11 | 812 |\n| 7 | 12 | 312 |\n| 7 | 13 | 704 |\n| 8 | 9 | 431 |\n| 8 | 10 | 480 |\n| 8 | 12 | 246 |\n| 8 | 13 | 105 |\n| 9 | 10 | 225 |\n| 9 | 11 | 587 |\n| 9 | 12 | 172 |\n| 9 | 13 | 630 |\n| 10 | 12 | 258 |\n| 10 | 13 | 833 |\n| 12 | 13 | 258 |\n\nI'll aim to pack the best-scoring mix without exceeding 4880.\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": [ 293, 768, 460, 171, 411, 768, 185, 503, 316, 829, 632, 137, 289, 743 ], "quadratic_coeffs": [ [ 297, 0, 110, 297, 223, 0, 0, 297, 297, 297, 297, 238, 297, 297 ], [ 0, 0, 105, 737, 349, 737, 0, 316, 658, 689, 676, 310, 493, 152 ], [ 0, 0, 306, 376, 0, 458, 310, 458, 258, 0, 393, 431, 319, 267 ], [ 0, 0, 0, 0, 0, 189, 189, 105, 0, 189, 0, 0, 0, 263 ], [ 0, 0, 0, 0, 143, 453, 453, 0, 453, 0, 0, 312, 336, 336 ], [ 0, 0, 0, 0, 0, 0, 152, 0, 140, 152, 152, 152, 152, 152 ], [ 0, 0, 0, 0, 0, 0, 171, 790, 143, 246, 310, 0, 152, 279 ], [ 0, 0, 0, 0, 0, 0, 0, 285, 121, 872, 105, 812, 312, 704 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 152, 431, 480, 0, 246, 105 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 225, 225, 587, 172, 630 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 689, 0, 258, 833 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 238, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 258 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ], "weights": [ 297, 737, 458, 189, 453, 780, 230, 501, 312, 793, 658, 143, 245, 770 ], "capacity": 4880, "solution": [ 0, 1, 3, 6, 7, 8, 9, 10, 11, 12, 13 ], "obj": 21031.0, "problem_type": "QKP" }, "solution": [ 0, 1, 3, 6, 7, 8, 9, 10, 11, 12, 13 ], "obj": 21031.0, "instance_variant": { "problem_type": "QKP", "num_items": 14, "capacity": 4880, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 293 }, { "item_id": 1, "linear_profit": 768 }, { "item_id": 2, "linear_profit": 460 }, { "item_id": 3, "linear_profit": 171 }, { "item_id": 4, "linear_profit": 411 }, { "item_id": 5, "linear_profit": 768 }, { "item_id": 6, "linear_profit": 185 }, { "item_id": 7, "linear_profit": 503 }, { "item_id": 8, "linear_profit": 316 }, { "item_id": 9, "linear_profit": 829 }, { "item_id": 10, "linear_profit": 632 }, { "item_id": 11, "linear_profit": 137 }, { "item_id": 12, "linear_profit": 289 }, { "item_id": 13, "linear_profit": 743 } ], "weight_pairs": [ { "item_id": 0, "weight": 297 }, { "item_id": 1, "weight": 737 }, { "item_id": 2, "weight": 458 }, { "item_id": 3, "weight": 189 }, { "item_id": 4, "weight": 453 }, { "item_id": 5, "weight": 780 }, { "item_id": 6, "weight": 230 }, { "item_id": 7, "weight": 501 }, { "item_id": 8, "weight": 312 }, { "item_id": 9, "weight": 793 }, { "item_id": 10, "weight": 658 }, { "item_id": 11, "weight": 143 }, { "item_id": 12, "weight": 245 }, { "item_id": 13, "weight": 770 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 297 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 110 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 297 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 223 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 297 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 297 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 297 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 297 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 238 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 297 }, { "item_i_id": 0, "item_j_id": 13, "quadratic_profit": 297 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 105 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 737 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 349 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 737 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 316 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 658 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 689 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 676 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 310 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 493 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 152 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 306 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 376 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 458 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 310 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 458 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 258 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 393 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 431 }, { "item_i_id": 2, "item_j_id": 12, "quadratic_profit": 319 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 267 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 189 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 189 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 105 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 189 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 263 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 143 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 453 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 453 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 453 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 312 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 336 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 336 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 152 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 140 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 152 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 152 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 152 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 152 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 152 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 171 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 790 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 143 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 246 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 310 }, { "item_i_id": 6, "item_j_id": 12, "quadratic_profit": 152 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 279 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 285 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 121 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 872 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 105 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 812 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 312 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 704 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 152 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 431 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 480 }, { "item_i_id": 8, "item_j_id": 12, "quadratic_profit": 246 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 225 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 225 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 587 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 172 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 630 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 689 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 258 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 833 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 238 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 258 } ] }, "solution_variant": [ 0, 1, 3, 6, 7, 8, 9, 10, 11, 12, 13 ], "context_index": 42, "input_format": "markdown_table", "input_index_base": 0 }, { "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\nWe list 15 kits as A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, and we can pack up to 24675 total weight.\nKit A delivers a base relief impact of 6600 when included.\nKit B delivers a base relief impact of 6569 when included.\nKit C delivers a base relief impact of 5065 when included.\nKit D delivers a base relief impact of 3198 when included.\nKit E delivers a base relief impact of 2270 when included.\nKit F delivers a base relief impact of 6437 when included.\nKit G delivers a base relief impact of 3752 when included.\nKit H delivers a base relief impact of 2770 when included.\nKit I delivers a base relief impact of 6229 when included.\nKit J delivers a base relief impact of 3839 when included.\nKit K delivers a base relief impact of 4665 when included.\nKit L delivers a base relief impact of 6191 when included.\nKit M delivers a base relief impact of 4568 when included.\nKit N delivers a base relief impact of 4177 when included.\nKit O delivers a base relief impact of 1320 when included.\nKit A weighs 5950.\nKit B weighs 5919.\nKit C weighs 4415.\nKit D weighs 2548.\nKit E weighs 1620.\nKit F weighs 5787.\nKit G weighs 3102.\nKit H weighs 2120.\nKit I weighs 5579.\nKit J weighs 3189.\nKit K weighs 4015.\nKit L weighs 5541.\nKit M weighs 3918.\nKit N weighs 3527.\nKit O weighs 670.\nKits A and B together provide an extra 4510 impact.\nKits A and C together provide an extra 4670 impact.\nKits A and E together provide an extra 5980 impact.\nKits A and F together provide an extra 4887 impact.\nKits A and H together provide an extra 2982 impact.\nKits A and I together provide an extra 3742 impact.\nKits A and J together provide an extra 1360 impact.\nKits A and O together provide an extra 3960 impact.\nKits B and D together provide an extra 5781 impact.\nKits B and E together provide an extra 6020 impact.\nKits B and F together provide an extra 2232 impact.\nKits B and H together provide an extra 2062 impact.\nKits B and I together provide an extra 5508 impact.\nKits B and J together provide an extra 5302 impact.\nKits B and K together provide an extra 6124 impact.\nKits B and L together provide an extra 4877 impact.\nKits B and O together provide an extra 3484 impact.\nKits C and E together provide an extra 5037 impact.\nKits C and F together provide an extra 783 impact.\nKits C and G together provide an extra 3662 impact.\nKits C and H together provide an extra 3613 impact.\nKits C and J together provide an extra 860 impact.\nKits C and K together provide an extra 378 impact.\nKits C and L together provide an extra 957 impact.\nKits C and M together provide an extra 852 impact.\nKits C and N together provide an extra 620 impact.\nKits C and O together provide an extra 946 impact.\nKits D and E together provide an extra 1856 impact.\nKits D and G together provide an extra 2416 impact.\nKits D and H together provide an extra 2000 impact.\nKits D and I together provide an extra 1742 impact.\nKits D and J together provide an extra 3104 impact.\nKits D and L together provide an extra 2632 impact.\nKits D and N together provide an extra 2636 impact.\nKits E and M together provide an extra 2892 impact.\nKits E and N together provide an extra 5372 impact.\nKits E and O together provide an extra 3775 impact.\nKits F and H together provide an extra 2358 impact.\nKits F and I together provide an extra 5937 impact.\nKits F and J together provide an extra 3680 impact.\nKits F and M together provide an extra 2405 impact.\nKits F and N together provide an extra 5653 impact.\nKits F and O together provide an extra 4171 impact.\nKits G and H together provide an extra 5224 impact.\nKits G and I together provide an extra 3878 impact.\nKits G and N together provide an extra 1782 impact.\nKits G and O together provide an extra 2120 impact.\nKits H and I together provide an extra 4350 impact.\nKits H and J together provide an extra 5006 impact.\nKits H and K together provide an extra 4061 impact.\nKits H and L together provide an extra 4140 impact.\nKits H and N together provide an extra 2692 impact.\nKits H and O together provide an extra 3159 impact.\nKits I and M together provide an extra 4211 impact.\nKits I and N together provide an extra 2683 impact.\nKits J and K together provide an extra 1862 impact.\nKits J and M together provide an extra 2495 impact.\nKits J and N together provide an extra 4635 impact.\nKits J and O together provide an extra 3257 impact.\nKits K and L together provide an extra 4547 impact.\nKits K and N together provide an extra 2649 impact.\nKits M and N together provide an extra 1478 impact.\nKits M and O together provide an extra 2958 impact.\nWe must pack only whole kits and keep the total weight within 24675.\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": [ 6600, 6569, 5065, 3198, 2270, 6437, 3752, 2770, 6229, 3839, 4665, 6191, 4568, 4177, 1320 ], "quadratic_coeffs": [ [ 5789, 4510, 4670, 0, 5980, 4887, 0, 2982, 3742, 1360, 0, 0, 0, 0, 3960 ], [ 0, 0, 0, 5781, 6020, 2232, 0, 2062, 5508, 5302, 6124, 4877, 0, 0, 3484 ], [ 0, 0, 0, 0, 5037, 783, 3662, 3613, 0, 860, 378, 957, 852, 620, 946 ], [ 0, 0, 0, 0, 1856, 0, 2416, 2000, 1742, 3104, 0, 2632, 0, 2636, 0 ], [ 0, 0, 0, 0, 2257, 0, 0, 0, 0, 0, 0, 0, 2892, 5372, 3775 ], [ 0, 0, 0, 0, 0, 4439, 0, 2358, 5937, 3680, 0, 0, 2405, 5653, 4171 ], [ 0, 0, 0, 0, 0, 0, 0, 5224, 3878, 0, 0, 0, 0, 1782, 2120 ], [ 0, 0, 0, 0, 0, 0, 0, 1107, 4350, 5006, 4061, 4140, 0, 2692, 3159 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 1466, 0, 0, 0, 4211, 2683, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1862, 0, 2495, 4635, 3257 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3646, 4547, 0, 2649, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1046, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5410, 1478, 2958 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2297, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1651 ] ], "weights": [ 5950, 5919, 4415, 2548, 1620, 5787, 3102, 2120, 5579, 3189, 4015, 5541, 3918, 3527, 670 ], "capacity": 24675, "solution": [ 1, 3, 4, 7, 9, 10, 13, 14 ], "obj": 103645.0, "problem_type": "QKP" }, "solution": [ 1, 3, 4, 7, 9, 10, 13, 14 ], "obj": 103645.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 24675, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 6600 }, { "item_id": "B", "linear_profit": 6569 }, { "item_id": "C", "linear_profit": 5065 }, { "item_id": "D", "linear_profit": 3198 }, { "item_id": "E", "linear_profit": 2270 }, { "item_id": "F", "linear_profit": 6437 }, { "item_id": "G", "linear_profit": 3752 }, { "item_id": "H", "linear_profit": 2770 }, { "item_id": "I", "linear_profit": 6229 }, { "item_id": "J", "linear_profit": 3839 }, { "item_id": "K", "linear_profit": 4665 }, { "item_id": "L", "linear_profit": 6191 }, { "item_id": "M", "linear_profit": 4568 }, { "item_id": "N", "linear_profit": 4177 }, { "item_id": "O", "linear_profit": 1320 } ], "weight_pairs": [ { "item_id": "A", "weight": 5950 }, { "item_id": "B", "weight": 5919 }, { "item_id": "C", "weight": 4415 }, { "item_id": "D", "weight": 2548 }, { "item_id": "E", "weight": 1620 }, { "item_id": "F", "weight": 5787 }, { "item_id": "G", "weight": 3102 }, { "item_id": "H", "weight": 2120 }, { "item_id": "I", "weight": 5579 }, { "item_id": "J", "weight": 3189 }, { "item_id": "K", "weight": 4015 }, { "item_id": "L", "weight": 5541 }, { "item_id": "M", "weight": 3918 }, { "item_id": "N", "weight": 3527 }, { "item_id": "O", "weight": 670 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 5789 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 4510 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 4670 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 5980 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 4887 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 2982 }, { "item_i_id": "A", "item_j_id": "I", "quadratic_profit": 3742 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 1360 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 3960 }, { "item_i_id": "B", "item_j_id": "D", "quadratic_profit": 5781 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 6020 }, { "item_i_id": "B", "item_j_id": "F", "quadratic_profit": 2232 }, { "item_i_id": "B", "item_j_id": "H", "quadratic_profit": 2062 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 5508 }, { "item_i_id": "B", "item_j_id": "J", "quadratic_profit": 5302 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 6124 }, { "item_i_id": "B", "item_j_id": "L", "quadratic_profit": 4877 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 3484 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 5037 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 783 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 3662 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 3613 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 860 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 378 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 957 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 852 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 620 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 946 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 1856 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 2416 }, { "item_i_id": "D", "item_j_id": "H", "quadratic_profit": 2000 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 1742 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 3104 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 2632 }, { "item_i_id": "D", "item_j_id": "N", "quadratic_profit": 2636 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 2257 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 2892 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 5372 }, { "item_i_id": "E", "item_j_id": "O", "quadratic_profit": 3775 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 4439 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 2358 }, { "item_i_id": "F", "item_j_id": "I", "quadratic_profit": 5937 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 3680 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 2405 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 5653 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 4171 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 5224 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 3878 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 1782 }, { "item_i_id": "G", "item_j_id": "O", "quadratic_profit": 2120 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 1107 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 4350 }, { "item_i_id": "H", "item_j_id": "J", "quadratic_profit": 5006 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 4061 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 4140 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 2692 }, { "item_i_id": "H", "item_j_id": "O", "quadratic_profit": 3159 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 1466 }, { "item_i_id": "I", "item_j_id": "M", "quadratic_profit": 4211 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 2683 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 1862 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 2495 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 4635 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 3257 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 3646 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 4547 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 2649 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 1046 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 5410 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 1478 }, { "item_i_id": "M", "item_j_id": "O", "quadratic_profit": 2958 }, { "item_i_id": "N", "item_j_id": "N", "quadratic_profit": 2297 }, { "item_i_id": "O", "item_j_id": "O", "quadratic_profit": 1651 } ] }, "solution_variant": [ "B", "D", "E", "H", "J", "K", "N", "O" ], "context_index": 43, "input_format": "nl", "input_index_base": "names" }, { "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\nBelow I list the 12 tools (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12) and the van's weight capacity of 15449.\nI counted tool 1 as contributing 3559 service value on its own.\nI counted tool 2 as contributing 726 service value on its own.\nI counted tool 3 as contributing 858 service value on its own.\nI counted tool 4 as contributing 2144 service value on its own.\nI counted tool 5 as contributing 1969 service value on its own.\nI counted tool 6 as contributing 1538 service value on its own.\nI counted tool 7 as contributing 699 service value on its own.\nI counted tool 8 as contributing 460 service value on its own.\nI counted tool 9 as contributing 1470 service value on its own.\nI counted tool 10 as contributing 1209 service value on its own.\nI counted tool 11 as contributing 3437 service value on its own.\nI counted tool 12 as contributing 1546 service value on its own.\nTool 1 weighed 3229, which I had to include in the van's total load.\nTool 2 weighed 396, which I had to include in the van's total load.\nTool 3 weighed 528, which I had to include in the van's total load.\nTool 4 weighed 1814, which I had to include in the van's total load.\nTool 5 weighed 1639, which I had to include in the van's total load.\nTool 6 weighed 1208, which I had to include in the van's total load.\nTool 7 weighed 369, which I had to include in the van's total load.\nTool 8 weighed 130, which I had to include in the van's total load.\nTool 9 weighed 1140, which I had to include in the van's total load.\nTool 10 weighed 879, which I had to include in the van's total load.\nTool 11 weighed 3107, which I had to include in the van's total load.\nTool 12 weighed 1216, which I had to include in the van's total load.\nIf I took both 1 and 3, they'd add an extra 2188 service value together.\nIf I took both 1 and 10, they'd add an extra 2220 service value together.\nIf I took both 1 and 12, they'd add an extra 1180 service value together.\nIf I took both 2 and 5, they'd add an extra 1758 service value together.\nIf I took both 2 and 6, they'd add an extra 1358 service value together.\nIf I took both 2 and 7, they'd add an extra 1540 service value together.\nIf I took both 2 and 9, they'd add an extra 2823 service value together.\nIf I took both 3 and 7, they'd add an extra 2564 service value together.\nIf I took both 3 and 12, they'd add an extra 450 service value together.\nIf I took both 4 and 5, they'd add an extra 2822 service value together.\nIf I took both 4 and 8, they'd add an extra 2846 service value together.\nIf I took both 4 and 10, they'd add an extra 2234 service value together.\nIf I took both 5 and 6, they'd add an extra 791 service value together.\nIf I took both 5 and 7, they'd add an extra 2434 service value together.\nIf I took both 6 and 8, they'd add an extra 2459 service value together.\nIf I took both 7 and 12, they'd add an extra 842 service value together.\nI'll use these figures to pick the combination that fits within 15449 and yields the highest total service value.\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": [ 3559, 726, 858, 2144, 1969, 1538, 699, 460, 1470, 1209, 3437, 1546 ], "quadratic_coeffs": [ [ 0, 0, 2188, 0, 0, 0, 0, 0, 0, 2220, 0, 1180 ], [ 0, 0, 0, 0, 1758, 1358, 1540, 0, 2823, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 2564, 0, 0, 0, 0, 450 ], [ 0, 0, 0, 0, 2822, 0, 0, 2846, 0, 2234, 0, 0 ], [ 0, 0, 0, 0, 0, 791, 2434, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 2459, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 842 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1128, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 710 ] ], "weights": [ 3229, 396, 528, 1814, 1639, 1208, 369, 130, 1140, 879, 3107, 1216 ], "capacity": 15449, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11 ], "obj": 46687.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11 ], "obj": 46687.0, "instance_variant": { "problem_type": "QKP", "num_items": 12, "capacity": 15449, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 3559 }, { "item_id": 2, "linear_profit": 726 }, { "item_id": 3, "linear_profit": 858 }, { "item_id": 4, "linear_profit": 2144 }, { "item_id": 5, "linear_profit": 1969 }, { "item_id": 6, "linear_profit": 1538 }, { "item_id": 7, "linear_profit": 699 }, { "item_id": 8, "linear_profit": 460 }, { "item_id": 9, "linear_profit": 1470 }, { "item_id": 10, "linear_profit": 1209 }, { "item_id": 11, "linear_profit": 3437 }, { "item_id": 12, "linear_profit": 1546 } ], "weight_pairs": [ { "item_id": 1, "weight": 3229 }, { "item_id": 2, "weight": 396 }, { "item_id": 3, "weight": 528 }, { "item_id": 4, "weight": 1814 }, { "item_id": 5, "weight": 1639 }, { "item_id": 6, "weight": 1208 }, { "item_id": 7, "weight": 369 }, { "item_id": 8, "weight": 130 }, { "item_id": 9, "weight": 1140 }, { "item_id": 10, "weight": 879 }, { "item_id": 11, "weight": 3107 }, { "item_id": 12, "weight": 1216 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 2188 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 2220 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 1180 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 1758 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 1358 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 1540 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 2823 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 2564 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 450 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 2822 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 2846 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 2234 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 791 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 2434 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 2459 }, { "item_i_id": 7, "item_j_id": 12, "quadratic_profit": 842 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 1128 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 710 } ] }, "solution_variant": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12 ], "context_index": 44, "input_format": "nl", "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 11 distinct accessories (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10) and the display case can hold up to 618 units of space.\n\n| accessory_id | base_sales_value |\n|---|---|\n| 0 | 428 |\n| 1 | 164 |\n| 2 | 88 |\n| 3 | 666 |\n| 4 | 588 |\n| 5 | 491 |\n| 6 | 183 |\n| 7 | 653 |\n| 8 | 161 |\n| 9 | 819 |\n| 10 | 170 |\n\n| accessory_id | space_required |\n|---|---|\n| 0 | 453 |\n| 1 | 119 |\n| 2 | 100 |\n| 3 | 687 |\n| 4 | 571 |\n| 5 | 512 |\n| 6 | 197 |\n| 7 | 654 |\n| 8 | 193 |\n| 9 | 788 |\n| 10 | 210 |\n\n| accessory_i_id | accessory_j_id | cross_selling_bonus |\n|---|---|---|\n| 0 | 1 | 453 |\n| 0 | 2 | 321 |\n| 0 | 3 | 253 |\n| 0 | 4 | 453 |\n| 0 | 5 | 421 |\n| 0 | 6 | 453 |\n| 0 | 7 | 169 |\n| 0 | 8 | 453 |\n| 0 | 9 | 453 |\n| 0 | 10 | 303 |\n| 1 | 2 | 119 |\n| 1 | 3 | 119 |\n| 1 | 4 | 119 |\n| 1 | 5 | 119 |\n| 1 | 6 | 119 |\n| 1 | 7 | 119 |\n| 1 | 8 | 119 |\n| 1 | 9 | 119 |\n| 1 | 10 | 119 |\n| 2 | 3 | 100 |\n| 2 | 4 | 100 |\n| 2 | 5 | 100 |\n| 2 | 6 | 100 |\n| 2 | 7 | 100 |\n| 2 | 8 | 100 |\n| 2 | 9 | 100 |\n| 2 | 10 | 100 |\n| 3 | 4 | 562 |\n| 3 | 5 | 687 |\n| 3 | 6 | 421 |\n| 3 | 7 | 687 |\n| 3 | 8 | 449 |\n| 3 | 9 | 110 |\n| 3 | 10 | 110 |\n| 4 | 5 | 533 |\n| 4 | 6 | 425 |\n| 4 | 7 | 113 |\n| 4 | 8 | 571 |\n| 4 | 9 | 183 |\n| 4 | 10 | 417 |\n| 5 | 6 | 512 |\n| 5 | 7 | 143 |\n| 5 | 8 | 146 |\n| 5 | 9 | 513 |\n| 5 | 10 | 513 |\n| 6 | 7 | 534 |\n| 6 | 8 | 562 |\n| 6 | 9 | 562 |\n| 6 | 10 | 562 |\n| 7 | 8 | 393 |\n| 7 | 9 | 267 |\n| 7 | 10 | 247 |\n| 8 | 9 | 196 |\n| 8 | 10 | 196 |\n| 9 | 10 | 143 |\n\nA selection must respect the 618 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": [ 428, 164, 88, 666, 588, 491, 183, 653, 161, 819, 170 ], "quadratic_coeffs": [ [ 453, 453, 321, 253, 453, 421, 453, 169, 453, 453, 303 ], [ 0, 119, 119, 119, 119, 119, 119, 119, 119, 119, 119 ], [ 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100 ], [ 0, 0, 0, 687, 562, 687, 421, 687, 449, 110, 110 ], [ 0, 0, 0, 0, 571, 533, 425, 113, 571, 183, 417 ], [ 0, 0, 0, 0, 0, 512, 512, 143, 146, 513, 513 ], [ 0, 0, 0, 0, 0, 0, 197, 534, 562, 562, 562 ], [ 0, 0, 0, 0, 0, 0, 0, 193, 393, 267, 247 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 499, 196, 196 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 256, 143 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 499 ] ], "weights": [ 453, 119, 100, 687, 571, 512, 197, 654, 193, 788, 210 ], "capacity": 618, "solution": [ 6, 8, 10 ], "obj": 1834.0, "problem_type": "QKP" }, "solution": [ 6, 8, 10 ], "obj": 1834.0, "instance_variant": { "problem_type": "QKP", "num_items": 11, "capacity": 618, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 428 }, { "item_id": 1, "linear_profit": 164 }, { "item_id": 2, "linear_profit": 88 }, { "item_id": 3, "linear_profit": 666 }, { "item_id": 4, "linear_profit": 588 }, { "item_id": 5, "linear_profit": 491 }, { "item_id": 6, "linear_profit": 183 }, { "item_id": 7, "linear_profit": 653 }, { "item_id": 8, "linear_profit": 161 }, { "item_id": 9, "linear_profit": 819 }, { "item_id": 10, "linear_profit": 170 } ], "weight_pairs": [ { "item_id": 0, "weight": 453 }, { "item_id": 1, "weight": 119 }, { "item_id": 2, "weight": 100 }, { "item_id": 3, "weight": 687 }, { "item_id": 4, "weight": 571 }, { "item_id": 5, "weight": 512 }, { "item_id": 6, "weight": 197 }, { "item_id": 7, "weight": 654 }, { "item_id": 8, "weight": 193 }, { "item_id": 9, "weight": 788 }, { "item_id": 10, "weight": 210 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 453 }, { "item_i_id": 0, "item_j_id": 1, "quadratic_profit": 453 }, { "item_i_id": 0, "item_j_id": 2, "quadratic_profit": 321 }, { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 253 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 453 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 421 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 453 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 169 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 453 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 453 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 303 }, { "item_i_id": 1, "item_j_id": 1, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 8, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 119 }, { "item_i_id": 1, "item_j_id": 10, "quadratic_profit": 119 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 687 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 562 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 687 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 421 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 687 }, { "item_i_id": 3, "item_j_id": 8, "quadratic_profit": 449 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 110 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 110 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 571 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 533 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 425 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 113 }, { "item_i_id": 4, "item_j_id": 8, "quadratic_profit": 571 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 183 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 417 }, { "item_i_id": 5, "item_j_id": 5, "quadratic_profit": 512 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 512 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 143 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 146 }, { "item_i_id": 5, "item_j_id": 9, "quadratic_profit": 513 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 513 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 197 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 534 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 562 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 562 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 562 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 193 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 393 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 267 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 247 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 499 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 196 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 196 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 256 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 143 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 499 } ] }, "solution_variant": [ 6, 8, 10 ], "context_index": 45, "input_format": "markdown_table", "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\nThey have 13 distinct small plates available — 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 — and a platter capacity of 228; the exact plate scores, space usages, and pairing bonuses are listed below.\nPlate 0 yields 105 satisfaction points when included on the tasting platter.\nPlate 1 yields 102 satisfaction points when included on the tasting platter.\nPlate 2 yields 101 satisfaction points when included on the tasting platter.\nPlate 3 yields 105 satisfaction points when included on the tasting platter.\nPlate 4 yields 104 satisfaction points when included on the tasting platter.\nPlate 5 yields 102 satisfaction points when included on the tasting platter.\nPlate 6 yields 104 satisfaction points when included on the tasting platter.\nPlate 7 yields 101 satisfaction points when included on the tasting platter.\nPlate 8 yields 104 satisfaction points when included on the tasting platter.\nPlate 9 yields 105 satisfaction points when included on the tasting platter.\nPlate 10 yields 103 satisfaction points when included on the tasting platter.\nPlate 11 yields 105 satisfaction points when included on the tasting platter.\nPlate 12 yields 103 satisfaction points when included on the tasting platter.\nPlate 0 occupies 103 units of platter space.\nPlate 1 occupies 102 units of platter space.\nPlate 2 occupies 103 units of platter space.\nPlate 3 occupies 105 units of platter space.\nPlate 4 occupies 105 units of platter space.\nPlate 5 occupies 103 units of platter space.\nPlate 6 occupies 102 units of platter space.\nPlate 7 occupies 102 units of platter space.\nPlate 8 occupies 102 units of platter space.\nPlate 9 occupies 102 units of platter space.\nPlate 10 occupies 100 units of platter space.\nPlate 11 occupies 105 units of platter space.\nPlate 12 occupies 105 units of platter space.\nServing 0 together with 8 adds 100 extra satisfaction points.\nServing 1 together with 6 adds 100 extra satisfaction points.\nServing 1 together with 9 adds 100 extra satisfaction points.\nServing 2 together with 6 adds 102 extra satisfaction points.\nServing 2 together with 7 adds 101 extra satisfaction points.\nServing 2 together with 10 adds 101 extra satisfaction points.\nServing 2 together with 11 adds 103 extra satisfaction points.\nServing 3 together with 4 adds 104 extra satisfaction points.\nServing 3 together with 12 adds 103 extra satisfaction points.\nServing 4 together with 7 adds 104 extra satisfaction points.\nServing 4 together with 10 adds 102 extra satisfaction points.\nServing 5 together with 11 adds 102 extra satisfaction points.\nServing 5 together with 12 adds 101 extra satisfaction points.\nServing 6 together with 7 adds 100 extra satisfaction points.\nServing 6 together with 9 adds 102 extra satisfaction points.\nServing 6 together with 10 adds 102 extra satisfaction points.\nServing 7 together with 9 adds 100 extra satisfaction points.\nServing 8 together with 10 adds 100 extra satisfaction points.\nServing 9 together with 10 adds 103 extra satisfaction points.\nServing 9 together with 11 adds 101 extra satisfaction points.\nServing 10 together with 12 adds 102 extra satisfaction points.\nThe goal is to choose plates that fit within the 228 platter space and maximize total satisfaction.\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": [ 105, 102, 101, 105, 104, 102, 104, 101, 104, 105, 103, 105, 103 ], "quadratic_coeffs": [ [ 103, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 100, 0, 0, 100, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 102, 101, 0, 0, 101, 103, 0 ], [ 0, 0, 0, 0, 104, 0, 0, 0, 0, 0, 0, 0, 103 ], [ 0, 0, 0, 0, 101, 0, 0, 104, 0, 0, 102, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 102, 101 ], [ 0, 0, 0, 0, 0, 0, 0, 100, 0, 102, 102, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 103, 101, 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 ] ], "weights": [ 103, 102, 103, 105, 105, 103, 102, 102, 102, 102, 100, 105, 105 ], "capacity": 228, "solution": [ 3, 4 ], "obj": 313.0, "problem_type": "QKP" }, "solution": [ 3, 4 ], "obj": 313.0, "instance_variant": { "problem_type": "QKP", "num_items": 13, "capacity": 228, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 105 }, { "item_id": 1, "linear_profit": 102 }, { "item_id": 2, "linear_profit": 101 }, { "item_id": 3, "linear_profit": 105 }, { "item_id": 4, "linear_profit": 104 }, { "item_id": 5, "linear_profit": 102 }, { "item_id": 6, "linear_profit": 104 }, { "item_id": 7, "linear_profit": 101 }, { "item_id": 8, "linear_profit": 104 }, { "item_id": 9, "linear_profit": 105 }, { "item_id": 10, "linear_profit": 103 }, { "item_id": 11, "linear_profit": 105 }, { "item_id": 12, "linear_profit": 103 } ], "weight_pairs": [ { "item_id": 0, "weight": 103 }, { "item_id": 1, "weight": 102 }, { "item_id": 2, "weight": 103 }, { "item_id": 3, "weight": 105 }, { "item_id": 4, "weight": 105 }, { "item_id": 5, "weight": 103 }, { "item_id": 6, "weight": 102 }, { "item_id": 7, "weight": 102 }, { "item_id": 8, "weight": 102 }, { "item_id": 9, "weight": 102 }, { "item_id": 10, "weight": 100 }, { "item_id": 11, "weight": 105 }, { "item_id": 12, "weight": 105 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 0, "quadratic_profit": 103 }, { "item_i_id": 0, "item_j_id": 8, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 2, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 103 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 104 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 101 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 101 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 100 }, { "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": 7, "item_j_id": 9, "quadratic_profit": 100 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 103 }, { "item_i_id": 9, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 102 } ] }, "solution_variant": [ 3, 4 ], "context_index": 46, "input_format": "nl", "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\nBelow are the 15 pieces (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14) and the truck's weight limit is 598.\n\n| piece_id | resale_value |\n|---|---|\n| 0 | 120 |\n| 1 | 108 |\n| 2 | 139 |\n| 3 | 124 |\n| 4 | 133 |\n| 5 | 133 |\n| 6 | 105 |\n| 7 | 102 |\n| 8 | 135 |\n| 9 | 121 |\n| 10 | 136 |\n| 11 | 125 |\n| 12 | 114 |\n| 13 | 134 |\n| 14 | 109 |\n\n| piece_id | piece_weight |\n|---|---|\n| 0 | 127 |\n| 1 | 108 |\n| 2 | 145 |\n| 3 | 131 |\n| 4 | 138 |\n| 5 | 127 |\n| 6 | 109 |\n| 7 | 100 |\n| 8 | 127 |\n| 9 | 117 |\n| 10 | 133 |\n| 11 | 124 |\n| 12 | 118 |\n| 13 | 140 |\n| 14 | 102 |\n\n| piece_a_id | piece_b_id | pair_bonus_value |\n|---|---|---|\n| 0 | 3 | 129 |\n| 0 | 4 | 106 |\n| 0 | 5 | 141 |\n| 0 | 6 | 107 |\n| 0 | 7 | 109 |\n| 0 | 9 | 118 |\n| 0 | 10 | 137 |\n| 0 | 11 | 123 |\n| 0 | 12 | 142 |\n| 0 | 14 | 112 |\n| 1 | 2 | 110 |\n| 1 | 4 | 140 |\n| 1 | 7 | 101 |\n| 1 | 9 | 103 |\n| 1 | 11 | 127 |\n| 1 | 14 | 108 |\n| 2 | 3 | 130 |\n| 2 | 4 | 111 |\n| 2 | 8 | 130 |\n| 2 | 14 | 125 |\n| 3 | 4 | 115 |\n| 3 | 5 | 137 |\n| 3 | 6 | 111 |\n| 3 | 7 | 100 |\n| 3 | 9 | 121 |\n| 3 | 11 | 121 |\n| 3 | 13 | 149 |\n| 3 | 14 | 148 |\n| 4 | 5 | 139 |\n| 4 | 6 | 141 |\n| 4 | 11 | 118 |\n| 4 | 12 | 140 |\n| 5 | 10 | 126 |\n| 5 | 11 | 146 |\n| 5 | 12 | 111 |\n| 5 | 14 | 134 |\n| 6 | 10 | 130 |\n| 6 | 11 | 145 |\n| 6 | 14 | 123 |\n| 7 | 9 | 134 |\n| 7 | 10 | 125 |\n| 7 | 11 | 109 |\n| 7 | 13 | 118 |\n| 8 | 10 | 118 |\n| 8 | 11 | 132 |\n| 9 | 10 | 113 |\n| 10 | 14 | 139 |\n| 11 | 13 | 122 |\n| 11 | 14 | 139 |\n| 12 | 14 | 148 |\n\nI'll choose pieces so the total weight stays within 598 while maximizing the total payout (base values plus any pair bonuses).\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": [ 120, 108, 139, 124, 133, 133, 105, 102, 135, 121, 136, 125, 114, 134, 109 ], "quadratic_coeffs": [ [ 0, 0, 0, 129, 106, 141, 107, 109, 0, 118, 137, 123, 142, 0, 112 ], [ 0, 0, 110, 0, 140, 0, 0, 101, 0, 103, 0, 127, 0, 0, 108 ], [ 0, 0, 105, 130, 111, 0, 0, 0, 130, 0, 0, 0, 0, 0, 125 ], [ 0, 0, 0, 100, 115, 137, 111, 100, 0, 121, 0, 121, 0, 149, 148 ], [ 0, 0, 0, 0, 0, 139, 141, 0, 0, 0, 0, 118, 140, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 126, 146, 111, 0, 134 ], [ 0, 0, 0, 0, 0, 0, 138, 0, 0, 0, 130, 145, 0, 0, 123 ], [ 0, 0, 0, 0, 0, 0, 0, 148, 0, 134, 125, 109, 0, 118, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 118, 132, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 142, 113, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 139 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 147, 0, 122, 139 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 148 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 139 ] ], "weights": [ 127, 108, 145, 131, 138, 127, 109, 100, 127, 117, 133, 124, 118, 140, 102 ], "capacity": 598, "solution": [ 0, 3, 6, 11, 14 ], "obj": 1841.0, "problem_type": "QKP" }, "solution": [ 0, 3, 6, 11, 14 ], "obj": 1841.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 598, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 120 }, { "item_id": 1, "linear_profit": 108 }, { "item_id": 2, "linear_profit": 139 }, { "item_id": 3, "linear_profit": 124 }, { "item_id": 4, "linear_profit": 133 }, { "item_id": 5, "linear_profit": 133 }, { "item_id": 6, "linear_profit": 105 }, { "item_id": 7, "linear_profit": 102 }, { "item_id": 8, "linear_profit": 135 }, { "item_id": 9, "linear_profit": 121 }, { "item_id": 10, "linear_profit": 136 }, { "item_id": 11, "linear_profit": 125 }, { "item_id": 12, "linear_profit": 114 }, { "item_id": 13, "linear_profit": 134 }, { "item_id": 14, "linear_profit": 109 } ], "weight_pairs": [ { "item_id": 0, "weight": 127 }, { "item_id": 1, "weight": 108 }, { "item_id": 2, "weight": 145 }, { "item_id": 3, "weight": 131 }, { "item_id": 4, "weight": 138 }, { "item_id": 5, "weight": 127 }, { "item_id": 6, "weight": 109 }, { "item_id": 7, "weight": 100 }, { "item_id": 8, "weight": 127 }, { "item_id": 9, "weight": 117 }, { "item_id": 10, "weight": 133 }, { "item_id": 11, "weight": 124 }, { "item_id": 12, "weight": 118 }, { "item_id": 13, "weight": 140 }, { "item_id": 14, "weight": 102 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 129 }, { "item_i_id": 0, "item_j_id": 4, "quadratic_profit": 106 }, { "item_i_id": 0, "item_j_id": 5, "quadratic_profit": 141 }, { "item_i_id": 0, "item_j_id": 6, "quadratic_profit": 107 }, { "item_i_id": 0, "item_j_id": 7, "quadratic_profit": 109 }, { "item_i_id": 0, "item_j_id": 9, "quadratic_profit": 118 }, { "item_i_id": 0, "item_j_id": 10, "quadratic_profit": 137 }, { "item_i_id": 0, "item_j_id": 11, "quadratic_profit": 123 }, { "item_i_id": 0, "item_j_id": 12, "quadratic_profit": 142 }, { "item_i_id": 0, "item_j_id": 14, "quadratic_profit": 112 }, { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 110 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 140 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 101 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 103 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 127 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 108 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 105 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 130 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 111 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 130 }, { "item_i_id": 2, "item_j_id": 14, "quadratic_profit": 125 }, { "item_i_id": 3, "item_j_id": 3, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 115 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 137 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 100 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 121 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 121 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 149 }, { "item_i_id": 3, "item_j_id": 14, "quadratic_profit": 148 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 139 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 141 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 118 }, { "item_i_id": 4, "item_j_id": 12, "quadratic_profit": 140 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 126 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 146 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 111 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 134 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 138 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 130 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 145 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 123 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 148 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 134 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 125 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 109 }, { "item_i_id": 7, "item_j_id": 13, "quadratic_profit": 118 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 118 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 132 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 142 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 113 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 139 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 147 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 122 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 139 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 148 }, { "item_i_id": 14, "item_j_id": 14, "quadratic_profit": 139 } ] }, "solution_variant": [ 0, 3, 6, 11, 14 ], "context_index": 47, "input_format": "markdown_table", "input_index_base": 0 }, { "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\nHere are the 15 pieces of equipment A, B, C, D, E, F, G, H, I, J, K, L, M, N, O and the shelf's weight capacity of 17015.\nA contributes a base usefulness of 1717.\nB contributes a base usefulness of 795.\nC contributes a base usefulness of 1645.\nD contributes a base usefulness of 1652.\nE contributes a base usefulness of 1329.\nF contributes a base usefulness of 1565.\nG contributes a base usefulness of 2429.\nH contributes a base usefulness of 1526.\nI contributes a base usefulness of 1400.\nJ contributes a base usefulness of 2460.\nK contributes a base usefulness of 3205.\nL contributes a base usefulness of 1687.\nM contributes a base usefulness of 498.\nN contributes a base usefulness of 2686.\nO contributes a base usefulness of 1803.\nA adds 1706 to the shelf's total weight.\nB adds 359 to the shelf's total weight.\nC adds 909 to the shelf's total weight.\nD adds 1179 to the shelf's total weight.\nE adds 197 to the shelf's total weight.\nF adds 1859 to the shelf's total weight.\nG adds 2224 to the shelf's total weight.\nH adds 588 to the shelf's total weight.\nI adds 2125 to the shelf's total weight.\nJ adds 264 to the shelf's total weight.\nK adds 2638 to the shelf's total weight.\nL adds 338 to the shelf's total weight.\nM adds 1811 to the shelf's total weight.\nN adds 1739 to the shelf's total weight.\nO adds 2240 to the shelf's total weight.\nIf both A and B are placed, they yield an extra 3006 usefulness.\nIf both A and C are placed, they yield an extra 368 usefulness.\nIf both A and D are placed, they yield an extra 1316 usefulness.\nIf both A and E are placed, they yield an extra 2821 usefulness.\nIf both A and F are placed, they yield an extra 1175 usefulness.\nIf both A and H are placed, they yield an extra 2788 usefulness.\nIf both A and J are placed, they yield an extra 205 usefulness.\nIf both A and K are placed, they yield an extra 1256 usefulness.\nIf both A and N are placed, they yield an extra 3035 usefulness.\nIf both A and O are placed, they yield an extra 2226 usefulness.\nIf both B and C are placed, they yield an extra 1917 usefulness.\nIf both B and E are placed, they yield an extra 283 usefulness.\nIf both B and G are placed, they yield an extra 407 usefulness.\nIf both B and I are placed, they yield an extra 2520 usefulness.\nIf both B and K are placed, they yield an extra 475 usefulness.\nIf both B and M are placed, they yield an extra 1076 usefulness.\nIf both B and N are placed, they yield an extra 2288 usefulness.\nIf both B and O are placed, they yield an extra 2805 usefulness.\nIf both C and E are placed, they yield an extra 2743 usefulness.\nIf both C and F are placed, they yield an extra 3286 usefulness.\nIf both C and G are placed, they yield an extra 873 usefulness.\nIf both C and H are placed, they yield an extra 383 usefulness.\nIf both C and I are placed, they yield an extra 3241 usefulness.\nIf both C and J are placed, they yield an extra 3170 usefulness.\nIf both C and K are placed, they yield an extra 719 usefulness.\nIf both C and L are placed, they yield an extra 352 usefulness.\nIf both C and M are placed, they yield an extra 1205 usefulness.\nIf both C and N are placed, they yield an extra 3253 usefulness.\nIf both C and O are placed, they yield an extra 2091 usefulness.\nIf both D and E are placed, they yield an extra 2529 usefulness.\nIf both D and F are placed, they yield an extra 867 usefulness.\nIf both D and G are placed, they yield an extra 1950 usefulness.\nIf both D and I are placed, they yield an extra 1688 usefulness.\nIf both D and J are placed, they yield an extra 2695 usefulness.\nIf both D and K are placed, they yield an extra 2036 usefulness.\nIf both D and L are placed, they yield an extra 3296 usefulness.\nIf both D and M are placed, they yield an extra 1265 usefulness.\nIf both D and O are placed, they yield an extra 2257 usefulness.\nIf both E and F are placed, they yield an extra 2166 usefulness.\nIf both E and G are placed, they yield an extra 1834 usefulness.\nIf both E and H are placed, they yield an extra 1235 usefulness.\nIf both E and J are placed, they yield an extra 1122 usefulness.\nIf both E and K are placed, they yield an extra 1689 usefulness.\nIf both E and L are placed, they yield an extra 1149 usefulness.\nIf both E and M are placed, they yield an extra 842 usefulness.\nIf both E and N are placed, they yield an extra 2554 usefulness.\nIf both F and G are placed, they yield an extra 551 usefulness.\nIf both F and H are placed, they yield an extra 1318 usefulness.\nIf both F and J are placed, they yield an extra 1752 usefulness.\nIf both F and K are placed, they yield an extra 1935 usefulness.\nIf both F and L are placed, they yield an extra 1048 usefulness.\nIf both F and M are placed, they yield an extra 2821 usefulness.\nIf both F and N are placed, they yield an extra 1484 usefulness.\nIf both F and O are placed, they yield an extra 1220 usefulness.\nIf both G and H are placed, they yield an extra 1245 usefulness.\nIf both G and I are placed, they yield an extra 2117 usefulness.\nIf both G and J are placed, they yield an extra 1225 usefulness.\nIf both G and K are placed, they yield an extra 176 usefulness.\nIf both G and L are placed, they yield an extra 1897 usefulness.\nIf both G and M are placed, they yield an extra 2483 usefulness.\nIf both G and N are placed, they yield an extra 1196 usefulness.\nIf both H and I are placed, they yield an extra 1666 usefulness.\nIf both H and K are placed, they yield an extra 1296 usefulness.\nIf both H and L are placed, they yield an extra 2342 usefulness.\nIf both H and M are placed, they yield an extra 2890 usefulness.\nIf both H and N are placed, they yield an extra 2057 usefulness.\nIf both I and J are placed, they yield an extra 2158 usefulness.\nIf both I and K are placed, they yield an extra 636 usefulness.\nIf both I and N are placed, they yield an extra 2754 usefulness.\nIf both I and O are placed, they yield an extra 575 usefulness.\nIf both J and K are placed, they yield an extra 1409 usefulness.\nIf both J and M are placed, they yield an extra 252 usefulness.\nIf both J and N are placed, they yield an extra 1280 usefulness.\nIf both J and O are placed, they yield an extra 2520 usefulness.\nIf both K and L are placed, they yield an extra 207 usefulness.\nIf both K and N are placed, they yield an extra 2864 usefulness.\nIf both K and O are placed, they yield an extra 1988 usefulness.\nIf both L and M are placed, they yield an extra 2088 usefulness.\nIf both L and N are placed, they yield an extra 752 usefulness.\nIf both L and O are placed, they yield an extra 3102 usefulness.\nIf both M and N are placed, they yield an extra 2364 usefulness.\nUse these entries to pick items that fit within the 17015 limit and maximize total usefulness.\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": [ 1717, 795, 1645, 1652, 1329, 1565, 2429, 1526, 1400, 2460, 3205, 1687, 498, 2686, 1803 ], "quadratic_coeffs": [ [ 2673, 3006, 368, 1316, 2821, 1175, 0, 2788, 0, 205, 1256, 0, 0, 3035, 2226 ], [ 0, 2389, 1917, 0, 283, 0, 407, 0, 2520, 0, 475, 0, 1076, 2288, 2805 ], [ 0, 0, 2826, 0, 2743, 3286, 873, 383, 3241, 3170, 719, 352, 1205, 3253, 2091 ], [ 0, 0, 0, 3269, 2529, 867, 1950, 0, 1688, 2695, 2036, 3296, 1265, 0, 2257 ], [ 0, 0, 0, 0, 3215, 2166, 1834, 1235, 0, 1122, 1689, 1149, 842, 2554, 0 ], [ 0, 0, 0, 0, 0, 2497, 551, 1318, 0, 1752, 1935, 1048, 2821, 1484, 1220 ], [ 0, 0, 0, 0, 0, 0, 2373, 1245, 2117, 1225, 176, 1897, 2483, 1196, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 1745, 1666, 0, 1296, 2342, 2890, 2057, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 2595, 2158, 636, 0, 0, 2754, 575 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1409, 0, 252, 1280, 2520 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1279, 207, 0, 2864, 1988 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 343, 2088, 752, 3102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2721, 2364, 0 ], [ 0, 0, 0, 0, 0, 0, 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": [ 1706, 359, 909, 1179, 197, 1859, 2224, 588, 2125, 264, 2638, 338, 1811, 1739, 2240 ], "capacity": 17015, "solution": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14 ], "obj": 132838.0, "problem_type": "QKP" }, "solution": [ 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 13, 14 ], "obj": 132838.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 17015, "items": [ "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O" ], "linear_pairs": [ { "item_id": "A", "linear_profit": 1717 }, { "item_id": "B", "linear_profit": 795 }, { "item_id": "C", "linear_profit": 1645 }, { "item_id": "D", "linear_profit": 1652 }, { "item_id": "E", "linear_profit": 1329 }, { "item_id": "F", "linear_profit": 1565 }, { "item_id": "G", "linear_profit": 2429 }, { "item_id": "H", "linear_profit": 1526 }, { "item_id": "I", "linear_profit": 1400 }, { "item_id": "J", "linear_profit": 2460 }, { "item_id": "K", "linear_profit": 3205 }, { "item_id": "L", "linear_profit": 1687 }, { "item_id": "M", "linear_profit": 498 }, { "item_id": "N", "linear_profit": 2686 }, { "item_id": "O", "linear_profit": 1803 } ], "weight_pairs": [ { "item_id": "A", "weight": 1706 }, { "item_id": "B", "weight": 359 }, { "item_id": "C", "weight": 909 }, { "item_id": "D", "weight": 1179 }, { "item_id": "E", "weight": 197 }, { "item_id": "F", "weight": 1859 }, { "item_id": "G", "weight": 2224 }, { "item_id": "H", "weight": 588 }, { "item_id": "I", "weight": 2125 }, { "item_id": "J", "weight": 264 }, { "item_id": "K", "weight": 2638 }, { "item_id": "L", "weight": 338 }, { "item_id": "M", "weight": 1811 }, { "item_id": "N", "weight": 1739 }, { "item_id": "O", "weight": 2240 } ], "quadratic_pairs": [ { "item_i_id": "A", "item_j_id": "A", "quadratic_profit": 2673 }, { "item_i_id": "A", "item_j_id": "B", "quadratic_profit": 3006 }, { "item_i_id": "A", "item_j_id": "C", "quadratic_profit": 368 }, { "item_i_id": "A", "item_j_id": "D", "quadratic_profit": 1316 }, { "item_i_id": "A", "item_j_id": "E", "quadratic_profit": 2821 }, { "item_i_id": "A", "item_j_id": "F", "quadratic_profit": 1175 }, { "item_i_id": "A", "item_j_id": "H", "quadratic_profit": 2788 }, { "item_i_id": "A", "item_j_id": "J", "quadratic_profit": 205 }, { "item_i_id": "A", "item_j_id": "K", "quadratic_profit": 1256 }, { "item_i_id": "A", "item_j_id": "N", "quadratic_profit": 3035 }, { "item_i_id": "A", "item_j_id": "O", "quadratic_profit": 2226 }, { "item_i_id": "B", "item_j_id": "B", "quadratic_profit": 2389 }, { "item_i_id": "B", "item_j_id": "C", "quadratic_profit": 1917 }, { "item_i_id": "B", "item_j_id": "E", "quadratic_profit": 283 }, { "item_i_id": "B", "item_j_id": "G", "quadratic_profit": 407 }, { "item_i_id": "B", "item_j_id": "I", "quadratic_profit": 2520 }, { "item_i_id": "B", "item_j_id": "K", "quadratic_profit": 475 }, { "item_i_id": "B", "item_j_id": "M", "quadratic_profit": 1076 }, { "item_i_id": "B", "item_j_id": "N", "quadratic_profit": 2288 }, { "item_i_id": "B", "item_j_id": "O", "quadratic_profit": 2805 }, { "item_i_id": "C", "item_j_id": "C", "quadratic_profit": 2826 }, { "item_i_id": "C", "item_j_id": "E", "quadratic_profit": 2743 }, { "item_i_id": "C", "item_j_id": "F", "quadratic_profit": 3286 }, { "item_i_id": "C", "item_j_id": "G", "quadratic_profit": 873 }, { "item_i_id": "C", "item_j_id": "H", "quadratic_profit": 383 }, { "item_i_id": "C", "item_j_id": "I", "quadratic_profit": 3241 }, { "item_i_id": "C", "item_j_id": "J", "quadratic_profit": 3170 }, { "item_i_id": "C", "item_j_id": "K", "quadratic_profit": 719 }, { "item_i_id": "C", "item_j_id": "L", "quadratic_profit": 352 }, { "item_i_id": "C", "item_j_id": "M", "quadratic_profit": 1205 }, { "item_i_id": "C", "item_j_id": "N", "quadratic_profit": 3253 }, { "item_i_id": "C", "item_j_id": "O", "quadratic_profit": 2091 }, { "item_i_id": "D", "item_j_id": "D", "quadratic_profit": 3269 }, { "item_i_id": "D", "item_j_id": "E", "quadratic_profit": 2529 }, { "item_i_id": "D", "item_j_id": "F", "quadratic_profit": 867 }, { "item_i_id": "D", "item_j_id": "G", "quadratic_profit": 1950 }, { "item_i_id": "D", "item_j_id": "I", "quadratic_profit": 1688 }, { "item_i_id": "D", "item_j_id": "J", "quadratic_profit": 2695 }, { "item_i_id": "D", "item_j_id": "K", "quadratic_profit": 2036 }, { "item_i_id": "D", "item_j_id": "L", "quadratic_profit": 3296 }, { "item_i_id": "D", "item_j_id": "M", "quadratic_profit": 1265 }, { "item_i_id": "D", "item_j_id": "O", "quadratic_profit": 2257 }, { "item_i_id": "E", "item_j_id": "E", "quadratic_profit": 3215 }, { "item_i_id": "E", "item_j_id": "F", "quadratic_profit": 2166 }, { "item_i_id": "E", "item_j_id": "G", "quadratic_profit": 1834 }, { "item_i_id": "E", "item_j_id": "H", "quadratic_profit": 1235 }, { "item_i_id": "E", "item_j_id": "J", "quadratic_profit": 1122 }, { "item_i_id": "E", "item_j_id": "K", "quadratic_profit": 1689 }, { "item_i_id": "E", "item_j_id": "L", "quadratic_profit": 1149 }, { "item_i_id": "E", "item_j_id": "M", "quadratic_profit": 842 }, { "item_i_id": "E", "item_j_id": "N", "quadratic_profit": 2554 }, { "item_i_id": "F", "item_j_id": "F", "quadratic_profit": 2497 }, { "item_i_id": "F", "item_j_id": "G", "quadratic_profit": 551 }, { "item_i_id": "F", "item_j_id": "H", "quadratic_profit": 1318 }, { "item_i_id": "F", "item_j_id": "J", "quadratic_profit": 1752 }, { "item_i_id": "F", "item_j_id": "K", "quadratic_profit": 1935 }, { "item_i_id": "F", "item_j_id": "L", "quadratic_profit": 1048 }, { "item_i_id": "F", "item_j_id": "M", "quadratic_profit": 2821 }, { "item_i_id": "F", "item_j_id": "N", "quadratic_profit": 1484 }, { "item_i_id": "F", "item_j_id": "O", "quadratic_profit": 1220 }, { "item_i_id": "G", "item_j_id": "G", "quadratic_profit": 2373 }, { "item_i_id": "G", "item_j_id": "H", "quadratic_profit": 1245 }, { "item_i_id": "G", "item_j_id": "I", "quadratic_profit": 2117 }, { "item_i_id": "G", "item_j_id": "J", "quadratic_profit": 1225 }, { "item_i_id": "G", "item_j_id": "K", "quadratic_profit": 176 }, { "item_i_id": "G", "item_j_id": "L", "quadratic_profit": 1897 }, { "item_i_id": "G", "item_j_id": "M", "quadratic_profit": 2483 }, { "item_i_id": "G", "item_j_id": "N", "quadratic_profit": 1196 }, { "item_i_id": "H", "item_j_id": "H", "quadratic_profit": 1745 }, { "item_i_id": "H", "item_j_id": "I", "quadratic_profit": 1666 }, { "item_i_id": "H", "item_j_id": "K", "quadratic_profit": 1296 }, { "item_i_id": "H", "item_j_id": "L", "quadratic_profit": 2342 }, { "item_i_id": "H", "item_j_id": "M", "quadratic_profit": 2890 }, { "item_i_id": "H", "item_j_id": "N", "quadratic_profit": 2057 }, { "item_i_id": "I", "item_j_id": "I", "quadratic_profit": 2595 }, { "item_i_id": "I", "item_j_id": "J", "quadratic_profit": 2158 }, { "item_i_id": "I", "item_j_id": "K", "quadratic_profit": 636 }, { "item_i_id": "I", "item_j_id": "N", "quadratic_profit": 2754 }, { "item_i_id": "I", "item_j_id": "O", "quadratic_profit": 575 }, { "item_i_id": "J", "item_j_id": "K", "quadratic_profit": 1409 }, { "item_i_id": "J", "item_j_id": "M", "quadratic_profit": 252 }, { "item_i_id": "J", "item_j_id": "N", "quadratic_profit": 1280 }, { "item_i_id": "J", "item_j_id": "O", "quadratic_profit": 2520 }, { "item_i_id": "K", "item_j_id": "K", "quadratic_profit": 1279 }, { "item_i_id": "K", "item_j_id": "L", "quadratic_profit": 207 }, { "item_i_id": "K", "item_j_id": "N", "quadratic_profit": 2864 }, { "item_i_id": "K", "item_j_id": "O", "quadratic_profit": 1988 }, { "item_i_id": "L", "item_j_id": "L", "quadratic_profit": 343 }, { "item_i_id": "L", "item_j_id": "M", "quadratic_profit": 2088 }, { "item_i_id": "L", "item_j_id": "N", "quadratic_profit": 752 }, { "item_i_id": "L", "item_j_id": "O", "quadratic_profit": 3102 }, { "item_i_id": "M", "item_j_id": "M", "quadratic_profit": 2721 }, { "item_i_id": "M", "item_j_id": "N", "quadratic_profit": 2364 } ] }, "solution_variant": [ "A", "B", "C", "D", "E", "F", "H", "I", "J", "K", "L", "N", "O" ], "context_index": 48, "input_format": "nl", "input_index_base": "names" }, { "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 12 distinct pieces listed as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and the courier bag holds up to 19637 weight units.\nMaterial 0 adds 4586 outreach when included.\nMaterial 1 adds 6105 outreach when included.\nMaterial 2 adds 1708 outreach when included.\nMaterial 3 adds 4748 outreach when included.\nMaterial 4 adds 3919 outreach when included.\nMaterial 5 adds 2332 outreach when included.\nMaterial 6 adds 6200 outreach when included.\nMaterial 7 adds 7002 outreach when included.\nMaterial 8 adds 5839 outreach when included.\nMaterial 9 adds 3783 outreach when included.\nMaterial 10 adds 784 outreach when included.\nMaterial 11 adds 4338 outreach when included.\nMaterial 0 weighs 3936 weight units.\nMaterial 1 weighs 5455 weight units.\nMaterial 2 weighs 1058 weight units.\nMaterial 3 weighs 4098 weight units.\nMaterial 4 weighs 3269 weight units.\nMaterial 5 weighs 1682 weight units.\nMaterial 6 weighs 5550 weight units.\nMaterial 7 weighs 6352 weight units.\nMaterial 8 weighs 5189 weight units.\nMaterial 9 weighs 3133 weight units.\nMaterial 10 weighs 134 weight units.\nMaterial 11 weighs 3688 weight units.\nIncluding 0 together with 3 yields an extra 3936 outreach.\nIncluding 1 together with 3 yields an extra 5189 outreach.\nIncluding 1 together with 6 yields an extra 3642 outreach.\nIncluding 2 together with 4 yields an extra 1058 outreach.\nIncluding 2 together with 10 yields an extra 376 outreach.\nIncluding 3 together with 5 yields an extra 2136 outreach.\nIncluding 3 together with 11 yields an extra 376 outreach.\nIncluding 4 together with 6 yields an extra 134 outreach.\nIncluding 4 together with 9 yields an extra 2738 outreach.\nIncluding 4 together with 10 yields an extra 259 outreach.\nIncluding 5 together with 7 yields an extra 1983 outreach.\nIncluding 5 together with 11 yields an extra 3289 outreach.\nIncluding 6 together with 8 yields an extra 2682 outreach.\nIncluding 6 together with 10 yields an extra 962 outreach.\nIncluding 6 together with 11 yields an extra 3894 outreach.\nIncluding 7 together with 9 yields an extra 3038 outreach.\nIncluding 7 together with 11 yields an extra 1829 outreach.\nIncluding 8 together with 11 yields an extra 5394 outreach.\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": [ 4586, 6105, 1708, 4748, 3919, 2332, 6200, 7002, 5839, 3783, 784, 4338 ], "quadratic_coeffs": [ [ 0, 0, 0, 3936, 0, 0, 0, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 5189, 0, 0, 3642, 0, 0, 0, 0, 0 ], [ 0, 0, 0, 0, 1058, 0, 0, 0, 0, 0, 376, 0 ], [ 0, 0, 0, 0, 0, 2136, 0, 0, 0, 0, 0, 376 ], [ 0, 0, 0, 0, 0, 0, 134, 0, 0, 2738, 259, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 1983, 0, 0, 0, 3289 ], [ 0, 0, 0, 0, 0, 0, 1673, 0, 2682, 0, 962, 3894 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 3038, 0, 1829 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 2682, 0, 0, 5394 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 1963, 0, 0 ], [ 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": [ 3936, 5455, 1058, 4098, 3269, 1682, 5550, 6352, 5189, 3133, 134, 3688 ], "capacity": 19637, "solution": [ 4, 5, 6, 8, 10, 11 ], "obj": 40026.0, "problem_type": "QKP" }, "solution": [ 4, 5, 6, 8, 10, 11 ], "obj": 40026.0, "instance_variant": { "problem_type": "QKP", "num_items": 12, "capacity": 19637, "items": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], "linear_pairs": [ { "item_id": 0, "linear_profit": 4586 }, { "item_id": 1, "linear_profit": 6105 }, { "item_id": 2, "linear_profit": 1708 }, { "item_id": 3, "linear_profit": 4748 }, { "item_id": 4, "linear_profit": 3919 }, { "item_id": 5, "linear_profit": 2332 }, { "item_id": 6, "linear_profit": 6200 }, { "item_id": 7, "linear_profit": 7002 }, { "item_id": 8, "linear_profit": 5839 }, { "item_id": 9, "linear_profit": 3783 }, { "item_id": 10, "linear_profit": 784 }, { "item_id": 11, "linear_profit": 4338 } ], "weight_pairs": [ { "item_id": 0, "weight": 3936 }, { "item_id": 1, "weight": 5455 }, { "item_id": 2, "weight": 1058 }, { "item_id": 3, "weight": 4098 }, { "item_id": 4, "weight": 3269 }, { "item_id": 5, "weight": 1682 }, { "item_id": 6, "weight": 5550 }, { "item_id": 7, "weight": 6352 }, { "item_id": 8, "weight": 5189 }, { "item_id": 9, "weight": 3133 }, { "item_id": 10, "weight": 134 }, { "item_id": 11, "weight": 3688 } ], "quadratic_pairs": [ { "item_i_id": 0, "item_j_id": 3, "quadratic_profit": 3936 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 5189 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 3642 }, { "item_i_id": 2, "item_j_id": 4, "quadratic_profit": 1058 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 376 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 2136 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 376 }, { "item_i_id": 4, "item_j_id": 6, "quadratic_profit": 134 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 2738 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 259 }, { "item_i_id": 5, "item_j_id": 7, "quadratic_profit": 1983 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 3289 }, { "item_i_id": 6, "item_j_id": 6, "quadratic_profit": 1673 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 2682 }, { "item_i_id": 6, "item_j_id": 10, "quadratic_profit": 962 }, { "item_i_id": 6, "item_j_id": 11, "quadratic_profit": 3894 }, { "item_i_id": 7, "item_j_id": 9, "quadratic_profit": 3038 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 1829 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 2682 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 5394 }, { "item_i_id": 9, "item_j_id": 9, "quadratic_profit": 1963 } ] }, "solution_variant": [ 4, 5, 6, 8, 10, 11 ], "context_index": 49, "input_format": "nl", "input_index_base": 0 }, { "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 15 samples 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 and the mailer capacity 408.\n\n| sample_id | individual_conversion_value |\n|---|---|\n| 1 | 124 |\n| 2 | 120 |\n| 3 | 134 |\n| 4 | 131 |\n| 5 | 117 |\n| 6 | 119 |\n| 7 | 117 |\n| 8 | 113 |\n| 9 | 133 |\n| 10 | 112 |\n| 11 | 135 |\n| 12 | 119 |\n| 13 | 116 |\n| 14 | 132 |\n| 15 | 126 |\n\n| sample_id | sample_weight |\n|---|---|\n| 1 | 112 |\n| 2 | 108 |\n| 3 | 122 |\n| 4 | 119 |\n| 5 | 105 |\n| 6 | 107 |\n| 7 | 105 |\n| 8 | 101 |\n| 9 | 121 |\n| 10 | 100 |\n| 11 | 123 |\n| 12 | 107 |\n| 13 | 104 |\n| 14 | 120 |\n| 15 | 114 |\n\n| sample_i_id | sample_j_id | pair_bonus_conversion |\n|---|---|---|\n| 1 | 2 | 121 |\n| 1 | 3 | 123 |\n| 1 | 4 | 104 |\n| 1 | 5 | 112 |\n| 1 | 6 | 100 |\n| 1 | 7 | 104 |\n| 1 | 9 | 117 |\n| 1 | 11 | 118 |\n| 1 | 12 | 108 |\n| 1 | 13 | 117 |\n| 1 | 14 | 123 |\n| 2 | 3 | 113 |\n| 2 | 5 | 122 |\n| 2 | 6 | 106 |\n| 2 | 8 | 108 |\n| 2 | 9 | 123 |\n| 2 | 10 | 110 |\n| 2 | 11 | 107 |\n| 2 | 13 | 119 |\n| 2 | 15 | 102 |\n| 3 | 4 | 111 |\n| 3 | 5 | 115 |\n| 3 | 6 | 120 |\n| 3 | 7 | 102 |\n| 3 | 9 | 107 |\n| 3 | 10 | 104 |\n| 3 | 11 | 106 |\n| 3 | 12 | 106 |\n| 3 | 13 | 101 |\n| 3 | 15 | 103 |\n| 4 | 5 | 115 |\n| 4 | 7 | 102 |\n| 4 | 9 | 115 |\n| 4 | 10 | 114 |\n| 4 | 11 | 122 |\n| 4 | 13 | 124 |\n| 4 | 14 | 118 |\n| 4 | 15 | 118 |\n| 5 | 6 | 102 |\n| 5 | 8 | 106 |\n| 5 | 10 | 116 |\n| 5 | 11 | 101 |\n| 5 | 12 | 108 |\n| 5 | 13 | 107 |\n| 5 | 14 | 116 |\n| 5 | 15 | 100 |\n| 6 | 7 | 107 |\n| 6 | 8 | 111 |\n| 6 | 9 | 107 |\n| 6 | 13 | 100 |\n| 6 | 14 | 102 |\n| 6 | 15 | 109 |\n| 7 | 8 | 122 |\n| 7 | 10 | 101 |\n| 7 | 11 | 109 |\n| 7 | 14 | 110 |\n| 7 | 15 | 107 |\n| 8 | 9 | 104 |\n| 8 | 10 | 115 |\n| 8 | 11 | 104 |\n| 8 | 13 | 105 |\n| 8 | 14 | 123 |\n| 8 | 15 | 107 |\n| 9 | 10 | 122 |\n| 9 | 12 | 116 |\n| 9 | 13 | 100 |\n| 9 | 15 | 113 |\n| 10 | 11 | 124 |\n| 10 | 12 | 120 |\n| 10 | 13 | 112 |\n| 10 | 14 | 122 |\n| 10 | 15 | 102 |\n| 11 | 13 | 119 |\n| 11 | 14 | 111 |\n| 12 | 13 | 115 |\n| 12 | 14 | 121 |\n| 12 | 15 | 114 |\n| 13 | 15 | 121 |\n| 14 | 15 | 107 |\n\nWe’ll pick the kit that maximizes total conversion while staying within the 408 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": [ 124, 120, 134, 131, 117, 119, 117, 113, 133, 112, 135, 119, 116, 132, 126 ], "quadratic_coeffs": [ [ 0, 121, 123, 104, 112, 100, 104, 0, 117, 0, 118, 108, 117, 123, 0 ], [ 0, 110, 113, 0, 122, 106, 0, 108, 123, 110, 107, 0, 119, 0, 102 ], [ 0, 0, 0, 111, 115, 120, 102, 0, 107, 104, 106, 106, 101, 0, 103 ], [ 0, 0, 0, 103, 115, 0, 102, 0, 115, 114, 122, 0, 124, 118, 118 ], [ 0, 0, 0, 0, 0, 102, 0, 106, 0, 116, 101, 108, 107, 116, 100 ], [ 0, 0, 0, 0, 0, 0, 107, 111, 107, 0, 0, 0, 100, 102, 109 ], [ 0, 0, 0, 0, 0, 0, 104, 122, 0, 101, 109, 0, 0, 110, 107 ], [ 0, 0, 0, 0, 0, 0, 0, 122, 104, 115, 104, 0, 105, 123, 107 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 122, 0, 116, 100, 0, 113 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 117, 124, 120, 112, 122, 102 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0, 119, 111, 0 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 110, 115, 121, 114 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 118, 0, 121 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107 ], [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 109 ] ], "weights": [ 112, 108, 122, 119, 105, 107, 105, 101, 121, 100, 123, 107, 104, 120, 114 ], "capacity": 408, "solution": [ 3, 10, 13 ], "obj": 749.0, "problem_type": "QKP" }, "solution": [ 3, 10, 13 ], "obj": 749.0, "instance_variant": { "problem_type": "QKP", "num_items": 15, "capacity": 408, "items": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], "linear_pairs": [ { "item_id": 1, "linear_profit": 124 }, { "item_id": 2, "linear_profit": 120 }, { "item_id": 3, "linear_profit": 134 }, { "item_id": 4, "linear_profit": 131 }, { "item_id": 5, "linear_profit": 117 }, { "item_id": 6, "linear_profit": 119 }, { "item_id": 7, "linear_profit": 117 }, { "item_id": 8, "linear_profit": 113 }, { "item_id": 9, "linear_profit": 133 }, { "item_id": 10, "linear_profit": 112 }, { "item_id": 11, "linear_profit": 135 }, { "item_id": 12, "linear_profit": 119 }, { "item_id": 13, "linear_profit": 116 }, { "item_id": 14, "linear_profit": 132 }, { "item_id": 15, "linear_profit": 126 } ], "weight_pairs": [ { "item_id": 1, "weight": 112 }, { "item_id": 2, "weight": 108 }, { "item_id": 3, "weight": 122 }, { "item_id": 4, "weight": 119 }, { "item_id": 5, "weight": 105 }, { "item_id": 6, "weight": 107 }, { "item_id": 7, "weight": 105 }, { "item_id": 8, "weight": 101 }, { "item_id": 9, "weight": 121 }, { "item_id": 10, "weight": 100 }, { "item_id": 11, "weight": 123 }, { "item_id": 12, "weight": 107 }, { "item_id": 13, "weight": 104 }, { "item_id": 14, "weight": 120 }, { "item_id": 15, "weight": 114 } ], "quadratic_pairs": [ { "item_i_id": 1, "item_j_id": 2, "quadratic_profit": 121 }, { "item_i_id": 1, "item_j_id": 3, "quadratic_profit": 123 }, { "item_i_id": 1, "item_j_id": 4, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 5, "quadratic_profit": 112 }, { "item_i_id": 1, "item_j_id": 6, "quadratic_profit": 100 }, { "item_i_id": 1, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 1, "item_j_id": 9, "quadratic_profit": 117 }, { "item_i_id": 1, "item_j_id": 11, "quadratic_profit": 118 }, { "item_i_id": 1, "item_j_id": 12, "quadratic_profit": 108 }, { "item_i_id": 1, "item_j_id": 13, "quadratic_profit": 117 }, { "item_i_id": 1, "item_j_id": 14, "quadratic_profit": 123 }, { "item_i_id": 2, "item_j_id": 2, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 3, "quadratic_profit": 113 }, { "item_i_id": 2, "item_j_id": 5, "quadratic_profit": 122 }, { "item_i_id": 2, "item_j_id": 6, "quadratic_profit": 106 }, { "item_i_id": 2, "item_j_id": 8, "quadratic_profit": 108 }, { "item_i_id": 2, "item_j_id": 9, "quadratic_profit": 123 }, { "item_i_id": 2, "item_j_id": 10, "quadratic_profit": 110 }, { "item_i_id": 2, "item_j_id": 11, "quadratic_profit": 107 }, { "item_i_id": 2, "item_j_id": 13, "quadratic_profit": 119 }, { "item_i_id": 2, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 4, "quadratic_profit": 111 }, { "item_i_id": 3, "item_j_id": 5, "quadratic_profit": 115 }, { "item_i_id": 3, "item_j_id": 6, "quadratic_profit": 120 }, { "item_i_id": 3, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 3, "item_j_id": 9, "quadratic_profit": 107 }, { "item_i_id": 3, "item_j_id": 10, "quadratic_profit": 104 }, { "item_i_id": 3, "item_j_id": 11, "quadratic_profit": 106 }, { "item_i_id": 3, "item_j_id": 12, "quadratic_profit": 106 }, { "item_i_id": 3, "item_j_id": 13, "quadratic_profit": 101 }, { "item_i_id": 3, "item_j_id": 15, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 4, "quadratic_profit": 103 }, { "item_i_id": 4, "item_j_id": 5, "quadratic_profit": 115 }, { "item_i_id": 4, "item_j_id": 7, "quadratic_profit": 102 }, { "item_i_id": 4, "item_j_id": 9, "quadratic_profit": 115 }, { "item_i_id": 4, "item_j_id": 10, "quadratic_profit": 114 }, { "item_i_id": 4, "item_j_id": 11, "quadratic_profit": 122 }, { "item_i_id": 4, "item_j_id": 13, "quadratic_profit": 124 }, { "item_i_id": 4, "item_j_id": 14, "quadratic_profit": 118 }, { "item_i_id": 4, "item_j_id": 15, "quadratic_profit": 118 }, { "item_i_id": 5, "item_j_id": 6, "quadratic_profit": 102 }, { "item_i_id": 5, "item_j_id": 8, "quadratic_profit": 106 }, { "item_i_id": 5, "item_j_id": 10, "quadratic_profit": 116 }, { "item_i_id": 5, "item_j_id": 11, "quadratic_profit": 101 }, { "item_i_id": 5, "item_j_id": 12, "quadratic_profit": 108 }, { "item_i_id": 5, "item_j_id": 13, "quadratic_profit": 107 }, { "item_i_id": 5, "item_j_id": 14, "quadratic_profit": 116 }, { "item_i_id": 5, "item_j_id": 15, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 7, "quadratic_profit": 107 }, { "item_i_id": 6, "item_j_id": 8, "quadratic_profit": 111 }, { "item_i_id": 6, "item_j_id": 9, "quadratic_profit": 107 }, { "item_i_id": 6, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 6, "item_j_id": 14, "quadratic_profit": 102 }, { "item_i_id": 6, "item_j_id": 15, "quadratic_profit": 109 }, { "item_i_id": 7, "item_j_id": 7, "quadratic_profit": 104 }, { "item_i_id": 7, "item_j_id": 8, "quadratic_profit": 122 }, { "item_i_id": 7, "item_j_id": 10, "quadratic_profit": 101 }, { "item_i_id": 7, "item_j_id": 11, "quadratic_profit": 109 }, { "item_i_id": 7, "item_j_id": 14, "quadratic_profit": 110 }, { "item_i_id": 7, "item_j_id": 15, "quadratic_profit": 107 }, { "item_i_id": 8, "item_j_id": 8, "quadratic_profit": 122 }, { "item_i_id": 8, "item_j_id": 9, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 10, "quadratic_profit": 115 }, { "item_i_id": 8, "item_j_id": 11, "quadratic_profit": 104 }, { "item_i_id": 8, "item_j_id": 13, "quadratic_profit": 105 }, { "item_i_id": 8, "item_j_id": 14, "quadratic_profit": 123 }, { "item_i_id": 8, "item_j_id": 15, "quadratic_profit": 107 }, { "item_i_id": 9, "item_j_id": 10, "quadratic_profit": 122 }, { "item_i_id": 9, "item_j_id": 12, "quadratic_profit": 116 }, { "item_i_id": 9, "item_j_id": 13, "quadratic_profit": 100 }, { "item_i_id": 9, "item_j_id": 15, "quadratic_profit": 113 }, { "item_i_id": 10, "item_j_id": 10, "quadratic_profit": 117 }, { "item_i_id": 10, "item_j_id": 11, "quadratic_profit": 124 }, { "item_i_id": 10, "item_j_id": 12, "quadratic_profit": 120 }, { "item_i_id": 10, "item_j_id": 13, "quadratic_profit": 112 }, { "item_i_id": 10, "item_j_id": 14, "quadratic_profit": 122 }, { "item_i_id": 10, "item_j_id": 15, "quadratic_profit": 102 }, { "item_i_id": 11, "item_j_id": 11, "quadratic_profit": 100 }, { "item_i_id": 11, "item_j_id": 13, "quadratic_profit": 119 }, { "item_i_id": 11, "item_j_id": 14, "quadratic_profit": 111 }, { "item_i_id": 12, "item_j_id": 12, "quadratic_profit": 110 }, { "item_i_id": 12, "item_j_id": 13, "quadratic_profit": 115 }, { "item_i_id": 12, "item_j_id": 14, "quadratic_profit": 121 }, { "item_i_id": 12, "item_j_id": 15, "quadratic_profit": 114 }, { "item_i_id": 13, "item_j_id": 13, "quadratic_profit": 118 }, { "item_i_id": 13, "item_j_id": 15, "quadratic_profit": 121 }, { "item_i_id": 14, "item_j_id": 15, "quadratic_profit": 107 }, { "item_i_id": 15, "item_j_id": 15, "quadratic_profit": 109 } ] }, "solution_variant": [ 4, 11, 14 ], "context_index": 50, "input_format": "markdown_table", "input_index_base": 1 } ]