task_name,problem_type,instruction,instance,solution,obj,instance_variant,solution_variant,context_index,input_format,input_index_base GAP,GAP,"We ran into a routing puzzle: several parcels must be put onto the available couriers, and for every courier there’s a known cargo allowance, plus for every parcel–courier pair we know how much space the parcel would take in that van and what the courier would charge. Every parcel has to be assigned to one and only one courier — no duplicates, no omissions — and the combined space of parcels assigned to any courier can’t exceed that courier’s allowance. The aim is to keep the total of all courier charges as low as possible (just add up each courier’s fees for the parcels they handle). The specific sizes, capacities and prices are listed below. { ""num_couriers"": 4, ""num_parcels"": 11, ""courier_ids"": [ ""A1"", ""A2"", ""A3"", ""A4"" ], ""parcel_ids"": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ], ""capacities"": [ { ""courier_id"": ""A1"", ""cargo_allowance"": 131 }, { ""courier_id"": ""A2"", ""cargo_allowance"": 131 }, { ""courier_id"": ""A3"", ""cargo_allowance"": 131 }, { ""courier_id"": ""A4"", ""cargo_allowance"": 131 } ], ""resource"": [ { ""courier_id"": ""A1"", ""parcel_id"": 1, ""parcel_space"": 48 }, { ""courier_id"": ""A1"", ""parcel_id"": 2, ""parcel_space"": 27 }, { ""courier_id"": ""A1"", ""parcel_id"": 3, ""parcel_space"": 23 }, { ""courier_id"": ""A1"", ""parcel_id"": 4, ""parcel_space"": 28 }, { ""courier_id"": ""A1"", ""parcel_id"": 5, ""parcel_space"": 22 }, { ""courier_id"": ""A1"", ""parcel_id"": 6, ""parcel_space"": 48 }, { ""courier_id"": ""A1"", ""parcel_id"": 7, ""parcel_space"": 48 }, { ""courier_id"": ""A1"", ""parcel_id"": 8, ""parcel_space"": 36 }, { ""courier_id"": ""A1"", ""parcel_id"": 9, ""parcel_space"": 31 }, { ""courier_id"": ""A1"", ""parcel_id"": 10, ""parcel_space"": 44 }, { ""courier_id"": ""A1"", ""parcel_id"": 11, ""parcel_space"": 16 }, { ""courier_id"": ""A2"", ""parcel_id"": 1, ""parcel_space"": 24 }, { ""courier_id"": ""A2"", ""parcel_id"": 2, ""parcel_space"": 39 }, { ""courier_id"": ""A2"", ""parcel_id"": 3, ""parcel_space"": 48 }, { ""courier_id"": ""A2"", ""parcel_id"": 4, ""parcel_space"": 13 }, { ""courier_id"": ""A2"", ""parcel_id"": 5, ""parcel_space"": 36 }, { ""courier_id"": ""A2"", ""parcel_id"": 6, ""parcel_space"": 14 }, { ""courier_id"": ""A2"", ""parcel_id"": 7, ""parcel_space"": 33 }, { ""courier_id"": ""A2"", ""parcel_id"": 8, ""parcel_space"": 13 }, { ""courier_id"": ""A2"", ""parcel_id"": 9, ""parcel_space"": 47 }, { ""courier_id"": ""A2"", ""parcel_id"": 10, ""parcel_space"": 10 }, { ""courier_id"": ""A2"", ""parcel_id"": 11, ""parcel_space"": 28 }, { ""courier_id"": ""A3"", ""parcel_id"": 1, ""parcel_space"": 43 }, { ""courier_id"": ""A3"", ""parcel_id"": 2, ""parcel_space"": 42 }, { ""courier_id"": ""A3"", ""parcel_id"": 3, ""parcel_space"": 31 }, { ""courier_id"": ""A3"", ""parcel_id"": 4, ""parcel_space"": 19 }, { ""courier_id"": ""A3"", ""parcel_id"": 5, ""parcel_space"": 39 }, { ""courier_id"": ""A3"", ""parcel_id"": 6, ""parcel_space"": 45 }, { ""courier_id"": ""A3"", ""parcel_id"": 7, ""parcel_space"": 28 }, { ""courier_id"": ""A3"", ""parcel_id"": 8, ""parcel_space"": 28 }, { ""courier_id"": ""A3"", ""parcel_id"": 9, ""parcel_space"": 13 }, { ""courier_id"": ""A3"", ""parcel_id"": 10, ""parcel_space"": 28 }, { ""courier_id"": ""A3"", ""parcel_id"": 11, ""parcel_space"": 18 }, { ""courier_id"": ""A4"", ""parcel_id"": 1, ""parcel_space"": 38 }, { ""courier_id"": ""A4"", ""parcel_id"": 2, ""parcel_space"": 12 }, { ""courier_id"": ""A4"", ""parcel_id"": 3, ""parcel_space"": 31 }, { ""courier_id"": ""A4"", ""parcel_id"": 4, ""parcel_space"": 10 }, { ""courier_id"": ""A4"", ""parcel_id"": 5, ""parcel_space"": 21 }, { ""courier_id"": ""A4"", ""parcel_id"": 6, ""parcel_space"": 28 }, { ""courier_id"": ""A4"", ""parcel_id"": 7, ""parcel_space"": 39 }, { ""courier_id"": ""A4"", ""parcel_id"": 8, ""parcel_space"": 48 }, { ""courier_id"": ""A4"", ""parcel_id"": 9, ""parcel_space"": 35 }, { ""courier_id"": ""A4"", ""parcel_id"": 10, ""parcel_space"": 45 }, { ""courier_id"": ""A4"", ""parcel_id"": 11, ""parcel_space"": 25 } ], ""cost"": [ { ""courier_id"": ""A1"", ""parcel_id"": 1, ""delivery_fee"": 13 }, { ""courier_id"": ""A1"", ""parcel_id"": 2, ""delivery_fee"": 14 }, { ""courier_id"": ""A1"", ""parcel_id"": 3, ""delivery_fee"": 11 }, { ""courier_id"": ""A1"", ""parcel_id"": 4, ""delivery_fee"": 21 }, { ""courier_id"": ""A1"", ""parcel_id"": 5, ""delivery_fee"": 16 }, { ""courier_id"": ""A1"", ""parcel_id"": 6, ""delivery_fee"": 11 }, { ""courier_id"": ""A1"", ""parcel_id"": 7, ""delivery_fee"": 16 }, { ""courier_id"": ""A1"", ""parcel_id"": 8, ""delivery_fee"": 19 }, { ""courier_id"": ""A1"", ""parcel_id"": 9, ""delivery_fee"": 11 }, { ""courier_id"": ""A1"", ""parcel_id"": 10, ""delivery_fee"": 11 }, { ""courier_id"": ""A1"", ""parcel_id"": 11, ""delivery_fee"": 6 }, { ""courier_id"": ""A2"", ""parcel_id"": 1, ""delivery_fee"": 18 }, { ""courier_id"": ""A2"", ""parcel_id"": 2, ""delivery_fee"": 18 }, { ""courier_id"": ""A2"", ""parcel_id"": 3, ""delivery_fee"": 10 }, { ""courier_id"": ""A2"", ""parcel_id"": 4, ""delivery_fee"": 5 }, { ""courier_id"": ""A2"", ""parcel_id"": 5, ""delivery_fee"": 14 }, { ""courier_id"": ""A2"", ""parcel_id"": 6, ""delivery_fee"": 11 }, { ""courier_id"": ""A2"", ""parcel_id"": 7, ""delivery_fee"": 16 }, { ""courier_id"": ""A2"", ""parcel_id"": 8, ""delivery_fee"": 14 }, { ""courier_id"": ""A2"", ""parcel_id"": 9, ""delivery_fee"": 14 }, { ""courier_id"": ""A2"", ""parcel_id"": 10, ""delivery_fee"": 18 }, { ""courier_id"": ""A2"", ""parcel_id"": 11, ""delivery_fee"": 15 }, { ""courier_id"": ""A3"", ""parcel_id"": 1, ""delivery_fee"": 24 }, { ""courier_id"": ""A3"", ""parcel_id"": 2, ""delivery_fee"": 9 }, { ""courier_id"": ""A3"", ""parcel_id"": 3, ""delivery_fee"": 8 }, { ""courier_id"": ""A3"", ""parcel_id"": 4, ""delivery_fee"": 23 }, { ""courier_id"": ""A3"", ""parcel_id"": 5, ""delivery_fee"": 20 }, { ""courier_id"": ""A3"", ""parcel_id"": 6, ""delivery_fee"": 20 }, { ""courier_id"": ""A3"", ""parcel_id"": 7, ""delivery_fee"": 9 }, { ""courier_id"": ""A3"", ""parcel_id"": 8, ""delivery_fee"": 6 }, { ""courier_id"": ""A3"", ""parcel_id"": 9, ""delivery_fee"": 14 }, { ""courier_id"": ""A3"", ""parcel_id"": 10, ""delivery_fee"": 16 }, { ""courier_id"": ""A3"", ""parcel_id"": 11, ""delivery_fee"": 6 }, { ""courier_id"": ""A4"", ""parcel_id"": 1, ""delivery_fee"": 12 }, { ""courier_id"": ""A4"", ""parcel_id"": 2, ""delivery_fee"": 19 }, { ""courier_id"": ""A4"", ""parcel_id"": 3, ""delivery_fee"": 6 }, { ""courier_id"": ""A4"", ""parcel_id"": 4, ""delivery_fee"": 7 }, { ""courier_id"": ""A4"", ""parcel_id"": 5, ""delivery_fee"": 25 }, { ""courier_id"": ""A4"", ""parcel_id"": 6, ""delivery_fee"": 15 }, { ""courier_id"": ""A4"", ""parcel_id"": 7, ""delivery_fee"": 13 }, { ""courier_id"": ""A4"", ""parcel_id"": 8, ""delivery_fee"": 12 }, { ""courier_id"": ""A4"", ""parcel_id"": 9, ""delivery_fee"": 24 }, { ""courier_id"": ""A4"", ""parcel_id"": 10, ""delivery_fee"": 21 }, { ""courier_id"": ""A4"", ""parcel_id"": 11, ""delivery_fee"": 5 } ] } When you're ready to give the actual allocation, just send it back in a small JSON snippet like this so it's easy to read and plug into whatever checks we're using. { ""solution"": [ , , ..., ] } Think of the ""solution"" array as a simple form: one entry per parcel (in the same order the parcels were listed), and each entry is the identifier of the courier who's taking that parcel. This JSON is only a sketch of the expected shape — not the actual assignment. Please use the exact identifiers from the instance input — do not rename 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”.","{'resource_consumption': [[48, 27, 23, 28, 22, 48, 48, 36, 31, 44, 16], [24, 39, 48, 13, 36, 14, 33, 13, 47, 10, 28], [43, 42, 31, 19, 39, 45, 28, 28, 13, 28, 18], [38, 12, 31, 10, 21, 28, 39, 48, 35, 45, 25]], 'assignment_costs': [[13, 14, 11, 21, 16, 11, 16, 19, 11, 11, 6], [18, 18, 10, 5, 14, 11, 16, 14, 14, 18, 15], [24, 9, 8, 23, 20, 20, 9, 6, 14, 16, 6], [12, 19, 6, 7, 25, 15, 13, 12, 24, 21, 5]], 'capacities': [131, 131, 131, 131], 'objective': 99.0}","[3, 2, 3, 1, 1, 1, 2, 2, 0, 0, 3]",99.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 11, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 131}, {'agent_id': 'A2', 'capacity': 131}, {'agent_id': 'A3', 'capacity': 131}, {'agent_id': 'A4', 'capacity': 131}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 23}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 22}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 44}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 43}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 10}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 35}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 25}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 13}, {'agent_id': 'A1', 'task_id': 2, 'cost': 14}, {'agent_id': 'A1', 'task_id': 3, 'cost': 11}, {'agent_id': 'A1', 'task_id': 4, 'cost': 21}, {'agent_id': 'A1', 'task_id': 5, 'cost': 16}, {'agent_id': 'A1', 'task_id': 6, 'cost': 11}, {'agent_id': 'A1', 'task_id': 7, 'cost': 16}, {'agent_id': 'A1', 'task_id': 8, 'cost': 19}, {'agent_id': 'A1', 'task_id': 9, 'cost': 11}, {'agent_id': 'A1', 'task_id': 10, 'cost': 11}, {'agent_id': 'A1', 'task_id': 11, 'cost': 6}, {'agent_id': 'A2', 'task_id': 1, 'cost': 18}, {'agent_id': 'A2', 'task_id': 2, 'cost': 18}, {'agent_id': 'A2', 'task_id': 3, 'cost': 10}, {'agent_id': 'A2', 'task_id': 4, 'cost': 5}, {'agent_id': 'A2', 'task_id': 5, 'cost': 14}, {'agent_id': 'A2', 'task_id': 6, 'cost': 11}, {'agent_id': 'A2', 'task_id': 7, 'cost': 16}, {'agent_id': 'A2', 'task_id': 8, 'cost': 14}, {'agent_id': 'A2', 'task_id': 9, 'cost': 14}, {'agent_id': 'A2', 'task_id': 10, 'cost': 18}, {'agent_id': 'A2', 'task_id': 11, 'cost': 15}, {'agent_id': 'A3', 'task_id': 1, 'cost': 24}, {'agent_id': 'A3', 'task_id': 2, 'cost': 9}, {'agent_id': 'A3', 'task_id': 3, 'cost': 8}, {'agent_id': 'A3', 'task_id': 4, 'cost': 23}, {'agent_id': 'A3', 'task_id': 5, 'cost': 20}, {'agent_id': 'A3', 'task_id': 6, 'cost': 20}, {'agent_id': 'A3', 'task_id': 7, 'cost': 9}, {'agent_id': 'A3', 'task_id': 8, 'cost': 6}, {'agent_id': 'A3', 'task_id': 9, 'cost': 14}, {'agent_id': 'A3', 'task_id': 10, 'cost': 16}, {'agent_id': 'A3', 'task_id': 11, 'cost': 6}, {'agent_id': 'A4', 'task_id': 1, 'cost': 12}, {'agent_id': 'A4', 'task_id': 2, 'cost': 19}, {'agent_id': 'A4', 'task_id': 3, 'cost': 6}, {'agent_id': 'A4', 'task_id': 4, 'cost': 7}, {'agent_id': 'A4', 'task_id': 5, 'cost': 25}, {'agent_id': 'A4', 'task_id': 6, 'cost': 15}, {'agent_id': 'A4', 'task_id': 7, 'cost': 13}, {'agent_id': 'A4', 'task_id': 8, 'cost': 12}, {'agent_id': 'A4', 'task_id': 9, 'cost': 24}, {'agent_id': 'A4', 'task_id': 10, 'cost': 21}, {'agent_id': 'A4', 'task_id': 11, 'cost': 5}]}","['A4', 'A3', 'A4', 'A2', 'A2', 'A2', 'A3', 'A3', 'A1', 'A1', 'A4']",1,json,1 GAP,GAP,"I’m juggling a pile of compute jobs and a rack of servers, and the task is to pick one server for every job so nothing is left out or duplicated. For each job-server pair I already know how much of that server’s CPU the job would eat and what the operating cost would be if it ran there. The better choices are the ones that keep each server’s total CPU use within its limit and make the total bill as small as possible — the bill is just the sum of the operating costs for every job where it’s placed. The concrete details (CPU fractions, costs, and server budgets) are listed below. # num_servers=5 # num_jobs=15 # server_ids=A1, A2, A3, A4, A5 # job_ids=0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 server_id,cpu_capacity A1,710 A2,715 A3,716 A4,704 A5,740 server_id,job_id,cpu_fraction A1,0,13 A1,1,25 A1,2,49 A1,3,13 A1,4,36 A1,5,29 A1,6,33 A1,7,45 A1,8,25 A1,9,24 A1,10,15 A1,11,44 A1,12,14 A1,13,41 A1,14,12 A2,0,44 A2,1,13 A2,2,34 A2,3,22 A2,4,39 A2,5,46 A2,6,19 A2,7,48 A2,8,39 A2,9,50 A2,10,32 A2,11,23 A2,12,22 A2,13,46 A2,14,12 A3,0,47 A3,1,39 A3,2,15 A3,3,19 A3,4,32 A3,5,10 A3,6,44 A3,7,26 A3,8,25 A3,9,49 A3,10,35 A3,11,45 A3,12,41 A3,13,37 A3,14,38 A4,0,42 A4,1,47 A4,2,11 A4,3,26 A4,4,30 A4,5,48 A4,6,44 A4,7,32 A4,8,46 A4,9,34 A4,10,49 A4,11,24 A4,12,47 A4,13,25 A4,14,30 A5,0,16 A5,1,36 A5,2,38 A5,3,40 A5,4,19 A5,5,31 A5,6,45 A5,7,26 A5,8,28 A5,9,26 A5,10,10 A5,11,38 A5,12,30 A5,13,43 A5,14,15 server_id,job_id,operating_cost A1,0,17 A1,1,6 A1,2,11 A1,3,22 A1,4,7 A1,5,20 A1,6,7 A1,7,6 A1,8,5 A1,9,20 A1,10,21 A1,11,7 A1,12,8 A1,13,11 A1,14,20 A2,0,23 A2,1,23 A2,2,11 A2,3,18 A2,4,5 A2,5,16 A2,6,13 A2,7,12 A2,8,20 A2,9,9 A2,10,22 A2,11,22 A2,12,17 A2,13,10 A2,14,9 A3,0,18 A3,1,12 A3,2,7 A3,3,23 A3,4,20 A3,5,5 A3,6,14 A3,7,9 A3,8,12 A3,9,10 A3,10,7 A3,11,5 A3,12,12 A3,13,15 A3,14,18 A4,0,6 A4,1,11 A4,2,24 A4,3,9 A4,4,20 A4,5,6 A4,6,11 A4,7,22 A4,8,8 A4,9,15 A4,10,8 A4,11,7 A4,12,13 A4,13,11 A4,14,25 A5,0,15 A5,1,22 A5,2,12 A5,3,16 A5,4,24 A5,5,7 A5,6,14 A5,7,24 A5,8,22 A5,9,8 A5,10,21 A5,11,8 A5,12,17 A5,13,11 A5,14,24 Oh — and to keep things machine-friendly, please put the final assignment in a tiny JSON sketch like this: { ""solution"": [ , , ..., ] } This just says, in order, which server each job gets: the first entry is the server for the first job, the second entry for the second job, and so on. The placeholders above are just the shape I want — you'll replace each placeholder with the actual server identifier from the instance (not a description or extra text). The JSON is only a sketch of the expected shape, not the actual answer. Please use the exact identifiers provided in the instance input — do not rename them or add 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”.""","{'resource_consumption': [[13, 25, 49, 13, 36, 29, 33, 45, 25, 24, 15, 44, 14, 41, 12], [44, 13, 34, 22, 39, 46, 19, 48, 39, 50, 32, 23, 22, 46, 12], [47, 39, 15, 19, 32, 10, 44, 26, 25, 49, 35, 45, 41, 37, 38], [42, 47, 11, 26, 30, 48, 44, 32, 46, 34, 49, 24, 47, 25, 30], [16, 36, 38, 40, 19, 31, 45, 26, 28, 26, 10, 38, 30, 43, 15]], 'assignment_costs': [[17, 6, 11, 22, 7, 20, 7, 6, 5, 20, 21, 7, 8, 11, 20], [23, 23, 11, 18, 5, 16, 13, 12, 20, 9, 22, 22, 17, 10, 9], [18, 12, 7, 23, 20, 5, 14, 9, 12, 10, 7, 5, 12, 15, 18], [6, 11, 24, 9, 20, 6, 11, 22, 8, 15, 8, 7, 13, 11, 25], [15, 22, 12, 16, 24, 7, 14, 24, 22, 8, 21, 8, 17, 11, 24]], 'capacities': [710, 715, 716, 704, 740], 'objective': 103.0}","[3, 0, 2, 3, 1, 2, 0, 0, 0, 4, 2, 2, 0, 1, 1]",103.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 710}, {'agent_id': 'A2', 'capacity': 715}, {'agent_id': 'A3', 'capacity': 716}, {'agent_id': 'A4', 'capacity': 704}, {'agent_id': 'A5', 'capacity': 740}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 13}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 13}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 44}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 14}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 50}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 15}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 10}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 26}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 37}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 26}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 34}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 16}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 40}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 19}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 31}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 45}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 26}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 26}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 10}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 43}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 15}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 17}, {'agent_id': 'A1', 'task_id': 1, 'cost': 6}, {'agent_id': 'A1', 'task_id': 2, 'cost': 11}, {'agent_id': 'A1', 'task_id': 3, 'cost': 22}, {'agent_id': 'A1', 'task_id': 4, 'cost': 7}, {'agent_id': 'A1', 'task_id': 5, 'cost': 20}, {'agent_id': 'A1', 'task_id': 6, 'cost': 7}, {'agent_id': 'A1', 'task_id': 7, 'cost': 6}, {'agent_id': 'A1', 'task_id': 8, 'cost': 5}, {'agent_id': 'A1', 'task_id': 9, 'cost': 20}, {'agent_id': 'A1', 'task_id': 10, 'cost': 21}, {'agent_id': 'A1', 'task_id': 11, 'cost': 7}, {'agent_id': 'A1', 'task_id': 12, 'cost': 8}, {'agent_id': 'A1', 'task_id': 13, 'cost': 11}, {'agent_id': 'A1', 'task_id': 14, 'cost': 20}, {'agent_id': 'A2', 'task_id': 0, 'cost': 23}, {'agent_id': 'A2', 'task_id': 1, 'cost': 23}, {'agent_id': 'A2', 'task_id': 2, 'cost': 11}, {'agent_id': 'A2', 'task_id': 3, 'cost': 18}, {'agent_id': 'A2', 'task_id': 4, 'cost': 5}, {'agent_id': 'A2', 'task_id': 5, 'cost': 16}, {'agent_id': 'A2', 'task_id': 6, 'cost': 13}, {'agent_id': 'A2', 'task_id': 7, 'cost': 12}, {'agent_id': 'A2', 'task_id': 8, 'cost': 20}, {'agent_id': 'A2', 'task_id': 9, 'cost': 9}, {'agent_id': 'A2', 'task_id': 10, 'cost': 22}, {'agent_id': 'A2', 'task_id': 11, 'cost': 22}, {'agent_id': 'A2', 'task_id': 12, 'cost': 17}, {'agent_id': 'A2', 'task_id': 13, 'cost': 10}, {'agent_id': 'A2', 'task_id': 14, 'cost': 9}, {'agent_id': 'A3', 'task_id': 0, 'cost': 18}, {'agent_id': 'A3', 'task_id': 1, 'cost': 12}, {'agent_id': 'A3', 'task_id': 2, 'cost': 7}, {'agent_id': 'A3', 'task_id': 3, 'cost': 23}, {'agent_id': 'A3', 'task_id': 4, 'cost': 20}, {'agent_id': 'A3', 'task_id': 5, 'cost': 5}, {'agent_id': 'A3', 'task_id': 6, 'cost': 14}, {'agent_id': 'A3', 'task_id': 7, 'cost': 9}, {'agent_id': 'A3', 'task_id': 8, 'cost': 12}, {'agent_id': 'A3', 'task_id': 9, 'cost': 10}, {'agent_id': 'A3', 'task_id': 10, 'cost': 7}, {'agent_id': 'A3', 'task_id': 11, 'cost': 5}, {'agent_id': 'A3', 'task_id': 12, 'cost': 12}, {'agent_id': 'A3', 'task_id': 13, 'cost': 15}, {'agent_id': 'A3', 'task_id': 14, 'cost': 18}, {'agent_id': 'A4', 'task_id': 0, 'cost': 6}, {'agent_id': 'A4', 'task_id': 1, 'cost': 11}, {'agent_id': 'A4', 'task_id': 2, 'cost': 24}, {'agent_id': 'A4', 'task_id': 3, 'cost': 9}, {'agent_id': 'A4', 'task_id': 4, 'cost': 20}, {'agent_id': 'A4', 'task_id': 5, 'cost': 6}, {'agent_id': 'A4', 'task_id': 6, 'cost': 11}, {'agent_id': 'A4', 'task_id': 7, 'cost': 22}, {'agent_id': 'A4', 'task_id': 8, 'cost': 8}, {'agent_id': 'A4', 'task_id': 9, 'cost': 15}, {'agent_id': 'A4', 'task_id': 10, 'cost': 8}, {'agent_id': 'A4', 'task_id': 11, 'cost': 7}, {'agent_id': 'A4', 'task_id': 12, 'cost': 13}, {'agent_id': 'A4', 'task_id': 13, 'cost': 11}, {'agent_id': 'A4', 'task_id': 14, 'cost': 25}, {'agent_id': 'A5', 'task_id': 0, 'cost': 15}, {'agent_id': 'A5', 'task_id': 1, 'cost': 22}, {'agent_id': 'A5', 'task_id': 2, 'cost': 12}, {'agent_id': 'A5', 'task_id': 3, 'cost': 16}, {'agent_id': 'A5', 'task_id': 4, 'cost': 24}, {'agent_id': 'A5', 'task_id': 5, 'cost': 7}, {'agent_id': 'A5', 'task_id': 6, 'cost': 14}, {'agent_id': 'A5', 'task_id': 7, 'cost': 24}, {'agent_id': 'A5', 'task_id': 8, 'cost': 22}, {'agent_id': 'A5', 'task_id': 9, 'cost': 8}, {'agent_id': 'A5', 'task_id': 10, 'cost': 21}, {'agent_id': 'A5', 'task_id': 11, 'cost': 8}, {'agent_id': 'A5', 'task_id': 12, 'cost': 17}, {'agent_id': 'A5', 'task_id': 13, 'cost': 11}, {'agent_id': 'A5', 'task_id': 14, 'cost': 24}]}","['A4', 'A1', 'A3', 'A4', 'A2', 'A3', 'A1', 'A1', 'A1', 'A5', 'A3', 'A3', 'A1', 'A2', 'A2']",2,csv,0 GAP,GAP,"We have a stack of production batches and a handful of machines; every batch needs to be assigned to one machine, and no batch can be left out or duplicated. For each possible pairing there’s an estimated run time and a price to pay for running that batch on that machine, and each machine only has so many hours to give. The plan that’s best is the one that makes the sum of all those running costs as low as possible — just total up the cost for each batch on its chosen machine — but while keeping each machine’s total assigned time within its available hours. The detailed times, costs, and capacities follow below. We list 5 machines (A1, A2, A3, A4, A5) and 15 batches (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15) below. For machine A1 we have 120 hours of available time. For machine A2 we have 115 hours of available time. For machine A3 we have 119 hours of available time. For machine A4 we have 112 hours of available time. For machine A5 we have 119 hours of available time. For machine A1 running batch 1 we estimate 29 hours of run time and a running cost of 10. For machine A1 running batch 2 we estimate 36 hours of run time and a running cost of 9. For machine A1 running batch 3 we estimate 15 hours of run time and a running cost of 17. For machine A1 running batch 4 we estimate 23 hours of run time and a running cost of 11. For machine A1 running batch 5 we estimate 43 hours of run time and a running cost of 10. For machine A1 running batch 6 we estimate 49 hours of run time and a running cost of 10. For machine A1 running batch 7 we estimate 32 hours of run time and a running cost of 5. For machine A1 running batch 8 we estimate 13 hours of run time and a running cost of 9. For machine A1 running batch 9 we estimate 19 hours of run time and a running cost of 13. For machine A1 running batch 10 we estimate 16 hours of run time and a running cost of 23. For machine A1 running batch 11 we estimate 38 hours of run time and a running cost of 8. For machine A1 running batch 12 we estimate 35 hours of run time and a running cost of 24. For machine A1 running batch 13 we estimate 20 hours of run time and a running cost of 12. For machine A1 running batch 14 we estimate 27 hours of run time and a running cost of 13. For machine A1 running batch 15 we estimate 19 hours of run time and a running cost of 15. For machine A2 running batch 1 we estimate 22 hours of run time and a running cost of 15. For machine A2 running batch 2 we estimate 32 hours of run time and a running cost of 9. For machine A2 running batch 3 we estimate 21 hours of run time and a running cost of 13. For machine A2 running batch 4 we estimate 12 hours of run time and a running cost of 9. For machine A2 running batch 5 we estimate 47 hours of run time and a running cost of 9. For machine A2 running batch 6 we estimate 46 hours of run time and a running cost of 10. For machine A2 running batch 7 we estimate 29 hours of run time and a running cost of 16. For machine A2 running batch 8 we estimate 29 hours of run time and a running cost of 20. For machine A2 running batch 9 we estimate 33 hours of run time and a running cost of 24. For machine A2 running batch 10 we estimate 34 hours of run time and a running cost of 16. For machine A2 running batch 11 we estimate 30 hours of run time and a running cost of 20. For machine A2 running batch 12 we estimate 41 hours of run time and a running cost of 22. For machine A2 running batch 13 we estimate 43 hours of run time and a running cost of 12. For machine A2 running batch 14 we estimate 39 hours of run time and a running cost of 5. For machine A2 running batch 15 we estimate 39 hours of run time and a running cost of 16. For machine A3 running batch 1 we estimate 44 hours of run time and a running cost of 15. For machine A3 running batch 2 we estimate 37 hours of run time and a running cost of 7. For machine A3 running batch 3 we estimate 40 hours of run time and a running cost of 10. For machine A3 running batch 4 we estimate 14 hours of run time and a running cost of 7. For machine A3 running batch 5 we estimate 28 hours of run time and a running cost of 16. For machine A3 running batch 6 we estimate 29 hours of run time and a running cost of 19. For machine A3 running batch 7 we estimate 44 hours of run time and a running cost of 11. For machine A3 running batch 8 we estimate 29 hours of run time and a running cost of 20. For machine A3 running batch 9 we estimate 26 hours of run time and a running cost of 6. For machine A3 running batch 10 we estimate 50 hours of run time and a running cost of 8. For machine A3 running batch 11 we estimate 16 hours of run time and a running cost of 11. For machine A3 running batch 12 we estimate 34 hours of run time and a running cost of 24. For machine A3 running batch 13 we estimate 18 hours of run time and a running cost of 21. For machine A3 running batch 14 we estimate 32 hours of run time and a running cost of 15. For machine A3 running batch 15 we estimate 44 hours of run time and a running cost of 9. For machine A4 running batch 1 we estimate 32 hours of run time and a running cost of 13. For machine A4 running batch 2 we estimate 23 hours of run time and a running cost of 5. For machine A4 running batch 3 we estimate 22 hours of run time and a running cost of 13. For machine A4 running batch 4 we estimate 35 hours of run time and a running cost of 22. For machine A4 running batch 5 we estimate 50 hours of run time and a running cost of 14. For machine A4 running batch 6 we estimate 44 hours of run time and a running cost of 6. For machine A4 running batch 7 we estimate 15 hours of run time and a running cost of 7. For machine A4 running batch 8 we estimate 40 hours of run time and a running cost of 14. For machine A4 running batch 9 we estimate 40 hours of run time and a running cost of 8. For machine A4 running batch 10 we estimate 49 hours of run time and a running cost of 5. For machine A4 running batch 11 we estimate 12 hours of run time and a running cost of 6. For machine A4 running batch 12 we estimate 28 hours of run time and a running cost of 8. For machine A4 running batch 13 we estimate 45 hours of run time and a running cost of 15. For machine A4 running batch 14 we estimate 46 hours of run time and a running cost of 5. For machine A4 running batch 15 we estimate 49 hours of run time and a running cost of 13. For machine A5 running batch 1 we estimate 18 hours of run time and a running cost of 14. For machine A5 running batch 2 we estimate 46 hours of run time and a running cost of 24. For machine A5 running batch 3 we estimate 21 hours of run time and a running cost of 12. For machine A5 running batch 4 we estimate 40 hours of run time and a running cost of 24. For machine A5 running batch 5 we estimate 26 hours of run time and a running cost of 11. For machine A5 running batch 6 we estimate 50 hours of run time and a running cost of 8. For machine A5 running batch 7 we estimate 36 hours of run time and a running cost of 21. For machine A5 running batch 8 we estimate 37 hours of run time and a running cost of 10. For machine A5 running batch 9 we estimate 28 hours of run time and a running cost of 9. For machine A5 running batch 10 we estimate 20 hours of run time and a running cost of 19. For machine A5 running batch 11 we estimate 10 hours of run time and a running cost of 21. For machine A5 running batch 12 we estimate 18 hours of run time and a running cost of 20. For machine A5 running batch 13 we estimate 16 hours of run time and a running cost of 9. For machine A5 running batch 14 we estimate 46 hours of run time and a running cost of 14. For machine A5 running batch 15 we estimate 15 hours of run time and a running cost of 15. We will use these entries to pick assignments that minimize total running cost while keeping each machine within its available hours. If you want the answer back in a neat, machine-friendly shape, just send it in this simple JSON layout — nothing fancy, just a single list that says which machine each batch goes to: { ""solution"": [ , , ..., ] } Pretty straightforward: ""solution"" is a list where each entry is the ID of the machine for that batch (first entry = first batch, second = second batch, and so on). Think of it like filling out a form: one line per batch, write the machine ID next to it. This JSON is just a sketch of the shape I expect, not the actual assignment. Please be sure to use the exact identifiers from the instance input — don’t rename or invent labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[29, 36, 15, 23, 43, 49, 32, 13, 19, 16, 38, 35, 20, 27, 19], [22, 32, 21, 12, 47, 46, 29, 29, 33, 34, 30, 41, 43, 39, 39], [44, 37, 40, 14, 28, 29, 44, 29, 26, 50, 16, 34, 18, 32, 44], [32, 23, 22, 35, 50, 44, 15, 40, 40, 49, 12, 28, 45, 46, 49], [18, 46, 21, 40, 26, 50, 36, 37, 28, 20, 10, 18, 16, 46, 15]], 'assignment_costs': [[10, 9, 17, 11, 10, 10, 5, 9, 13, 23, 8, 24, 12, 13, 15], [15, 9, 13, 9, 9, 10, 16, 20, 24, 16, 20, 22, 12, 5, 16], [15, 7, 10, 7, 16, 19, 11, 20, 6, 8, 11, 24, 21, 15, 9], [13, 5, 13, 22, 14, 6, 7, 14, 8, 5, 6, 8, 15, 5, 13], [14, 24, 12, 24, 11, 8, 21, 10, 9, 19, 21, 20, 9, 14, 15]], 'capacities': [120, 115, 119, 112, 119], 'objective': 113.0}","[0, 3, 2, 1, 1, 4, 0, 0, 2, 3, 3, 3, 4, 1, 2]",113.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 120}, {'agent_id': 'A2', 'capacity': 115}, {'agent_id': 'A3', 'capacity': 119}, {'agent_id': 'A4', 'capacity': 112}, {'agent_id': 'A5', 'capacity': 119}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 23}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 43}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 35}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 15, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 30}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 43}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 15, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 37}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 40}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 26}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 16}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 34}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 18}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 15, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 35}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 15, 'consumption': 49}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 18}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 21}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 40}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 26}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 20}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 10}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 18}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 16}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 15, 'consumption': 15}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 10}, {'agent_id': 'A1', 'task_id': 2, 'cost': 9}, {'agent_id': 'A1', 'task_id': 3, 'cost': 17}, {'agent_id': 'A1', 'task_id': 4, 'cost': 11}, {'agent_id': 'A1', 'task_id': 5, 'cost': 10}, {'agent_id': 'A1', 'task_id': 6, 'cost': 10}, {'agent_id': 'A1', 'task_id': 7, 'cost': 5}, {'agent_id': 'A1', 'task_id': 8, 'cost': 9}, {'agent_id': 'A1', 'task_id': 9, 'cost': 13}, {'agent_id': 'A1', 'task_id': 10, 'cost': 23}, {'agent_id': 'A1', 'task_id': 11, 'cost': 8}, {'agent_id': 'A1', 'task_id': 12, 'cost': 24}, {'agent_id': 'A1', 'task_id': 13, 'cost': 12}, {'agent_id': 'A1', 'task_id': 14, 'cost': 13}, {'agent_id': 'A1', 'task_id': 15, 'cost': 15}, {'agent_id': 'A2', 'task_id': 1, 'cost': 15}, {'agent_id': 'A2', 'task_id': 2, 'cost': 9}, {'agent_id': 'A2', 'task_id': 3, 'cost': 13}, {'agent_id': 'A2', 'task_id': 4, 'cost': 9}, {'agent_id': 'A2', 'task_id': 5, 'cost': 9}, {'agent_id': 'A2', 'task_id': 6, 'cost': 10}, {'agent_id': 'A2', 'task_id': 7, 'cost': 16}, {'agent_id': 'A2', 'task_id': 8, 'cost': 20}, {'agent_id': 'A2', 'task_id': 9, 'cost': 24}, {'agent_id': 'A2', 'task_id': 10, 'cost': 16}, {'agent_id': 'A2', 'task_id': 11, 'cost': 20}, {'agent_id': 'A2', 'task_id': 12, 'cost': 22}, {'agent_id': 'A2', 'task_id': 13, 'cost': 12}, {'agent_id': 'A2', 'task_id': 14, 'cost': 5}, {'agent_id': 'A2', 'task_id': 15, 'cost': 16}, {'agent_id': 'A3', 'task_id': 1, 'cost': 15}, {'agent_id': 'A3', 'task_id': 2, 'cost': 7}, {'agent_id': 'A3', 'task_id': 3, 'cost': 10}, {'agent_id': 'A3', 'task_id': 4, 'cost': 7}, {'agent_id': 'A3', 'task_id': 5, 'cost': 16}, {'agent_id': 'A3', 'task_id': 6, 'cost': 19}, {'agent_id': 'A3', 'task_id': 7, 'cost': 11}, {'agent_id': 'A3', 'task_id': 8, 'cost': 20}, {'agent_id': 'A3', 'task_id': 9, 'cost': 6}, {'agent_id': 'A3', 'task_id': 10, 'cost': 8}, {'agent_id': 'A3', 'task_id': 11, 'cost': 11}, {'agent_id': 'A3', 'task_id': 12, 'cost': 24}, {'agent_id': 'A3', 'task_id': 13, 'cost': 21}, {'agent_id': 'A3', 'task_id': 14, 'cost': 15}, {'agent_id': 'A3', 'task_id': 15, 'cost': 9}, {'agent_id': 'A4', 'task_id': 1, 'cost': 13}, {'agent_id': 'A4', 'task_id': 2, 'cost': 5}, {'agent_id': 'A4', 'task_id': 3, 'cost': 13}, {'agent_id': 'A4', 'task_id': 4, 'cost': 22}, {'agent_id': 'A4', 'task_id': 5, 'cost': 14}, {'agent_id': 'A4', 'task_id': 6, 'cost': 6}, {'agent_id': 'A4', 'task_id': 7, 'cost': 7}, {'agent_id': 'A4', 'task_id': 8, 'cost': 14}, {'agent_id': 'A4', 'task_id': 9, 'cost': 8}, {'agent_id': 'A4', 'task_id': 10, 'cost': 5}, {'agent_id': 'A4', 'task_id': 11, 'cost': 6}, {'agent_id': 'A4', 'task_id': 12, 'cost': 8}, {'agent_id': 'A4', 'task_id': 13, 'cost': 15}, {'agent_id': 'A4', 'task_id': 14, 'cost': 5}, {'agent_id': 'A4', 'task_id': 15, 'cost': 13}, {'agent_id': 'A5', 'task_id': 1, 'cost': 14}, {'agent_id': 'A5', 'task_id': 2, 'cost': 24}, {'agent_id': 'A5', 'task_id': 3, 'cost': 12}, {'agent_id': 'A5', 'task_id': 4, 'cost': 24}, {'agent_id': 'A5', 'task_id': 5, 'cost': 11}, {'agent_id': 'A5', 'task_id': 6, 'cost': 8}, {'agent_id': 'A5', 'task_id': 7, 'cost': 21}, {'agent_id': 'A5', 'task_id': 8, 'cost': 10}, {'agent_id': 'A5', 'task_id': 9, 'cost': 9}, {'agent_id': 'A5', 'task_id': 10, 'cost': 19}, {'agent_id': 'A5', 'task_id': 11, 'cost': 21}, {'agent_id': 'A5', 'task_id': 12, 'cost': 20}, {'agent_id': 'A5', 'task_id': 13, 'cost': 9}, {'agent_id': 'A5', 'task_id': 14, 'cost': 14}, {'agent_id': 'A5', 'task_id': 15, 'cost': 15}]}","['A1', 'A4', 'A3', 'A2', 'A2', 'A5', 'A1', 'A1', 'A3', 'A4', 'A4', 'A4', 'A5', 'A2', 'A3']",3,nl,1 GAP,GAP,"Recently the team realized that all sessions must be matched to tutors and, for each session-tutor match, there’s an estimate of required tutor hours and the fee that match would incur. Each tutor only has a certain number of hours to give, and each session must be assigned to one tutor only (no overlap or omissions). The task is to assign sessions so tutors aren’t overbooked and the total cost — add up the fee for every assigned session — ends up as low as possible. See the specific session durations and tutor rates below. There are 4 tutors available (A1, A2, A3, A4) and 12 sessions to assign (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12). Tutor A1 has 355 available hours. Tutor A2 has 359 available hours. Tutor A3 has 364 available hours. Tutor A4 has 365 available hours. For tutor A1, assigning session 1 would use 30 hours and incur a fee of 7. For tutor A1, assigning session 2 would use 37 hours and incur a fee of 5. For tutor A1, assigning session 3 would use 10 hours and incur a fee of 21. For tutor A1, assigning session 4 would use 27 hours and incur a fee of 6. For tutor A1, assigning session 5 would use 15 hours and incur a fee of 5. For tutor A1, assigning session 6 would use 35 hours and incur a fee of 21. For tutor A1, assigning session 7 would use 17 hours and incur a fee of 21. For tutor A1, assigning session 8 would use 16 hours and incur a fee of 22. For tutor A1, assigning session 9 would use 18 hours and incur a fee of 9. For tutor A1, assigning session 10 would use 33 hours and incur a fee of 16. For tutor A1, assigning session 11 would use 33 hours and incur a fee of 18. For tutor A1, assigning session 12 would use 16 hours and incur a fee of 12. For tutor A2, assigning session 1 would use 38 hours and incur a fee of 17. For tutor A2, assigning session 2 would use 34 hours and incur a fee of 24. For tutor A2, assigning session 3 would use 42 hours and incur a fee of 14. For tutor A2, assigning session 4 would use 23 hours and incur a fee of 24. For tutor A2, assigning session 5 would use 13 hours and incur a fee of 12. For tutor A2, assigning session 6 would use 32 hours and incur a fee of 23. For tutor A2, assigning session 7 would use 40 hours and incur a fee of 14. For tutor A2, assigning session 8 would use 33 hours and incur a fee of 22. For tutor A2, assigning session 9 would use 46 hours and incur a fee of 7. For tutor A2, assigning session 10 would use 23 hours and incur a fee of 18. For tutor A2, assigning session 11 would use 39 hours and incur a fee of 21. For tutor A2, assigning session 12 would use 36 hours and incur a fee of 11. For tutor A3, assigning session 1 would use 31 hours and incur a fee of 10. For tutor A3, assigning session 2 would use 18 hours and incur a fee of 10. For tutor A3, assigning session 3 would use 24 hours and incur a fee of 22. For tutor A3, assigning session 4 would use 46 hours and incur a fee of 20. For tutor A3, assigning session 5 would use 40 hours and incur a fee of 15. For tutor A3, assigning session 6 would use 48 hours and incur a fee of 19. For tutor A3, assigning session 7 would use 27 hours and incur a fee of 17. For tutor A3, assigning session 8 would use 30 hours and incur a fee of 6. For tutor A3, assigning session 9 would use 31 hours and incur a fee of 14. For tutor A3, assigning session 10 would use 10 hours and incur a fee of 5. For tutor A3, assigning session 11 would use 21 hours and incur a fee of 25. For tutor A3, assigning session 12 would use 46 hours and incur a fee of 21. For tutor A4, assigning session 1 would use 24 hours and incur a fee of 6. For tutor A4, assigning session 2 would use 14 hours and incur a fee of 9. For tutor A4, assigning session 3 would use 43 hours and incur a fee of 6. For tutor A4, assigning session 4 would use 33 hours and incur a fee of 11. For tutor A4, assigning session 5 would use 29 hours and incur a fee of 21. For tutor A4, assigning session 6 would use 31 hours and incur a fee of 5. For tutor A4, assigning session 7 would use 39 hours and incur a fee of 18. For tutor A4, assigning session 8 would use 25 hours and incur a fee of 25. For tutor A4, assigning session 9 would use 18 hours and incur a fee of 13. For tutor A4, assigning session 10 would use 20 hours and incur a fee of 13. For tutor A4, assigning session 11 would use 44 hours and incur a fee of 21. For tutor A4, assigning session 12 would use 10 hours and incur a fee of 15. The team must assign every session without exceeding any tutor's available hours and minimize the total fee. Also, when you hand the assignment back, a simple JSON layout like this makes it easy to parse — nothing fancy, just a list of who handles each session in order. { ""solution"": [ , , ..., ] } ""solution"" is a list where each entry is the tutor assigned to the corresponding session (first entry = first session, second = second session, etc.). Think of it like filling out a sign-up sheet: each slot gets one tutor ID. This JSON is just the shape I expect, not the actual filled-in answer. Please use the exact tutor identifiers from the instance input — do not rename or invent labels. - For example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[30, 37, 10, 27, 15, 35, 17, 16, 18, 33, 33, 16], [38, 34, 42, 23, 13, 32, 40, 33, 46, 23, 39, 36], [31, 18, 24, 46, 40, 48, 27, 30, 31, 10, 21, 46], [24, 14, 43, 33, 29, 31, 39, 25, 18, 20, 44, 10]], 'assignment_costs': [[7, 5, 21, 6, 5, 21, 21, 22, 9, 16, 18, 12], [17, 24, 14, 24, 12, 23, 14, 22, 7, 18, 21, 11], [10, 10, 22, 20, 15, 19, 17, 6, 14, 5, 25, 21], [6, 9, 6, 11, 21, 5, 18, 25, 13, 13, 21, 15]], 'capacities': [355, 359, 364, 365], 'objective': 94.0}","[3, 0, 3, 0, 0, 3, 1, 2, 1, 2, 0, 1]",94.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 12, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 355}, {'agent_id': 'A2', 'capacity': 359}, {'agent_id': 'A3', 'capacity': 364}, {'agent_id': 'A4', 'capacity': 365}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 30}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 35}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 18}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 38}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 40}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 18}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 40}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 10}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 14}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 29}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 10}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 7}, {'agent_id': 'A1', 'task_id': 2, 'cost': 5}, {'agent_id': 'A1', 'task_id': 3, 'cost': 21}, {'agent_id': 'A1', 'task_id': 4, 'cost': 6}, {'agent_id': 'A1', 'task_id': 5, 'cost': 5}, {'agent_id': 'A1', 'task_id': 6, 'cost': 21}, {'agent_id': 'A1', 'task_id': 7, 'cost': 21}, {'agent_id': 'A1', 'task_id': 8, 'cost': 22}, {'agent_id': 'A1', 'task_id': 9, 'cost': 9}, {'agent_id': 'A1', 'task_id': 10, 'cost': 16}, {'agent_id': 'A1', 'task_id': 11, 'cost': 18}, {'agent_id': 'A1', 'task_id': 12, 'cost': 12}, {'agent_id': 'A2', 'task_id': 1, 'cost': 17}, {'agent_id': 'A2', 'task_id': 2, 'cost': 24}, {'agent_id': 'A2', 'task_id': 3, 'cost': 14}, {'agent_id': 'A2', 'task_id': 4, 'cost': 24}, {'agent_id': 'A2', 'task_id': 5, 'cost': 12}, {'agent_id': 'A2', 'task_id': 6, 'cost': 23}, {'agent_id': 'A2', 'task_id': 7, 'cost': 14}, {'agent_id': 'A2', 'task_id': 8, 'cost': 22}, {'agent_id': 'A2', 'task_id': 9, 'cost': 7}, {'agent_id': 'A2', 'task_id': 10, 'cost': 18}, {'agent_id': 'A2', 'task_id': 11, 'cost': 21}, {'agent_id': 'A2', 'task_id': 12, 'cost': 11}, {'agent_id': 'A3', 'task_id': 1, 'cost': 10}, {'agent_id': 'A3', 'task_id': 2, 'cost': 10}, {'agent_id': 'A3', 'task_id': 3, 'cost': 22}, {'agent_id': 'A3', 'task_id': 4, 'cost': 20}, {'agent_id': 'A3', 'task_id': 5, 'cost': 15}, {'agent_id': 'A3', 'task_id': 6, 'cost': 19}, {'agent_id': 'A3', 'task_id': 7, 'cost': 17}, {'agent_id': 'A3', 'task_id': 8, 'cost': 6}, {'agent_id': 'A3', 'task_id': 9, 'cost': 14}, {'agent_id': 'A3', 'task_id': 10, 'cost': 5}, {'agent_id': 'A3', 'task_id': 11, 'cost': 25}, {'agent_id': 'A3', 'task_id': 12, 'cost': 21}, {'agent_id': 'A4', 'task_id': 1, 'cost': 6}, {'agent_id': 'A4', 'task_id': 2, 'cost': 9}, {'agent_id': 'A4', 'task_id': 3, 'cost': 6}, {'agent_id': 'A4', 'task_id': 4, 'cost': 11}, {'agent_id': 'A4', 'task_id': 5, 'cost': 21}, {'agent_id': 'A4', 'task_id': 6, 'cost': 5}, {'agent_id': 'A4', 'task_id': 7, 'cost': 18}, {'agent_id': 'A4', 'task_id': 8, 'cost': 25}, {'agent_id': 'A4', 'task_id': 9, 'cost': 13}, {'agent_id': 'A4', 'task_id': 10, 'cost': 13}, {'agent_id': 'A4', 'task_id': 11, 'cost': 21}, {'agent_id': 'A4', 'task_id': 12, 'cost': 15}]}","['A4', 'A1', 'A4', 'A1', 'A1', 'A4', 'A2', 'A3', 'A2', 'A3', 'A1', 'A2']",4,nl,1 GAP,GAP,"Someone at the agency lined up all the translators and listed, for every document, how long each translator would need and what they’d charge. Each translator only has a certain number of hours they can work, and every document must be handled exactly once. The job is to choose who does what so that no one is overbooked and the total payout — the sum of the charges for every document — is as small as possible. The exact figures are shown below. There are 6 translators and 15 documents; the translators and documents are listed as A1, A2, A3, A4, A5, A6 and A, B, C, D, E, F, G, H, I, J, K, L, M, N, O. They recorded that translator A1 is available for 68 hours. They recorded that translator A2 is available for 68 hours. They recorded that translator A3 is available for 68 hours. They recorded that translator A4 is available for 68 hours. They recorded that translator A5 is available for 68 hours. They recorded that translator A6 is available for 68 hours. They recorded that for document A, translator A1 would need 31 hours and charge 24. They recorded that for document B, translator A1 would need 11 hours and charge 10. They recorded that for document C, translator A1 would need 25 hours and charge 9. They recorded that for document D, translator A1 would need 14 hours and charge 24. They recorded that for document E, translator A1 would need 26 hours and charge 11. They recorded that for document F, translator A1 would need 11 hours and charge 15. They recorded that for document G, translator A1 would need 10 hours and charge 25. They recorded that for document H, translator A1 would need 46 hours and charge 12. They recorded that for document I, translator A1 would need 35 hours and charge 8. They recorded that for document J, translator A1 would need 40 hours and charge 5. They recorded that for document K, translator A1 would need 15 hours and charge 23. They recorded that for document L, translator A1 would need 46 hours and charge 16. They recorded that for document M, translator A1 would need 23 hours and charge 21. They recorded that for document N, translator A1 would need 23 hours and charge 21. They recorded that for document O, translator A1 would need 17 hours and charge 20. They recorded that for document A, translator A2 would need 50 hours and charge 22. They recorded that for document B, translator A2 would need 21 hours and charge 12. They recorded that for document C, translator A2 would need 49 hours and charge 12. They recorded that for document D, translator A2 would need 39 hours and charge 12. They recorded that for document E, translator A2 would need 21 hours and charge 24. They recorded that for document F, translator A2 would need 23 hours and charge 25. They recorded that for document G, translator A2 would need 14 hours and charge 9. They recorded that for document H, translator A2 would need 12 hours and charge 17. They recorded that for document I, translator A2 would need 42 hours and charge 22. They recorded that for document J, translator A2 would need 17 hours and charge 6. They recorded that for document K, translator A2 would need 10 hours and charge 17. They recorded that for document L, translator A2 would need 28 hours and charge 19. They recorded that for document M, translator A2 would need 18 hours and charge 15. They recorded that for document N, translator A2 would need 46 hours and charge 20. They recorded that for document O, translator A2 would need 48 hours and charge 13. They recorded that for document A, translator A3 would need 19 hours and charge 11. They recorded that for document B, translator A3 would need 42 hours and charge 5. They recorded that for document C, translator A3 would need 25 hours and charge 6. They recorded that for document D, translator A3 would need 43 hours and charge 22. They recorded that for document E, translator A3 would need 44 hours and charge 6. They recorded that for document F, translator A3 would need 16 hours and charge 6. They recorded that for document G, translator A3 would need 25 hours and charge 15. They recorded that for document H, translator A3 would need 35 hours and charge 13. They recorded that for document I, translator A3 would need 28 hours and charge 20. They recorded that for document J, translator A3 would need 12 hours and charge 6. They recorded that for document K, translator A3 would need 21 hours and charge 14. They recorded that for document L, translator A3 would need 29 hours and charge 23. They recorded that for document M, translator A3 would need 36 hours and charge 9. They recorded that for document N, translator A3 would need 38 hours and charge 22. They recorded that for document O, translator A3 would need 15 hours and charge 19. They recorded that for document A, translator A4 would need 23 hours and charge 19. They recorded that for document B, translator A4 would need 27 hours and charge 20. They recorded that for document C, translator A4 would need 27 hours and charge 23. They recorded that for document D, translator A4 would need 28 hours and charge 18. They recorded that for document E, translator A4 would need 37 hours and charge 14. They recorded that for document F, translator A4 would need 22 hours and charge 8. They recorded that for document G, translator A4 would need 10 hours and charge 11. They recorded that for document H, translator A4 would need 14 hours and charge 11. They recorded that for document I, translator A4 would need 29 hours and charge 8. They recorded that for document J, translator A4 would need 15 hours and charge 17. They recorded that for document K, translator A4 would need 25 hours and charge 19. They recorded that for document L, translator A4 would need 45 hours and charge 24. They recorded that for document M, translator A4 would need 11 hours and charge 11. They recorded that for document N, translator A4 would need 45 hours and charge 14. They recorded that for document O, translator A4 would need 35 hours and charge 11. They recorded that for document A, translator A5 would need 19 hours and charge 20. They recorded that for document B, translator A5 would need 15 hours and charge 21. They recorded that for document C, translator A5 would need 15 hours and charge 23. They recorded that for document D, translator A5 would need 20 hours and charge 18. They recorded that for document E, translator A5 would need 15 hours and charge 14. They recorded that for document F, translator A5 would need 44 hours and charge 15. They recorded that for document G, translator A5 would need 19 hours and charge 14. They recorded that for document H, translator A5 would need 26 hours and charge 16. They recorded that for document I, translator A5 would need 29 hours and charge 20. They recorded that for document J, translator A5 would need 26 hours and charge 5. They recorded that for document K, translator A5 would need 28 hours and charge 11. They recorded that for document L, translator A5 would need 32 hours and charge 17. They recorded that for document M, translator A5 would need 34 hours and charge 14. They recorded that for document N, translator A5 would need 50 hours and charge 9. They recorded that for document O, translator A5 would need 43 hours and charge 24. They recorded that for document A, translator A6 would need 31 hours and charge 12. They recorded that for document B, translator A6 would need 24 hours and charge 10. They recorded that for document C, translator A6 would need 43 hours and charge 16. They recorded that for document D, translator A6 would need 28 hours and charge 11. They recorded that for document E, translator A6 would need 15 hours and charge 15. They recorded that for document F, translator A6 would need 22 hours and charge 25. They recorded that for document G, translator A6 would need 38 hours and charge 24. They recorded that for document H, translator A6 would need 13 hours and charge 13. They recorded that for document I, translator A6 would need 32 hours and charge 7. They recorded that for document J, translator A6 would need 47 hours and charge 15. They recorded that for document K, translator A6 would need 11 hours and charge 18. They recorded that for document L, translator A6 would need 37 hours and charge 12. They recorded that for document M, translator A6 would need 46 hours and charge 9. They recorded that for document N, translator A6 would need 14 hours and charge 24. They recorded that for document O, translator A6 would need 42 hours and charge 5. These figures are provided so the assignment can be chosen to assign every document exactly once without exceeding any translator's availability and while minimizing the total payout. When you give the final assignment, just drop it in that simple JSON shape so it's easy to read and parse — nothing fancy needed. { ""solution"": [ , , ..., ] } Think of that ""solution"" array as a checklist that goes document-by-document in the same order the documents were listed above: each entry is the ID of the translator who will handle that document. It's just a sketch of the expected shape — not the actual answer. Please use the exact IDs from the instance input (do not rename them or invent new ones). Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.","{'resource_consumption': [[31, 11, 25, 14, 26, 11, 10, 46, 35, 40, 15, 46, 23, 23, 17], [50, 21, 49, 39, 21, 23, 14, 12, 42, 17, 10, 28, 18, 46, 48], [19, 42, 25, 43, 44, 16, 25, 35, 28, 12, 21, 29, 36, 38, 15], [23, 27, 27, 28, 37, 22, 10, 14, 29, 15, 25, 45, 11, 45, 35], [19, 15, 15, 20, 15, 44, 19, 26, 29, 26, 28, 32, 34, 50, 43], [31, 24, 43, 28, 15, 22, 38, 13, 32, 47, 11, 37, 46, 14, 42]], 'assignment_costs': [[24, 10, 9, 24, 11, 15, 25, 12, 8, 5, 23, 16, 21, 21, 20], [22, 12, 12, 12, 24, 25, 9, 17, 22, 6, 17, 19, 15, 20, 13], [11, 5, 6, 22, 6, 6, 15, 13, 20, 6, 14, 23, 9, 22, 19], [19, 20, 23, 18, 14, 8, 11, 11, 8, 17, 19, 24, 11, 14, 11], [20, 21, 23, 18, 14, 15, 14, 16, 20, 5, 11, 17, 14, 9, 24], [12, 10, 16, 11, 15, 25, 24, 13, 7, 15, 18, 12, 9, 24, 5]], 'capacities': [68, 68, 68, 68, 68, 68], 'objective': 151.0}","[2, 0, 0, 5, 0, 2, 1, 3, 3, 2, 2, 5, 3, 4, 1]",151.0,"{'problem_type': 'GAP', 'num_agents': 6, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5', 'A6'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 68}, {'agent_id': 'A2', 'capacity': 68}, {'agent_id': 'A3', 'capacity': 68}, {'agent_id': 'A4', 'capacity': 68}, {'agent_id': 'A5', 'capacity': 68}, {'agent_id': 'A6', 'capacity': 68}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 31}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 11}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 25}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 14}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 26}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 11}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 10}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 46}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 35}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 40}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 15}, {'agent_id': 'A1', 'task_id': 'L', 'consumption': 46}, {'agent_id': 'A1', 'task_id': 'M', 'consumption': 23}, {'agent_id': 'A1', 'task_id': 'N', 'consumption': 23}, {'agent_id': 'A1', 'task_id': 'O', 'consumption': 17}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 50}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 21}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 49}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 39}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 21}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 23}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 14}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 12}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 42}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 17}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 10}, {'agent_id': 'A2', 'task_id': 'L', 'consumption': 28}, {'agent_id': 'A2', 'task_id': 'M', 'consumption': 18}, {'agent_id': 'A2', 'task_id': 'N', 'consumption': 46}, {'agent_id': 'A2', 'task_id': 'O', 'consumption': 48}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 19}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 42}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 25}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 43}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 44}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 16}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 25}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 35}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 28}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 12}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 21}, {'agent_id': 'A3', 'task_id': 'L', 'consumption': 29}, {'agent_id': 'A3', 'task_id': 'M', 'consumption': 36}, {'agent_id': 'A3', 'task_id': 'N', 'consumption': 38}, {'agent_id': 'A3', 'task_id': 'O', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 23}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 27}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 27}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 28}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 37}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 22}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 10}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 14}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 29}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 25}, {'agent_id': 'A4', 'task_id': 'L', 'consumption': 45}, {'agent_id': 'A4', 'task_id': 'M', 'consumption': 11}, {'agent_id': 'A4', 'task_id': 'N', 'consumption': 45}, {'agent_id': 'A4', 'task_id': 'O', 'consumption': 35}, {'agent_id': 'A5', 'task_id': 'A', 'consumption': 19}, {'agent_id': 'A5', 'task_id': 'B', 'consumption': 15}, {'agent_id': 'A5', 'task_id': 'C', 'consumption': 15}, {'agent_id': 'A5', 'task_id': 'D', 'consumption': 20}, {'agent_id': 'A5', 'task_id': 'E', 'consumption': 15}, {'agent_id': 'A5', 'task_id': 'F', 'consumption': 44}, {'agent_id': 'A5', 'task_id': 'G', 'consumption': 19}, {'agent_id': 'A5', 'task_id': 'H', 'consumption': 26}, {'agent_id': 'A5', 'task_id': 'I', 'consumption': 29}, {'agent_id': 'A5', 'task_id': 'J', 'consumption': 26}, {'agent_id': 'A5', 'task_id': 'K', 'consumption': 28}, {'agent_id': 'A5', 'task_id': 'L', 'consumption': 32}, {'agent_id': 'A5', 'task_id': 'M', 'consumption': 34}, {'agent_id': 'A5', 'task_id': 'N', 'consumption': 50}, {'agent_id': 'A5', 'task_id': 'O', 'consumption': 43}, {'agent_id': 'A6', 'task_id': 'A', 'consumption': 31}, {'agent_id': 'A6', 'task_id': 'B', 'consumption': 24}, {'agent_id': 'A6', 'task_id': 'C', 'consumption': 43}, {'agent_id': 'A6', 'task_id': 'D', 'consumption': 28}, {'agent_id': 'A6', 'task_id': 'E', 'consumption': 15}, {'agent_id': 'A6', 'task_id': 'F', 'consumption': 22}, {'agent_id': 'A6', 'task_id': 'G', 'consumption': 38}, {'agent_id': 'A6', 'task_id': 'H', 'consumption': 13}, {'agent_id': 'A6', 'task_id': 'I', 'consumption': 32}, {'agent_id': 'A6', 'task_id': 'J', 'consumption': 47}, {'agent_id': 'A6', 'task_id': 'K', 'consumption': 11}, {'agent_id': 'A6', 'task_id': 'L', 'consumption': 37}, {'agent_id': 'A6', 'task_id': 'M', 'consumption': 46}, {'agent_id': 'A6', 'task_id': 'N', 'consumption': 14}, {'agent_id': 'A6', 'task_id': 'O', 'consumption': 42}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 24}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 10}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 9}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 24}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 11}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 25}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 12}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 8}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 5}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 23}, {'agent_id': 'A1', 'task_id': 'L', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'M', 'cost': 21}, {'agent_id': 'A1', 'task_id': 'N', 'cost': 21}, {'agent_id': 'A1', 'task_id': 'O', 'cost': 20}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 22}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 24}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 25}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 9}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 22}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 6}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'L', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'M', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'N', 'cost': 20}, {'agent_id': 'A2', 'task_id': 'O', 'cost': 13}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 5}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 6}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 6}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 6}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 13}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 6}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 14}, {'agent_id': 'A3', 'task_id': 'L', 'cost': 23}, {'agent_id': 'A3', 'task_id': 'M', 'cost': 9}, {'agent_id': 'A3', 'task_id': 'N', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'O', 'cost': 19}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 19}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 20}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 23}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 18}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 14}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 17}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 19}, {'agent_id': 'A4', 'task_id': 'L', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'M', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'N', 'cost': 14}, {'agent_id': 'A4', 'task_id': 'O', 'cost': 11}, {'agent_id': 'A5', 'task_id': 'A', 'cost': 20}, {'agent_id': 'A5', 'task_id': 'B', 'cost': 21}, {'agent_id': 'A5', 'task_id': 'C', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'D', 'cost': 18}, {'agent_id': 'A5', 'task_id': 'E', 'cost': 14}, {'agent_id': 'A5', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A5', 'task_id': 'G', 'cost': 14}, {'agent_id': 'A5', 'task_id': 'H', 'cost': 16}, {'agent_id': 'A5', 'task_id': 'I', 'cost': 20}, {'agent_id': 'A5', 'task_id': 'J', 'cost': 5}, {'agent_id': 'A5', 'task_id': 'K', 'cost': 11}, {'agent_id': 'A5', 'task_id': 'L', 'cost': 17}, {'agent_id': 'A5', 'task_id': 'M', 'cost': 14}, {'agent_id': 'A5', 'task_id': 'N', 'cost': 9}, {'agent_id': 'A5', 'task_id': 'O', 'cost': 24}, {'agent_id': 'A6', 'task_id': 'A', 'cost': 12}, {'agent_id': 'A6', 'task_id': 'B', 'cost': 10}, {'agent_id': 'A6', 'task_id': 'C', 'cost': 16}, {'agent_id': 'A6', 'task_id': 'D', 'cost': 11}, {'agent_id': 'A6', 'task_id': 'E', 'cost': 15}, {'agent_id': 'A6', 'task_id': 'F', 'cost': 25}, {'agent_id': 'A6', 'task_id': 'G', 'cost': 24}, {'agent_id': 'A6', 'task_id': 'H', 'cost': 13}, {'agent_id': 'A6', 'task_id': 'I', 'cost': 7}, {'agent_id': 'A6', 'task_id': 'J', 'cost': 15}, {'agent_id': 'A6', 'task_id': 'K', 'cost': 18}, {'agent_id': 'A6', 'task_id': 'L', 'cost': 12}, {'agent_id': 'A6', 'task_id': 'M', 'cost': 9}, {'agent_id': 'A6', 'task_id': 'N', 'cost': 24}, {'agent_id': 'A6', 'task_id': 'O', 'cost': 5}]}","['A3', 'A1', 'A1', 'A6', 'A1', 'A3', 'A2', 'A4', 'A4', 'A3', 'A3', 'A6', 'A4', 'A5', 'A2']",5,nl,names GAP,GAP,"Many people think scheduling is simple until there are more jobs than hours. Here, each repair has to be given to one technician—no splitting jobs, no leaving jobs undone. For every tech-job pair there’s a time requirement and a billing amount, and each tech only has so many hours to work. The winning plan is the one with the lowest total bill (just add up each assigned job’s charge) that also keeps every technician’s total assigned hours at or under their limit. The detailed numbers are provided below. { ""num_technicians"": 5, ""num_requests"": 15, ""technicians"": [ ""A1"", ""A2"", ""A3"", ""A4"", ""A5"" ], ""requests"": [ ""A"", ""B"", ""C"", ""D"", ""E"", ""F"", ""G"", ""H"", ""I"", ""J"", ""K"", ""L"", ""M"", ""N"", ""O"" ], ""capacities"": [ { ""technician_id"": ""A1"", ""available_hours"": 476 }, { ""technician_id"": ""A2"", ""available_hours"": 479 }, { ""technician_id"": ""A3"", ""available_hours"": 485 }, { ""technician_id"": ""A4"", ""available_hours"": 483 }, { ""technician_id"": ""A5"", ""available_hours"": 490 } ], ""resource"": [ { ""technician_id"": ""A1"", ""request_id"": ""A"", ""time_hours"": 15 }, { ""technician_id"": ""A1"", ""request_id"": ""B"", ""time_hours"": 50 }, { ""technician_id"": ""A1"", ""request_id"": ""C"", ""time_hours"": 34 }, { ""technician_id"": ""A1"", ""request_id"": ""D"", ""time_hours"": 13 }, { ""technician_id"": ""A1"", ""request_id"": ""E"", ""time_hours"": 43 }, { ""technician_id"": ""A1"", ""request_id"": ""F"", ""time_hours"": 12 }, { ""technician_id"": ""A1"", ""request_id"": ""G"", ""time_hours"": 24 }, { ""technician_id"": ""A1"", ""request_id"": ""H"", ""time_hours"": 49 }, { ""technician_id"": ""A1"", ""request_id"": ""I"", ""time_hours"": 23 }, { ""technician_id"": ""A1"", ""request_id"": ""J"", ""time_hours"": 21 }, { ""technician_id"": ""A1"", ""request_id"": ""K"", ""time_hours"": 45 }, { ""technician_id"": ""A1"", ""request_id"": ""L"", ""time_hours"": 35 }, { ""technician_id"": ""A1"", ""request_id"": ""M"", ""time_hours"": 24 }, { ""technician_id"": ""A1"", ""request_id"": ""N"", ""time_hours"": 31 }, { ""technician_id"": ""A1"", ""request_id"": ""O"", ""time_hours"": 13 }, { ""technician_id"": ""A2"", ""request_id"": ""A"", ""time_hours"": 46 }, { ""technician_id"": ""A2"", ""request_id"": ""B"", ""time_hours"": 43 }, { ""technician_id"": ""A2"", ""request_id"": ""C"", ""time_hours"": 30 }, { ""technician_id"": ""A2"", ""request_id"": ""D"", ""time_hours"": 27 }, { ""technician_id"": ""A2"", ""request_id"": ""E"", ""time_hours"": 24 }, { ""technician_id"": ""A2"", ""request_id"": ""F"", ""time_hours"": 42 }, { ""technician_id"": ""A2"", ""request_id"": ""G"", ""time_hours"": 37 }, { ""technician_id"": ""A2"", ""request_id"": ""H"", ""time_hours"": 26 }, { ""technician_id"": ""A2"", ""request_id"": ""I"", ""time_hours"": 24 }, { ""technician_id"": ""A2"", ""request_id"": ""J"", ""time_hours"": 29 }, { ""technician_id"": ""A2"", ""request_id"": ""K"", ""time_hours"": 13 }, { ""technician_id"": ""A2"", ""request_id"": ""L"", ""time_hours"": 24 }, { ""technician_id"": ""A2"", ""request_id"": ""M"", ""time_hours"": 14 }, { ""technician_id"": ""A2"", ""request_id"": ""N"", ""time_hours"": 21 }, { ""technician_id"": ""A2"", ""request_id"": ""O"", ""time_hours"": 48 }, { ""technician_id"": ""A3"", ""request_id"": ""A"", ""time_hours"": 31 }, { ""technician_id"": ""A3"", ""request_id"": ""B"", ""time_hours"": 29 }, { ""technician_id"": ""A3"", ""request_id"": ""C"", ""time_hours"": 30 }, { ""technician_id"": ""A3"", ""request_id"": ""D"", ""time_hours"": 50 }, { ""technician_id"": ""A3"", ""request_id"": ""E"", ""time_hours"": 24 }, { ""technician_id"": ""A3"", ""request_id"": ""F"", ""time_hours"": 41 }, { ""technician_id"": ""A3"", ""request_id"": ""G"", ""time_hours"": 33 }, { ""technician_id"": ""A3"", ""request_id"": ""H"", ""time_hours"": 21 }, { ""technician_id"": ""A3"", ""request_id"": ""I"", ""time_hours"": 11 }, { ""technician_id"": ""A3"", ""request_id"": ""J"", ""time_hours"": 25 }, { ""technician_id"": ""A3"", ""request_id"": ""K"", ""time_hours"": 33 }, { ""technician_id"": ""A3"", ""request_id"": ""L"", ""time_hours"": 35 }, { ""technician_id"": ""A3"", ""request_id"": ""M"", ""time_hours"": 30 }, { ""technician_id"": ""A3"", ""request_id"": ""N"", ""time_hours"": 30 }, { ""technician_id"": ""A3"", ""request_id"": ""O"", ""time_hours"": 46 }, { ""technician_id"": ""A4"", ""request_id"": ""A"", ""time_hours"": 42 }, { ""technician_id"": ""A4"", ""request_id"": ""B"", ""time_hours"": 16 }, { ""technician_id"": ""A4"", ""request_id"": ""C"", ""time_hours"": 49 }, { ""technician_id"": ""A4"", ""request_id"": ""D"", ""time_hours"": 43 }, { ""technician_id"": ""A4"", ""request_id"": ""E"", ""time_hours"": 50 }, { ""technician_id"": ""A4"", ""request_id"": ""F"", ""time_hours"": 31 }, { ""technician_id"": ""A4"", ""request_id"": ""G"", ""time_hours"": 26 }, { ""technician_id"": ""A4"", ""request_id"": ""H"", ""time_hours"": 25 }, { ""technician_id"": ""A4"", ""request_id"": ""I"", ""time_hours"": 22 }, { ""technician_id"": ""A4"", ""request_id"": ""J"", ""time_hours"": 36 }, { ""technician_id"": ""A4"", ""request_id"": ""K"", ""time_hours"": 23 }, { ""technician_id"": ""A4"", ""request_id"": ""L"", ""time_hours"": 38 }, { ""technician_id"": ""A4"", ""request_id"": ""M"", ""time_hours"": 49 }, { ""technician_id"": ""A4"", ""request_id"": ""N"", ""time_hours"": 12 }, { ""technician_id"": ""A4"", ""request_id"": ""O"", ""time_hours"": 50 }, { ""technician_id"": ""A5"", ""request_id"": ""A"", ""time_hours"": 11 }, { ""technician_id"": ""A5"", ""request_id"": ""B"", ""time_hours"": 47 }, { ""technician_id"": ""A5"", ""request_id"": ""C"", ""time_hours"": 50 }, { ""technician_id"": ""A5"", ""request_id"": ""D"", ""time_hours"": 40 }, { ""technician_id"": ""A5"", ""request_id"": ""E"", ""time_hours"": 35 }, { ""technician_id"": ""A5"", ""request_id"": ""F"", ""time_hours"": 41 }, { ""technician_id"": ""A5"", ""request_id"": ""G"", ""time_hours"": 47 }, { ""technician_id"": ""A5"", ""request_id"": ""H"", ""time_hours"": 12 }, { ""technician_id"": ""A5"", ""request_id"": ""I"", ""time_hours"": 34 }, { ""technician_id"": ""A5"", ""request_id"": ""J"", ""time_hours"": 36 }, { ""technician_id"": ""A5"", ""request_id"": ""K"", ""time_hours"": 16 }, { ""technician_id"": ""A5"", ""request_id"": ""L"", ""time_hours"": 40 }, { ""technician_id"": ""A5"", ""request_id"": ""M"", ""time_hours"": 49 }, { ""technician_id"": ""A5"", ""request_id"": ""N"", ""time_hours"": 33 }, { ""technician_id"": ""A5"", ""request_id"": ""O"", ""time_hours"": 46 } ], ""cost"": [ { ""technician_id"": ""A1"", ""request_id"": ""A"", ""bill_amount"": 18 }, { ""technician_id"": ""A1"", ""request_id"": ""B"", ""bill_amount"": 5 }, { ""technician_id"": ""A1"", ""request_id"": ""C"", ""bill_amount"": 16 }, { ""technician_id"": ""A1"", ""request_id"": ""D"", ""bill_amount"": 10 }, { ""technician_id"": ""A1"", ""request_id"": ""E"", ""bill_amount"": 22 }, { ""technician_id"": ""A1"", ""request_id"": ""F"", ""bill_amount"": 11 }, { ""technician_id"": ""A1"", ""request_id"": ""G"", ""bill_amount"": 7 }, { ""technician_id"": ""A1"", ""request_id"": ""H"", ""bill_amount"": 15 }, { ""technician_id"": ""A1"", ""request_id"": ""I"", ""bill_amount"": 24 }, { ""technician_id"": ""A1"", ""request_id"": ""J"", ""bill_amount"": 14 }, { ""technician_id"": ""A1"", ""request_id"": ""K"", ""bill_amount"": 12 }, { ""technician_id"": ""A1"", ""request_id"": ""L"", ""bill_amount"": 24 }, { ""technician_id"": ""A1"", ""request_id"": ""M"", ""bill_amount"": 22 }, { ""technician_id"": ""A1"", ""request_id"": ""N"", ""bill_amount"": 7 }, { ""technician_id"": ""A1"", ""request_id"": ""O"", ""bill_amount"": 14 }, { ""technician_id"": ""A2"", ""request_id"": ""A"", ""bill_amount"": 15 }, { ""technician_id"": ""A2"", ""request_id"": ""B"", ""bill_amount"": 14 }, { ""technician_id"": ""A2"", ""request_id"": ""C"", ""bill_amount"": 6 }, { ""technician_id"": ""A2"", ""request_id"": ""D"", ""bill_amount"": 18 }, { ""technician_id"": ""A2"", ""request_id"": ""E"", ""bill_amount"": 12 }, { ""technician_id"": ""A2"", ""request_id"": ""F"", ""bill_amount"": 23 }, { ""technician_id"": ""A2"", ""request_id"": ""G"", ""bill_amount"": 23 }, { ""technician_id"": ""A2"", ""request_id"": ""H"", ""bill_amount"": 15 }, { ""technician_id"": ""A2"", ""request_id"": ""I"", ""bill_amount"": 19 }, { ""technician_id"": ""A2"", ""request_id"": ""J"", ""bill_amount"": 10 }, { ""technician_id"": ""A2"", ""request_id"": ""K"", ""bill_amount"": 17 }, { ""technician_id"": ""A2"", ""request_id"": ""L"", ""bill_amount"": 14 }, { ""technician_id"": ""A2"", ""request_id"": ""M"", ""bill_amount"": 14 }, { ""technician_id"": ""A2"", ""request_id"": ""N"", ""bill_amount"": 15 }, { ""technician_id"": ""A2"", ""request_id"": ""O"", ""bill_amount"": 22 }, { ""technician_id"": ""A3"", ""request_id"": ""A"", ""bill_amount"": 17 }, { ""technician_id"": ""A3"", ""request_id"": ""B"", ""bill_amount"": 15 }, { ""technician_id"": ""A3"", ""request_id"": ""C"", ""bill_amount"": 23 }, { ""technician_id"": ""A3"", ""request_id"": ""D"", ""bill_amount"": 16 }, { ""technician_id"": ""A3"", ""request_id"": ""E"", ""bill_amount"": 13 }, { ""technician_id"": ""A3"", ""request_id"": ""F"", ""bill_amount"": 25 }, { ""technician_id"": ""A3"", ""request_id"": ""G"", ""bill_amount"": 5 }, { ""technician_id"": ""A3"", ""request_id"": ""H"", ""bill_amount"": 7 }, { ""technician_id"": ""A3"", ""request_id"": ""I"", ""bill_amount"": 6 }, { ""technician_id"": ""A3"", ""request_id"": ""J"", ""bill_amount"": 13 }, { ""technician_id"": ""A3"", ""request_id"": ""K"", ""bill_amount"": 12 }, { ""technician_id"": ""A3"", ""request_id"": ""L"", ""bill_amount"": 25 }, { ""technician_id"": ""A3"", ""request_id"": ""M"", ""bill_amount"": 22 }, { ""technician_id"": ""A3"", ""request_id"": ""N"", ""bill_amount"": 19 }, { ""technician_id"": ""A3"", ""request_id"": ""O"", ""bill_amount"": 11 }, { ""technician_id"": ""A4"", ""request_id"": ""A"", ""bill_amount"": 9 }, { ""technician_id"": ""A4"", ""request_id"": ""B"", ""bill_amount"": 13 }, { ""technician_id"": ""A4"", ""request_id"": ""C"", ""bill_amount"": 6 }, { ""technician_id"": ""A4"", ""request_id"": ""D"", ""bill_amount"": 17 }, { ""technician_id"": ""A4"", ""request_id"": ""E"", ""bill_amount"": 14 }, { ""technician_id"": ""A4"", ""request_id"": ""F"", ""bill_amount"": 9 }, { ""technician_id"": ""A4"", ""request_id"": ""G"", ""bill_amount"": 14 }, { ""technician_id"": ""A4"", ""request_id"": ""H"", ""bill_amount"": 21 }, { ""technician_id"": ""A4"", ""request_id"": ""I"", ""bill_amount"": 24 }, { ""technician_id"": ""A4"", ""request_id"": ""J"", ""bill_amount"": 22 }, { ""technician_id"": ""A4"", ""request_id"": ""K"", ""bill_amount"": 21 }, { ""technician_id"": ""A4"", ""request_id"": ""L"", ""bill_amount"": 19 }, { ""technician_id"": ""A4"", ""request_id"": ""M"", ""bill_amount"": 17 }, { ""technician_id"": ""A4"", ""request_id"": ""N"", ""bill_amount"": 17 }, { ""technician_id"": ""A4"", ""request_id"": ""O"", ""bill_amount"": 11 }, { ""technician_id"": ""A5"", ""request_id"": ""A"", ""bill_amount"": 10 }, { ""technician_id"": ""A5"", ""request_id"": ""B"", ""bill_amount"": 16 }, { ""technician_id"": ""A5"", ""request_id"": ""C"", ""bill_amount"": 18 }, { ""technician_id"": ""A5"", ""request_id"": ""D"", ""bill_amount"": 19 }, { ""technician_id"": ""A5"", ""request_id"": ""E"", ""bill_amount"": 23 }, { ""technician_id"": ""A5"", ""request_id"": ""F"", ""bill_amount"": 15 }, { ""technician_id"": ""A5"", ""request_id"": ""G"", ""bill_amount"": 16 }, { ""technician_id"": ""A5"", ""request_id"": ""H"", ""bill_amount"": 17 }, { ""technician_id"": ""A5"", ""request_id"": ""I"", ""bill_amount"": 10 }, { ""technician_id"": ""A5"", ""request_id"": ""J"", ""bill_amount"": 18 }, { ""technician_id"": ""A5"", ""request_id"": ""K"", ""bill_amount"": 15 }, { ""technician_id"": ""A5"", ""request_id"": ""L"", ""bill_amount"": 17 }, { ""technician_id"": ""A5"", ""request_id"": ""M"", ""bill_amount"": 23 }, { ""technician_id"": ""A5"", ""request_id"": ""N"", ""bill_amount"": 13 }, { ""technician_id"": ""A5"", ""request_id"": ""O"", ""bill_amount"": 10 } ] } You can just give the final assignment as a little JSON snippet so it's easy to read and machine-friendly. Something simple like this works well: { ""solution"": [ , , ..., ] } Here ""solution"" is an ordered list that says which technician handles each repair in the same order the repairs were listed. Each placeholder like stands in for the actual technician identifier for that repair (first, second, and so on). This is just a sketch of the shape I need — not the real answer. Please use the exact identifiers from the instance input — do not rename them or invent new labels. - For example: ""1"", ""23"", ""A"", ""B"", ""A1"", ""X7"" are valid identifier formats you might see and should be used exactly as given.","{'resource_consumption': [[15, 50, 34, 13, 43, 12, 24, 49, 23, 21, 45, 35, 24, 31, 13], [46, 43, 30, 27, 24, 42, 37, 26, 24, 29, 13, 24, 14, 21, 48], [31, 29, 30, 50, 24, 41, 33, 21, 11, 25, 33, 35, 30, 30, 46], [42, 16, 49, 43, 50, 31, 26, 25, 22, 36, 23, 38, 49, 12, 50], [11, 47, 50, 40, 35, 41, 47, 12, 34, 36, 16, 40, 49, 33, 46]], 'assignment_costs': [[18, 5, 16, 10, 22, 11, 7, 15, 24, 14, 12, 24, 22, 7, 14], [15, 14, 6, 18, 12, 23, 23, 15, 19, 10, 17, 14, 14, 15, 22], [17, 15, 23, 16, 13, 25, 5, 7, 6, 13, 12, 25, 22, 19, 11], [9, 13, 6, 17, 14, 9, 14, 21, 24, 22, 21, 19, 17, 17, 11], [10, 16, 18, 19, 23, 15, 16, 17, 10, 18, 15, 17, 23, 13, 10]], 'capacities': [476, 479, 485, 483, 490], 'objective': 136.0}","[3, 0, 1, 0, 1, 3, 2, 2, 2, 1, 0, 1, 1, 0, 4]",136.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 476}, {'agent_id': 'A2', 'capacity': 479}, {'agent_id': 'A3', 'capacity': 485}, {'agent_id': 'A4', 'capacity': 483}, {'agent_id': 'A5', 'capacity': 490}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 15}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 50}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 34}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 13}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 43}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 12}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 24}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 49}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 23}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 21}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 45}, {'agent_id': 'A1', 'task_id': 'L', 'consumption': 35}, {'agent_id': 'A1', 'task_id': 'M', 'consumption': 24}, {'agent_id': 'A1', 'task_id': 'N', 'consumption': 31}, {'agent_id': 'A1', 'task_id': 'O', 'consumption': 13}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 46}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 43}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 30}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 27}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 42}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 37}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 26}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 29}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 13}, {'agent_id': 'A2', 'task_id': 'L', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'M', 'consumption': 14}, {'agent_id': 'A2', 'task_id': 'N', 'consumption': 21}, {'agent_id': 'A2', 'task_id': 'O', 'consumption': 48}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 31}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 29}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 30}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 50}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 24}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 41}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 21}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 11}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 25}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'L', 'consumption': 35}, {'agent_id': 'A3', 'task_id': 'M', 'consumption': 30}, {'agent_id': 'A3', 'task_id': 'N', 'consumption': 30}, {'agent_id': 'A3', 'task_id': 'O', 'consumption': 46}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 42}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 16}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 49}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 43}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 50}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 31}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 26}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 25}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 22}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 36}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 23}, {'agent_id': 'A4', 'task_id': 'L', 'consumption': 38}, {'agent_id': 'A4', 'task_id': 'M', 'consumption': 49}, {'agent_id': 'A4', 'task_id': 'N', 'consumption': 12}, {'agent_id': 'A4', 'task_id': 'O', 'consumption': 50}, {'agent_id': 'A5', 'task_id': 'A', 'consumption': 11}, {'agent_id': 'A5', 'task_id': 'B', 'consumption': 47}, {'agent_id': 'A5', 'task_id': 'C', 'consumption': 50}, {'agent_id': 'A5', 'task_id': 'D', 'consumption': 40}, {'agent_id': 'A5', 'task_id': 'E', 'consumption': 35}, {'agent_id': 'A5', 'task_id': 'F', 'consumption': 41}, {'agent_id': 'A5', 'task_id': 'G', 'consumption': 47}, {'agent_id': 'A5', 'task_id': 'H', 'consumption': 12}, {'agent_id': 'A5', 'task_id': 'I', 'consumption': 34}, {'agent_id': 'A5', 'task_id': 'J', 'consumption': 36}, {'agent_id': 'A5', 'task_id': 'K', 'consumption': 16}, {'agent_id': 'A5', 'task_id': 'L', 'consumption': 40}, {'agent_id': 'A5', 'task_id': 'M', 'consumption': 49}, {'agent_id': 'A5', 'task_id': 'N', 'consumption': 33}, {'agent_id': 'A5', 'task_id': 'O', 'consumption': 46}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 5}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 10}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 22}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 11}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 7}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 15}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 24}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 12}, {'agent_id': 'A1', 'task_id': 'L', 'cost': 24}, {'agent_id': 'A1', 'task_id': 'M', 'cost': 22}, {'agent_id': 'A1', 'task_id': 'N', 'cost': 7}, {'agent_id': 'A1', 'task_id': 'O', 'cost': 14}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 14}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 6}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 18}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 10}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'L', 'cost': 14}, {'agent_id': 'A2', 'task_id': 'M', 'cost': 14}, {'agent_id': 'A2', 'task_id': 'N', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'O', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 23}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 16}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 13}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 25}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 5}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 7}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 6}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 13}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 12}, {'agent_id': 'A3', 'task_id': 'L', 'cost': 25}, {'agent_id': 'A3', 'task_id': 'M', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'N', 'cost': 19}, {'agent_id': 'A3', 'task_id': 'O', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 13}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 6}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 17}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 14}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 14}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 21}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 22}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 21}, {'agent_id': 'A4', 'task_id': 'L', 'cost': 19}, {'agent_id': 'A4', 'task_id': 'M', 'cost': 17}, {'agent_id': 'A4', 'task_id': 'N', 'cost': 17}, {'agent_id': 'A4', 'task_id': 'O', 'cost': 11}, {'agent_id': 'A5', 'task_id': 'A', 'cost': 10}, {'agent_id': 'A5', 'task_id': 'B', 'cost': 16}, {'agent_id': 'A5', 'task_id': 'C', 'cost': 18}, {'agent_id': 'A5', 'task_id': 'D', 'cost': 19}, {'agent_id': 'A5', 'task_id': 'E', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A5', 'task_id': 'G', 'cost': 16}, {'agent_id': 'A5', 'task_id': 'H', 'cost': 17}, {'agent_id': 'A5', 'task_id': 'I', 'cost': 10}, {'agent_id': 'A5', 'task_id': 'J', 'cost': 18}, {'agent_id': 'A5', 'task_id': 'K', 'cost': 15}, {'agent_id': 'A5', 'task_id': 'L', 'cost': 17}, {'agent_id': 'A5', 'task_id': 'M', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'N', 'cost': 13}, {'agent_id': 'A5', 'task_id': 'O', 'cost': 10}]}","['A4', 'A1', 'A2', 'A1', 'A2', 'A4', 'A3', 'A3', 'A3', 'A2', 'A1', 'A2', 'A2', 'A1', 'A5']",6,json,names GAP,GAP,"Recently the kitchen had to be scheduled down to the minute: every dish must be given to one chef and only one. For every chef-dish option there’s a known cooking time and a price, so the total expense is computed by summing the prices for whichever chef prepares each dish. The job is to hand out the dishes so each is covered once, no chef’s sum of cooking times exceeds their available slot, and the overall summed cost ends up as low as possible. The exact items, times and costs follow below. There are 5 chefs and 14 dishes, with chef identifiers A1, A2, A3, A4, A5 and dish identifiers A, B, C, D, E, F, G, H, I, J, K, L, M, N. | chef_id | available_kitchen_time | |---|---| | A1 | 115 | | A2 | 120 | | A3 | 114 | | A4 | 112 | | A5 | 126 | | chef_id | dish_id | cooking_time | |---|---|---| | A1 | A | 19 | | A1 | B | 36 | | A1 | C | 21 | | A1 | D | 17 | | A1 | E | 23 | | A1 | F | 24 | | A1 | G | 40 | | A1 | H | 33 | | A1 | I | 12 | | A1 | J | 38 | | A1 | K | 23 | | A1 | L | 13 | | A1 | M | 34 | | A1 | N | 37 | | A2 | A | 49 | | A2 | B | 37 | | A2 | C | 41 | | A2 | D | 11 | | A2 | E | 40 | | A2 | F | 39 | | A2 | G | 45 | | A2 | H | 35 | | A2 | I | 18 | | A2 | J | 11 | | A2 | K | 31 | | A2 | L | 20 | | A2 | M | 32 | | A2 | N | 43 | | A3 | A | 22 | | A3 | B | 14 | | A3 | C | 40 | | A3 | D | 49 | | A3 | E | 45 | | A3 | F | 18 | | A3 | G | 32 | | A3 | H | 14 | | A3 | I | 27 | | A3 | J | 44 | | A3 | K | 16 | | A3 | L | 46 | | A3 | M | 19 | | A3 | N | 24 | | A4 | A | 21 | | A4 | B | 15 | | A4 | C | 24 | | A4 | D | 18 | | A4 | E | 14 | | A4 | F | 10 | | A4 | G | 37 | | A4 | H | 38 | | A4 | I | 22 | | A4 | J | 16 | | A4 | K | 48 | | A4 | L | 39 | | A4 | M | 38 | | A4 | N | 21 | | A5 | A | 15 | | A5 | B | 38 | | A5 | C | 14 | | A5 | D | 41 | | A5 | E | 15 | | A5 | F | 30 | | A5 | G | 44 | | A5 | H | 17 | | A5 | I | 42 | | A5 | J | 24 | | A5 | K | 14 | | A5 | L | 38 | | A5 | M | 34 | | A5 | N | 12 | | chef_id | dish_id | chef_cost | |---|---|---| | A1 | A | 12 | | A1 | B | 9 | | A1 | C | 23 | | A1 | D | 14 | | A1 | E | 18 | | A1 | F | 14 | | A1 | G | 20 | | A1 | H | 12 | | A1 | I | 20 | | A1 | J | 21 | | A1 | K | 13 | | A1 | L | 20 | | A1 | M | 17 | | A1 | N | 22 | | A2 | A | 23 | | A2 | B | 24 | | A2 | C | 7 | | A2 | D | 13 | | A2 | E | 17 | | A2 | F | 22 | | A2 | G | 16 | | A2 | H | 14 | | A2 | I | 22 | | A2 | J | 12 | | A2 | K | 17 | | A2 | L | 5 | | A2 | M | 6 | | A2 | N | 23 | | A3 | A | 12 | | A3 | B | 9 | | A3 | C | 24 | | A3 | D | 9 | | A3 | E | 5 | | A3 | F | 16 | | A3 | G | 25 | | A3 | H | 15 | | A3 | I | 12 | | A3 | J | 14 | | A3 | K | 22 | | A3 | L | 19 | | A3 | M | 23 | | A3 | N | 6 | | A4 | A | 8 | | A4 | B | 7 | | A4 | C | 7 | | A4 | D | 19 | | A4 | E | 23 | | A4 | F | 5 | | A4 | G | 8 | | A4 | H | 10 | | A4 | I | 19 | | A4 | J | 5 | | A4 | K | 8 | | A4 | L | 21 | | A4 | M | 9 | | A4 | N | 17 | | A5 | A | 12 | | A5 | B | 15 | | A5 | C | 10 | | A5 | D | 23 | | A5 | E | 22 | | A5 | F | 25 | | A5 | G | 12 | | A5 | H | 25 | | A5 | I | 14 | | A5 | J | 6 | | A5 | K | 8 | | A5 | L | 13 | | A5 | M | 14 | | A5 | N | 20 | Assign every one of the A, B, C, D, E, F, G, H, I, J, K, L, M, N to the A1, A2, A3, A4, A5 so no chef exceeds their available time and the total cost is minimized. Also, when you deliver the assignment, a neat little JSON snippet like the one below is what I expect — just to keep things tidy. It maps each dish (in the order given in the instance) to the chef who will cook it. { ""solution"": [ , , ..., ] } This JSON is just a simple sketch of the shape I need: ""solution"" holds a list, where each entry is the identifier of the chef assigned to that dish (first list entry → first dish, second → second dish, and so on). Think of it like filling out a form: one chef name per dish, in order. A quick note — this is only the expected format, not the actual assignment. Please make sure to use the exact identifiers from the instance input, with no renaming and no invented labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[19, 36, 21, 17, 23, 24, 40, 33, 12, 38, 23, 13, 34, 37], [49, 37, 41, 11, 40, 39, 45, 35, 18, 11, 31, 20, 32, 43], [22, 14, 40, 49, 45, 18, 32, 14, 27, 44, 16, 46, 19, 24], [21, 15, 24, 18, 14, 10, 37, 38, 22, 16, 48, 39, 38, 21], [15, 38, 14, 41, 15, 30, 44, 17, 42, 24, 14, 38, 34, 12]], 'assignment_costs': [[12, 9, 23, 14, 18, 14, 20, 12, 20, 21, 13, 20, 17, 22], [23, 24, 7, 13, 17, 22, 16, 14, 22, 12, 17, 5, 6, 23], [12, 9, 24, 9, 5, 16, 25, 15, 12, 14, 22, 19, 23, 6], [8, 7, 7, 19, 23, 5, 8, 10, 19, 5, 8, 21, 9, 17], [12, 15, 10, 23, 22, 25, 12, 25, 14, 6, 8, 13, 14, 20]], 'capacities': [115, 120, 114, 112, 126], 'objective': 107.0}","[3, 3, 1, 1, 2, 3, 3, 0, 2, 3, 4, 1, 1, 2]",107.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 115}, {'agent_id': 'A2', 'capacity': 120}, {'agent_id': 'A3', 'capacity': 114}, {'agent_id': 'A4', 'capacity': 112}, {'agent_id': 'A5', 'capacity': 126}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 19}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 36}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 21}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 17}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 23}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 24}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 40}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 33}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 12}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 38}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 23}, {'agent_id': 'A1', 'task_id': 'L', 'consumption': 13}, {'agent_id': 'A1', 'task_id': 'M', 'consumption': 34}, {'agent_id': 'A1', 'task_id': 'N', 'consumption': 37}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 49}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 37}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 41}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 11}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 40}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 39}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 45}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 35}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 18}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 11}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'L', 'consumption': 20}, {'agent_id': 'A2', 'task_id': 'M', 'consumption': 32}, {'agent_id': 'A2', 'task_id': 'N', 'consumption': 43}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 22}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 14}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 40}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 49}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 45}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 18}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 32}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 14}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 27}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 44}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 16}, {'agent_id': 'A3', 'task_id': 'L', 'consumption': 46}, {'agent_id': 'A3', 'task_id': 'M', 'consumption': 19}, {'agent_id': 'A3', 'task_id': 'N', 'consumption': 24}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 21}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 24}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 18}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 14}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 10}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 37}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 38}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 22}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 16}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 48}, {'agent_id': 'A4', 'task_id': 'L', 'consumption': 39}, {'agent_id': 'A4', 'task_id': 'M', 'consumption': 38}, {'agent_id': 'A4', 'task_id': 'N', 'consumption': 21}, {'agent_id': 'A5', 'task_id': 'A', 'consumption': 15}, {'agent_id': 'A5', 'task_id': 'B', 'consumption': 38}, {'agent_id': 'A5', 'task_id': 'C', 'consumption': 14}, {'agent_id': 'A5', 'task_id': 'D', 'consumption': 41}, {'agent_id': 'A5', 'task_id': 'E', 'consumption': 15}, {'agent_id': 'A5', 'task_id': 'F', 'consumption': 30}, {'agent_id': 'A5', 'task_id': 'G', 'consumption': 44}, {'agent_id': 'A5', 'task_id': 'H', 'consumption': 17}, {'agent_id': 'A5', 'task_id': 'I', 'consumption': 42}, {'agent_id': 'A5', 'task_id': 'J', 'consumption': 24}, {'agent_id': 'A5', 'task_id': 'K', 'consumption': 14}, {'agent_id': 'A5', 'task_id': 'L', 'consumption': 38}, {'agent_id': 'A5', 'task_id': 'M', 'consumption': 34}, {'agent_id': 'A5', 'task_id': 'N', 'consumption': 12}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 12}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 9}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 23}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 20}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 12}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 20}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 21}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 13}, {'agent_id': 'A1', 'task_id': 'L', 'cost': 20}, {'agent_id': 'A1', 'task_id': 'M', 'cost': 17}, {'agent_id': 'A1', 'task_id': 'N', 'cost': 22}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 24}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 7}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 13}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 22}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 16}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 14}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 22}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'L', 'cost': 5}, {'agent_id': 'A2', 'task_id': 'M', 'cost': 6}, {'agent_id': 'A2', 'task_id': 'N', 'cost': 23}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 12}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 9}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 24}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 9}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 5}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 16}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 25}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 12}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 14}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'L', 'cost': 19}, {'agent_id': 'A3', 'task_id': 'M', 'cost': 23}, {'agent_id': 'A3', 'task_id': 'N', 'cost': 6}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 7}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 7}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 19}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 23}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 10}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 19}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'L', 'cost': 21}, {'agent_id': 'A4', 'task_id': 'M', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'N', 'cost': 17}, {'agent_id': 'A5', 'task_id': 'A', 'cost': 12}, {'agent_id': 'A5', 'task_id': 'B', 'cost': 15}, {'agent_id': 'A5', 'task_id': 'C', 'cost': 10}, {'agent_id': 'A5', 'task_id': 'D', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'E', 'cost': 22}, {'agent_id': 'A5', 'task_id': 'F', 'cost': 25}, {'agent_id': 'A5', 'task_id': 'G', 'cost': 12}, {'agent_id': 'A5', 'task_id': 'H', 'cost': 25}, {'agent_id': 'A5', 'task_id': 'I', 'cost': 14}, {'agent_id': 'A5', 'task_id': 'J', 'cost': 6}, {'agent_id': 'A5', 'task_id': 'K', 'cost': 8}, {'agent_id': 'A5', 'task_id': 'L', 'cost': 13}, {'agent_id': 'A5', 'task_id': 'M', 'cost': 14}, {'agent_id': 'A5', 'task_id': 'N', 'cost': 20}]}","['A4', 'A4', 'A2', 'A2', 'A3', 'A4', 'A4', 'A1', 'A3', 'A4', 'A5', 'A2', 'A2', 'A3']",7,markdown_table,names GAP,GAP,"I run the little ad-buying corner at the company, and right now the job is to place a pile of ads into channel slots. Each ad has to go on one channel only — it can’t be split up or left out — and every channel only has so many seconds of airtime to give. For every ad you try on a channel there’s two things to note: how many seconds it eats up of that channel’s budget, and how much that channel will charge for running it. The total bill is just the sum of the charges for whatever channel each ad ends up on, so the aim is to pick channels so that sum is as low as possible without any channel’s seconds running out. The exact ad lengths, channel limits, and prices are shown below. Below I list the 4 channels (A1, A2, A3, A4) and the 13 ads (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12). Channel A1 gives me 118 seconds of airtime. Channel A2 gives me 120 seconds of airtime. Channel A3 gives me 120 seconds of airtime. Channel A4 gives me 121 seconds of airtime. Putting ad 0 on channel A1 would use 41 seconds and cost 10. Putting ad 1 on channel A1 would use 22 seconds and cost 25. Putting ad 2 on channel A1 would use 28 seconds and cost 17. Putting ad 3 on channel A1 would use 10 seconds and cost 8. Putting ad 4 on channel A1 would use 16 seconds and cost 8. Putting ad 5 on channel A1 would use 47 seconds and cost 13. Putting ad 6 on channel A1 would use 10 seconds and cost 8. Putting ad 7 on channel A1 would use 15 seconds and cost 21. Putting ad 8 on channel A1 would use 44 seconds and cost 17. Putting ad 9 on channel A1 would use 17 seconds and cost 18. Putting ad 10 on channel A1 would use 29 seconds and cost 12. Putting ad 11 on channel A1 would use 31 seconds and cost 22. Putting ad 12 on channel A1 would use 17 seconds and cost 7. Putting ad 0 on channel A2 would use 12 seconds and cost 21. Putting ad 1 on channel A2 would use 34 seconds and cost 12. Putting ad 2 on channel A2 would use 22 seconds and cost 23. Putting ad 3 on channel A2 would use 20 seconds and cost 24. Putting ad 4 on channel A2 would use 33 seconds and cost 14. Putting ad 5 on channel A2 would use 34 seconds and cost 9. Putting ad 6 on channel A2 would use 39 seconds and cost 25. Putting ad 7 on channel A2 would use 15 seconds and cost 18. Putting ad 8 on channel A2 would use 44 seconds and cost 12. Putting ad 9 on channel A2 would use 41 seconds and cost 13. Putting ad 10 on channel A2 would use 17 seconds and cost 10. Putting ad 11 on channel A2 would use 50 seconds and cost 16. Putting ad 12 on channel A2 would use 22 seconds and cost 18. Putting ad 0 on channel A3 would use 36 seconds and cost 15. Putting ad 1 on channel A3 would use 24 seconds and cost 14. Putting ad 2 on channel A3 would use 39 seconds and cost 24. Putting ad 3 on channel A3 would use 33 seconds and cost 6. Putting ad 4 on channel A3 would use 35 seconds and cost 10. Putting ad 5 on channel A3 would use 46 seconds and cost 17. Putting ad 6 on channel A3 would use 27 seconds and cost 15. Putting ad 7 on channel A3 would use 35 seconds and cost 22. Putting ad 8 on channel A3 would use 39 seconds and cost 14. Putting ad 9 on channel A3 would use 27 seconds and cost 16. Putting ad 10 on channel A3 would use 49 seconds and cost 8. Putting ad 11 on channel A3 would use 38 seconds and cost 20. Putting ad 12 on channel A3 would use 41 seconds and cost 13. Putting ad 0 on channel A4 would use 45 seconds and cost 5. Putting ad 1 on channel A4 would use 18 seconds and cost 13. Putting ad 2 on channel A4 would use 50 seconds and cost 20. Putting ad 3 on channel A4 would use 20 seconds and cost 5. Putting ad 4 on channel A4 would use 41 seconds and cost 13. Putting ad 5 on channel A4 would use 14 seconds and cost 19. Putting ad 6 on channel A4 would use 31 seconds and cost 20. Putting ad 7 on channel A4 would use 27 seconds and cost 8. Putting ad 8 on channel A4 would use 34 seconds and cost 17. Putting ad 9 on channel A4 would use 37 seconds and cost 22. Putting ad 10 on channel A4 would use 11 seconds and cost 24. Putting ad 11 on channel A4 would use 39 seconds and cost 7. Putting ad 12 on channel A4 would use 20 seconds and cost 9. Remember: every ad must go on exactly one channel and I want the total bill as low as possible without any channel running out of seconds. Also, when you’re ready to hand the results back, just use this little JSON shape so whatever reads it knows which channel each ad goes on: { ""solution"": [ , , ..., ] } Pretty simple: ""solution"" is the list of channel IDs in the same order as the ads were listed above — the first entry is where the first ad goes, the second entry is where the second ad goes, and so on. Think of it like filling in a form: one channel name per ad. This JSON is just a sketch of the shape I need, not the actual assignment — don’t put real answers in here yet. Please also make sure to use the exact identifiers from the instance input with no renaming and no invented labels. Valid identifiers look like: - ""1"" or ""23"" - ""A"" or ""B"" - ""A1"" or ""X7""","{'resource_consumption': [[41, 22, 28, 10, 16, 47, 10, 15, 44, 17, 29, 31, 17], [12, 34, 22, 20, 33, 34, 39, 15, 44, 41, 17, 50, 22], [36, 24, 39, 33, 35, 46, 27, 35, 39, 27, 49, 38, 41], [45, 18, 50, 20, 41, 14, 31, 27, 34, 37, 11, 39, 20]], 'assignment_costs': [[10, 25, 17, 8, 8, 13, 8, 21, 17, 18, 12, 22, 7], [21, 12, 23, 24, 14, 9, 25, 18, 12, 13, 10, 16, 18], [15, 14, 24, 6, 10, 17, 15, 22, 14, 16, 8, 20, 13], [5, 13, 20, 5, 13, 19, 20, 8, 17, 22, 24, 7, 9]], 'capacities': [118, 120, 120, 121], 'objective': 122.0}","[3, 2, 0, 2, 0, 1, 0, 3, 1, 1, 2, 3, 0]",122.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 13, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 118}, {'agent_id': 'A2', 'capacity': 120}, {'agent_id': 'A3', 'capacity': 120}, {'agent_id': 'A4', 'capacity': 121}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 22}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 44}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 50}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 38}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 14}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 27}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 34}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 20}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 10}, {'agent_id': 'A1', 'task_id': 1, 'cost': 25}, {'agent_id': 'A1', 'task_id': 2, 'cost': 17}, {'agent_id': 'A1', 'task_id': 3, 'cost': 8}, {'agent_id': 'A1', 'task_id': 4, 'cost': 8}, {'agent_id': 'A1', 'task_id': 5, 'cost': 13}, {'agent_id': 'A1', 'task_id': 6, 'cost': 8}, {'agent_id': 'A1', 'task_id': 7, 'cost': 21}, {'agent_id': 'A1', 'task_id': 8, 'cost': 17}, {'agent_id': 'A1', 'task_id': 9, 'cost': 18}, {'agent_id': 'A1', 'task_id': 10, 'cost': 12}, {'agent_id': 'A1', 'task_id': 11, 'cost': 22}, {'agent_id': 'A1', 'task_id': 12, 'cost': 7}, {'agent_id': 'A2', 'task_id': 0, 'cost': 21}, {'agent_id': 'A2', 'task_id': 1, 'cost': 12}, {'agent_id': 'A2', 'task_id': 2, 'cost': 23}, {'agent_id': 'A2', 'task_id': 3, 'cost': 24}, {'agent_id': 'A2', 'task_id': 4, 'cost': 14}, {'agent_id': 'A2', 'task_id': 5, 'cost': 9}, {'agent_id': 'A2', 'task_id': 6, 'cost': 25}, {'agent_id': 'A2', 'task_id': 7, 'cost': 18}, {'agent_id': 'A2', 'task_id': 8, 'cost': 12}, {'agent_id': 'A2', 'task_id': 9, 'cost': 13}, {'agent_id': 'A2', 'task_id': 10, 'cost': 10}, {'agent_id': 'A2', 'task_id': 11, 'cost': 16}, {'agent_id': 'A2', 'task_id': 12, 'cost': 18}, {'agent_id': 'A3', 'task_id': 0, 'cost': 15}, {'agent_id': 'A3', 'task_id': 1, 'cost': 14}, {'agent_id': 'A3', 'task_id': 2, 'cost': 24}, {'agent_id': 'A3', 'task_id': 3, 'cost': 6}, {'agent_id': 'A3', 'task_id': 4, 'cost': 10}, {'agent_id': 'A3', 'task_id': 5, 'cost': 17}, {'agent_id': 'A3', 'task_id': 6, 'cost': 15}, {'agent_id': 'A3', 'task_id': 7, 'cost': 22}, {'agent_id': 'A3', 'task_id': 8, 'cost': 14}, {'agent_id': 'A3', 'task_id': 9, 'cost': 16}, {'agent_id': 'A3', 'task_id': 10, 'cost': 8}, {'agent_id': 'A3', 'task_id': 11, 'cost': 20}, {'agent_id': 'A3', 'task_id': 12, 'cost': 13}, {'agent_id': 'A4', 'task_id': 0, 'cost': 5}, {'agent_id': 'A4', 'task_id': 1, 'cost': 13}, {'agent_id': 'A4', 'task_id': 2, 'cost': 20}, {'agent_id': 'A4', 'task_id': 3, 'cost': 5}, {'agent_id': 'A4', 'task_id': 4, 'cost': 13}, {'agent_id': 'A4', 'task_id': 5, 'cost': 19}, {'agent_id': 'A4', 'task_id': 6, 'cost': 20}, {'agent_id': 'A4', 'task_id': 7, 'cost': 8}, {'agent_id': 'A4', 'task_id': 8, 'cost': 17}, {'agent_id': 'A4', 'task_id': 9, 'cost': 22}, {'agent_id': 'A4', 'task_id': 10, 'cost': 24}, {'agent_id': 'A4', 'task_id': 11, 'cost': 7}, {'agent_id': 'A4', 'task_id': 12, 'cost': 9}]}","['A4', 'A3', 'A1', 'A3', 'A1', 'A2', 'A1', 'A4', 'A2', 'A2', 'A3', 'A4', 'A1']",8,nl,0 GAP,GAP,"Around the office the task is clear: match every gig to a single freelancer, don’t give a gig to more than one person or leave it unassigned, and make sure nobody’s assigned more hours than they actually have. The practical metric is money — compute each assigned gig’s cost by hours times that freelancer’s price, total all those costs, and pick the arrangement with the lowest overall payment. The full list of gigs, availability and rates is provided below. There are 4 freelancers and 13 gigs, listed as A1, A2, A3, A4 and 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. Freelancer A1 has 365 available hours. Freelancer A2 has 365 available hours. Freelancer A3 has 365 available hours. Freelancer A4 has 365 available hours. If freelancer A1 takes gig 0 it will consume 11 hours and cost 11. If freelancer A1 takes gig 1 it will consume 18 hours and cost 12. If freelancer A1 takes gig 2 it will consume 32 hours and cost 10. If freelancer A1 takes gig 3 it will consume 41 hours and cost 13. If freelancer A1 takes gig 4 it will consume 31 hours and cost 18. If freelancer A1 takes gig 5 it will consume 16 hours and cost 19. If freelancer A1 takes gig 6 it will consume 22 hours and cost 10. If freelancer A1 takes gig 7 it will consume 38 hours and cost 21. If freelancer A1 takes gig 8 it will consume 17 hours and cost 20. If freelancer A1 takes gig 9 it will consume 32 hours and cost 12. If freelancer A1 takes gig 10 it will consume 41 hours and cost 24. If freelancer A1 takes gig 11 it will consume 15 hours and cost 17. If freelancer A1 takes gig 12 it will consume 40 hours and cost 17. If freelancer A2 takes gig 0 it will consume 34 hours and cost 23. If freelancer A2 takes gig 1 it will consume 48 hours and cost 20. If freelancer A2 takes gig 2 it will consume 34 hours and cost 16. If freelancer A2 takes gig 3 it will consume 21 hours and cost 8. If freelancer A2 takes gig 4 it will consume 17 hours and cost 15. If freelancer A2 takes gig 5 it will consume 28 hours and cost 10. If freelancer A2 takes gig 6 it will consume 39 hours and cost 5. If freelancer A2 takes gig 7 it will consume 45 hours and cost 7. If freelancer A2 takes gig 8 it will consume 31 hours and cost 14. If freelancer A2 takes gig 9 it will consume 12 hours and cost 6. If freelancer A2 takes gig 10 it will consume 29 hours and cost 25. If freelancer A2 takes gig 11 it will consume 20 hours and cost 24. If freelancer A2 takes gig 12 it will consume 32 hours and cost 13. If freelancer A3 takes gig 0 it will consume 11 hours and cost 25. If freelancer A3 takes gig 1 it will consume 49 hours and cost 5. If freelancer A3 takes gig 2 it will consume 17 hours and cost 19. If freelancer A3 takes gig 3 it will consume 48 hours and cost 21. If freelancer A3 takes gig 4 it will consume 48 hours and cost 8. If freelancer A3 takes gig 5 it will consume 45 hours and cost 15. If freelancer A3 takes gig 6 it will consume 22 hours and cost 25. If freelancer A3 takes gig 7 it will consume 19 hours and cost 20. If freelancer A3 takes gig 8 it will consume 11 hours and cost 20. If freelancer A3 takes gig 9 it will consume 35 hours and cost 19. If freelancer A3 takes gig 10 it will consume 41 hours and cost 20. If freelancer A3 takes gig 11 it will consume 45 hours and cost 23. If freelancer A3 takes gig 12 it will consume 18 hours and cost 6. If freelancer A4 takes gig 0 it will consume 23 hours and cost 21. If freelancer A4 takes gig 1 it will consume 49 hours and cost 14. If freelancer A4 takes gig 2 it will consume 11 hours and cost 23. If freelancer A4 takes gig 3 it will consume 46 hours and cost 11. If freelancer A4 takes gig 4 it will consume 24 hours and cost 25. If freelancer A4 takes gig 5 it will consume 21 hours and cost 11. If freelancer A4 takes gig 6 it will consume 47 hours and cost 21. If freelancer A4 takes gig 7 it will consume 40 hours and cost 11. If freelancer A4 takes gig 8 it will consume 27 hours and cost 14. If freelancer A4 takes gig 9 it will consume 20 hours and cost 7. If freelancer A4 takes gig 10 it will consume 21 hours and cost 5. If freelancer A4 takes gig 11 it will consume 28 hours and cost 20. If freelancer A4 takes gig 12 it will consume 26 hours and cost 25. Find the assignment that respects those availabilities and minimizes the total payment. If you want to give the assignment back in a tidy, machine-friendly way, just follow this simple JSON shape — nothing fancy, just a single list that says who does which gig: { ""solution"": [ , , ..., ] } That ""solution"" list is just the lineup: the first entry is the freelancer for the first gig, the second entry for the second gig, and so on down the list. The angle-bracket placeholders show the kind of identifier you'll drop in there — think of them like blanks on a form, not the final answers. This JSON is only a sketch of the shape I expect, not the actual assignment — fill it in with the exact IDs from the instance. Please use the identifiers exactly as they appear in the input — do not rename them and do not 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”.""","{'resource_consumption': [[11, 18, 32, 41, 31, 16, 22, 38, 17, 32, 41, 15, 40], [34, 48, 34, 21, 17, 28, 39, 45, 31, 12, 29, 20, 32], [11, 49, 17, 48, 48, 45, 22, 19, 11, 35, 41, 45, 18], [23, 49, 11, 46, 24, 21, 47, 40, 27, 20, 21, 28, 26]], 'assignment_costs': [[11, 12, 10, 13, 18, 19, 10, 21, 20, 12, 24, 17, 17], [23, 20, 16, 8, 15, 10, 5, 7, 14, 6, 25, 24, 13], [25, 5, 19, 21, 8, 15, 25, 20, 20, 19, 20, 23, 6], [21, 14, 23, 11, 25, 11, 21, 11, 14, 7, 5, 20, 25]], 'capacities': [365, 365, 365, 365], 'objective': 112.0}","[0, 2, 0, 1, 2, 1, 1, 1, 1, 1, 3, 0, 2]",112.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 13, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 365}, {'agent_id': 'A2', 'capacity': 365}, {'agent_id': 'A3', 'capacity': 365}, {'agent_id': 'A4', 'capacity': 365}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 18}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 22}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 40}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 27}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 26}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 11}, {'agent_id': 'A1', 'task_id': 1, 'cost': 12}, {'agent_id': 'A1', 'task_id': 2, 'cost': 10}, {'agent_id': 'A1', 'task_id': 3, 'cost': 13}, {'agent_id': 'A1', 'task_id': 4, 'cost': 18}, {'agent_id': 'A1', 'task_id': 5, 'cost': 19}, {'agent_id': 'A1', 'task_id': 6, 'cost': 10}, {'agent_id': 'A1', 'task_id': 7, 'cost': 21}, {'agent_id': 'A1', 'task_id': 8, 'cost': 20}, {'agent_id': 'A1', 'task_id': 9, 'cost': 12}, {'agent_id': 'A1', 'task_id': 10, 'cost': 24}, {'agent_id': 'A1', 'task_id': 11, 'cost': 17}, {'agent_id': 'A1', 'task_id': 12, 'cost': 17}, {'agent_id': 'A2', 'task_id': 0, 'cost': 23}, {'agent_id': 'A2', 'task_id': 1, 'cost': 20}, {'agent_id': 'A2', 'task_id': 2, 'cost': 16}, {'agent_id': 'A2', 'task_id': 3, 'cost': 8}, {'agent_id': 'A2', 'task_id': 4, 'cost': 15}, {'agent_id': 'A2', 'task_id': 5, 'cost': 10}, {'agent_id': 'A2', 'task_id': 6, 'cost': 5}, {'agent_id': 'A2', 'task_id': 7, 'cost': 7}, {'agent_id': 'A2', 'task_id': 8, 'cost': 14}, {'agent_id': 'A2', 'task_id': 9, 'cost': 6}, {'agent_id': 'A2', 'task_id': 10, 'cost': 25}, {'agent_id': 'A2', 'task_id': 11, 'cost': 24}, {'agent_id': 'A2', 'task_id': 12, 'cost': 13}, {'agent_id': 'A3', 'task_id': 0, 'cost': 25}, {'agent_id': 'A3', 'task_id': 1, 'cost': 5}, {'agent_id': 'A3', 'task_id': 2, 'cost': 19}, {'agent_id': 'A3', 'task_id': 3, 'cost': 21}, {'agent_id': 'A3', 'task_id': 4, 'cost': 8}, {'agent_id': 'A3', 'task_id': 5, 'cost': 15}, {'agent_id': 'A3', 'task_id': 6, 'cost': 25}, {'agent_id': 'A3', 'task_id': 7, 'cost': 20}, {'agent_id': 'A3', 'task_id': 8, 'cost': 20}, {'agent_id': 'A3', 'task_id': 9, 'cost': 19}, {'agent_id': 'A3', 'task_id': 10, 'cost': 20}, {'agent_id': 'A3', 'task_id': 11, 'cost': 23}, {'agent_id': 'A3', 'task_id': 12, 'cost': 6}, {'agent_id': 'A4', 'task_id': 0, 'cost': 21}, {'agent_id': 'A4', 'task_id': 1, 'cost': 14}, {'agent_id': 'A4', 'task_id': 2, 'cost': 23}, {'agent_id': 'A4', 'task_id': 3, 'cost': 11}, {'agent_id': 'A4', 'task_id': 4, 'cost': 25}, {'agent_id': 'A4', 'task_id': 5, 'cost': 11}, {'agent_id': 'A4', 'task_id': 6, 'cost': 21}, {'agent_id': 'A4', 'task_id': 7, 'cost': 11}, {'agent_id': 'A4', 'task_id': 8, 'cost': 14}, {'agent_id': 'A4', 'task_id': 9, 'cost': 7}, {'agent_id': 'A4', 'task_id': 10, 'cost': 5}, {'agent_id': 'A4', 'task_id': 11, 'cost': 20}, {'agent_id': 'A4', 'task_id': 12, 'cost': 25}]}","['A1', 'A3', 'A1', 'A2', 'A3', 'A2', 'A2', 'A2', 'A2', 'A2', 'A4', 'A1', 'A3']",9,nl,0 GAP,GAP,"I’ve been juggling a stack of upcoming shoots and a handful of photographers, and the job is to pair each photoshoot with exactly one photographer. For every shoot there’s a note of how much of a photographer’s shooting time it would take and what that photographer would charge; each photographer only has a certain number of hours available. The trick is to pick who does which shoot so that no photographer is booked for more hours than they have and so the total bill — add up the fees for all chosen photographer–shoot pairs — is as small as possible. No shoot can be left unassigned or given to more than one person. The exact list of shoots, photographers, times, and prices is below. Here’s the exact rundown: 15 shoots and 6 photographers — shoots: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15; photographers: A1, A2, A3, A4, A5, A6. I’ve noted that photographer A1 has 490 hours available. I’ve noted that photographer A2 has 491 hours available. I’ve noted that photographer A3 has 484 hours available. I’ve noted that photographer A4 has 477 hours available. I’ve noted that photographer A5 has 472 hours available. I’ve noted that photographer A6 has 484 hours available. If I assign shoot 1 to A1, it will use 30 hours and cost 5. If I assign shoot 2 to A1, it will use 10 hours and cost 21. If I assign shoot 3 to A1, it will use 25 hours and cost 12. If I assign shoot 4 to A1, it will use 50 hours and cost 22. If I assign shoot 5 to A1, it will use 18 hours and cost 13. If I assign shoot 6 to A1, it will use 39 hours and cost 21. If I assign shoot 7 to A1, it will use 38 hours and cost 25. If I assign shoot 8 to A1, it will use 29 hours and cost 19. If I assign shoot 9 to A1, it will use 41 hours and cost 13. If I assign shoot 10 to A1, it will use 28 hours and cost 23. If I assign shoot 11 to A1, it will use 11 hours and cost 7. If I assign shoot 12 to A1, it will use 36 hours and cost 25. If I assign shoot 13 to A1, it will use 24 hours and cost 9. If I assign shoot 14 to A1, it will use 46 hours and cost 15. If I assign shoot 15 to A1, it will use 47 hours and cost 6. If I assign shoot 1 to A2, it will use 45 hours and cost 22. If I assign shoot 2 to A2, it will use 20 hours and cost 22. If I assign shoot 3 to A2, it will use 32 hours and cost 24. If I assign shoot 4 to A2, it will use 12 hours and cost 5. If I assign shoot 5 to A2, it will use 34 hours and cost 16. If I assign shoot 6 to A2, it will use 41 hours and cost 24. If I assign shoot 7 to A2, it will use 39 hours and cost 12. If I assign shoot 8 to A2, it will use 13 hours and cost 8. If I assign shoot 9 to A2, it will use 20 hours and cost 10. If I assign shoot 10 to A2, it will use 40 hours and cost 10. If I assign shoot 11 to A2, it will use 41 hours and cost 25. If I assign shoot 12 to A2, it will use 13 hours and cost 16. If I assign shoot 13 to A2, it will use 32 hours and cost 19. If I assign shoot 14 to A2, it will use 25 hours and cost 11. If I assign shoot 15 to A2, it will use 38 hours and cost 16. If I assign shoot 1 to A3, it will use 36 hours and cost 6. If I assign shoot 2 to A3, it will use 34 hours and cost 12. If I assign shoot 3 to A3, it will use 12 hours and cost 12. If I assign shoot 4 to A3, it will use 15 hours and cost 25. If I assign shoot 5 to A3, it will use 22 hours and cost 22. If I assign shoot 6 to A3, it will use 33 hours and cost 11. If I assign shoot 7 to A3, it will use 11 hours and cost 14. If I assign shoot 8 to A3, it will use 11 hours and cost 8. If I assign shoot 9 to A3, it will use 27 hours and cost 8. If I assign shoot 10 to A3, it will use 45 hours and cost 10. If I assign shoot 11 to A3, it will use 22 hours and cost 12. If I assign shoot 12 to A3, it will use 49 hours and cost 19. If I assign shoot 13 to A3, it will use 47 hours and cost 10. If I assign shoot 14 to A3, it will use 28 hours and cost 8. If I assign shoot 15 to A3, it will use 28 hours and cost 12. If I assign shoot 1 to A4, it will use 32 hours and cost 14. If I assign shoot 2 to A4, it will use 43 hours and cost 17. If I assign shoot 3 to A4, it will use 20 hours and cost 19. If I assign shoot 4 to A4, it will use 46 hours and cost 19. If I assign shoot 5 to A4, it will use 15 hours and cost 16. If I assign shoot 6 to A4, it will use 28 hours and cost 12. If I assign shoot 7 to A4, it will use 21 hours and cost 10. If I assign shoot 8 to A4, it will use 46 hours and cost 23. If I assign shoot 9 to A4, it will use 33 hours and cost 24. If I assign shoot 10 to A4, it will use 43 hours and cost 25. If I assign shoot 11 to A4, it will use 28 hours and cost 9. If I assign shoot 12 to A4, it will use 15 hours and cost 23. If I assign shoot 13 to A4, it will use 17 hours and cost 11. If I assign shoot 14 to A4, it will use 29 hours and cost 19. If I assign shoot 15 to A4, it will use 50 hours and cost 8. If I assign shoot 1 to A5, it will use 30 hours and cost 23. If I assign shoot 2 to A5, it will use 42 hours and cost 23. If I assign shoot 3 to A5, it will use 18 hours and cost 19. If I assign shoot 4 to A5, it will use 28 hours and cost 19. If I assign shoot 5 to A5, it will use 25 hours and cost 6. If I assign shoot 6 to A5, it will use 17 hours and cost 17. If I assign shoot 7 to A5, it will use 37 hours and cost 10. If I assign shoot 8 to A5, it will use 49 hours and cost 8. If I assign shoot 9 to A5, it will use 12 hours and cost 5. If I assign shoot 10 to A5, it will use 19 hours and cost 13. If I assign shoot 11 to A5, it will use 26 hours and cost 6. If I assign shoot 12 to A5, it will use 29 hours and cost 9. If I assign shoot 13 to A5, it will use 40 hours and cost 10. If I assign shoot 14 to A5, it will use 43 hours and cost 7. If I assign shoot 15 to A5, it will use 46 hours and cost 20. If I assign shoot 1 to A6, it will use 37 hours and cost 22. If I assign shoot 2 to A6, it will use 24 hours and cost 14. If I assign shoot 3 to A6, it will use 23 hours and cost 22. If I assign shoot 4 to A6, it will use 19 hours and cost 17. If I assign shoot 5 to A6, it will use 30 hours and cost 13. If I assign shoot 6 to A6, it will use 30 hours and cost 17. If I assign shoot 7 to A6, it will use 31 hours and cost 5. If I assign shoot 8 to A6, it will use 20 hours and cost 6. If I assign shoot 9 to A6, it will use 20 hours and cost 9. If I assign shoot 10 to A6, it will use 21 hours and cost 24. If I assign shoot 11 to A6, it will use 25 hours and cost 7. If I assign shoot 12 to A6, it will use 22 hours and cost 20. If I assign shoot 13 to A6, it will use 16 hours and cost 13. If I assign shoot 14 to A6, it will use 32 hours and cost 20. If I assign shoot 15 to A6, it will use 11 hours and cost 16. I need to assign each of the 15 shoots to one of the 6 photographers without exceeding their available hours, minimizing the total fees. Oh, and to keep things machine-friendly, please give the final assignment in a tiny JSON shape like this: { ""solution"": [ , , ..., ] } Think of ""solution"" as a list with one entry per shoot (in the same order as the shoot list above); each entry should be the identifier of the photographer you're assigning to that shoot. This is just the expected shape — a sketch, not the actual filled-in answer. Important: 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”.","{'resource_consumption': [[30, 10, 25, 50, 18, 39, 38, 29, 41, 28, 11, 36, 24, 46, 47], [45, 20, 32, 12, 34, 41, 39, 13, 20, 40, 41, 13, 32, 25, 38], [36, 34, 12, 15, 22, 33, 11, 11, 27, 45, 22, 49, 47, 28, 28], [32, 43, 20, 46, 15, 28, 21, 46, 33, 43, 28, 15, 17, 29, 50], [30, 42, 18, 28, 25, 17, 37, 49, 12, 19, 26, 29, 40, 43, 46], [37, 24, 23, 19, 30, 30, 31, 20, 20, 21, 25, 22, 16, 32, 11]], 'assignment_costs': [[5, 21, 12, 22, 13, 21, 25, 19, 13, 23, 7, 25, 9, 15, 6], [22, 22, 24, 5, 16, 24, 12, 8, 10, 10, 25, 16, 19, 11, 16], [6, 12, 12, 25, 22, 11, 14, 8, 8, 10, 12, 19, 10, 8, 12], [14, 17, 19, 19, 16, 12, 10, 23, 24, 25, 9, 23, 11, 19, 8], [23, 23, 19, 19, 6, 17, 10, 8, 5, 13, 6, 9, 10, 7, 20], [22, 14, 22, 17, 13, 17, 5, 6, 9, 24, 7, 20, 13, 20, 16]], 'capacities': [490, 491, 484, 477, 472, 484], 'objective': 114.0}","[0, 2, 0, 1, 4, 2, 5, 5, 4, 1, 4, 4, 0, 4, 0]",114.0,"{'problem_type': 'GAP', 'num_agents': 6, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5', 'A6'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 490}, {'agent_id': 'A2', 'capacity': 491}, {'agent_id': 'A3', 'capacity': 484}, {'agent_id': 'A4', 'capacity': 477}, {'agent_id': 'A5', 'capacity': 472}, {'agent_id': 'A6', 'capacity': 484}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 30}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 18}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 15, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 40}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 25}, {'agent_id': 'A2', 'task_id': 15, 'consumption': 38}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 34}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 15}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 15, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 29}, {'agent_id': 'A4', 'task_id': 15, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 42}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 18}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 25}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 17}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 49}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 12}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 19}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 26}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 29}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 40}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 43}, {'agent_id': 'A5', 'task_id': 15, 'consumption': 46}, {'agent_id': 'A6', 'task_id': 1, 'consumption': 37}, {'agent_id': 'A6', 'task_id': 2, 'consumption': 24}, {'agent_id': 'A6', 'task_id': 3, 'consumption': 23}, {'agent_id': 'A6', 'task_id': 4, 'consumption': 19}, {'agent_id': 'A6', 'task_id': 5, 'consumption': 30}, {'agent_id': 'A6', 'task_id': 6, 'consumption': 30}, {'agent_id': 'A6', 'task_id': 7, 'consumption': 31}, {'agent_id': 'A6', 'task_id': 8, 'consumption': 20}, {'agent_id': 'A6', 'task_id': 9, 'consumption': 20}, {'agent_id': 'A6', 'task_id': 10, 'consumption': 21}, {'agent_id': 'A6', 'task_id': 11, 'consumption': 25}, {'agent_id': 'A6', 'task_id': 12, 'consumption': 22}, {'agent_id': 'A6', 'task_id': 13, 'consumption': 16}, {'agent_id': 'A6', 'task_id': 14, 'consumption': 32}, {'agent_id': 'A6', 'task_id': 15, 'consumption': 11}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 5}, {'agent_id': 'A1', 'task_id': 2, 'cost': 21}, {'agent_id': 'A1', 'task_id': 3, 'cost': 12}, {'agent_id': 'A1', 'task_id': 4, 'cost': 22}, {'agent_id': 'A1', 'task_id': 5, 'cost': 13}, {'agent_id': 'A1', 'task_id': 6, 'cost': 21}, {'agent_id': 'A1', 'task_id': 7, 'cost': 25}, {'agent_id': 'A1', 'task_id': 8, 'cost': 19}, {'agent_id': 'A1', 'task_id': 9, 'cost': 13}, {'agent_id': 'A1', 'task_id': 10, 'cost': 23}, {'agent_id': 'A1', 'task_id': 11, 'cost': 7}, {'agent_id': 'A1', 'task_id': 12, 'cost': 25}, {'agent_id': 'A1', 'task_id': 13, 'cost': 9}, {'agent_id': 'A1', 'task_id': 14, 'cost': 15}, {'agent_id': 'A1', 'task_id': 15, 'cost': 6}, {'agent_id': 'A2', 'task_id': 1, 'cost': 22}, {'agent_id': 'A2', 'task_id': 2, 'cost': 22}, {'agent_id': 'A2', 'task_id': 3, 'cost': 24}, {'agent_id': 'A2', 'task_id': 4, 'cost': 5}, {'agent_id': 'A2', 'task_id': 5, 'cost': 16}, {'agent_id': 'A2', 'task_id': 6, 'cost': 24}, {'agent_id': 'A2', 'task_id': 7, 'cost': 12}, {'agent_id': 'A2', 'task_id': 8, 'cost': 8}, {'agent_id': 'A2', 'task_id': 9, 'cost': 10}, {'agent_id': 'A2', 'task_id': 10, 'cost': 10}, {'agent_id': 'A2', 'task_id': 11, 'cost': 25}, {'agent_id': 'A2', 'task_id': 12, 'cost': 16}, {'agent_id': 'A2', 'task_id': 13, 'cost': 19}, {'agent_id': 'A2', 'task_id': 14, 'cost': 11}, {'agent_id': 'A2', 'task_id': 15, 'cost': 16}, {'agent_id': 'A3', 'task_id': 1, 'cost': 6}, {'agent_id': 'A3', 'task_id': 2, 'cost': 12}, {'agent_id': 'A3', 'task_id': 3, 'cost': 12}, {'agent_id': 'A3', 'task_id': 4, 'cost': 25}, {'agent_id': 'A3', 'task_id': 5, 'cost': 22}, {'agent_id': 'A3', 'task_id': 6, 'cost': 11}, {'agent_id': 'A3', 'task_id': 7, 'cost': 14}, {'agent_id': 'A3', 'task_id': 8, 'cost': 8}, {'agent_id': 'A3', 'task_id': 9, 'cost': 8}, {'agent_id': 'A3', 'task_id': 10, 'cost': 10}, {'agent_id': 'A3', 'task_id': 11, 'cost': 12}, {'agent_id': 'A3', 'task_id': 12, 'cost': 19}, {'agent_id': 'A3', 'task_id': 13, 'cost': 10}, {'agent_id': 'A3', 'task_id': 14, 'cost': 8}, {'agent_id': 'A3', 'task_id': 15, 'cost': 12}, {'agent_id': 'A4', 'task_id': 1, 'cost': 14}, {'agent_id': 'A4', 'task_id': 2, 'cost': 17}, {'agent_id': 'A4', 'task_id': 3, 'cost': 19}, {'agent_id': 'A4', 'task_id': 4, 'cost': 19}, {'agent_id': 'A4', 'task_id': 5, 'cost': 16}, {'agent_id': 'A4', 'task_id': 6, 'cost': 12}, {'agent_id': 'A4', 'task_id': 7, 'cost': 10}, {'agent_id': 'A4', 'task_id': 8, 'cost': 23}, {'agent_id': 'A4', 'task_id': 9, 'cost': 24}, {'agent_id': 'A4', 'task_id': 10, 'cost': 25}, {'agent_id': 'A4', 'task_id': 11, 'cost': 9}, {'agent_id': 'A4', 'task_id': 12, 'cost': 23}, {'agent_id': 'A4', 'task_id': 13, 'cost': 11}, {'agent_id': 'A4', 'task_id': 14, 'cost': 19}, {'agent_id': 'A4', 'task_id': 15, 'cost': 8}, {'agent_id': 'A5', 'task_id': 1, 'cost': 23}, {'agent_id': 'A5', 'task_id': 2, 'cost': 23}, {'agent_id': 'A5', 'task_id': 3, 'cost': 19}, {'agent_id': 'A5', 'task_id': 4, 'cost': 19}, {'agent_id': 'A5', 'task_id': 5, 'cost': 6}, {'agent_id': 'A5', 'task_id': 6, 'cost': 17}, {'agent_id': 'A5', 'task_id': 7, 'cost': 10}, {'agent_id': 'A5', 'task_id': 8, 'cost': 8}, {'agent_id': 'A5', 'task_id': 9, 'cost': 5}, {'agent_id': 'A5', 'task_id': 10, 'cost': 13}, {'agent_id': 'A5', 'task_id': 11, 'cost': 6}, {'agent_id': 'A5', 'task_id': 12, 'cost': 9}, {'agent_id': 'A5', 'task_id': 13, 'cost': 10}, {'agent_id': 'A5', 'task_id': 14, 'cost': 7}, {'agent_id': 'A5', 'task_id': 15, 'cost': 20}, {'agent_id': 'A6', 'task_id': 1, 'cost': 22}, {'agent_id': 'A6', 'task_id': 2, 'cost': 14}, {'agent_id': 'A6', 'task_id': 3, 'cost': 22}, {'agent_id': 'A6', 'task_id': 4, 'cost': 17}, {'agent_id': 'A6', 'task_id': 5, 'cost': 13}, {'agent_id': 'A6', 'task_id': 6, 'cost': 17}, {'agent_id': 'A6', 'task_id': 7, 'cost': 5}, {'agent_id': 'A6', 'task_id': 8, 'cost': 6}, {'agent_id': 'A6', 'task_id': 9, 'cost': 9}, {'agent_id': 'A6', 'task_id': 10, 'cost': 24}, {'agent_id': 'A6', 'task_id': 11, 'cost': 7}, {'agent_id': 'A6', 'task_id': 12, 'cost': 20}, {'agent_id': 'A6', 'task_id': 13, 'cost': 13}, {'agent_id': 'A6', 'task_id': 14, 'cost': 20}, {'agent_id': 'A6', 'task_id': 15, 'cost': 16}]}","['A1', 'A3', 'A1', 'A2', 'A5', 'A3', 'A6', 'A6', 'A5', 'A2', 'A5', 'A5', 'A1', 'A5', 'A1']",10,nl,1 GAP,GAP,"I’ve got a stack of home visits that need a nurse each, and for every possible nurse–visit pairing there’s a known time it would eat out of that nurse’s shift and a known fee for doing the job. Every visit has to go to one, and only one, nurse — no visit gets skipped or doubled up. Each nurse only has a fixed number of work hours, so the total minutes of the visits a nurse takes can’t be more than their shift allows. The idea is to put the visits together so the total service cost (just add up the cost for each visit as assigned) comes out as small as possible while keeping everyone within their shift. The concrete details are shown below. # num_nurses=5 # num_visits=15 # nurses=A1, A2, A3, A4, A5 # visits=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 nurse_id,available_shift_minutes A1,57 A2,59 A3,61 A4,57 A5,57 nurse_id,visit_id,visit_duration_minutes A1,1,10 A1,2,45 A1,3,15 A1,4,18 A1,5,26 A1,6,28 A1,7,27 A1,8,17 A1,9,31 A1,10,19 A1,11,19 A1,12,40 A1,13,32 A1,14,21 A1,15,32 A2,1,48 A2,2,33 A2,3,41 A2,4,31 A2,5,33 A2,6,13 A2,7,20 A2,8,36 A2,9,42 A2,10,21 A2,11,29 A2,12,43 A2,13,45 A2,14,32 A2,15,46 A3,1,11 A3,2,19 A3,3,46 A3,4,19 A3,5,41 A3,6,50 A3,7,25 A3,8,21 A3,9,44 A3,10,48 A3,11,13 A3,12,31 A3,13,12 A3,14,15 A3,15,20 A4,1,34 A4,2,20 A4,3,39 A4,4,45 A4,5,40 A4,6,36 A4,7,40 A4,8,28 A4,9,16 A4,10,20 A4,11,28 A4,12,18 A4,13,10 A4,14,25 A4,15,30 A5,1,36 A5,2,22 A5,3,12 A5,4,36 A5,5,10 A5,6,46 A5,7,44 A5,8,50 A5,9,47 A5,10,17 A5,11,49 A5,12,30 A5,13,48 A5,14,42 A5,15,39 nurse_id,visit_id,service_cost A1,1,9 A1,2,7 A1,3,20 A1,4,10 A1,5,10 A1,6,22 A1,7,20 A1,8,13 A1,9,18 A1,10,21 A1,11,24 A1,12,18 A1,13,19 A1,14,13 A1,15,5 A2,1,9 A2,2,13 A2,3,10 A2,4,15 A2,5,12 A2,6,21 A2,7,23 A2,8,8 A2,9,10 A2,10,14 A2,11,19 A2,12,23 A2,13,15 A2,14,25 A2,15,21 A3,1,18 A3,2,5 A3,3,25 A3,4,11 A3,5,22 A3,6,19 A3,7,18 A3,8,17 A3,9,25 A3,10,16 A3,11,23 A3,12,19 A3,13,24 A3,14,24 A3,15,5 A4,1,9 A4,2,10 A4,3,25 A4,4,8 A4,5,16 A4,6,19 A4,7,15 A4,8,6 A4,9,17 A4,10,13 A4,11,5 A4,12,12 A4,13,24 A4,14,11 A4,15,23 A5,1,6 A5,2,20 A5,3,17 A5,4,5 A5,5,21 A5,6,25 A5,7,13 A5,8,21 A5,9,14 A5,10,22 A5,11,15 A5,12,9 A5,13,16 A5,14,20 A5,15,25 Also, when you send the assignment back, please use this simple JSON shape so it's clear which nurse goes to which visit: { ""solution"": [ , , ..., ] } This just sketches the format: the solution array lists the nurse id for each visit in order (first entry → first visit, second → second visit, and so on). It's just the shape I need, not the final assignment itself. Please use the exact identifiers from the instance input — don’t rename them or add 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”.""","{'resource_consumption': [[10, 45, 15, 18, 26, 28, 27, 17, 31, 19, 19, 40, 32, 21, 32], [48, 33, 41, 31, 33, 13, 20, 36, 42, 21, 29, 43, 45, 32, 46], [11, 19, 46, 19, 41, 50, 25, 21, 44, 48, 13, 31, 12, 15, 20], [34, 20, 39, 45, 40, 36, 40, 28, 16, 20, 28, 18, 10, 25, 30], [36, 22, 12, 36, 10, 46, 44, 50, 47, 17, 49, 30, 48, 42, 39]], 'assignment_costs': [[9, 7, 20, 10, 10, 22, 20, 13, 18, 21, 24, 18, 19, 13, 5], [9, 13, 10, 15, 12, 21, 23, 8, 10, 14, 19, 23, 15, 25, 21], [18, 5, 25, 11, 22, 19, 18, 17, 25, 16, 23, 19, 24, 24, 5], [9, 10, 25, 8, 16, 19, 15, 6, 17, 13, 5, 12, 24, 11, 23], [6, 20, 17, 5, 21, 25, 13, 21, 14, 22, 15, 9, 16, 20, 25]], 'capacities': [57, 59, 61, 57, 57], 'objective': 207.0}","[0, 2, 4, 2, 4, 1, 1, 0, 3, 1, 3, 4, 3, 0, 2]",207.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 57}, {'agent_id': 'A2', 'capacity': 59}, {'agent_id': 'A3', 'capacity': 61}, {'agent_id': 'A4', 'capacity': 57}, {'agent_id': 'A5', 'capacity': 57}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 18}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 26}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 40}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 15, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 43}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 15, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 15}, {'agent_id': 'A3', 'task_id': 15, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 34}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 36}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 10}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 15, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 22}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 12}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 10}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 44}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 47}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 17}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 49}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 48}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 42}, {'agent_id': 'A5', 'task_id': 15, 'consumption': 39}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 9}, {'agent_id': 'A1', 'task_id': 2, 'cost': 7}, {'agent_id': 'A1', 'task_id': 3, 'cost': 20}, {'agent_id': 'A1', 'task_id': 4, 'cost': 10}, {'agent_id': 'A1', 'task_id': 5, 'cost': 10}, {'agent_id': 'A1', 'task_id': 6, 'cost': 22}, {'agent_id': 'A1', 'task_id': 7, 'cost': 20}, {'agent_id': 'A1', 'task_id': 8, 'cost': 13}, {'agent_id': 'A1', 'task_id': 9, 'cost': 18}, {'agent_id': 'A1', 'task_id': 10, 'cost': 21}, {'agent_id': 'A1', 'task_id': 11, 'cost': 24}, {'agent_id': 'A1', 'task_id': 12, 'cost': 18}, {'agent_id': 'A1', 'task_id': 13, 'cost': 19}, {'agent_id': 'A1', 'task_id': 14, 'cost': 13}, {'agent_id': 'A1', 'task_id': 15, 'cost': 5}, {'agent_id': 'A2', 'task_id': 1, 'cost': 9}, {'agent_id': 'A2', 'task_id': 2, 'cost': 13}, {'agent_id': 'A2', 'task_id': 3, 'cost': 10}, {'agent_id': 'A2', 'task_id': 4, 'cost': 15}, {'agent_id': 'A2', 'task_id': 5, 'cost': 12}, {'agent_id': 'A2', 'task_id': 6, 'cost': 21}, {'agent_id': 'A2', 'task_id': 7, 'cost': 23}, {'agent_id': 'A2', 'task_id': 8, 'cost': 8}, {'agent_id': 'A2', 'task_id': 9, 'cost': 10}, {'agent_id': 'A2', 'task_id': 10, 'cost': 14}, {'agent_id': 'A2', 'task_id': 11, 'cost': 19}, {'agent_id': 'A2', 'task_id': 12, 'cost': 23}, {'agent_id': 'A2', 'task_id': 13, 'cost': 15}, {'agent_id': 'A2', 'task_id': 14, 'cost': 25}, {'agent_id': 'A2', 'task_id': 15, 'cost': 21}, {'agent_id': 'A3', 'task_id': 1, 'cost': 18}, {'agent_id': 'A3', 'task_id': 2, 'cost': 5}, {'agent_id': 'A3', 'task_id': 3, 'cost': 25}, {'agent_id': 'A3', 'task_id': 4, 'cost': 11}, {'agent_id': 'A3', 'task_id': 5, 'cost': 22}, {'agent_id': 'A3', 'task_id': 6, 'cost': 19}, {'agent_id': 'A3', 'task_id': 7, 'cost': 18}, {'agent_id': 'A3', 'task_id': 8, 'cost': 17}, {'agent_id': 'A3', 'task_id': 9, 'cost': 25}, {'agent_id': 'A3', 'task_id': 10, 'cost': 16}, {'agent_id': 'A3', 'task_id': 11, 'cost': 23}, {'agent_id': 'A3', 'task_id': 12, 'cost': 19}, {'agent_id': 'A3', 'task_id': 13, 'cost': 24}, {'agent_id': 'A3', 'task_id': 14, 'cost': 24}, {'agent_id': 'A3', 'task_id': 15, 'cost': 5}, {'agent_id': 'A4', 'task_id': 1, 'cost': 9}, {'agent_id': 'A4', 'task_id': 2, 'cost': 10}, {'agent_id': 'A4', 'task_id': 3, 'cost': 25}, {'agent_id': 'A4', 'task_id': 4, 'cost': 8}, {'agent_id': 'A4', 'task_id': 5, 'cost': 16}, {'agent_id': 'A4', 'task_id': 6, 'cost': 19}, {'agent_id': 'A4', 'task_id': 7, 'cost': 15}, {'agent_id': 'A4', 'task_id': 8, 'cost': 6}, {'agent_id': 'A4', 'task_id': 9, 'cost': 17}, {'agent_id': 'A4', 'task_id': 10, 'cost': 13}, {'agent_id': 'A4', 'task_id': 11, 'cost': 5}, {'agent_id': 'A4', 'task_id': 12, 'cost': 12}, {'agent_id': 'A4', 'task_id': 13, 'cost': 24}, {'agent_id': 'A4', 'task_id': 14, 'cost': 11}, {'agent_id': 'A4', 'task_id': 15, 'cost': 23}, {'agent_id': 'A5', 'task_id': 1, 'cost': 6}, {'agent_id': 'A5', 'task_id': 2, 'cost': 20}, {'agent_id': 'A5', 'task_id': 3, 'cost': 17}, {'agent_id': 'A5', 'task_id': 4, 'cost': 5}, {'agent_id': 'A5', 'task_id': 5, 'cost': 21}, {'agent_id': 'A5', 'task_id': 6, 'cost': 25}, {'agent_id': 'A5', 'task_id': 7, 'cost': 13}, {'agent_id': 'A5', 'task_id': 8, 'cost': 21}, {'agent_id': 'A5', 'task_id': 9, 'cost': 14}, {'agent_id': 'A5', 'task_id': 10, 'cost': 22}, {'agent_id': 'A5', 'task_id': 11, 'cost': 15}, {'agent_id': 'A5', 'task_id': 12, 'cost': 9}, {'agent_id': 'A5', 'task_id': 13, 'cost': 16}, {'agent_id': 'A5', 'task_id': 14, 'cost': 20}, {'agent_id': 'A5', 'task_id': 15, 'cost': 25}]}","['A1', 'A3', 'A5', 'A3', 'A5', 'A2', 'A2', 'A1', 'A4', 'A2', 'A4', 'A5', 'A4', 'A1', 'A3']",11,csv,1 GAP,GAP,"I was juggling a stack of pickups and a handful of trucks the other day — each pickup has to go on exactly one truck (no leaving anything behind and no double-ups). Every pickup takes up a certain amount of room in whatever truck it rides in, and each pickup–truck pairing comes with its own hauling fee. Each truck can only hold a fixed amount of cargo, so the combined space of the pickups loaded onto a truck can’t be more than that. The sensible plan is the one that ends up costing the least overall, which you figure by adding up the hauling fee for each pickup’s chosen truck. The concrete details will be shown below. Here are the details for 4 trucks and 12 pickups: trucks A1, A2, A3, A4; pickups 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11. | truck_id | truck_volume_capacity | |---|---| | A1 | 179 | | A2 | 178 | | A3 | 180 | | A4 | 175 | | truck_id | pickup_id | pickup_volume_in_truck | |---|---|---| | A1 | 0 | 26 | | A1 | 1 | 38 | | A1 | 2 | 46 | | A1 | 3 | 38 | | A1 | 4 | 42 | | A1 | 5 | 22 | | A1 | 6 | 50 | | A1 | 7 | 38 | | A1 | 8 | 17 | | A1 | 9 | 46 | | A1 | 10 | 26 | | A1 | 11 | 17 | | A2 | 0 | 35 | | A2 | 1 | 23 | | A2 | 2 | 50 | | A2 | 3 | 38 | | A2 | 4 | 10 | | A2 | 5 | 35 | | A2 | 6 | 39 | | A2 | 7 | 10 | | A2 | 8 | 18 | | A2 | 9 | 10 | | A2 | 10 | 45 | | A2 | 11 | 32 | | A3 | 0 | 44 | | A3 | 1 | 28 | | A3 | 2 | 46 | | A3 | 3 | 36 | | A3 | 4 | 30 | | A3 | 5 | 41 | | A3 | 6 | 46 | | A3 | 7 | 48 | | A3 | 8 | 20 | | A3 | 9 | 44 | | A3 | 10 | 40 | | A3 | 11 | 18 | | A4 | 0 | 33 | | A4 | 1 | 21 | | A4 | 2 | 44 | | A4 | 3 | 41 | | A4 | 4 | 41 | | A4 | 5 | 31 | | A4 | 6 | 43 | | A4 | 7 | 43 | | A4 | 8 | 38 | | A4 | 9 | 47 | | A4 | 10 | 49 | | A4 | 11 | 28 | | truck_id | pickup_id | hauling_fee | |---|---|---| | A1 | 0 | 11 | | A1 | 1 | 17 | | A1 | 2 | 20 | | A1 | 3 | 15 | | A1 | 4 | 20 | | A1 | 5 | 20 | | A1 | 6 | 11 | | A1 | 7 | 10 | | A1 | 8 | 20 | | A1 | 9 | 18 | | A1 | 10 | 7 | | A1 | 11 | 8 | | A2 | 0 | 14 | | A2 | 1 | 7 | | A2 | 2 | 12 | | A2 | 3 | 5 | | A2 | 4 | 9 | | A2 | 5 | 9 | | A2 | 6 | 10 | | A2 | 7 | 21 | | A2 | 8 | 8 | | A2 | 9 | 6 | | A2 | 10 | 5 | | A2 | 11 | 15 | | A3 | 0 | 21 | | A3 | 1 | 20 | | A3 | 2 | 14 | | A3 | 3 | 20 | | A3 | 4 | 12 | | A3 | 5 | 6 | | A3 | 6 | 14 | | A3 | 7 | 23 | | A3 | 8 | 13 | | A3 | 9 | 22 | | A3 | 10 | 24 | | A3 | 11 | 15 | | A4 | 0 | 13 | | A4 | 1 | 25 | | A4 | 2 | 6 | | A4 | 3 | 5 | | A4 | 4 | 21 | | A4 | 5 | 9 | | A4 | 6 | 23 | | A4 | 7 | 18 | | A4 | 8 | 23 | | A4 | 9 | 10 | | A4 | 10 | 10 | | A4 | 11 | 17 | That's everything I listed — now to find the least-cost assignment. Oh, and to keep things machine-friendly, please return your assignment in this little JSON layout when you reply: { ""solution"": [ , , ..., ] } Think of ""solution"" as a checklist that goes through the pickups in order: each placeholder in the array is where you drop the identifier of the truck that will carry that pickup. It's just the shape I need — a sketch of which truck goes with which pickup, not the actual filled-in answer. Please make sure you use the exact identifiers shown 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”.","{'resource_consumption': [[26, 38, 46, 38, 42, 22, 50, 38, 17, 46, 26, 17], [35, 23, 50, 38, 10, 35, 39, 10, 18, 10, 45, 32], [44, 28, 46, 36, 30, 41, 46, 48, 20, 44, 40, 18], [33, 21, 44, 41, 41, 31, 43, 43, 38, 47, 49, 28]], 'assignment_costs': [[11, 17, 20, 15, 20, 20, 11, 10, 20, 18, 7, 8], [14, 7, 12, 5, 9, 9, 10, 21, 8, 6, 5, 15], [21, 20, 14, 20, 12, 6, 14, 23, 13, 22, 24, 15], [13, 25, 6, 5, 21, 9, 23, 18, 23, 10, 10, 17]], 'capacities': [179, 178, 180, 175], 'objective': 91.0}","[0, 1, 3, 3, 1, 2, 1, 0, 1, 1, 1, 0]",91.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 12, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 179}, {'agent_id': 'A2', 'capacity': 178}, {'agent_id': 'A3', 'capacity': 180}, {'agent_id': 'A4', 'capacity': 175}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 26}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 22}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 26}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 35}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 50}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 38}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 35}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 18}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 20}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 40}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 28}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 11}, {'agent_id': 'A1', 'task_id': 1, 'cost': 17}, {'agent_id': 'A1', 'task_id': 2, 'cost': 20}, {'agent_id': 'A1', 'task_id': 3, 'cost': 15}, {'agent_id': 'A1', 'task_id': 4, 'cost': 20}, {'agent_id': 'A1', 'task_id': 5, 'cost': 20}, {'agent_id': 'A1', 'task_id': 6, 'cost': 11}, {'agent_id': 'A1', 'task_id': 7, 'cost': 10}, {'agent_id': 'A1', 'task_id': 8, 'cost': 20}, {'agent_id': 'A1', 'task_id': 9, 'cost': 18}, {'agent_id': 'A1', 'task_id': 10, 'cost': 7}, {'agent_id': 'A1', 'task_id': 11, 'cost': 8}, {'agent_id': 'A2', 'task_id': 0, 'cost': 14}, {'agent_id': 'A2', 'task_id': 1, 'cost': 7}, {'agent_id': 'A2', 'task_id': 2, 'cost': 12}, {'agent_id': 'A2', 'task_id': 3, 'cost': 5}, {'agent_id': 'A2', 'task_id': 4, 'cost': 9}, {'agent_id': 'A2', 'task_id': 5, 'cost': 9}, {'agent_id': 'A2', 'task_id': 6, 'cost': 10}, {'agent_id': 'A2', 'task_id': 7, 'cost': 21}, {'agent_id': 'A2', 'task_id': 8, 'cost': 8}, {'agent_id': 'A2', 'task_id': 9, 'cost': 6}, {'agent_id': 'A2', 'task_id': 10, 'cost': 5}, {'agent_id': 'A2', 'task_id': 11, 'cost': 15}, {'agent_id': 'A3', 'task_id': 0, 'cost': 21}, {'agent_id': 'A3', 'task_id': 1, 'cost': 20}, {'agent_id': 'A3', 'task_id': 2, 'cost': 14}, {'agent_id': 'A3', 'task_id': 3, 'cost': 20}, {'agent_id': 'A3', 'task_id': 4, 'cost': 12}, {'agent_id': 'A3', 'task_id': 5, 'cost': 6}, {'agent_id': 'A3', 'task_id': 6, 'cost': 14}, {'agent_id': 'A3', 'task_id': 7, 'cost': 23}, {'agent_id': 'A3', 'task_id': 8, 'cost': 13}, {'agent_id': 'A3', 'task_id': 9, 'cost': 22}, {'agent_id': 'A3', 'task_id': 10, 'cost': 24}, {'agent_id': 'A3', 'task_id': 11, 'cost': 15}, {'agent_id': 'A4', 'task_id': 0, 'cost': 13}, {'agent_id': 'A4', 'task_id': 1, 'cost': 25}, {'agent_id': 'A4', 'task_id': 2, 'cost': 6}, {'agent_id': 'A4', 'task_id': 3, 'cost': 5}, {'agent_id': 'A4', 'task_id': 4, 'cost': 21}, {'agent_id': 'A4', 'task_id': 5, 'cost': 9}, {'agent_id': 'A4', 'task_id': 6, 'cost': 23}, {'agent_id': 'A4', 'task_id': 7, 'cost': 18}, {'agent_id': 'A4', 'task_id': 8, 'cost': 23}, {'agent_id': 'A4', 'task_id': 9, 'cost': 10}, {'agent_id': 'A4', 'task_id': 10, 'cost': 10}, {'agent_id': 'A4', 'task_id': 11, 'cost': 17}]}","['A1', 'A2', 'A4', 'A4', 'A2', 'A3', 'A2', 'A1', 'A2', 'A2', 'A2', 'A1']",12,markdown_table,0 GAP,GAP,"Many people signed up to help at the picnic, and there’s a list of duties that all need someone assigned. For each duty and volunteer pair there’s an estimated time hit on that volunteer and a cost for that pairing. The aim is to pick who does which duty so that the grand total spent (the sum of the costs for all chosen assignments) is as low as possible, while ensuring no volunteer’s total assigned time goes over their agreed hours and every duty gets exactly one person. The full matrix of times, costs, and each volunteer’s available hours is provided below. There are 4 volunteers (A1, A2, A3, A4) and 11 duties (A, B, C, D, E, F, G, H, I, J, K). | volunteer_id | available_hours | |---|---| | A1 | 68 | | A2 | 68 | | A3 | 68 | | A4 | 68 | | volunteer_id | duty_id | time_required | |---|---|---| | A1 | A | 45 | | A1 | B | 50 | | A1 | C | 50 | | A1 | D | 41 | | A1 | E | 50 | | A1 | F | 35 | | A1 | G | 50 | | A1 | H | 12 | | A1 | I | 44 | | A1 | J | 29 | | A1 | K | 31 | | A2 | A | 37 | | A2 | B | 45 | | A2 | C | 48 | | A2 | D | 21 | | A2 | E | 20 | | A2 | F | 31 | | A2 | G | 31 | | A2 | H | 23 | | A2 | I | 29 | | A2 | J | 16 | | A2 | K | 32 | | A3 | A | 48 | | A3 | B | 42 | | A3 | C | 20 | | A3 | D | 44 | | A3 | E | 13 | | A3 | F | 20 | | A3 | G | 47 | | A3 | H | 30 | | A3 | I | 15 | | A3 | J | 10 | | A3 | K | 45 | | A4 | A | 22 | | A4 | B | 10 | | A4 | C | 21 | | A4 | D | 50 | | A4 | E | 14 | | A4 | F | 28 | | A4 | G | 34 | | A4 | H | 22 | | A4 | I | 50 | | A4 | J | 28 | | A4 | K | 30 | | volunteer_id | duty_id | assignment_cost | |---|---|---| | A1 | A | 13 | | A1 | B | 18 | | A1 | C | 16 | | A1 | D | 16 | | A1 | E | 18 | | A1 | F | 15 | | A1 | G | 8 | | A1 | H | 21 | | A1 | I | 22 | | A1 | J | 6 | | A1 | K | 13 | | A2 | A | 17 | | A2 | B | 12 | | A2 | C | 15 | | A2 | D | 22 | | A2 | E | 19 | | A2 | F | 19 | | A2 | G | 13 | | A2 | H | 15 | | A2 | I | 14 | | A2 | J | 21 | | A2 | K | 17 | | A3 | A | 7 | | A3 | B | 5 | | A3 | C | 11 | | A3 | D | 6 | | A3 | E | 19 | | A3 | F | 17 | | A3 | G | 12 | | A3 | H | 22 | | A3 | I | 15 | | A3 | J | 17 | | A3 | K | 21 | | A4 | A | 22 | | A4 | B | 5 | | A4 | C | 23 | | A4 | D | 23 | | A4 | E | 16 | | A4 | F | 6 | | A4 | G | 9 | | A4 | H | 25 | | A4 | I | 18 | | A4 | J | 15 | | A4 | K | 22 | The lists below give each volunteer's available hours and every volunteer–duty time and cost entry. Just to keep things tidy, when you send the final assignment back, please use this little JSON shape so it's easy to read and plug into whatever sheet or tool you're using: { ""solution"": [ , , ..., ] } Think of that as a simple list: the solution array gives, in order, the volunteer chosen for each duty (first item → first duty, second → second duty, and so on). The angle-bracket placeholders are just showing the shape — replace each one with the actual volunteer identifier from the instance when you reply. This JSON is just a sketch of the expected shape, not the real answer. All identifiers must be used 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”.","{'resource_consumption': [[45, 50, 50, 41, 50, 35, 50, 12, 44, 29, 31], [37, 45, 48, 21, 20, 31, 31, 23, 29, 16, 32], [48, 42, 20, 44, 13, 20, 47, 30, 15, 10, 45], [22, 10, 21, 50, 14, 28, 34, 22, 50, 28, 30]], 'assignment_costs': [[13, 18, 16, 16, 18, 15, 8, 21, 22, 6, 13], [17, 12, 15, 22, 19, 19, 13, 15, 14, 21, 17], [7, 5, 11, 6, 19, 17, 12, 22, 15, 17, 21], [22, 5, 23, 23, 16, 6, 9, 25, 18, 15, 22]], 'capacities': [68, 68, 68, 68], 'objective': 154.0}","[3, 3, 2, 1, 1, 2, 3, 1, 2, 0, 0]",154.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 11, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 68}, {'agent_id': 'A2', 'capacity': 68}, {'agent_id': 'A3', 'capacity': 68}, {'agent_id': 'A4', 'capacity': 68}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 45}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 50}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 50}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 41}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 50}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 35}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 50}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 12}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 44}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 29}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 37}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 45}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 48}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 21}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 20}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 23}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 29}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 16}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 32}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 48}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 42}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 20}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 44}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 13}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 20}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 47}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 30}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 15}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 10}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 45}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 22}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 10}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 21}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 50}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 14}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 28}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 34}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 22}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 50}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 28}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 30}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 13}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 8}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 21}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 22}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 6}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 13}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 22}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 13}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 14}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 21}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 7}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 5}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 6}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 19}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 12}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 21}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 22}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 23}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 23}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 16}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 6}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 25}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 18}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 15}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 22}]}","['A4', 'A4', 'A3', 'A2', 'A2', 'A3', 'A4', 'A2', 'A3', 'A1', 'A1']",13,markdown_table,names GAP,GAP,"We’re putting together the schedule for restocking: there’s a list of jobs and a crew of associates. Every job must be handed to a single associate (no doubling up and nothing left undone), each job eats up a known portion of an associate’s shift and costs a certain amount in wages if that person does it, and each associate only has a fixed shift length. The goal is to assign jobs so the total wages paid — the sum of the wage cost for each assigned job — is as low as possible without anyone’s assigned job times exceeding their shift. Exact numbers and pairings are shown below. We're listing 4 associates (A1, A2, A3, A4) and 11 jobs (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11) below. | associate_id | shift_length | |---|---| | A1 | 724 | | A2 | 720 | | A3 | 710 | | A4 | 740 | | associate_id | job_id | job_time | |---|---|---| | A1 | 1 | 39 | | A1 | 2 | 17 | | A1 | 3 | 14 | | A1 | 4 | 31 | | A1 | 5 | 49 | | A1 | 6 | 50 | | A1 | 7 | 19 | | A1 | 8 | 32 | | A1 | 9 | 36 | | A1 | 10 | 41 | | A1 | 11 | 27 | | A2 | 1 | 13 | | A2 | 2 | 17 | | A2 | 3 | 34 | | A2 | 4 | 25 | | A2 | 5 | 11 | | A2 | 6 | 31 | | A2 | 7 | 22 | | A2 | 8 | 28 | | A2 | 9 | 23 | | A2 | 10 | 14 | | A2 | 11 | 28 | | A3 | 1 | 30 | | A3 | 2 | 25 | | A3 | 3 | 17 | | A3 | 4 | 45 | | A3 | 5 | 47 | | A3 | 6 | 37 | | A3 | 7 | 13 | | A3 | 8 | 47 | | A3 | 9 | 28 | | A3 | 10 | 42 | | A3 | 11 | 38 | | A4 | 1 | 50 | | A4 | 2 | 47 | | A4 | 3 | 29 | | A4 | 4 | 32 | | A4 | 5 | 50 | | A4 | 6 | 39 | | A4 | 7 | 48 | | A4 | 8 | 42 | | A4 | 9 | 10 | | A4 | 10 | 20 | | A4 | 11 | 48 | | associate_id | job_id | wage_cost | |---|---|---| | A1 | 1 | 25 | | A1 | 2 | 24 | | A1 | 3 | 24 | | A1 | 4 | 25 | | A1 | 5 | 8 | | A1 | 6 | 23 | | A1 | 7 | 5 | | A1 | 8 | 21 | | A1 | 9 | 10 | | A1 | 10 | 16 | | A1 | 11 | 23 | | A2 | 1 | 17 | | A2 | 2 | 17 | | A2 | 3 | 13 | | A2 | 4 | 16 | | A2 | 5 | 11 | | A2 | 6 | 25 | | A2 | 7 | 12 | | A2 | 8 | 15 | | A2 | 9 | 11 | | A2 | 10 | 11 | | A2 | 11 | 5 | | A3 | 1 | 20 | | A3 | 2 | 13 | | A3 | 3 | 16 | | A3 | 4 | 18 | | A3 | 5 | 11 | | A3 | 6 | 10 | | A3 | 7 | 15 | | A3 | 8 | 21 | | A3 | 9 | 16 | | A3 | 10 | 24 | | A3 | 11 | 8 | | A4 | 1 | 24 | | A4 | 2 | 5 | | A4 | 3 | 9 | | A4 | 4 | 6 | | A4 | 5 | 22 | | A4 | 6 | 5 | | A4 | 7 | 17 | | A4 | 8 | 10 | | A4 | 9 | 6 | | A4 | 10 | 25 | | A4 | 11 | 16 | We'll use these 11 jobs and 4 associates to assign every job while minimizing total wages and keeping assigned times within each associate's shift. Also, when you send back the assignment, please stick to this simple JSON shape — just a straight list saying which staff does each job: { ""solution"": [ , , ..., ] } This ""solution"" list is just the jobs in order: the first entry is the staff id for the first job in the instance, the second entry is the staff id for the second job, and so on. Think of it like filling out a short form — which staff handles each job. This is only a sketch of the shape I need, not the actual assignment. Please use the exact identifiers given in the instance input — don't rename them or invent new labels. To 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”.","{'resource_consumption': [[39, 17, 14, 31, 49, 50, 19, 32, 36, 41, 27], [13, 17, 34, 25, 11, 31, 22, 28, 23, 14, 28], [30, 25, 17, 45, 47, 37, 13, 47, 28, 42, 38], [50, 47, 29, 32, 50, 39, 48, 42, 10, 20, 48]], 'assignment_costs': [[25, 24, 24, 25, 8, 23, 5, 21, 10, 16, 23], [17, 17, 13, 16, 11, 25, 12, 15, 11, 11, 5], [20, 13, 16, 18, 11, 10, 15, 21, 16, 24, 8], [24, 5, 9, 6, 22, 5, 17, 10, 6, 25, 16]], 'capacities': [724, 720, 710, 740], 'objective': 87.0}","[1, 3, 3, 3, 0, 3, 0, 3, 3, 1, 1]",87.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 11, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 724}, {'agent_id': 'A2', 'capacity': 720}, {'agent_id': 'A3', 'capacity': 710}, {'agent_id': 'A4', 'capacity': 740}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 14}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 27}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 25}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 37}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 29}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 10}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 48}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 25}, {'agent_id': 'A1', 'task_id': 2, 'cost': 24}, {'agent_id': 'A1', 'task_id': 3, 'cost': 24}, {'agent_id': 'A1', 'task_id': 4, 'cost': 25}, {'agent_id': 'A1', 'task_id': 5, 'cost': 8}, {'agent_id': 'A1', 'task_id': 6, 'cost': 23}, {'agent_id': 'A1', 'task_id': 7, 'cost': 5}, {'agent_id': 'A1', 'task_id': 8, 'cost': 21}, {'agent_id': 'A1', 'task_id': 9, 'cost': 10}, {'agent_id': 'A1', 'task_id': 10, 'cost': 16}, {'agent_id': 'A1', 'task_id': 11, 'cost': 23}, {'agent_id': 'A2', 'task_id': 1, 'cost': 17}, {'agent_id': 'A2', 'task_id': 2, 'cost': 17}, {'agent_id': 'A2', 'task_id': 3, 'cost': 13}, {'agent_id': 'A2', 'task_id': 4, 'cost': 16}, {'agent_id': 'A2', 'task_id': 5, 'cost': 11}, {'agent_id': 'A2', 'task_id': 6, 'cost': 25}, {'agent_id': 'A2', 'task_id': 7, 'cost': 12}, {'agent_id': 'A2', 'task_id': 8, 'cost': 15}, {'agent_id': 'A2', 'task_id': 9, 'cost': 11}, {'agent_id': 'A2', 'task_id': 10, 'cost': 11}, {'agent_id': 'A2', 'task_id': 11, 'cost': 5}, {'agent_id': 'A3', 'task_id': 1, 'cost': 20}, {'agent_id': 'A3', 'task_id': 2, 'cost': 13}, {'agent_id': 'A3', 'task_id': 3, 'cost': 16}, {'agent_id': 'A3', 'task_id': 4, 'cost': 18}, {'agent_id': 'A3', 'task_id': 5, 'cost': 11}, {'agent_id': 'A3', 'task_id': 6, 'cost': 10}, {'agent_id': 'A3', 'task_id': 7, 'cost': 15}, {'agent_id': 'A3', 'task_id': 8, 'cost': 21}, {'agent_id': 'A3', 'task_id': 9, 'cost': 16}, {'agent_id': 'A3', 'task_id': 10, 'cost': 24}, {'agent_id': 'A3', 'task_id': 11, 'cost': 8}, {'agent_id': 'A4', 'task_id': 1, 'cost': 24}, {'agent_id': 'A4', 'task_id': 2, 'cost': 5}, {'agent_id': 'A4', 'task_id': 3, 'cost': 9}, {'agent_id': 'A4', 'task_id': 4, 'cost': 6}, {'agent_id': 'A4', 'task_id': 5, 'cost': 22}, {'agent_id': 'A4', 'task_id': 6, 'cost': 5}, {'agent_id': 'A4', 'task_id': 7, 'cost': 17}, {'agent_id': 'A4', 'task_id': 8, 'cost': 10}, {'agent_id': 'A4', 'task_id': 9, 'cost': 6}, {'agent_id': 'A4', 'task_id': 10, 'cost': 25}, {'agent_id': 'A4', 'task_id': 11, 'cost': 16}]}","['A2', 'A4', 'A4', 'A4', 'A1', 'A4', 'A1', 'A4', 'A4', 'A2', 'A2']",14,markdown_table,1 GAP,GAP,"Many people think printing is simple, but here there’s a list of jobs and several different printers, and every job must go to exactly one machine — no job gets left out or duplicated. For each job on each printer the required run time and the cost are already known, and each printer can only run for a fixed number of minutes. The smart move is the one that lowers the total cost for everything (just add each job’s chosen run cost), provided the total minutes sent to any printer stay within that printer’s available time. The full set of job-by-printer runtimes, prices, and printer capacities is shown below. { ""num_printers"": 5, ""num_jobs"": 14, ""printers"": [ ""A1"", ""A2"", ""A3"", ""A4"", ""A5"" ], ""jobs"": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], ""capacities"": [ { ""printer_id"": ""A1"", ""available_minutes"": 181 }, { ""printer_id"": ""A2"", ""available_minutes"": 178 }, { ""printer_id"": ""A3"", ""available_minutes"": 182 }, { ""printer_id"": ""A4"", ""available_minutes"": 180 }, { ""printer_id"": ""A5"", ""available_minutes"": 177 } ], ""resource"": [ { ""printer_id"": ""A1"", ""job_id"": 0, ""runtime_minutes"": 29 }, { ""printer_id"": ""A1"", ""job_id"": 1, ""runtime_minutes"": 21 }, { ""printer_id"": ""A1"", ""job_id"": 2, ""runtime_minutes"": 37 }, { ""printer_id"": ""A1"", ""job_id"": 3, ""runtime_minutes"": 33 }, { ""printer_id"": ""A1"", ""job_id"": 4, ""runtime_minutes"": 24 }, { ""printer_id"": ""A1"", ""job_id"": 5, ""runtime_minutes"": 11 }, { ""printer_id"": ""A1"", ""job_id"": 6, ""runtime_minutes"": 25 }, { ""printer_id"": ""A1"", ""job_id"": 7, ""runtime_minutes"": 44 }, { ""printer_id"": ""A1"", ""job_id"": 8, ""runtime_minutes"": 39 }, { ""printer_id"": ""A1"", ""job_id"": 9, ""runtime_minutes"": 15 }, { ""printer_id"": ""A1"", ""job_id"": 10, ""runtime_minutes"": 37 }, { ""printer_id"": ""A1"", ""job_id"": 11, ""runtime_minutes"": 49 }, { ""printer_id"": ""A1"", ""job_id"": 12, ""runtime_minutes"": 16 }, { ""printer_id"": ""A1"", ""job_id"": 13, ""runtime_minutes"": 45 }, { ""printer_id"": ""A2"", ""job_id"": 0, ""runtime_minutes"": 18 }, { ""printer_id"": ""A2"", ""job_id"": 1, ""runtime_minutes"": 43 }, { ""printer_id"": ""A2"", ""job_id"": 2, ""runtime_minutes"": 27 }, { ""printer_id"": ""A2"", ""job_id"": 3, ""runtime_minutes"": 21 }, { ""printer_id"": ""A2"", ""job_id"": 4, ""runtime_minutes"": 17 }, { ""printer_id"": ""A2"", ""job_id"": 5, ""runtime_minutes"": 35 }, { ""printer_id"": ""A2"", ""job_id"": 6, ""runtime_minutes"": 22 }, { ""printer_id"": ""A2"", ""job_id"": 7, ""runtime_minutes"": 21 }, { ""printer_id"": ""A2"", ""job_id"": 8, ""runtime_minutes"": 45 }, { ""printer_id"": ""A2"", ""job_id"": 9, ""runtime_minutes"": 43 }, { ""printer_id"": ""A2"", ""job_id"": 10, ""runtime_minutes"": 10 }, { ""printer_id"": ""A2"", ""job_id"": 11, ""runtime_minutes"": 20 }, { ""printer_id"": ""A2"", ""job_id"": 12, ""runtime_minutes"": 33 }, { ""printer_id"": ""A2"", ""job_id"": 13, ""runtime_minutes"": 12 }, { ""printer_id"": ""A3"", ""job_id"": 0, ""runtime_minutes"": 14 }, { ""printer_id"": ""A3"", ""job_id"": 1, ""runtime_minutes"": 14 }, { ""printer_id"": ""A3"", ""job_id"": 2, ""runtime_minutes"": 19 }, { ""printer_id"": ""A3"", ""job_id"": 3, ""runtime_minutes"": 19 }, { ""printer_id"": ""A3"", ""job_id"": 4, ""runtime_minutes"": 44 }, { ""printer_id"": ""A3"", ""job_id"": 5, ""runtime_minutes"": 38 }, { ""printer_id"": ""A3"", ""job_id"": 6, ""runtime_minutes"": 38 }, { ""printer_id"": ""A3"", ""job_id"": 7, ""runtime_minutes"": 37 }, { ""printer_id"": ""A3"", ""job_id"": 8, ""runtime_minutes"": 29 }, { ""printer_id"": ""A3"", ""job_id"": 9, ""runtime_minutes"": 27 }, { ""printer_id"": ""A3"", ""job_id"": 10, ""runtime_minutes"": 21 }, { ""printer_id"": ""A3"", ""job_id"": 11, ""runtime_minutes"": 11 }, { ""printer_id"": ""A3"", ""job_id"": 12, ""runtime_minutes"": 29 }, { ""printer_id"": ""A3"", ""job_id"": 13, ""runtime_minutes"": 36 }, { ""printer_id"": ""A4"", ""job_id"": 0, ""runtime_minutes"": 49 }, { ""printer_id"": ""A4"", ""job_id"": 1, ""runtime_minutes"": 13 }, { ""printer_id"": ""A4"", ""job_id"": 2, ""runtime_minutes"": 23 }, { ""printer_id"": ""A4"", ""job_id"": 3, ""runtime_minutes"": 33 }, { ""printer_id"": ""A4"", ""job_id"": 4, ""runtime_minutes"": 15 }, { ""printer_id"": ""A4"", ""job_id"": 5, ""runtime_minutes"": 16 }, { ""printer_id"": ""A4"", ""job_id"": 6, ""runtime_minutes"": 44 }, { ""printer_id"": ""A4"", ""job_id"": 7, ""runtime_minutes"": 42 }, { ""printer_id"": ""A4"", ""job_id"": 8, ""runtime_minutes"": 48 }, { ""printer_id"": ""A4"", ""job_id"": 9, ""runtime_minutes"": 45 }, { ""printer_id"": ""A4"", ""job_id"": 10, ""runtime_minutes"": 21 }, { ""printer_id"": ""A4"", ""job_id"": 11, ""runtime_minutes"": 33 }, { ""printer_id"": ""A4"", ""job_id"": 12, ""runtime_minutes"": 28 }, { ""printer_id"": ""A4"", ""job_id"": 13, ""runtime_minutes"": 28 }, { ""printer_id"": ""A5"", ""job_id"": 0, ""runtime_minutes"": 44 }, { ""printer_id"": ""A5"", ""job_id"": 1, ""runtime_minutes"": 30 }, { ""printer_id"": ""A5"", ""job_id"": 2, ""runtime_minutes"": 12 }, { ""printer_id"": ""A5"", ""job_id"": 3, ""runtime_minutes"": 36 }, { ""printer_id"": ""A5"", ""job_id"": 4, ""runtime_minutes"": 34 }, { ""printer_id"": ""A5"", ""job_id"": 5, ""runtime_minutes"": 26 }, { ""printer_id"": ""A5"", ""job_id"": 6, ""runtime_minutes"": 11 }, { ""printer_id"": ""A5"", ""job_id"": 7, ""runtime_minutes"": 50 }, { ""printer_id"": ""A5"", ""job_id"": 8, ""runtime_minutes"": 12 }, { ""printer_id"": ""A5"", ""job_id"": 9, ""runtime_minutes"": 10 }, { ""printer_id"": ""A5"", ""job_id"": 10, ""runtime_minutes"": 17 }, { ""printer_id"": ""A5"", ""job_id"": 11, ""runtime_minutes"": 13 }, { ""printer_id"": ""A5"", ""job_id"": 12, ""runtime_minutes"": 45 }, { ""printer_id"": ""A5"", ""job_id"": 13, ""runtime_minutes"": 11 } ], ""cost"": [ { ""printer_id"": ""A1"", ""job_id"": 0, ""run_cost"": 22 }, { ""printer_id"": ""A1"", ""job_id"": 1, ""run_cost"": 12 }, { ""printer_id"": ""A1"", ""job_id"": 2, ""run_cost"": 7 }, { ""printer_id"": ""A1"", ""job_id"": 3, ""run_cost"": 8 }, { ""printer_id"": ""A1"", ""job_id"": 4, ""run_cost"": 23 }, { ""printer_id"": ""A1"", ""job_id"": 5, ""run_cost"": 11 }, { ""printer_id"": ""A1"", ""job_id"": 6, ""run_cost"": 11 }, { ""printer_id"": ""A1"", ""job_id"": 7, ""run_cost"": 23 }, { ""printer_id"": ""A1"", ""job_id"": 8, ""run_cost"": 10 }, { ""printer_id"": ""A1"", ""job_id"": 9, ""run_cost"": 6 }, { ""printer_id"": ""A1"", ""job_id"": 10, ""run_cost"": 21 }, { ""printer_id"": ""A1"", ""job_id"": 11, ""run_cost"": 11 }, { ""printer_id"": ""A1"", ""job_id"": 12, ""run_cost"": 8 }, { ""printer_id"": ""A1"", ""job_id"": 13, ""run_cost"": 18 }, { ""printer_id"": ""A2"", ""job_id"": 0, ""run_cost"": 15 }, { ""printer_id"": ""A2"", ""job_id"": 1, ""run_cost"": 8 }, { ""printer_id"": ""A2"", ""job_id"": 2, ""run_cost"": 12 }, { ""printer_id"": ""A2"", ""job_id"": 3, ""run_cost"": 8 }, { ""printer_id"": ""A2"", ""job_id"": 4, ""run_cost"": 6 }, { ""printer_id"": ""A2"", ""job_id"": 5, ""run_cost"": 19 }, { ""printer_id"": ""A2"", ""job_id"": 6, ""run_cost"": 18 }, { ""printer_id"": ""A2"", ""job_id"": 7, ""run_cost"": 11 }, { ""printer_id"": ""A2"", ""job_id"": 8, ""run_cost"": 8 }, { ""printer_id"": ""A2"", ""job_id"": 9, ""run_cost"": 12 }, { ""printer_id"": ""A2"", ""job_id"": 10, ""run_cost"": 10 }, { ""printer_id"": ""A2"", ""job_id"": 11, ""run_cost"": 9 }, { ""printer_id"": ""A2"", ""job_id"": 12, ""run_cost"": 17 }, { ""printer_id"": ""A2"", ""job_id"": 13, ""run_cost"": 17 }, { ""printer_id"": ""A3"", ""job_id"": 0, ""run_cost"": 14 }, { ""printer_id"": ""A3"", ""job_id"": 1, ""run_cost"": 5 }, { ""printer_id"": ""A3"", ""job_id"": 2, ""run_cost"": 7 }, { ""printer_id"": ""A3"", ""job_id"": 3, ""run_cost"": 22 }, { ""printer_id"": ""A3"", ""job_id"": 4, ""run_cost"": 7 }, { ""printer_id"": ""A3"", ""job_id"": 5, ""run_cost"": 19 }, { ""printer_id"": ""A3"", ""job_id"": 6, ""run_cost"": 16 }, { ""printer_id"": ""A3"", ""job_id"": 7, ""run_cost"": 13 }, { ""printer_id"": ""A3"", ""job_id"": 8, ""run_cost"": 5 }, { ""printer_id"": ""A3"", ""job_id"": 9, ""run_cost"": 7 }, { ""printer_id"": ""A3"", ""job_id"": 10, ""run_cost"": 25 }, { ""printer_id"": ""A3"", ""job_id"": 11, ""run_cost"": 9 }, { ""printer_id"": ""A3"", ""job_id"": 12, ""run_cost"": 25 }, { ""printer_id"": ""A3"", ""job_id"": 13, ""run_cost"": 16 }, { ""printer_id"": ""A4"", ""job_id"": 0, ""run_cost"": 9 }, { ""printer_id"": ""A4"", ""job_id"": 1, ""run_cost"": 14 }, { ""printer_id"": ""A4"", ""job_id"": 2, ""run_cost"": 5 }, { ""printer_id"": ""A4"", ""job_id"": 3, ""run_cost"": 7 }, { ""printer_id"": ""A4"", ""job_id"": 4, ""run_cost"": 25 }, { ""printer_id"": ""A4"", ""job_id"": 5, ""run_cost"": 9 }, { ""printer_id"": ""A4"", ""job_id"": 6, ""run_cost"": 10 }, { ""printer_id"": ""A4"", ""job_id"": 7, ""run_cost"": 23 }, { ""printer_id"": ""A4"", ""job_id"": 8, ""run_cost"": 13 }, { ""printer_id"": ""A4"", ""job_id"": 9, ""run_cost"": 25 }, { ""printer_id"": ""A4"", ""job_id"": 10, ""run_cost"": 11 }, { ""printer_id"": ""A4"", ""job_id"": 11, ""run_cost"": 21 }, { ""printer_id"": ""A4"", ""job_id"": 12, ""run_cost"": 7 }, { ""printer_id"": ""A4"", ""job_id"": 13, ""run_cost"": 6 }, { ""printer_id"": ""A5"", ""job_id"": 0, ""run_cost"": 16 }, { ""printer_id"": ""A5"", ""job_id"": 1, ""run_cost"": 6 }, { ""printer_id"": ""A5"", ""job_id"": 2, ""run_cost"": 21 }, { ""printer_id"": ""A5"", ""job_id"": 3, ""run_cost"": 18 }, { ""printer_id"": ""A5"", ""job_id"": 4, ""run_cost"": 22 }, { ""printer_id"": ""A5"", ""job_id"": 5, ""run_cost"": 12 }, { ""printer_id"": ""A5"", ""job_id"": 6, ""run_cost"": 7 }, { ""printer_id"": ""A5"", ""job_id"": 7, ""run_cost"": 25 }, { ""printer_id"": ""A5"", ""job_id"": 8, ""run_cost"": 12 }, { ""printer_id"": ""A5"", ""job_id"": 9, ""run_cost"": 17 }, { ""printer_id"": ""A5"", ""job_id"": 10, ""run_cost"": 13 }, { ""printer_id"": ""A5"", ""job_id"": 11, ""run_cost"": 7 }, { ""printer_id"": ""A5"", ""job_id"": 12, ""run_cost"": 13 }, { ""printer_id"": ""A5"", ""job_id"": 13, ""run_cost"": 8 } ] } Also, when you send the assignment back, keep it nice and simple in that little JSON shape below — it just lists which printer each job goes to in order. { ""solution"": [ , , ..., ] } The ""solution"" array is just a list: one entry per job, in the same order as the job list above, and each entry is the printer identifier you picked for that job. Think of it like filling out a short form that says, for job 1 send it to printer X, for job 2 send it to printer Y, and so on. This block is just a sketch of the shape I expect you to follow, not the actual assignment. Please use the exact identifiers from the instance input — don't rename them and don't invent new labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[29, 21, 37, 33, 24, 11, 25, 44, 39, 15, 37, 49, 16, 45], [18, 43, 27, 21, 17, 35, 22, 21, 45, 43, 10, 20, 33, 12], [14, 14, 19, 19, 44, 38, 38, 37, 29, 27, 21, 11, 29, 36], [49, 13, 23, 33, 15, 16, 44, 42, 48, 45, 21, 33, 28, 28], [44, 30, 12, 36, 34, 26, 11, 50, 12, 10, 17, 13, 45, 11]], 'assignment_costs': [[22, 12, 7, 8, 23, 11, 11, 23, 10, 6, 21, 11, 8, 18], [15, 8, 12, 8, 6, 19, 18, 11, 8, 12, 10, 9, 17, 17], [14, 5, 7, 22, 7, 19, 16, 13, 5, 7, 25, 9, 25, 16], [9, 14, 5, 7, 25, 9, 10, 23, 13, 25, 11, 21, 7, 6], [16, 6, 21, 18, 22, 12, 7, 25, 12, 17, 13, 7, 13, 8]], 'capacities': [181, 178, 182, 180, 177], 'objective': 100.0}","[3, 2, 3, 3, 1, 3, 4, 1, 2, 0, 1, 4, 3, 3]",100.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 181}, {'agent_id': 'A2', 'capacity': 178}, {'agent_id': 'A3', 'capacity': 182}, {'agent_id': 'A4', 'capacity': 180}, {'agent_id': 'A5', 'capacity': 177}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 44}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 18}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 43}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 27}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 35}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 43}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 38}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 38}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 37}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 36}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 44}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 12}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 34}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 26}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 11}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 12}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 10}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 17}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 13}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 45}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 11}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 22}, {'agent_id': 'A1', 'task_id': 1, 'cost': 12}, {'agent_id': 'A1', 'task_id': 2, 'cost': 7}, {'agent_id': 'A1', 'task_id': 3, 'cost': 8}, {'agent_id': 'A1', 'task_id': 4, 'cost': 23}, {'agent_id': 'A1', 'task_id': 5, 'cost': 11}, {'agent_id': 'A1', 'task_id': 6, 'cost': 11}, {'agent_id': 'A1', 'task_id': 7, 'cost': 23}, {'agent_id': 'A1', 'task_id': 8, 'cost': 10}, {'agent_id': 'A1', 'task_id': 9, 'cost': 6}, {'agent_id': 'A1', 'task_id': 10, 'cost': 21}, {'agent_id': 'A1', 'task_id': 11, 'cost': 11}, {'agent_id': 'A1', 'task_id': 12, 'cost': 8}, {'agent_id': 'A1', 'task_id': 13, 'cost': 18}, {'agent_id': 'A2', 'task_id': 0, 'cost': 15}, {'agent_id': 'A2', 'task_id': 1, 'cost': 8}, {'agent_id': 'A2', 'task_id': 2, 'cost': 12}, {'agent_id': 'A2', 'task_id': 3, 'cost': 8}, {'agent_id': 'A2', 'task_id': 4, 'cost': 6}, {'agent_id': 'A2', 'task_id': 5, 'cost': 19}, {'agent_id': 'A2', 'task_id': 6, 'cost': 18}, {'agent_id': 'A2', 'task_id': 7, 'cost': 11}, {'agent_id': 'A2', 'task_id': 8, 'cost': 8}, {'agent_id': 'A2', 'task_id': 9, 'cost': 12}, {'agent_id': 'A2', 'task_id': 10, 'cost': 10}, {'agent_id': 'A2', 'task_id': 11, 'cost': 9}, {'agent_id': 'A2', 'task_id': 12, 'cost': 17}, {'agent_id': 'A2', 'task_id': 13, 'cost': 17}, {'agent_id': 'A3', 'task_id': 0, 'cost': 14}, {'agent_id': 'A3', 'task_id': 1, 'cost': 5}, {'agent_id': 'A3', 'task_id': 2, 'cost': 7}, {'agent_id': 'A3', 'task_id': 3, 'cost': 22}, {'agent_id': 'A3', 'task_id': 4, 'cost': 7}, {'agent_id': 'A3', 'task_id': 5, 'cost': 19}, {'agent_id': 'A3', 'task_id': 6, 'cost': 16}, {'agent_id': 'A3', 'task_id': 7, 'cost': 13}, {'agent_id': 'A3', 'task_id': 8, 'cost': 5}, {'agent_id': 'A3', 'task_id': 9, 'cost': 7}, {'agent_id': 'A3', 'task_id': 10, 'cost': 25}, {'agent_id': 'A3', 'task_id': 11, 'cost': 9}, {'agent_id': 'A3', 'task_id': 12, 'cost': 25}, {'agent_id': 'A3', 'task_id': 13, 'cost': 16}, {'agent_id': 'A4', 'task_id': 0, 'cost': 9}, {'agent_id': 'A4', 'task_id': 1, 'cost': 14}, {'agent_id': 'A4', 'task_id': 2, 'cost': 5}, {'agent_id': 'A4', 'task_id': 3, 'cost': 7}, {'agent_id': 'A4', 'task_id': 4, 'cost': 25}, {'agent_id': 'A4', 'task_id': 5, 'cost': 9}, {'agent_id': 'A4', 'task_id': 6, 'cost': 10}, {'agent_id': 'A4', 'task_id': 7, 'cost': 23}, {'agent_id': 'A4', 'task_id': 8, 'cost': 13}, {'agent_id': 'A4', 'task_id': 9, 'cost': 25}, {'agent_id': 'A4', 'task_id': 10, 'cost': 11}, {'agent_id': 'A4', 'task_id': 11, 'cost': 21}, {'agent_id': 'A4', 'task_id': 12, 'cost': 7}, {'agent_id': 'A4', 'task_id': 13, 'cost': 6}, {'agent_id': 'A5', 'task_id': 0, 'cost': 16}, {'agent_id': 'A5', 'task_id': 1, 'cost': 6}, {'agent_id': 'A5', 'task_id': 2, 'cost': 21}, {'agent_id': 'A5', 'task_id': 3, 'cost': 18}, {'agent_id': 'A5', 'task_id': 4, 'cost': 22}, {'agent_id': 'A5', 'task_id': 5, 'cost': 12}, {'agent_id': 'A5', 'task_id': 6, 'cost': 7}, {'agent_id': 'A5', 'task_id': 7, 'cost': 25}, {'agent_id': 'A5', 'task_id': 8, 'cost': 12}, {'agent_id': 'A5', 'task_id': 9, 'cost': 17}, {'agent_id': 'A5', 'task_id': 10, 'cost': 13}, {'agent_id': 'A5', 'task_id': 11, 'cost': 7}, {'agent_id': 'A5', 'task_id': 12, 'cost': 13}, {'agent_id': 'A5', 'task_id': 13, 'cost': 8}]}","['A4', 'A3', 'A4', 'A4', 'A2', 'A4', 'A5', 'A2', 'A3', 'A1', 'A2', 'A5', 'A4', 'A4']",15,json,0 GAP,GAP,"Back when the office was scheduling a conference, there was the familiar juggling act: dozens of documents to copy, several copy centers to choose from, and each center both charges differently and burns through a different number of pages for the same document. Each document needs to be printed in full at a single center (no halves, no duplicates), and each center only has a limited pile of paper to use. The trick is to assign every document to one center so none of the centers runs out of paper, and the total bill — the sum of all selected center charges — is kept as small as possible. The detailed options and numbers are shown below. There were 3 copy centers (A1, A2, A3) and 11 documents (A, B, C, D, E, F, G, H, I, J, K). Copy center A1 had 671 pages of paper available. Copy center A2 had 671 pages of paper available. Copy center A3 had 671 pages of paper available. At copy center A1, printing document A required 43 pages and would cost 18. At copy center A1, printing document B required 35 pages and would cost 23. At copy center A1, printing document C required 10 pages and would cost 19. At copy center A1, printing document D required 27 pages and would cost 11. At copy center A1, printing document E required 38 pages and would cost 16. At copy center A1, printing document F required 48 pages and would cost 24. At copy center A1, printing document G required 29 pages and would cost 18. At copy center A1, printing document H required 16 pages and would cost 16. At copy center A1, printing document I required 49 pages and would cost 10. At copy center A1, printing document J required 21 pages and would cost 17. At copy center A1, printing document K required 28 pages and would cost 24. At copy center A2, printing document A required 24 pages and would cost 12. At copy center A2, printing document B required 47 pages and would cost 8. At copy center A2, printing document C required 20 pages and would cost 10. At copy center A2, printing document D required 50 pages and would cost 7. At copy center A2, printing document E required 21 pages and would cost 23. At copy center A2, printing document F required 24 pages and would cost 8. At copy center A2, printing document G required 39 pages and would cost 9. At copy center A2, printing document H required 43 pages and would cost 5. At copy center A2, printing document I required 34 pages and would cost 6. At copy center A2, printing document J required 18 pages and would cost 5. At copy center A2, printing document K required 30 pages and would cost 16. At copy center A3, printing document A required 40 pages and would cost 20. At copy center A3, printing document B required 17 pages and would cost 15. At copy center A3, printing document C required 46 pages and would cost 22. At copy center A3, printing document D required 24 pages and would cost 14. At copy center A3, printing document E required 33 pages and would cost 11. At copy center A3, printing document F required 39 pages and would cost 21. At copy center A3, printing document G required 17 pages and would cost 20. At copy center A3, printing document H required 39 pages and would cost 23. At copy center A3, printing document I required 29 pages and would cost 5. At copy center A3, printing document J required 19 pages and would cost 5. At copy center A3, printing document K required 13 pages and would cost 12. The goal was to assign every document so no center ran out of paper and the total bill was minimized. If you'd like the result in a neat, machine-friendly form, I usually put the assignment into a tiny JSON that just lists which copy center handles each document in order. Here's the shape I'll follow: { ""solution"": [ , , ..., ] } That array lists documents in the same order they're shown in the instance, and each placeholder is where you'd put the exact ID of the copy center that should print that document. Think of it like a simple form: one slot per document, filled with the chosen center. This JSON is just a sketch of the expected shape, not the actual assignment — I'll fill in the real center IDs based on the instance when solving. Please use the identifiers exactly as they appear in the instance input — don't rename them or invent new labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[43, 35, 10, 27, 38, 48, 29, 16, 49, 21, 28], [24, 47, 20, 50, 21, 24, 39, 43, 34, 18, 30], [40, 17, 46, 24, 33, 39, 17, 39, 29, 19, 13]], 'assignment_costs': [[18, 23, 19, 11, 16, 24, 18, 16, 10, 17, 24], [12, 8, 10, 7, 23, 8, 9, 5, 6, 5, 16], [20, 15, 22, 14, 11, 21, 20, 23, 5, 5, 12]], 'capacities': [671, 671, 671], 'objective': 92.0}","[1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2]",92.0,"{'problem_type': 'GAP', 'num_agents': 3, 'num_tasks': 11, 'agents': ['A1', 'A2', 'A3'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 671}, {'agent_id': 'A2', 'capacity': 671}, {'agent_id': 'A3', 'capacity': 671}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 43}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 35}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 10}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 27}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 38}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 48}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 29}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 16}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 49}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 21}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 28}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 47}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 20}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 50}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 21}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 39}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 43}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 34}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 18}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 30}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 40}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 17}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 46}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 24}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 39}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 17}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 39}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 29}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 19}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 13}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 23}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 19}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 11}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 24}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 10}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 17}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 24}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 8}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 10}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 7}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 8}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 9}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 5}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 6}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 5}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 16}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 14}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 23}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 5}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 5}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 12}]}","['A2', 'A2', 'A2', 'A2', 'A3', 'A2', 'A2', 'A2', 'A3', 'A3', 'A3']",16,nl,names GAP,GAP,"There's a pile of care appointments waiting to be handed out, and each one has to land with a single aide. For every possible assignment there’s a clear time hit on the aide’s schedule and a dollar (or points) cost attached. Each aide has a set amount of time they can work, so assignments can’t push anyone past their available hours, and every appointment must be assigned exactly once. The way to compare different schedules is straightforward: total up the cost for each appointment under the people chosen, and pick the plan with the smallest total. The exact figures are listed below. { ""num_aides"": 5, ""num_appointments"": 13, ""aides"": [ ""A1"", ""A2"", ""A3"", ""A4"", ""A5"" ], ""appointments"": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], ""capacities"": [ { ""aide_id"": ""A1"", ""available_time"": 221 }, { ""aide_id"": ""A2"", ""available_time"": 224 }, { ""aide_id"": ""A3"", ""available_time"": 254 }, { ""aide_id"": ""A4"", ""available_time"": 235 }, { ""aide_id"": ""A5"", ""available_time"": 232 } ], ""resource"": [ { ""aide_id"": ""A1"", ""appointment_id"": 0, ""time_required"": 40 }, { ""aide_id"": ""A1"", ""appointment_id"": 1, ""time_required"": 18 }, { ""aide_id"": ""A1"", ""appointment_id"": 2, ""time_required"": 41 }, { ""aide_id"": ""A1"", ""appointment_id"": 3, ""time_required"": 48 }, { ""aide_id"": ""A1"", ""appointment_id"": 4, ""time_required"": 20 }, { ""aide_id"": ""A1"", ""appointment_id"": 5, ""time_required"": 19 }, { ""aide_id"": ""A1"", ""appointment_id"": 6, ""time_required"": 37 }, { ""aide_id"": ""A1"", ""appointment_id"": 7, ""time_required"": 48 }, { ""aide_id"": ""A1"", ""appointment_id"": 8, ""time_required"": 42 }, { ""aide_id"": ""A1"", ""appointment_id"": 9, ""time_required"": 15 }, { ""aide_id"": ""A1"", ""appointment_id"": 10, ""time_required"": 21 }, { ""aide_id"": ""A1"", ""appointment_id"": 11, ""time_required"": 38 }, { ""aide_id"": ""A1"", ""appointment_id"": 12, ""time_required"": 49 }, { ""aide_id"": ""A2"", ""appointment_id"": 0, ""time_required"": 34 }, { ""aide_id"": ""A2"", ""appointment_id"": 1, ""time_required"": 43 }, { ""aide_id"": ""A2"", ""appointment_id"": 2, ""time_required"": 21 }, { ""aide_id"": ""A2"", ""appointment_id"": 3, ""time_required"": 36 }, { ""aide_id"": ""A2"", ""appointment_id"": 4, ""time_required"": 13 }, { ""aide_id"": ""A2"", ""appointment_id"": 5, ""time_required"": 41 }, { ""aide_id"": ""A2"", ""appointment_id"": 6, ""time_required"": 16 }, { ""aide_id"": ""A2"", ""appointment_id"": 7, ""time_required"": 21 }, { ""aide_id"": ""A2"", ""appointment_id"": 8, ""time_required"": 47 }, { ""aide_id"": ""A2"", ""appointment_id"": 9, ""time_required"": 14 }, { ""aide_id"": ""A2"", ""appointment_id"": 10, ""time_required"": 39 }, { ""aide_id"": ""A2"", ""appointment_id"": 11, ""time_required"": 24 }, { ""aide_id"": ""A2"", ""appointment_id"": 12, ""time_required"": 24 }, { ""aide_id"": ""A3"", ""appointment_id"": 0, ""time_required"": 13 }, { ""aide_id"": ""A3"", ""appointment_id"": 1, ""time_required"": 49 }, { ""aide_id"": ""A3"", ""appointment_id"": 2, ""time_required"": 17 }, { ""aide_id"": ""A3"", ""appointment_id"": 3, ""time_required"": 47 }, { ""aide_id"": ""A3"", ""appointment_id"": 4, ""time_required"": 47 }, { ""aide_id"": ""A3"", ""appointment_id"": 5, ""time_required"": 48 }, { ""aide_id"": ""A3"", ""appointment_id"": 6, ""time_required"": 33 }, { ""aide_id"": ""A3"", ""appointment_id"": 7, ""time_required"": 17 }, { ""aide_id"": ""A3"", ""appointment_id"": 8, ""time_required"": 23 }, { ""aide_id"": ""A3"", ""appointment_id"": 9, ""time_required"": 49 }, { ""aide_id"": ""A3"", ""appointment_id"": 10, ""time_required"": 18 }, { ""aide_id"": ""A3"", ""appointment_id"": 11, ""time_required"": 13 }, { ""aide_id"": ""A3"", ""appointment_id"": 12, ""time_required"": 23 }, { ""aide_id"": ""A4"", ""appointment_id"": 0, ""time_required"": 31 }, { ""aide_id"": ""A4"", ""appointment_id"": 1, ""time_required"": 43 }, { ""aide_id"": ""A4"", ""appointment_id"": 2, ""time_required"": 40 }, { ""aide_id"": ""A4"", ""appointment_id"": 3, ""time_required"": 23 }, { ""aide_id"": ""A4"", ""appointment_id"": 4, ""time_required"": 11 }, { ""aide_id"": ""A4"", ""appointment_id"": 5, ""time_required"": 20 }, { ""aide_id"": ""A4"", ""appointment_id"": 6, ""time_required"": 44 }, { ""aide_id"": ""A4"", ""appointment_id"": 7, ""time_required"": 46 }, { ""aide_id"": ""A4"", ""appointment_id"": 8, ""time_required"": 42 }, { ""aide_id"": ""A4"", ""appointment_id"": 9, ""time_required"": 39 }, { ""aide_id"": ""A4"", ""appointment_id"": 10, ""time_required"": 40 }, { ""aide_id"": ""A4"", ""appointment_id"": 11, ""time_required"": 37 }, { ""aide_id"": ""A4"", ""appointment_id"": 12, ""time_required"": 27 }, { ""aide_id"": ""A5"", ""appointment_id"": 0, ""time_required"": 28 }, { ""aide_id"": ""A5"", ""appointment_id"": 1, ""time_required"": 49 }, { ""aide_id"": ""A5"", ""appointment_id"": 2, ""time_required"": 41 }, { ""aide_id"": ""A5"", ""appointment_id"": 3, ""time_required"": 28 }, { ""aide_id"": ""A5"", ""appointment_id"": 4, ""time_required"": 41 }, { ""aide_id"": ""A5"", ""appointment_id"": 5, ""time_required"": 15 }, { ""aide_id"": ""A5"", ""appointment_id"": 6, ""time_required"": 47 }, { ""aide_id"": ""A5"", ""appointment_id"": 7, ""time_required"": 36 }, { ""aide_id"": ""A5"", ""appointment_id"": 8, ""time_required"": 13 }, { ""aide_id"": ""A5"", ""appointment_id"": 9, ""time_required"": 37 }, { ""aide_id"": ""A5"", ""appointment_id"": 10, ""time_required"": 16 }, { ""aide_id"": ""A5"", ""appointment_id"": 11, ""time_required"": 45 }, { ""aide_id"": ""A5"", ""appointment_id"": 12, ""time_required"": 23 } ], ""cost"": [ { ""aide_id"": ""A1"", ""appointment_id"": 0, ""assignment_cost"": 12 }, { ""aide_id"": ""A1"", ""appointment_id"": 1, ""assignment_cost"": 6 }, { ""aide_id"": ""A1"", ""appointment_id"": 2, ""assignment_cost"": 7 }, { ""aide_id"": ""A1"", ""appointment_id"": 3, ""assignment_cost"": 25 }, { ""aide_id"": ""A1"", ""appointment_id"": 4, ""assignment_cost"": 12 }, { ""aide_id"": ""A1"", ""appointment_id"": 5, ""assignment_cost"": 5 }, { ""aide_id"": ""A1"", ""appointment_id"": 6, ""assignment_cost"": 24 }, { ""aide_id"": ""A1"", ""appointment_id"": 7, ""assignment_cost"": 15 }, { ""aide_id"": ""A1"", ""appointment_id"": 8, ""assignment_cost"": 10 }, { ""aide_id"": ""A1"", ""appointment_id"": 9, ""assignment_cost"": 11 }, { ""aide_id"": ""A1"", ""appointment_id"": 10, ""assignment_cost"": 11 }, { ""aide_id"": ""A1"", ""appointment_id"": 11, ""assignment_cost"": 8 }, { ""aide_id"": ""A1"", ""appointment_id"": 12, ""assignment_cost"": 20 }, { ""aide_id"": ""A2"", ""appointment_id"": 0, ""assignment_cost"": 10 }, { ""aide_id"": ""A2"", ""appointment_id"": 1, ""assignment_cost"": 5 }, { ""aide_id"": ""A2"", ""appointment_id"": 2, ""assignment_cost"": 7 }, { ""aide_id"": ""A2"", ""appointment_id"": 3, ""assignment_cost"": 6 }, { ""aide_id"": ""A2"", ""appointment_id"": 4, ""assignment_cost"": 15 }, { ""aide_id"": ""A2"", ""appointment_id"": 5, ""assignment_cost"": 9 }, { ""aide_id"": ""A2"", ""appointment_id"": 6, ""assignment_cost"": 6 }, { ""aide_id"": ""A2"", ""appointment_id"": 7, ""assignment_cost"": 12 }, { ""aide_id"": ""A2"", ""appointment_id"": 8, ""assignment_cost"": 7 }, { ""aide_id"": ""A2"", ""appointment_id"": 9, ""assignment_cost"": 20 }, { ""aide_id"": ""A2"", ""appointment_id"": 10, ""assignment_cost"": 18 }, { ""aide_id"": ""A2"", ""appointment_id"": 11, ""assignment_cost"": 15 }, { ""aide_id"": ""A2"", ""appointment_id"": 12, ""assignment_cost"": 18 }, { ""aide_id"": ""A3"", ""appointment_id"": 0, ""assignment_cost"": 20 }, { ""aide_id"": ""A3"", ""appointment_id"": 1, ""assignment_cost"": 17 }, { ""aide_id"": ""A3"", ""appointment_id"": 2, ""assignment_cost"": 22 }, { ""aide_id"": ""A3"", ""appointment_id"": 3, ""assignment_cost"": 25 }, { ""aide_id"": ""A3"", ""appointment_id"": 4, ""assignment_cost"": 8 }, { ""aide_id"": ""A3"", ""appointment_id"": 5, ""assignment_cost"": 12 }, { ""aide_id"": ""A3"", ""appointment_id"": 6, ""assignment_cost"": 17 }, { ""aide_id"": ""A3"", ""appointment_id"": 7, ""assignment_cost"": 14 }, { ""aide_id"": ""A3"", ""appointment_id"": 8, ""assignment_cost"": 12 }, { ""aide_id"": ""A3"", ""appointment_id"": 9, ""assignment_cost"": 14 }, { ""aide_id"": ""A3"", ""appointment_id"": 10, ""assignment_cost"": 7 }, { ""aide_id"": ""A3"", ""appointment_id"": 11, ""assignment_cost"": 6 }, { ""aide_id"": ""A3"", ""appointment_id"": 12, ""assignment_cost"": 24 }, { ""aide_id"": ""A4"", ""appointment_id"": 0, ""assignment_cost"": 18 }, { ""aide_id"": ""A4"", ""appointment_id"": 1, ""assignment_cost"": 17 }, { ""aide_id"": ""A4"", ""appointment_id"": 2, ""assignment_cost"": 22 }, { ""aide_id"": ""A4"", ""appointment_id"": 3, ""assignment_cost"": 23 }, { ""aide_id"": ""A4"", ""appointment_id"": 4, ""assignment_cost"": 14 }, { ""aide_id"": ""A4"", ""appointment_id"": 5, ""assignment_cost"": 9 }, { ""aide_id"": ""A4"", ""appointment_id"": 6, ""assignment_cost"": 5 }, { ""aide_id"": ""A4"", ""appointment_id"": 7, ""assignment_cost"": 15 }, { ""aide_id"": ""A4"", ""appointment_id"": 8, ""assignment_cost"": 23 }, { ""aide_id"": ""A4"", ""appointment_id"": 9, ""assignment_cost"": 21 }, { ""aide_id"": ""A4"", ""appointment_id"": 10, ""assignment_cost"": 9 }, { ""aide_id"": ""A4"", ""appointment_id"": 11, ""assignment_cost"": 7 }, { ""aide_id"": ""A4"", ""appointment_id"": 12, ""assignment_cost"": 16 }, { ""aide_id"": ""A5"", ""appointment_id"": 0, ""assignment_cost"": 23 }, { ""aide_id"": ""A5"", ""appointment_id"": 1, ""assignment_cost"": 12 }, { ""aide_id"": ""A5"", ""appointment_id"": 2, ""assignment_cost"": 15 }, { ""aide_id"": ""A5"", ""appointment_id"": 3, ""assignment_cost"": 17 }, { ""aide_id"": ""A5"", ""appointment_id"": 4, ""assignment_cost"": 9 }, { ""aide_id"": ""A5"", ""appointment_id"": 5, ""assignment_cost"": 6 }, { ""aide_id"": ""A5"", ""appointment_id"": 6, ""assignment_cost"": 25 }, { ""aide_id"": ""A5"", ""appointment_id"": 7, ""assignment_cost"": 15 }, { ""aide_id"": ""A5"", ""appointment_id"": 8, ""assignment_cost"": 17 }, { ""aide_id"": ""A5"", ""appointment_id"": 9, ""assignment_cost"": 10 }, { ""aide_id"": ""A5"", ""appointment_id"": 10, ""assignment_cost"": 18 }, { ""aide_id"": ""A5"", ""appointment_id"": 11, ""assignment_cost"": 25 }, { ""aide_id"": ""A5"", ""appointment_id"": 12, ""assignment_cost"": 5 } ] } Oh, and when you send the assignment back, it helps to use a little JSON snippet so it's easy to read and check. Something casual like this works: { ""solution"": [ , , ..., ] } This just means: the ""solution"" field is a list, and each entry is the ID of the aide you picked for that appointment in order — first list entry for the first appointment, second for the second, and so on. It's just a sketch of the expected shape, not the actual answer. Please make sure to use the exact identifiers from the instance input — don't rename them or invent new labels. For example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[40, 18, 41, 48, 20, 19, 37, 48, 42, 15, 21, 38, 49], [34, 43, 21, 36, 13, 41, 16, 21, 47, 14, 39, 24, 24], [13, 49, 17, 47, 47, 48, 33, 17, 23, 49, 18, 13, 23], [31, 43, 40, 23, 11, 20, 44, 46, 42, 39, 40, 37, 27], [28, 49, 41, 28, 41, 15, 47, 36, 13, 37, 16, 45, 23]], 'assignment_costs': [[12, 6, 7, 25, 12, 5, 24, 15, 10, 11, 11, 8, 20], [10, 5, 7, 6, 15, 9, 6, 12, 7, 20, 18, 15, 18], [20, 17, 22, 25, 8, 12, 17, 14, 12, 14, 7, 6, 24], [18, 17, 22, 23, 14, 9, 5, 15, 23, 21, 9, 7, 16], [23, 12, 15, 17, 9, 6, 25, 15, 17, 10, 18, 25, 5]], 'capacities': [221, 224, 254, 235, 232], 'objective': 93.0}","[1, 1, 1, 1, 2, 0, 3, 1, 1, 4, 2, 2, 4]",93.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 13, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 221}, {'agent_id': 'A2', 'capacity': 224}, {'agent_id': 'A3', 'capacity': 254}, {'agent_id': 'A4', 'capacity': 235}, {'agent_id': 'A5', 'capacity': 232}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 40}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 18}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 49}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 43}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 23}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 18}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 27}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 49}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 41}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 41}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 15}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 47}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 16}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 45}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 23}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 12}, {'agent_id': 'A1', 'task_id': 1, 'cost': 6}, {'agent_id': 'A1', 'task_id': 2, 'cost': 7}, {'agent_id': 'A1', 'task_id': 3, 'cost': 25}, {'agent_id': 'A1', 'task_id': 4, 'cost': 12}, {'agent_id': 'A1', 'task_id': 5, 'cost': 5}, {'agent_id': 'A1', 'task_id': 6, 'cost': 24}, {'agent_id': 'A1', 'task_id': 7, 'cost': 15}, {'agent_id': 'A1', 'task_id': 8, 'cost': 10}, {'agent_id': 'A1', 'task_id': 9, 'cost': 11}, {'agent_id': 'A1', 'task_id': 10, 'cost': 11}, {'agent_id': 'A1', 'task_id': 11, 'cost': 8}, {'agent_id': 'A1', 'task_id': 12, 'cost': 20}, {'agent_id': 'A2', 'task_id': 0, 'cost': 10}, {'agent_id': 'A2', 'task_id': 1, 'cost': 5}, {'agent_id': 'A2', 'task_id': 2, 'cost': 7}, {'agent_id': 'A2', 'task_id': 3, 'cost': 6}, {'agent_id': 'A2', 'task_id': 4, 'cost': 15}, {'agent_id': 'A2', 'task_id': 5, 'cost': 9}, {'agent_id': 'A2', 'task_id': 6, 'cost': 6}, {'agent_id': 'A2', 'task_id': 7, 'cost': 12}, {'agent_id': 'A2', 'task_id': 8, 'cost': 7}, {'agent_id': 'A2', 'task_id': 9, 'cost': 20}, {'agent_id': 'A2', 'task_id': 10, 'cost': 18}, {'agent_id': 'A2', 'task_id': 11, 'cost': 15}, {'agent_id': 'A2', 'task_id': 12, 'cost': 18}, {'agent_id': 'A3', 'task_id': 0, 'cost': 20}, {'agent_id': 'A3', 'task_id': 1, 'cost': 17}, {'agent_id': 'A3', 'task_id': 2, 'cost': 22}, {'agent_id': 'A3', 'task_id': 3, 'cost': 25}, {'agent_id': 'A3', 'task_id': 4, 'cost': 8}, {'agent_id': 'A3', 'task_id': 5, 'cost': 12}, {'agent_id': 'A3', 'task_id': 6, 'cost': 17}, {'agent_id': 'A3', 'task_id': 7, 'cost': 14}, {'agent_id': 'A3', 'task_id': 8, 'cost': 12}, {'agent_id': 'A3', 'task_id': 9, 'cost': 14}, {'agent_id': 'A3', 'task_id': 10, 'cost': 7}, {'agent_id': 'A3', 'task_id': 11, 'cost': 6}, {'agent_id': 'A3', 'task_id': 12, 'cost': 24}, {'agent_id': 'A4', 'task_id': 0, 'cost': 18}, {'agent_id': 'A4', 'task_id': 1, 'cost': 17}, {'agent_id': 'A4', 'task_id': 2, 'cost': 22}, {'agent_id': 'A4', 'task_id': 3, 'cost': 23}, {'agent_id': 'A4', 'task_id': 4, 'cost': 14}, {'agent_id': 'A4', 'task_id': 5, 'cost': 9}, {'agent_id': 'A4', 'task_id': 6, 'cost': 5}, {'agent_id': 'A4', 'task_id': 7, 'cost': 15}, {'agent_id': 'A4', 'task_id': 8, 'cost': 23}, {'agent_id': 'A4', 'task_id': 9, 'cost': 21}, {'agent_id': 'A4', 'task_id': 10, 'cost': 9}, {'agent_id': 'A4', 'task_id': 11, 'cost': 7}, {'agent_id': 'A4', 'task_id': 12, 'cost': 16}, {'agent_id': 'A5', 'task_id': 0, 'cost': 23}, {'agent_id': 'A5', 'task_id': 1, 'cost': 12}, {'agent_id': 'A5', 'task_id': 2, 'cost': 15}, {'agent_id': 'A5', 'task_id': 3, 'cost': 17}, {'agent_id': 'A5', 'task_id': 4, 'cost': 9}, {'agent_id': 'A5', 'task_id': 5, 'cost': 6}, {'agent_id': 'A5', 'task_id': 6, 'cost': 25}, {'agent_id': 'A5', 'task_id': 7, 'cost': 15}, {'agent_id': 'A5', 'task_id': 8, 'cost': 17}, {'agent_id': 'A5', 'task_id': 9, 'cost': 10}, {'agent_id': 'A5', 'task_id': 10, 'cost': 18}, {'agent_id': 'A5', 'task_id': 11, 'cost': 25}, {'agent_id': 'A5', 'task_id': 12, 'cost': 5}]}","['A2', 'A2', 'A2', 'A2', 'A3', 'A1', 'A4', 'A2', 'A2', 'A5', 'A3', 'A3', 'A5']",17,json,0 GAP,GAP,"I run the weekly cover plan at the school and need to slot every lesson that needs covering to one substitute each — no lesson left uncovered and no lesson handed to two people. For every possible pairing there’s a known amount of time that sub would spend (prep plus teaching) and a known fee they charge. Each sub only has a certain number of hours available, so the trick is to pick who covers which lessons so nobody is asked to work more than their hours and the total amount paid out in fees is as small as possible. The total cost is just the sum of the fees for all assigned lessons, and the exact lesson times and substitute fees are listed below. { ""num_substitutes"": 4, ""num_lessons"": 12, ""substitutes"": [ ""A1"", ""A2"", ""A3"", ""A4"" ], ""lessons"": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], ""capacities"": [ { ""substitute_id"": ""A1"", ""available_hours"": 100 }, { ""substitute_id"": ""A2"", ""available_hours"": 100 }, { ""substitute_id"": ""A3"", ""available_hours"": 100 }, { ""substitute_id"": ""A4"", ""available_hours"": 100 } ], ""resource"": [ { ""substitute_id"": ""A1"", ""lesson_id"": 1, ""time_required_hours"": 20 }, { ""substitute_id"": ""A1"", ""lesson_id"": 2, ""time_required_hours"": 17 }, { ""substitute_id"": ""A1"", ""lesson_id"": 3, ""time_required_hours"": 29 }, { ""substitute_id"": ""A1"", ""lesson_id"": 4, ""time_required_hours"": 31 }, { ""substitute_id"": ""A1"", ""lesson_id"": 5, ""time_required_hours"": 10 }, { ""substitute_id"": ""A1"", ""lesson_id"": 6, ""time_required_hours"": 12 }, { ""substitute_id"": ""A1"", ""lesson_id"": 7, ""time_required_hours"": 36 }, { ""substitute_id"": ""A1"", ""lesson_id"": 8, ""time_required_hours"": 33 }, { ""substitute_id"": ""A1"", ""lesson_id"": 9, ""time_required_hours"": 41 }, { ""substitute_id"": ""A1"", ""lesson_id"": 10, ""time_required_hours"": 31 }, { ""substitute_id"": ""A1"", ""lesson_id"": 11, ""time_required_hours"": 29 }, { ""substitute_id"": ""A1"", ""lesson_id"": 12, ""time_required_hours"": 20 }, { ""substitute_id"": ""A2"", ""lesson_id"": 1, ""time_required_hours"": 21 }, { ""substitute_id"": ""A2"", ""lesson_id"": 2, ""time_required_hours"": 28 }, { ""substitute_id"": ""A2"", ""lesson_id"": 3, ""time_required_hours"": 25 }, { ""substitute_id"": ""A2"", ""lesson_id"": 4, ""time_required_hours"": 13 }, { ""substitute_id"": ""A2"", ""lesson_id"": 5, ""time_required_hours"": 28 }, { ""substitute_id"": ""A2"", ""lesson_id"": 6, ""time_required_hours"": 15 }, { ""substitute_id"": ""A2"", ""lesson_id"": 7, ""time_required_hours"": 19 }, { ""substitute_id"": ""A2"", ""lesson_id"": 8, ""time_required_hours"": 16 }, { ""substitute_id"": ""A2"", ""lesson_id"": 9, ""time_required_hours"": 39 }, { ""substitute_id"": ""A2"", ""lesson_id"": 10, ""time_required_hours"": 33 }, { ""substitute_id"": ""A2"", ""lesson_id"": 11, ""time_required_hours"": 32 }, { ""substitute_id"": ""A2"", ""lesson_id"": 12, ""time_required_hours"": 37 }, { ""substitute_id"": ""A3"", ""lesson_id"": 1, ""time_required_hours"": 17 }, { ""substitute_id"": ""A3"", ""lesson_id"": 2, ""time_required_hours"": 24 }, { ""substitute_id"": ""A3"", ""lesson_id"": 3, ""time_required_hours"": 23 }, { ""substitute_id"": ""A3"", ""lesson_id"": 4, ""time_required_hours"": 46 }, { ""substitute_id"": ""A3"", ""lesson_id"": 5, ""time_required_hours"": 36 }, { ""substitute_id"": ""A3"", ""lesson_id"": 6, ""time_required_hours"": 32 }, { ""substitute_id"": ""A3"", ""lesson_id"": 7, ""time_required_hours"": 45 }, { ""substitute_id"": ""A3"", ""lesson_id"": 8, ""time_required_hours"": 47 }, { ""substitute_id"": ""A3"", ""lesson_id"": 9, ""time_required_hours"": 12 }, { ""substitute_id"": ""A3"", ""lesson_id"": 10, ""time_required_hours"": 11 }, { ""substitute_id"": ""A3"", ""lesson_id"": 11, ""time_required_hours"": 40 }, { ""substitute_id"": ""A3"", ""lesson_id"": 12, ""time_required_hours"": 17 }, { ""substitute_id"": ""A4"", ""lesson_id"": 1, ""time_required_hours"": 26 }, { ""substitute_id"": ""A4"", ""lesson_id"": 2, ""time_required_hours"": 25 }, { ""substitute_id"": ""A4"", ""lesson_id"": 3, ""time_required_hours"": 42 }, { ""substitute_id"": ""A4"", ""lesson_id"": 4, ""time_required_hours"": 40 }, { ""substitute_id"": ""A4"", ""lesson_id"": 5, ""time_required_hours"": 24 }, { ""substitute_id"": ""A4"", ""lesson_id"": 6, ""time_required_hours"": 29 }, { ""substitute_id"": ""A4"", ""lesson_id"": 7, ""time_required_hours"": 21 }, { ""substitute_id"": ""A4"", ""lesson_id"": 8, ""time_required_hours"": 40 }, { ""substitute_id"": ""A4"", ""lesson_id"": 9, ""time_required_hours"": 15 }, { ""substitute_id"": ""A4"", ""lesson_id"": 10, ""time_required_hours"": 47 }, { ""substitute_id"": ""A4"", ""lesson_id"": 11, ""time_required_hours"": 42 }, { ""substitute_id"": ""A4"", ""lesson_id"": 12, ""time_required_hours"": 24 } ], ""cost"": [ { ""substitute_id"": ""A1"", ""lesson_id"": 1, ""fee"": 5 }, { ""substitute_id"": ""A1"", ""lesson_id"": 2, ""fee"": 17 }, { ""substitute_id"": ""A1"", ""lesson_id"": 3, ""fee"": 16 }, { ""substitute_id"": ""A1"", ""lesson_id"": 4, ""fee"": 25 }, { ""substitute_id"": ""A1"", ""lesson_id"": 5, ""fee"": 9 }, { ""substitute_id"": ""A1"", ""lesson_id"": 6, ""fee"": 5 }, { ""substitute_id"": ""A1"", ""lesson_id"": 7, ""fee"": 14 }, { ""substitute_id"": ""A1"", ""lesson_id"": 8, ""fee"": 22 }, { ""substitute_id"": ""A1"", ""lesson_id"": 9, ""fee"": 10 }, { ""substitute_id"": ""A1"", ""lesson_id"": 10, ""fee"": 24 }, { ""substitute_id"": ""A1"", ""lesson_id"": 11, ""fee"": 6 }, { ""substitute_id"": ""A1"", ""lesson_id"": 12, ""fee"": 20 }, { ""substitute_id"": ""A2"", ""lesson_id"": 1, ""fee"": 19 }, { ""substitute_id"": ""A2"", ""lesson_id"": 2, ""fee"": 5 }, { ""substitute_id"": ""A2"", ""lesson_id"": 3, ""fee"": 19 }, { ""substitute_id"": ""A2"", ""lesson_id"": 4, ""fee"": 24 }, { ""substitute_id"": ""A2"", ""lesson_id"": 5, ""fee"": 6 }, { ""substitute_id"": ""A2"", ""lesson_id"": 6, ""fee"": 25 }, { ""substitute_id"": ""A2"", ""lesson_id"": 7, ""fee"": 13 }, { ""substitute_id"": ""A2"", ""lesson_id"": 8, ""fee"": 16 }, { ""substitute_id"": ""A2"", ""lesson_id"": 9, ""fee"": 5 }, { ""substitute_id"": ""A2"", ""lesson_id"": 10, ""fee"": 18 }, { ""substitute_id"": ""A2"", ""lesson_id"": 11, ""fee"": 13 }, { ""substitute_id"": ""A2"", ""lesson_id"": 12, ""fee"": 20 }, { ""substitute_id"": ""A3"", ""lesson_id"": 1, ""fee"": 20 }, { ""substitute_id"": ""A3"", ""lesson_id"": 2, ""fee"": 16 }, { ""substitute_id"": ""A3"", ""lesson_id"": 3, ""fee"": 19 }, { ""substitute_id"": ""A3"", ""lesson_id"": 4, ""fee"": 10 }, { ""substitute_id"": ""A3"", ""lesson_id"": 5, ""fee"": 21 }, { ""substitute_id"": ""A3"", ""lesson_id"": 6, ""fee"": 18 }, { ""substitute_id"": ""A3"", ""lesson_id"": 7, ""fee"": 16 }, { ""substitute_id"": ""A3"", ""lesson_id"": 8, ""fee"": 10 }, { ""substitute_id"": ""A3"", ""lesson_id"": 9, ""fee"": 7 }, { ""substitute_id"": ""A3"", ""lesson_id"": 10, ""fee"": 19 }, { ""substitute_id"": ""A3"", ""lesson_id"": 11, ""fee"": 6 }, { ""substitute_id"": ""A3"", ""lesson_id"": 12, ""fee"": 22 }, { ""substitute_id"": ""A4"", ""lesson_id"": 1, ""fee"": 25 }, { ""substitute_id"": ""A4"", ""lesson_id"": 2, ""fee"": 19 }, { ""substitute_id"": ""A4"", ""lesson_id"": 3, ""fee"": 14 }, { ""substitute_id"": ""A4"", ""lesson_id"": 4, ""fee"": 23 }, { ""substitute_id"": ""A4"", ""lesson_id"": 5, ""fee"": 5 }, { ""substitute_id"": ""A4"", ""lesson_id"": 6, ""fee"": 7 }, { ""substitute_id"": ""A4"", ""lesson_id"": 7, ""fee"": 9 }, { ""substitute_id"": ""A4"", ""lesson_id"": 8, ""fee"": 13 }, { ""substitute_id"": ""A4"", ""lesson_id"": 9, ""fee"": 21 }, { ""substitute_id"": ""A4"", ""lesson_id"": 10, ""fee"": 15 }, { ""substitute_id"": ""A4"", ""lesson_id"": 11, ""fee"": 24 }, { ""substitute_id"": ""A4"", ""lesson_id"": 12, ""fee"": 22 } ] } If you want the answer in a tidy, machine-friendly shape, send it back in a JSON object like this: { ""solution"": [ , , ..., ] } This just means ""solution"" is a list where each entry is the substitute chosen for the corresponding lesson (first lesson → first entry, second lesson → second entry, and so on). Think of it like filling in a simple form: one substitute identifier per lesson, in the same order the lessons were given. This JSON is only a sketch of the shape I expect — not the actual completed assignment. Please use the exact identifiers from the instance input — do not rename or invent labels. For example, valid identifiers look like: - plain numbers such as “1” or “23” - single capital letters like “A” or “B” - a capital letter followed by digits like “A1” or “X7”","{'resource_consumption': [[20, 17, 29, 31, 10, 12, 36, 33, 41, 31, 29, 20], [21, 28, 25, 13, 28, 15, 19, 16, 39, 33, 32, 37], [17, 24, 23, 46, 36, 32, 45, 47, 12, 11, 40, 17], [26, 25, 42, 40, 24, 29, 21, 40, 15, 47, 42, 24]], 'assignment_costs': [[5, 17, 16, 25, 9, 5, 14, 22, 10, 24, 6, 20], [19, 5, 19, 24, 6, 25, 13, 16, 5, 18, 13, 20], [20, 16, 19, 10, 21, 18, 16, 10, 7, 19, 6, 22], [25, 19, 14, 23, 5, 7, 9, 13, 21, 15, 24, 22]], 'capacities': [100, 100, 100, 100], 'objective': 112.0}","[0, 1, 3, 2, 3, 0, 3, 2, 1, 1, 0, 0]",112.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 12, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 100}, {'agent_id': 'A2', 'capacity': 100}, {'agent_id': 'A3', 'capacity': 100}, {'agent_id': 'A4', 'capacity': 100}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 12}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 25}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 37}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 23}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 40}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 26}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 29}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 24}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 5}, {'agent_id': 'A1', 'task_id': 2, 'cost': 17}, {'agent_id': 'A1', 'task_id': 3, 'cost': 16}, {'agent_id': 'A1', 'task_id': 4, 'cost': 25}, {'agent_id': 'A1', 'task_id': 5, 'cost': 9}, {'agent_id': 'A1', 'task_id': 6, 'cost': 5}, {'agent_id': 'A1', 'task_id': 7, 'cost': 14}, {'agent_id': 'A1', 'task_id': 8, 'cost': 22}, {'agent_id': 'A1', 'task_id': 9, 'cost': 10}, {'agent_id': 'A1', 'task_id': 10, 'cost': 24}, {'agent_id': 'A1', 'task_id': 11, 'cost': 6}, {'agent_id': 'A1', 'task_id': 12, 'cost': 20}, {'agent_id': 'A2', 'task_id': 1, 'cost': 19}, {'agent_id': 'A2', 'task_id': 2, 'cost': 5}, {'agent_id': 'A2', 'task_id': 3, 'cost': 19}, {'agent_id': 'A2', 'task_id': 4, 'cost': 24}, {'agent_id': 'A2', 'task_id': 5, 'cost': 6}, {'agent_id': 'A2', 'task_id': 6, 'cost': 25}, {'agent_id': 'A2', 'task_id': 7, 'cost': 13}, {'agent_id': 'A2', 'task_id': 8, 'cost': 16}, {'agent_id': 'A2', 'task_id': 9, 'cost': 5}, {'agent_id': 'A2', 'task_id': 10, 'cost': 18}, {'agent_id': 'A2', 'task_id': 11, 'cost': 13}, {'agent_id': 'A2', 'task_id': 12, 'cost': 20}, {'agent_id': 'A3', 'task_id': 1, 'cost': 20}, {'agent_id': 'A3', 'task_id': 2, 'cost': 16}, {'agent_id': 'A3', 'task_id': 3, 'cost': 19}, {'agent_id': 'A3', 'task_id': 4, 'cost': 10}, {'agent_id': 'A3', 'task_id': 5, 'cost': 21}, {'agent_id': 'A3', 'task_id': 6, 'cost': 18}, {'agent_id': 'A3', 'task_id': 7, 'cost': 16}, {'agent_id': 'A3', 'task_id': 8, 'cost': 10}, {'agent_id': 'A3', 'task_id': 9, 'cost': 7}, {'agent_id': 'A3', 'task_id': 10, 'cost': 19}, {'agent_id': 'A3', 'task_id': 11, 'cost': 6}, {'agent_id': 'A3', 'task_id': 12, 'cost': 22}, {'agent_id': 'A4', 'task_id': 1, 'cost': 25}, {'agent_id': 'A4', 'task_id': 2, 'cost': 19}, {'agent_id': 'A4', 'task_id': 3, 'cost': 14}, {'agent_id': 'A4', 'task_id': 4, 'cost': 23}, {'agent_id': 'A4', 'task_id': 5, 'cost': 5}, {'agent_id': 'A4', 'task_id': 6, 'cost': 7}, {'agent_id': 'A4', 'task_id': 7, 'cost': 9}, {'agent_id': 'A4', 'task_id': 8, 'cost': 13}, {'agent_id': 'A4', 'task_id': 9, 'cost': 21}, {'agent_id': 'A4', 'task_id': 10, 'cost': 15}, {'agent_id': 'A4', 'task_id': 11, 'cost': 24}, {'agent_id': 'A4', 'task_id': 12, 'cost': 22}]}","['A1', 'A2', 'A4', 'A3', 'A4', 'A1', 'A4', 'A3', 'A2', 'A2', 'A1', 'A1']",18,json,1 GAP,GAP,"There’s a dispatch problem on the floor: stacks of boxes and a row of vans, and someone needs to match them up. Each box has to ride on exactly one van, and each van has a weight/space limit that can’t be exceeded. Every potential match has two bits of info — how much of the van’s capacity that box would take and how much it would cost — so the nicest outcome is the one with the smallest total of all those fees, computed by summing the fee for each assigned box. The full list of loads and fees for all package–van combinations is shown below. There are 4 vans and 13 packages; the vans are A1, A2, A3, A4 and the packages are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13. Van A1 has a capacity of 365. Van A2 has a capacity of 365. Van A3 has a capacity of 365. Van A4 has a capacity of 365. Package 1 on van A1 would consume 16 of capacity and would cost 20. Package 2 on van A1 would consume 24 of capacity and would cost 18. Package 3 on van A1 would consume 43 of capacity and would cost 13. Package 4 on van A1 would consume 39 of capacity and would cost 18. Package 5 on van A1 would consume 32 of capacity and would cost 23. Package 6 on van A1 would consume 39 of capacity and would cost 12. Package 7 on van A1 would consume 20 of capacity and would cost 5. Package 8 on van A1 would consume 29 of capacity and would cost 9. Package 9 on van A1 would consume 44 of capacity and would cost 13. Package 10 on van A1 would consume 38 of capacity and would cost 19. Package 11 on van A1 would consume 20 of capacity and would cost 17. Package 12 on van A1 would consume 21 of capacity and would cost 6. Package 13 on van A1 would consume 22 of capacity and would cost 9. Package 1 on van A2 would consume 15 of capacity and would cost 15. Package 2 on van A2 would consume 41 of capacity and would cost 6. Package 3 on van A2 would consume 14 of capacity and would cost 11. Package 4 on van A2 would consume 35 of capacity and would cost 23. Package 5 on van A2 would consume 19 of capacity and would cost 7. Package 6 on van A2 would consume 44 of capacity and would cost 9. Package 7 on van A2 would consume 11 of capacity and would cost 19. Package 8 on van A2 would consume 26 of capacity and would cost 7. Package 9 on van A2 would consume 39 of capacity and would cost 9. Package 10 on van A2 would consume 29 of capacity and would cost 19. Package 11 on van A2 would consume 23 of capacity and would cost 11. Package 12 on van A2 would consume 10 of capacity and would cost 12. Package 13 on van A2 would consume 36 of capacity and would cost 14. Package 1 on van A3 would consume 27 of capacity and would cost 11. Package 2 on van A3 would consume 40 of capacity and would cost 21. Package 3 on van A3 would consume 30 of capacity and would cost 14. Package 4 on van A3 would consume 48 of capacity and would cost 22. Package 5 on van A3 would consume 44 of capacity and would cost 9. Package 6 on van A3 would consume 49 of capacity and would cost 22. Package 7 on van A3 would consume 25 of capacity and would cost 11. Package 8 on van A3 would consume 14 of capacity and would cost 22. Package 9 on van A3 would consume 17 of capacity and would cost 13. Package 10 on van A3 would consume 43 of capacity and would cost 14. Package 11 on van A3 would consume 15 of capacity and would cost 9. Package 12 on van A3 would consume 14 of capacity and would cost 12. Package 13 on van A3 would consume 26 of capacity and would cost 20. Package 1 on van A4 would consume 26 of capacity and would cost 16. Package 2 on van A4 would consume 18 of capacity and would cost 15. Package 3 on van A4 would consume 42 of capacity and would cost 20. Package 4 on van A4 would consume 28 of capacity and would cost 19. Package 5 on van A4 would consume 10 of capacity and would cost 24. Package 6 on van A4 would consume 28 of capacity and would cost 7. Package 7 on van A4 would consume 14 of capacity and would cost 15. Package 8 on van A4 would consume 35 of capacity and would cost 19. Package 9 on van A4 would consume 19 of capacity and would cost 9. Package 10 on van A4 would consume 33 of capacity and would cost 12. Package 11 on van A4 would consume 21 of capacity and would cost 22. Package 12 on van A4 would consume 41 of capacity and would cost 14. Package 13 on van A4 would consume 45 of capacity and would cost 5. The best outcome fits every van's capacity and minimizes the sum of delivery fees. When you send back your pick, a little JSON like this keeps things tidy and easy to check: { ""solution"": [ , , ..., ] } This just says, in order, which van each box should go on — first entry = van for the first box, second = van for the second box, and so on. Think of it like filling out a simple form: one van ID per box, in the same order the boxes were listed. It’s only a sketch of the shape I’m expecting, not the actual assignment. Please use the exact identifiers from the instance input when you fill that in — don’t rename them or invent new labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[16, 24, 43, 39, 32, 39, 20, 29, 44, 38, 20, 21, 22], [15, 41, 14, 35, 19, 44, 11, 26, 39, 29, 23, 10, 36], [27, 40, 30, 48, 44, 49, 25, 14, 17, 43, 15, 14, 26], [26, 18, 42, 28, 10, 28, 14, 35, 19, 33, 21, 41, 45]], 'assignment_costs': [[20, 18, 13, 18, 23, 12, 5, 9, 13, 19, 17, 6, 9], [15, 6, 11, 23, 7, 9, 19, 7, 9, 19, 11, 12, 14], [11, 21, 14, 22, 9, 22, 11, 22, 13, 14, 9, 12, 20], [16, 15, 20, 19, 24, 7, 15, 19, 9, 12, 22, 14, 5]], 'capacities': [365, 365, 365, 365], 'objective': 113.0}","[2, 1, 1, 0, 1, 3, 0, 1, 1, 3, 2, 0, 3]",113.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 13, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 365}, {'agent_id': 'A2', 'capacity': 365}, {'agent_id': 'A3', 'capacity': 365}, {'agent_id': 'A4', 'capacity': 365}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 43}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 44}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 35}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 26}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 40}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 43}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 15}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 26}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 26}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 10}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 14}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 35}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 19}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 45}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 20}, {'agent_id': 'A1', 'task_id': 2, 'cost': 18}, {'agent_id': 'A1', 'task_id': 3, 'cost': 13}, {'agent_id': 'A1', 'task_id': 4, 'cost': 18}, {'agent_id': 'A1', 'task_id': 5, 'cost': 23}, {'agent_id': 'A1', 'task_id': 6, 'cost': 12}, {'agent_id': 'A1', 'task_id': 7, 'cost': 5}, {'agent_id': 'A1', 'task_id': 8, 'cost': 9}, {'agent_id': 'A1', 'task_id': 9, 'cost': 13}, {'agent_id': 'A1', 'task_id': 10, 'cost': 19}, {'agent_id': 'A1', 'task_id': 11, 'cost': 17}, {'agent_id': 'A1', 'task_id': 12, 'cost': 6}, {'agent_id': 'A1', 'task_id': 13, 'cost': 9}, {'agent_id': 'A2', 'task_id': 1, 'cost': 15}, {'agent_id': 'A2', 'task_id': 2, 'cost': 6}, {'agent_id': 'A2', 'task_id': 3, 'cost': 11}, {'agent_id': 'A2', 'task_id': 4, 'cost': 23}, {'agent_id': 'A2', 'task_id': 5, 'cost': 7}, {'agent_id': 'A2', 'task_id': 6, 'cost': 9}, {'agent_id': 'A2', 'task_id': 7, 'cost': 19}, {'agent_id': 'A2', 'task_id': 8, 'cost': 7}, {'agent_id': 'A2', 'task_id': 9, 'cost': 9}, {'agent_id': 'A2', 'task_id': 10, 'cost': 19}, {'agent_id': 'A2', 'task_id': 11, 'cost': 11}, {'agent_id': 'A2', 'task_id': 12, 'cost': 12}, {'agent_id': 'A2', 'task_id': 13, 'cost': 14}, {'agent_id': 'A3', 'task_id': 1, 'cost': 11}, {'agent_id': 'A3', 'task_id': 2, 'cost': 21}, {'agent_id': 'A3', 'task_id': 3, 'cost': 14}, {'agent_id': 'A3', 'task_id': 4, 'cost': 22}, {'agent_id': 'A3', 'task_id': 5, 'cost': 9}, {'agent_id': 'A3', 'task_id': 6, 'cost': 22}, {'agent_id': 'A3', 'task_id': 7, 'cost': 11}, {'agent_id': 'A3', 'task_id': 8, 'cost': 22}, {'agent_id': 'A3', 'task_id': 9, 'cost': 13}, {'agent_id': 'A3', 'task_id': 10, 'cost': 14}, {'agent_id': 'A3', 'task_id': 11, 'cost': 9}, {'agent_id': 'A3', 'task_id': 12, 'cost': 12}, {'agent_id': 'A3', 'task_id': 13, 'cost': 20}, {'agent_id': 'A4', 'task_id': 1, 'cost': 16}, {'agent_id': 'A4', 'task_id': 2, 'cost': 15}, {'agent_id': 'A4', 'task_id': 3, 'cost': 20}, {'agent_id': 'A4', 'task_id': 4, 'cost': 19}, {'agent_id': 'A4', 'task_id': 5, 'cost': 24}, {'agent_id': 'A4', 'task_id': 6, 'cost': 7}, {'agent_id': 'A4', 'task_id': 7, 'cost': 15}, {'agent_id': 'A4', 'task_id': 8, 'cost': 19}, {'agent_id': 'A4', 'task_id': 9, 'cost': 9}, {'agent_id': 'A4', 'task_id': 10, 'cost': 12}, {'agent_id': 'A4', 'task_id': 11, 'cost': 22}, {'agent_id': 'A4', 'task_id': 12, 'cost': 14}, {'agent_id': 'A4', 'task_id': 13, 'cost': 5}]}","['A3', 'A2', 'A2', 'A1', 'A2', 'A4', 'A1', 'A2', 'A2', 'A4', 'A3', 'A1', 'A4']",19,nl,1 GAP,GAP,"Someone at the registrar’s office is trying to fit all the courses into available rooms: each course needs a single room, rooms can hold multiple courses only if their combined space fits the number of seats, and each pairing of course and room comes with a different rental charge. The aim is to place every course into one room, avoid overfilling any room, and keep the total rent bill—the sum of the fees for the chosen room for each course—down to the minimum. The detailed list of classes, rooms, capacities, and prices is provided below. # num_rooms=5 # num_classes=15 # room_ids=A1, A2, A3, A4, A5 # class_ids=0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 room_id,seating_capacity A1,671 A2,671 A3,671 A4,671 A5,671 room_id,class_id,space_required A1,0,39 A1,1,35 A1,2,16 A1,3,48 A1,4,43 A1,5,49 A1,6,50 A1,7,31 A1,8,11 A1,9,17 A1,10,16 A1,11,31 A1,12,16 A1,13,21 A1,14,20 A2,0,29 A2,1,24 A2,2,30 A2,3,22 A2,4,16 A2,5,29 A2,6,28 A2,7,14 A2,8,22 A2,9,19 A2,10,40 A2,11,43 A2,12,23 A2,13,32 A2,14,42 A3,0,19 A3,1,37 A3,2,35 A3,3,44 A3,4,35 A3,5,16 A3,6,47 A3,7,27 A3,8,21 A3,9,50 A3,10,19 A3,11,30 A3,12,29 A3,13,18 A3,14,45 A4,0,39 A4,1,50 A4,2,16 A4,3,34 A4,4,18 A4,5,48 A4,6,23 A4,7,17 A4,8,17 A4,9,43 A4,10,47 A4,11,22 A4,12,32 A4,13,37 A4,14,41 A5,0,50 A5,1,48 A5,2,19 A5,3,17 A5,4,16 A5,5,22 A5,6,10 A5,7,48 A5,8,14 A5,9,27 A5,10,46 A5,11,37 A5,12,48 A5,13,33 A5,14,20 room_id,class_id,rental_fee A1,0,24 A1,1,17 A1,2,14 A1,3,14 A1,4,14 A1,5,5 A1,6,14 A1,7,17 A1,8,15 A1,9,8 A1,10,25 A1,11,5 A1,12,8 A1,13,24 A1,14,22 A2,0,7 A2,1,17 A2,2,16 A2,3,15 A2,4,19 A2,5,16 A2,6,21 A2,7,18 A2,8,19 A2,9,14 A2,10,12 A2,11,12 A2,12,6 A2,13,10 A2,14,15 A3,0,8 A3,1,20 A3,2,16 A3,3,14 A3,4,19 A3,5,18 A3,6,23 A3,7,13 A3,8,8 A3,9,7 A3,10,21 A3,11,19 A3,12,6 A3,13,10 A3,14,16 A4,0,10 A4,1,9 A4,2,21 A4,3,10 A4,4,22 A4,5,5 A4,6,20 A4,7,17 A4,8,12 A4,9,14 A4,10,5 A4,11,24 A4,12,10 A4,13,25 A4,14,15 A5,0,5 A5,1,20 A5,2,8 A5,3,23 A5,4,19 A5,5,19 A5,6,15 A5,7,20 A5,8,13 A5,9,23 A5,10,19 A5,11,13 A5,12,12 A5,13,22 A5,14,8 Also, when you send the final assignment back, a compact JSON sketch like the one below is perfect — just a single top-level ""solution"" array listing the room id for each course in order. { ""solution"": [ , , ..., ] } Think of that as a simple form: the ""solution"" array lists, in order, which room each course goes into (first array entry = first course, second = second course, etc.). The placeholders show the expected shape — they’re not the actual answers, just a template for how to return the assignment. Please use the exact identifiers from 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”.""","{'resource_consumption': [[39, 35, 16, 48, 43, 49, 50, 31, 11, 17, 16, 31, 16, 21, 20], [29, 24, 30, 22, 16, 29, 28, 14, 22, 19, 40, 43, 23, 32, 42], [19, 37, 35, 44, 35, 16, 47, 27, 21, 50, 19, 30, 29, 18, 45], [39, 50, 16, 34, 18, 48, 23, 17, 17, 43, 47, 22, 32, 37, 41], [50, 48, 19, 17, 16, 22, 10, 48, 14, 27, 46, 37, 48, 33, 20]], 'assignment_costs': [[24, 17, 14, 14, 14, 5, 14, 17, 15, 8, 25, 5, 8, 24, 22], [7, 17, 16, 15, 19, 16, 21, 18, 19, 14, 12, 12, 6, 10, 15], [8, 20, 16, 14, 19, 18, 23, 13, 8, 7, 21, 19, 6, 10, 16], [10, 9, 21, 10, 22, 5, 20, 17, 12, 14, 5, 24, 10, 25, 15], [5, 20, 8, 23, 19, 19, 15, 20, 13, 23, 19, 13, 12, 22, 8]], 'capacities': [671, 671, 671, 671, 671], 'objective': 127.0}","[4, 3, 4, 3, 0, 0, 0, 2, 2, 2, 3, 0, 1, 1, 4]",127.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 671}, {'agent_id': 'A2', 'capacity': 671}, {'agent_id': 'A3', 'capacity': 671}, {'agent_id': 'A4', 'capacity': 671}, {'agent_id': 'A5', 'capacity': 671}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 35}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 43}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 30}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 40}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 43}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 37}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 16}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 18}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 34}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 41}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 48}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 19}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 17}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 16}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 22}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 10}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 14}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 27}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 48}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 33}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 20}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 24}, {'agent_id': 'A1', 'task_id': 1, 'cost': 17}, {'agent_id': 'A1', 'task_id': 2, 'cost': 14}, {'agent_id': 'A1', 'task_id': 3, 'cost': 14}, {'agent_id': 'A1', 'task_id': 4, 'cost': 14}, {'agent_id': 'A1', 'task_id': 5, 'cost': 5}, {'agent_id': 'A1', 'task_id': 6, 'cost': 14}, {'agent_id': 'A1', 'task_id': 7, 'cost': 17}, {'agent_id': 'A1', 'task_id': 8, 'cost': 15}, {'agent_id': 'A1', 'task_id': 9, 'cost': 8}, {'agent_id': 'A1', 'task_id': 10, 'cost': 25}, {'agent_id': 'A1', 'task_id': 11, 'cost': 5}, {'agent_id': 'A1', 'task_id': 12, 'cost': 8}, {'agent_id': 'A1', 'task_id': 13, 'cost': 24}, {'agent_id': 'A1', 'task_id': 14, 'cost': 22}, {'agent_id': 'A2', 'task_id': 0, 'cost': 7}, {'agent_id': 'A2', 'task_id': 1, 'cost': 17}, {'agent_id': 'A2', 'task_id': 2, 'cost': 16}, {'agent_id': 'A2', 'task_id': 3, 'cost': 15}, {'agent_id': 'A2', 'task_id': 4, 'cost': 19}, {'agent_id': 'A2', 'task_id': 5, 'cost': 16}, {'agent_id': 'A2', 'task_id': 6, 'cost': 21}, {'agent_id': 'A2', 'task_id': 7, 'cost': 18}, {'agent_id': 'A2', 'task_id': 8, 'cost': 19}, {'agent_id': 'A2', 'task_id': 9, 'cost': 14}, {'agent_id': 'A2', 'task_id': 10, 'cost': 12}, {'agent_id': 'A2', 'task_id': 11, 'cost': 12}, {'agent_id': 'A2', 'task_id': 12, 'cost': 6}, {'agent_id': 'A2', 'task_id': 13, 'cost': 10}, {'agent_id': 'A2', 'task_id': 14, 'cost': 15}, {'agent_id': 'A3', 'task_id': 0, 'cost': 8}, {'agent_id': 'A3', 'task_id': 1, 'cost': 20}, {'agent_id': 'A3', 'task_id': 2, 'cost': 16}, {'agent_id': 'A3', 'task_id': 3, 'cost': 14}, {'agent_id': 'A3', 'task_id': 4, 'cost': 19}, {'agent_id': 'A3', 'task_id': 5, 'cost': 18}, {'agent_id': 'A3', 'task_id': 6, 'cost': 23}, {'agent_id': 'A3', 'task_id': 7, 'cost': 13}, {'agent_id': 'A3', 'task_id': 8, 'cost': 8}, {'agent_id': 'A3', 'task_id': 9, 'cost': 7}, {'agent_id': 'A3', 'task_id': 10, 'cost': 21}, {'agent_id': 'A3', 'task_id': 11, 'cost': 19}, {'agent_id': 'A3', 'task_id': 12, 'cost': 6}, {'agent_id': 'A3', 'task_id': 13, 'cost': 10}, {'agent_id': 'A3', 'task_id': 14, 'cost': 16}, {'agent_id': 'A4', 'task_id': 0, 'cost': 10}, {'agent_id': 'A4', 'task_id': 1, 'cost': 9}, {'agent_id': 'A4', 'task_id': 2, 'cost': 21}, {'agent_id': 'A4', 'task_id': 3, 'cost': 10}, {'agent_id': 'A4', 'task_id': 4, 'cost': 22}, {'agent_id': 'A4', 'task_id': 5, 'cost': 5}, {'agent_id': 'A4', 'task_id': 6, 'cost': 20}, {'agent_id': 'A4', 'task_id': 7, 'cost': 17}, {'agent_id': 'A4', 'task_id': 8, 'cost': 12}, {'agent_id': 'A4', 'task_id': 9, 'cost': 14}, {'agent_id': 'A4', 'task_id': 10, 'cost': 5}, {'agent_id': 'A4', 'task_id': 11, 'cost': 24}, {'agent_id': 'A4', 'task_id': 12, 'cost': 10}, {'agent_id': 'A4', 'task_id': 13, 'cost': 25}, {'agent_id': 'A4', 'task_id': 14, 'cost': 15}, {'agent_id': 'A5', 'task_id': 0, 'cost': 5}, {'agent_id': 'A5', 'task_id': 1, 'cost': 20}, {'agent_id': 'A5', 'task_id': 2, 'cost': 8}, {'agent_id': 'A5', 'task_id': 3, 'cost': 23}, {'agent_id': 'A5', 'task_id': 4, 'cost': 19}, {'agent_id': 'A5', 'task_id': 5, 'cost': 19}, {'agent_id': 'A5', 'task_id': 6, 'cost': 15}, {'agent_id': 'A5', 'task_id': 7, 'cost': 20}, {'agent_id': 'A5', 'task_id': 8, 'cost': 13}, {'agent_id': 'A5', 'task_id': 9, 'cost': 23}, {'agent_id': 'A5', 'task_id': 10, 'cost': 19}, {'agent_id': 'A5', 'task_id': 11, 'cost': 13}, {'agent_id': 'A5', 'task_id': 12, 'cost': 12}, {'agent_id': 'A5', 'task_id': 13, 'cost': 22}, {'agent_id': 'A5', 'task_id': 14, 'cost': 8}]}","['A5', 'A4', 'A5', 'A4', 'A1', 'A1', 'A1', 'A3', 'A3', 'A3', 'A4', 'A1', 'A2', 'A2', 'A5']",20,csv,0 GAP,GAP,"Recently the operations team had to redistribute all the setup tasks across our crews: every single setup must be assigned to one crew and only one crew, and each crew has a cap on the labor hours they can handle. For each possible assignment there’s a known hour estimate and a price tag, so the way to judge a plan is to total the prices of the chosen assignments and pick the plan with the lowest total, provided no crew goes over its available hours. The detailed hours and charges are provided below. { ""num_crews"": 5, ""num_setup_jobs"": 14, ""crew_ids"": [ ""A1"", ""A2"", ""A3"", ""A4"", ""A5"" ], ""setup_job_ids"": [ ""A"", ""B"", ""C"", ""D"", ""E"", ""F"", ""G"", ""H"", ""I"", ""J"", ""K"", ""L"", ""M"", ""N"" ], ""capacities"": [ { ""crew_id"": ""A1"", ""available_hours"": 365 }, { ""crew_id"": ""A2"", ""available_hours"": 365 }, { ""crew_id"": ""A3"", ""available_hours"": 365 }, { ""crew_id"": ""A4"", ""available_hours"": 365 }, { ""crew_id"": ""A5"", ""available_hours"": 365 } ], ""resource"": [ { ""crew_id"": ""A1"", ""setup_job_id"": ""A"", ""hours_required"": 35 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""B"", ""hours_required"": 23 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""C"", ""hours_required"": 41 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""D"", ""hours_required"": 46 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""E"", ""hours_required"": 43 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""F"", ""hours_required"": 31 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""G"", ""hours_required"": 13 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""H"", ""hours_required"": 20 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""I"", ""hours_required"": 22 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""J"", ""hours_required"": 38 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""K"", ""hours_required"": 29 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""L"", ""hours_required"": 43 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""M"", ""hours_required"": 44 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""N"", ""hours_required"": 21 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""A"", ""hours_required"": 34 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""B"", ""hours_required"": 11 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""C"", ""hours_required"": 22 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""D"", ""hours_required"": 21 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""E"", ""hours_required"": 14 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""F"", ""hours_required"": 37 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""G"", ""hours_required"": 33 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""H"", ""hours_required"": 48 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""I"", ""hours_required"": 50 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""J"", ""hours_required"": 48 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""K"", ""hours_required"": 26 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""L"", ""hours_required"": 32 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""M"", ""hours_required"": 23 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""N"", ""hours_required"": 33 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""A"", ""hours_required"": 33 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""B"", ""hours_required"": 50 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""C"", ""hours_required"": 16 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""D"", ""hours_required"": 14 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""E"", ""hours_required"": 30 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""F"", ""hours_required"": 35 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""G"", ""hours_required"": 23 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""H"", ""hours_required"": 35 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""I"", ""hours_required"": 17 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""J"", ""hours_required"": 38 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""K"", ""hours_required"": 14 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""L"", ""hours_required"": 38 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""M"", ""hours_required"": 15 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""N"", ""hours_required"": 40 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""A"", ""hours_required"": 48 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""B"", ""hours_required"": 45 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""C"", ""hours_required"": 10 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""D"", ""hours_required"": 36 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""E"", ""hours_required"": 45 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""F"", ""hours_required"": 34 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""G"", ""hours_required"": 10 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""H"", ""hours_required"": 44 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""I"", ""hours_required"": 10 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""J"", ""hours_required"": 11 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""K"", ""hours_required"": 11 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""L"", ""hours_required"": 24 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""M"", ""hours_required"": 32 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""N"", ""hours_required"": 14 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""A"", ""hours_required"": 43 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""B"", ""hours_required"": 43 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""C"", ""hours_required"": 31 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""D"", ""hours_required"": 34 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""E"", ""hours_required"": 16 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""F"", ""hours_required"": 30 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""G"", ""hours_required"": 12 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""H"", ""hours_required"": 17 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""I"", ""hours_required"": 20 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""J"", ""hours_required"": 35 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""K"", ""hours_required"": 17 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""L"", ""hours_required"": 30 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""M"", ""hours_required"": 29 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""N"", ""hours_required"": 32 } ], ""cost"": [ { ""crew_id"": ""A1"", ""setup_job_id"": ""A"", ""charge"": 6 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""B"", ""charge"": 9 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""C"", ""charge"": 13 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""D"", ""charge"": 18 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""E"", ""charge"": 13 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""F"", ""charge"": 12 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""G"", ""charge"": 23 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""H"", ""charge"": 14 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""I"", ""charge"": 14 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""J"", ""charge"": 25 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""K"", ""charge"": 9 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""L"", ""charge"": 7 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""M"", ""charge"": 15 }, { ""crew_id"": ""A1"", ""setup_job_id"": ""N"", ""charge"": 15 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""A"", ""charge"": 8 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""B"", ""charge"": 23 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""C"", ""charge"": 16 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""D"", ""charge"": 12 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""E"", ""charge"": 11 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""F"", ""charge"": 15 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""G"", ""charge"": 15 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""H"", ""charge"": 17 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""I"", ""charge"": 16 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""J"", ""charge"": 15 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""K"", ""charge"": 7 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""L"", ""charge"": 19 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""M"", ""charge"": 15 }, { ""crew_id"": ""A2"", ""setup_job_id"": ""N"", ""charge"": 7 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""A"", ""charge"": 21 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""B"", ""charge"": 20 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""C"", ""charge"": 25 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""D"", ""charge"": 11 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""E"", ""charge"": 14 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""F"", ""charge"": 10 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""G"", ""charge"": 9 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""H"", ""charge"": 21 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""I"", ""charge"": 21 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""J"", ""charge"": 13 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""K"", ""charge"": 22 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""L"", ""charge"": 19 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""M"", ""charge"": 8 }, { ""crew_id"": ""A3"", ""setup_job_id"": ""N"", ""charge"": 21 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""A"", ""charge"": 7 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""B"", ""charge"": 8 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""C"", ""charge"": 24 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""D"", ""charge"": 7 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""E"", ""charge"": 15 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""F"", ""charge"": 8 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""G"", ""charge"": 18 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""H"", ""charge"": 11 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""I"", ""charge"": 21 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""J"", ""charge"": 12 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""K"", ""charge"": 16 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""L"", ""charge"": 18 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""M"", ""charge"": 9 }, { ""crew_id"": ""A4"", ""setup_job_id"": ""N"", ""charge"": 16 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""A"", ""charge"": 21 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""B"", ""charge"": 17 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""C"", ""charge"": 22 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""D"", ""charge"": 17 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""E"", ""charge"": 7 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""F"", ""charge"": 16 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""G"", ""charge"": 13 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""H"", ""charge"": 17 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""I"", ""charge"": 23 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""J"", ""charge"": 21 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""K"", ""charge"": 12 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""L"", ""charge"": 23 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""M"", ""charge"": 14 }, { ""crew_id"": ""A5"", ""setup_job_id"": ""N"", ""charge"": 9 } ] } Also, when you send the final assignment back, please use this simple JSON shape so I can pick it up easily — just a neat list of which crew goes on which setup: { ""solution"": [ , , ..., ] } Think of ""solution"" as a form field with one entry per setup task (in the same order as the instance). Each entry is the crew identifier you're assigning to that setup. Super casual — just match each setup to a crew in order. This is only a sketch of the expected shape, not the actual answer — fill in the real crew identifiers when you reply. Important: 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”"".","{'resource_consumption': [[35, 23, 41, 46, 43, 31, 13, 20, 22, 38, 29, 43, 44, 21], [34, 11, 22, 21, 14, 37, 33, 48, 50, 48, 26, 32, 23, 33], [33, 50, 16, 14, 30, 35, 23, 35, 17, 38, 14, 38, 15, 40], [48, 45, 10, 36, 45, 34, 10, 44, 10, 11, 11, 24, 32, 14], [43, 43, 31, 34, 16, 30, 12, 17, 20, 35, 17, 30, 29, 32]], 'assignment_costs': [[6, 9, 13, 18, 13, 12, 23, 14, 14, 25, 9, 7, 15, 15], [8, 23, 16, 12, 11, 15, 15, 17, 16, 15, 7, 19, 15, 7], [21, 20, 25, 11, 14, 10, 9, 21, 21, 13, 22, 19, 8, 21], [7, 8, 24, 7, 15, 8, 18, 11, 21, 12, 16, 18, 9, 16], [21, 17, 22, 17, 7, 16, 13, 17, 23, 21, 12, 23, 14, 9]], 'capacities': [365, 365, 365, 365, 365], 'objective': 124.0}","[0, 3, 0, 3, 4, 3, 2, 3, 0, 3, 1, 0, 2, 1]",124.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 365}, {'agent_id': 'A2', 'capacity': 365}, {'agent_id': 'A3', 'capacity': 365}, {'agent_id': 'A4', 'capacity': 365}, {'agent_id': 'A5', 'capacity': 365}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 35}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 23}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 41}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 46}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 43}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 31}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 13}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 20}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 22}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 38}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 29}, {'agent_id': 'A1', 'task_id': 'L', 'consumption': 43}, {'agent_id': 'A1', 'task_id': 'M', 'consumption': 44}, {'agent_id': 'A1', 'task_id': 'N', 'consumption': 21}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 34}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 11}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 22}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 21}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 14}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 37}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 33}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 48}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 50}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 48}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 26}, {'agent_id': 'A2', 'task_id': 'L', 'consumption': 32}, {'agent_id': 'A2', 'task_id': 'M', 'consumption': 23}, {'agent_id': 'A2', 'task_id': 'N', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 50}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 16}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 14}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 30}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 35}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 23}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 35}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 17}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 38}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 14}, {'agent_id': 'A3', 'task_id': 'L', 'consumption': 38}, {'agent_id': 'A3', 'task_id': 'M', 'consumption': 15}, {'agent_id': 'A3', 'task_id': 'N', 'consumption': 40}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 48}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 45}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 10}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 36}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 45}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 34}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 10}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 44}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 10}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 11}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 11}, {'agent_id': 'A4', 'task_id': 'L', 'consumption': 24}, {'agent_id': 'A4', 'task_id': 'M', 'consumption': 32}, {'agent_id': 'A4', 'task_id': 'N', 'consumption': 14}, {'agent_id': 'A5', 'task_id': 'A', 'consumption': 43}, {'agent_id': 'A5', 'task_id': 'B', 'consumption': 43}, {'agent_id': 'A5', 'task_id': 'C', 'consumption': 31}, {'agent_id': 'A5', 'task_id': 'D', 'consumption': 34}, {'agent_id': 'A5', 'task_id': 'E', 'consumption': 16}, {'agent_id': 'A5', 'task_id': 'F', 'consumption': 30}, {'agent_id': 'A5', 'task_id': 'G', 'consumption': 12}, {'agent_id': 'A5', 'task_id': 'H', 'consumption': 17}, {'agent_id': 'A5', 'task_id': 'I', 'consumption': 20}, {'agent_id': 'A5', 'task_id': 'J', 'consumption': 35}, {'agent_id': 'A5', 'task_id': 'K', 'consumption': 17}, {'agent_id': 'A5', 'task_id': 'L', 'consumption': 30}, {'agent_id': 'A5', 'task_id': 'M', 'consumption': 29}, {'agent_id': 'A5', 'task_id': 'N', 'consumption': 32}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 6}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 9}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 13}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 13}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 12}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 23}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 25}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 9}, {'agent_id': 'A1', 'task_id': 'L', 'cost': 7}, {'agent_id': 'A1', 'task_id': 'M', 'cost': 15}, {'agent_id': 'A1', 'task_id': 'N', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 8}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 16}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 11}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 16}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 7}, {'agent_id': 'A2', 'task_id': 'L', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'M', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'N', 'cost': 7}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 25}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 14}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 10}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 9}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 13}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'L', 'cost': 19}, {'agent_id': 'A3', 'task_id': 'M', 'cost': 8}, {'agent_id': 'A3', 'task_id': 'N', 'cost': 21}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 7}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 7}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 15}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 18}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 21}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 12}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 16}, {'agent_id': 'A4', 'task_id': 'L', 'cost': 18}, {'agent_id': 'A4', 'task_id': 'M', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'N', 'cost': 16}, {'agent_id': 'A5', 'task_id': 'A', 'cost': 21}, {'agent_id': 'A5', 'task_id': 'B', 'cost': 17}, {'agent_id': 'A5', 'task_id': 'C', 'cost': 22}, {'agent_id': 'A5', 'task_id': 'D', 'cost': 17}, {'agent_id': 'A5', 'task_id': 'E', 'cost': 7}, {'agent_id': 'A5', 'task_id': 'F', 'cost': 16}, {'agent_id': 'A5', 'task_id': 'G', 'cost': 13}, {'agent_id': 'A5', 'task_id': 'H', 'cost': 17}, {'agent_id': 'A5', 'task_id': 'I', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'J', 'cost': 21}, {'agent_id': 'A5', 'task_id': 'K', 'cost': 12}, {'agent_id': 'A5', 'task_id': 'L', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'M', 'cost': 14}, {'agent_id': 'A5', 'task_id': 'N', 'cost': 9}]}","['A1', 'A4', 'A1', 'A4', 'A5', 'A4', 'A3', 'A4', 'A1', 'A4', 'A2', 'A1', 'A3', 'A2']",21,json,names GAP,GAP,"Someone in planning has to hand out orders to machines so every order ends up on exactly one machine and nothing gets processed twice or dropped. Each potential assignment already tells how many machine minutes it will take and how much that specific processing will cost, and every machine only has a limited block of runtime. The trick is to hand out the orders in a way that keeps the overall processing bill — the sum of each order’s assigned cost — as small as possible, while making sure no machine’s total run time goes past its limit. The detailed runtimes and costs follow below. { ""num_machines"": 4, ""num_orders"": 13, ""machine_ids"": [ ""A1"", ""A2"", ""A3"", ""A4"" ], ""order_ids"": [ ""A"", ""B"", ""C"", ""D"", ""E"", ""F"", ""G"", ""H"", ""I"", ""J"", ""K"", ""L"", ""M"" ], ""capacities"": [ { ""machine_id"": ""A1"", ""runtime_capacity_minutes"": 464 }, { ""machine_id"": ""A2"", ""runtime_capacity_minutes"": 485 }, { ""machine_id"": ""A3"", ""runtime_capacity_minutes"": 505 }, { ""machine_id"": ""A4"", ""runtime_capacity_minutes"": 503 } ], ""resource"": [ { ""machine_id"": ""A1"", ""order_id"": ""A"", ""runtime_minutes"": 15 }, { ""machine_id"": ""A1"", ""order_id"": ""B"", ""runtime_minutes"": 31 }, { ""machine_id"": ""A1"", ""order_id"": ""C"", ""runtime_minutes"": 34 }, { ""machine_id"": ""A1"", ""order_id"": ""D"", ""runtime_minutes"": 28 }, { ""machine_id"": ""A1"", ""order_id"": ""E"", ""runtime_minutes"": 50 }, { ""machine_id"": ""A1"", ""order_id"": ""F"", ""runtime_minutes"": 30 }, { ""machine_id"": ""A1"", ""order_id"": ""G"", ""runtime_minutes"": 47 }, { ""machine_id"": ""A1"", ""order_id"": ""H"", ""runtime_minutes"": 24 }, { ""machine_id"": ""A1"", ""order_id"": ""I"", ""runtime_minutes"": 48 }, { ""machine_id"": ""A1"", ""order_id"": ""J"", ""runtime_minutes"": 36 }, { ""machine_id"": ""A1"", ""order_id"": ""K"", ""runtime_minutes"": 34 }, { ""machine_id"": ""A1"", ""order_id"": ""L"", ""runtime_minutes"": 42 }, { ""machine_id"": ""A1"", ""order_id"": ""M"", ""runtime_minutes"": 15 }, { ""machine_id"": ""A2"", ""order_id"": ""A"", ""runtime_minutes"": 27 }, { ""machine_id"": ""A2"", ""order_id"": ""B"", ""runtime_minutes"": 43 }, { ""machine_id"": ""A2"", ""order_id"": ""C"", ""runtime_minutes"": 32 }, { ""machine_id"": ""A2"", ""order_id"": ""D"", ""runtime_minutes"": 48 }, { ""machine_id"": ""A2"", ""order_id"": ""E"", ""runtime_minutes"": 39 }, { ""machine_id"": ""A2"", ""order_id"": ""F"", ""runtime_minutes"": 35 }, { ""machine_id"": ""A2"", ""order_id"": ""G"", ""runtime_minutes"": 26 }, { ""machine_id"": ""A2"", ""order_id"": ""H"", ""runtime_minutes"": 41 }, { ""machine_id"": ""A2"", ""order_id"": ""I"", ""runtime_minutes"": 22 }, { ""machine_id"": ""A2"", ""order_id"": ""J"", ""runtime_minutes"": 13 }, { ""machine_id"": ""A2"", ""order_id"": ""K"", ""runtime_minutes"": 18 }, { ""machine_id"": ""A2"", ""order_id"": ""L"", ""runtime_minutes"": 35 }, { ""machine_id"": ""A2"", ""order_id"": ""M"", ""runtime_minutes"": 28 }, { ""machine_id"": ""A3"", ""order_id"": ""A"", ""runtime_minutes"": 32 }, { ""machine_id"": ""A3"", ""order_id"": ""B"", ""runtime_minutes"": 10 }, { ""machine_id"": ""A3"", ""order_id"": ""C"", ""runtime_minutes"": 21 }, { ""machine_id"": ""A3"", ""order_id"": ""D"", ""runtime_minutes"": 46 }, { ""machine_id"": ""A3"", ""order_id"": ""E"", ""runtime_minutes"": 13 }, { ""machine_id"": ""A3"", ""order_id"": ""F"", ""runtime_minutes"": 30 }, { ""machine_id"": ""A3"", ""order_id"": ""G"", ""runtime_minutes"": 24 }, { ""machine_id"": ""A3"", ""order_id"": ""H"", ""runtime_minutes"": 15 }, { ""machine_id"": ""A3"", ""order_id"": ""I"", ""runtime_minutes"": 45 }, { ""machine_id"": ""A3"", ""order_id"": ""J"", ""runtime_minutes"": 29 }, { ""machine_id"": ""A3"", ""order_id"": ""K"", ""runtime_minutes"": 33 }, { ""machine_id"": ""A3"", ""order_id"": ""L"", ""runtime_minutes"": 37 }, { ""machine_id"": ""A3"", ""order_id"": ""M"", ""runtime_minutes"": 42 }, { ""machine_id"": ""A4"", ""order_id"": ""A"", ""runtime_minutes"": 37 }, { ""machine_id"": ""A4"", ""order_id"": ""B"", ""runtime_minutes"": 33 }, { ""machine_id"": ""A4"", ""order_id"": ""C"", ""runtime_minutes"": 15 }, { ""machine_id"": ""A4"", ""order_id"": ""D"", ""runtime_minutes"": 21 }, { ""machine_id"": ""A4"", ""order_id"": ""E"", ""runtime_minutes"": 17 }, { ""machine_id"": ""A4"", ""order_id"": ""F"", ""runtime_minutes"": 45 }, { ""machine_id"": ""A4"", ""order_id"": ""G"", ""runtime_minutes"": 40 }, { ""machine_id"": ""A4"", ""order_id"": ""H"", ""runtime_minutes"": 40 }, { ""machine_id"": ""A4"", ""order_id"": ""I"", ""runtime_minutes"": 27 }, { ""machine_id"": ""A4"", ""order_id"": ""J"", ""runtime_minutes"": 41 }, { ""machine_id"": ""A4"", ""order_id"": ""K"", ""runtime_minutes"": 32 }, { ""machine_id"": ""A4"", ""order_id"": ""L"", ""runtime_minutes"": 39 }, { ""machine_id"": ""A4"", ""order_id"": ""M"", ""runtime_minutes"": 11 } ], ""cost"": [ { ""machine_id"": ""A1"", ""order_id"": ""A"", ""processing_cost"": 16 }, { ""machine_id"": ""A1"", ""order_id"": ""B"", ""processing_cost"": 9 }, { ""machine_id"": ""A1"", ""order_id"": ""C"", ""processing_cost"": 11 }, { ""machine_id"": ""A1"", ""order_id"": ""D"", ""processing_cost"": 25 }, { ""machine_id"": ""A1"", ""order_id"": ""E"", ""processing_cost"": 21 }, { ""machine_id"": ""A1"", ""order_id"": ""F"", ""processing_cost"": 14 }, { ""machine_id"": ""A1"", ""order_id"": ""G"", ""processing_cost"": 13 }, { ""machine_id"": ""A1"", ""order_id"": ""H"", ""processing_cost"": 19 }, { ""machine_id"": ""A1"", ""order_id"": ""I"", ""processing_cost"": 19 }, { ""machine_id"": ""A1"", ""order_id"": ""J"", ""processing_cost"": 23 }, { ""machine_id"": ""A1"", ""order_id"": ""K"", ""processing_cost"": 25 }, { ""machine_id"": ""A1"", ""order_id"": ""L"", ""processing_cost"": 7 }, { ""machine_id"": ""A1"", ""order_id"": ""M"", ""processing_cost"": 20 }, { ""machine_id"": ""A2"", ""order_id"": ""A"", ""processing_cost"": 20 }, { ""machine_id"": ""A2"", ""order_id"": ""B"", ""processing_cost"": 8 }, { ""machine_id"": ""A2"", ""order_id"": ""C"", ""processing_cost"": 18 }, { ""machine_id"": ""A2"", ""order_id"": ""D"", ""processing_cost"": 20 }, { ""machine_id"": ""A2"", ""order_id"": ""E"", ""processing_cost"": 13 }, { ""machine_id"": ""A2"", ""order_id"": ""F"", ""processing_cost"": 24 }, { ""machine_id"": ""A2"", ""order_id"": ""G"", ""processing_cost"": 13 }, { ""machine_id"": ""A2"", ""order_id"": ""H"", ""processing_cost"": 14 }, { ""machine_id"": ""A2"", ""order_id"": ""I"", ""processing_cost"": 23 }, { ""machine_id"": ""A2"", ""order_id"": ""J"", ""processing_cost"": 5 }, { ""machine_id"": ""A2"", ""order_id"": ""K"", ""processing_cost"": 9 }, { ""machine_id"": ""A2"", ""order_id"": ""L"", ""processing_cost"": 20 }, { ""machine_id"": ""A2"", ""order_id"": ""M"", ""processing_cost"": 25 }, { ""machine_id"": ""A3"", ""order_id"": ""A"", ""processing_cost"": 21 }, { ""machine_id"": ""A3"", ""order_id"": ""B"", ""processing_cost"": 8 }, { ""machine_id"": ""A3"", ""order_id"": ""C"", ""processing_cost"": 14 }, { ""machine_id"": ""A3"", ""order_id"": ""D"", ""processing_cost"": 15 }, { ""machine_id"": ""A3"", ""order_id"": ""E"", ""processing_cost"": 18 }, { ""machine_id"": ""A3"", ""order_id"": ""F"", ""processing_cost"": 18 }, { ""machine_id"": ""A3"", ""order_id"": ""G"", ""processing_cost"": 6 }, { ""machine_id"": ""A3"", ""order_id"": ""H"", ""processing_cost"": 7 }, { ""machine_id"": ""A3"", ""order_id"": ""I"", ""processing_cost"": 22 }, { ""machine_id"": ""A3"", ""order_id"": ""J"", ""processing_cost"": 17 }, { ""machine_id"": ""A3"", ""order_id"": ""K"", ""processing_cost"": 15 }, { ""machine_id"": ""A3"", ""order_id"": ""L"", ""processing_cost"": 15 }, { ""machine_id"": ""A3"", ""order_id"": ""M"", ""processing_cost"": 18 }, { ""machine_id"": ""A4"", ""order_id"": ""A"", ""processing_cost"": 22 }, { ""machine_id"": ""A4"", ""order_id"": ""B"", ""processing_cost"": 18 }, { ""machine_id"": ""A4"", ""order_id"": ""C"", ""processing_cost"": 6 }, { ""machine_id"": ""A4"", ""order_id"": ""D"", ""processing_cost"": 18 }, { ""machine_id"": ""A4"", ""order_id"": ""E"", ""processing_cost"": 18 }, { ""machine_id"": ""A4"", ""order_id"": ""F"", ""processing_cost"": 11 }, { ""machine_id"": ""A4"", ""order_id"": ""G"", ""processing_cost"": 13 }, { ""machine_id"": ""A4"", ""order_id"": ""H"", ""processing_cost"": 23 }, { ""machine_id"": ""A4"", ""order_id"": ""I"", ""processing_cost"": 12 }, { ""machine_id"": ""A4"", ""order_id"": ""J"", ""processing_cost"": 17 }, { ""machine_id"": ""A4"", ""order_id"": ""K"", ""processing_cost"": 24 }, { ""machine_id"": ""A4"", ""order_id"": ""L"", ""processing_cost"": 17 }, { ""machine_id"": ""A4"", ""order_id"": ""M"", ""processing_cost"": 21 } ] } You can send the final assignment back in a tiny, predictable JSON shape so whoever reads it knows which machine gets which order. Something like this will do: { ""solution"": [ , , ..., ] } Here ""solution"" is just a list that goes in order: the first entry is the machine that will handle the first order, the second entry is the machine for the second order, and so on. Think of it like filling out a simple form where each line says which machine an order was handed to. This is only a sketch of the shape I need — not the real answer. Please make sure you use the exact identifiers from the instance input, without renaming or 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”.""","{'resource_consumption': [[15, 31, 34, 28, 50, 30, 47, 24, 48, 36, 34, 42, 15], [27, 43, 32, 48, 39, 35, 26, 41, 22, 13, 18, 35, 28], [32, 10, 21, 46, 13, 30, 24, 15, 45, 29, 33, 37, 42], [37, 33, 15, 21, 17, 45, 40, 40, 27, 41, 32, 39, 11]], 'assignment_costs': [[16, 9, 11, 25, 21, 14, 13, 19, 19, 23, 25, 7, 20], [20, 8, 18, 20, 13, 24, 13, 14, 23, 5, 9, 20, 25], [21, 8, 14, 15, 18, 18, 6, 7, 22, 17, 15, 15, 18], [22, 18, 6, 18, 18, 11, 13, 23, 12, 17, 24, 17, 21]], 'capacities': [464, 485, 505, 503], 'objective': 133.0}","[0, 1, 3, 2, 1, 3, 2, 2, 3, 1, 1, 0, 2]",133.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 13, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 464}, {'agent_id': 'A2', 'capacity': 485}, {'agent_id': 'A3', 'capacity': 505}, {'agent_id': 'A4', 'capacity': 503}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 15}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 31}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 34}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 28}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 50}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 30}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 47}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 24}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 48}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 36}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 34}, {'agent_id': 'A1', 'task_id': 'L', 'consumption': 42}, {'agent_id': 'A1', 'task_id': 'M', 'consumption': 15}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 27}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 43}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 32}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 48}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 39}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 35}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 26}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 41}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 22}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 13}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 18}, {'agent_id': 'A2', 'task_id': 'L', 'consumption': 35}, {'agent_id': 'A2', 'task_id': 'M', 'consumption': 28}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 32}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 10}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 21}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 46}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 13}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 30}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 24}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 15}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 45}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 29}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'L', 'consumption': 37}, {'agent_id': 'A3', 'task_id': 'M', 'consumption': 42}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 37}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 33}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 21}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 17}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 45}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 40}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 40}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 27}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 41}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 32}, {'agent_id': 'A4', 'task_id': 'L', 'consumption': 39}, {'agent_id': 'A4', 'task_id': 'M', 'consumption': 11}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 9}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 11}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 25}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 21}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 13}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 19}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 19}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 23}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 25}, {'agent_id': 'A1', 'task_id': 'L', 'cost': 7}, {'agent_id': 'A1', 'task_id': 'M', 'cost': 20}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 20}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 8}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 18}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 20}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 13}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 24}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 13}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 14}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 5}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 9}, {'agent_id': 'A2', 'task_id': 'L', 'cost': 20}, {'agent_id': 'A2', 'task_id': 'M', 'cost': 25}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 8}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 14}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 18}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 18}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 6}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 7}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'L', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'M', 'cost': 18}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 22}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 18}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 6}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 18}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 18}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 13}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 23}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 12}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 17}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'L', 'cost': 17}, {'agent_id': 'A4', 'task_id': 'M', 'cost': 21}]}","['A1', 'A2', 'A4', 'A3', 'A2', 'A4', 'A3', 'A3', 'A4', 'A2', 'A2', 'A1', 'A3']",22,json,names GAP,GAP,"I run a tiny editing desk and have a pile of articles that all need to go to copy editors. Each article has to be sent to one — and only one — editor, and no piece can be skipped or handed out twice. Every editor has a set number of available hours, each article would take a certain amount of an editor’s time and carries a fee for that pairing, and the total time assigned to any editor can’t go past their available hours. The plan is to pick which editor gets which article so the sum of all those per-article fees (just add up the fee for every article-editor match) is as low as possible. The exact article times, editor hours, and fees are shown below. Here they are: I have 5 editors (A1, A2, A3, A4, A5) and 14 articles (A, B, C, D, E, F, G, H, I, J, K, L, M, N). Editor A1 has 236 available hours. Editor A2 has 239 available hours. Editor A3 has 239 available hours. Editor A4 has 242 available hours. Editor A5 has 241 available hours. If I send article A to editor A1, it will take 47 hours and cost 23. If I send article B to editor A1, it will take 41 hours and cost 6. If I send article C to editor A1, it will take 22 hours and cost 12. If I send article D to editor A1, it will take 14 hours and cost 23. If I send article E to editor A1, it will take 43 hours and cost 12. If I send article F to editor A1, it will take 25 hours and cost 5. If I send article G to editor A1, it will take 20 hours and cost 6. If I send article H to editor A1, it will take 28 hours and cost 18. If I send article I to editor A1, it will take 20 hours and cost 17. If I send article J to editor A1, it will take 42 hours and cost 16. If I send article K to editor A1, it will take 42 hours and cost 25. If I send article L to editor A1, it will take 45 hours and cost 24. If I send article M to editor A1, it will take 28 hours and cost 20. If I send article N to editor A1, it will take 30 hours and cost 21. If I send article A to editor A2, it will take 41 hours and cost 17. If I send article B to editor A2, it will take 34 hours and cost 13. If I send article C to editor A2, it will take 36 hours and cost 8. If I send article D to editor A2, it will take 40 hours and cost 8. If I send article E to editor A2, it will take 35 hours and cost 24. If I send article F to editor A2, it will take 41 hours and cost 10. If I send article G to editor A2, it will take 48 hours and cost 11. If I send article H to editor A2, it will take 24 hours and cost 18. If I send article I to editor A2, it will take 10 hours and cost 5. If I send article J to editor A2, it will take 30 hours and cost 23. If I send article K to editor A2, it will take 38 hours and cost 12. If I send article L to editor A2, it will take 36 hours and cost 21. If I send article M to editor A2, it will take 24 hours and cost 8. If I send article N to editor A2, it will take 44 hours and cost 10. If I send article A to editor A3, it will take 47 hours and cost 21. If I send article B to editor A3, it will take 46 hours and cost 17. If I send article C to editor A3, it will take 27 hours and cost 16. If I send article D to editor A3, it will take 26 hours and cost 15. If I send article E to editor A3, it will take 49 hours and cost 15. If I send article F to editor A3, it will take 35 hours and cost 12. If I send article G to editor A3, it will take 39 hours and cost 20. If I send article H to editor A3, it will take 42 hours and cost 18. If I send article I to editor A3, it will take 28 hours and cost 9. If I send article J to editor A3, it will take 49 hours and cost 13. If I send article K to editor A3, it will take 16 hours and cost 16. If I send article L to editor A3, it will take 47 hours and cost 14. If I send article M to editor A3, it will take 30 hours and cost 19. If I send article N to editor A3, it will take 10 hours and cost 13. If I send article A to editor A4, it will take 29 hours and cost 16. If I send article B to editor A4, it will take 15 hours and cost 20. If I send article C to editor A4, it will take 17 hours and cost 13. If I send article D to editor A4, it will take 15 hours and cost 24. If I send article E to editor A4, it will take 12 hours and cost 5. If I send article F to editor A4, it will take 11 hours and cost 5. If I send article G to editor A4, it will take 17 hours and cost 22. If I send article H to editor A4, it will take 15 hours and cost 14. If I send article I to editor A4, it will take 12 hours and cost 17. If I send article J to editor A4, it will take 31 hours and cost 22. If I send article K to editor A4, it will take 27 hours and cost 8. If I send article L to editor A4, it will take 24 hours and cost 24. If I send article M to editor A4, it will take 34 hours and cost 9. If I send article N to editor A4, it will take 11 hours and cost 18. If I send article A to editor A5, it will take 49 hours and cost 10. If I send article B to editor A5, it will take 49 hours and cost 8. If I send article C to editor A5, it will take 28 hours and cost 24. If I send article D to editor A5, it will take 14 hours and cost 25. If I send article E to editor A5, it will take 37 hours and cost 17. If I send article F to editor A5, it will take 24 hours and cost 20. If I send article G to editor A5, it will take 41 hours and cost 8. If I send article H to editor A5, it will take 14 hours and cost 7. If I send article I to editor A5, it will take 39 hours and cost 14. If I send article J to editor A5, it will take 10 hours and cost 18. If I send article K to editor A5, it will take 33 hours and cost 16. If I send article L to editor A5, it will take 38 hours and cost 18. If I send article M to editor A5, it will take 42 hours and cost 20. If I send article N to editor A5, it will take 40 hours and cost 16. I'll use these entries to assign each article to exactly one editor without exceeding any editor's hours, aiming to minimize total fees. If you want to give me the result, just drop it in this simple JSON shape — nothing fancy. It should look like this: { ""solution"": [ , , ..., ] } This just means: the ""solution"" array lists which editor gets each article, in order (first entry = editor for the first article, second entry = editor for the second article, and so on). Think of it like filling a short form — the placeholders show the kind of identifier I expect, but this is only the sketch of the shape, not the actual assignment. Please use the exact identifiers from the instance input — do not rename them or invent new labels. Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.","{'resource_consumption': [[47, 41, 22, 14, 43, 25, 20, 28, 20, 42, 42, 45, 28, 30], [41, 34, 36, 40, 35, 41, 48, 24, 10, 30, 38, 36, 24, 44], [47, 46, 27, 26, 49, 35, 39, 42, 28, 49, 16, 47, 30, 10], [29, 15, 17, 15, 12, 11, 17, 15, 12, 31, 27, 24, 34, 11], [49, 49, 28, 14, 37, 24, 41, 14, 39, 10, 33, 38, 42, 40]], 'assignment_costs': [[23, 6, 12, 23, 12, 5, 6, 18, 17, 16, 25, 24, 20, 21], [17, 13, 8, 8, 24, 10, 11, 18, 5, 23, 12, 21, 8, 10], [21, 17, 16, 15, 15, 12, 20, 18, 9, 13, 16, 14, 19, 13], [16, 20, 13, 24, 5, 5, 22, 14, 17, 22, 8, 24, 9, 18], [10, 8, 24, 25, 17, 20, 8, 7, 14, 18, 16, 18, 20, 16]], 'capacities': [236, 239, 239, 242, 241], 'objective': 113.0}","[4, 0, 1, 1, 3, 3, 0, 4, 1, 2, 3, 2, 1, 1]",113.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 236}, {'agent_id': 'A2', 'capacity': 239}, {'agent_id': 'A3', 'capacity': 239}, {'agent_id': 'A4', 'capacity': 242}, {'agent_id': 'A5', 'capacity': 241}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 47}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 41}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 22}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 14}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 43}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 25}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 20}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 28}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 20}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 42}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 42}, {'agent_id': 'A1', 'task_id': 'L', 'consumption': 45}, {'agent_id': 'A1', 'task_id': 'M', 'consumption': 28}, {'agent_id': 'A1', 'task_id': 'N', 'consumption': 30}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 41}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 34}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 36}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 40}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 35}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 41}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 48}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 10}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 30}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 38}, {'agent_id': 'A2', 'task_id': 'L', 'consumption': 36}, {'agent_id': 'A2', 'task_id': 'M', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'N', 'consumption': 44}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 47}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 46}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 27}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 26}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 49}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 35}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 39}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 42}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 28}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 49}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 16}, {'agent_id': 'A3', 'task_id': 'L', 'consumption': 47}, {'agent_id': 'A3', 'task_id': 'M', 'consumption': 30}, {'agent_id': 'A3', 'task_id': 'N', 'consumption': 10}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 29}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 17}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 12}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 11}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 17}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 12}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 31}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 27}, {'agent_id': 'A4', 'task_id': 'L', 'consumption': 24}, {'agent_id': 'A4', 'task_id': 'M', 'consumption': 34}, {'agent_id': 'A4', 'task_id': 'N', 'consumption': 11}, {'agent_id': 'A5', 'task_id': 'A', 'consumption': 49}, {'agent_id': 'A5', 'task_id': 'B', 'consumption': 49}, {'agent_id': 'A5', 'task_id': 'C', 'consumption': 28}, {'agent_id': 'A5', 'task_id': 'D', 'consumption': 14}, {'agent_id': 'A5', 'task_id': 'E', 'consumption': 37}, {'agent_id': 'A5', 'task_id': 'F', 'consumption': 24}, {'agent_id': 'A5', 'task_id': 'G', 'consumption': 41}, {'agent_id': 'A5', 'task_id': 'H', 'consumption': 14}, {'agent_id': 'A5', 'task_id': 'I', 'consumption': 39}, {'agent_id': 'A5', 'task_id': 'J', 'consumption': 10}, {'agent_id': 'A5', 'task_id': 'K', 'consumption': 33}, {'agent_id': 'A5', 'task_id': 'L', 'consumption': 38}, {'agent_id': 'A5', 'task_id': 'M', 'consumption': 42}, {'agent_id': 'A5', 'task_id': 'N', 'consumption': 40}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 23}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 6}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 12}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 23}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 12}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 5}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 6}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 17}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 25}, {'agent_id': 'A1', 'task_id': 'L', 'cost': 24}, {'agent_id': 'A1', 'task_id': 'M', 'cost': 20}, {'agent_id': 'A1', 'task_id': 'N', 'cost': 21}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 13}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 8}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 8}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 24}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 10}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 11}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 18}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 5}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'L', 'cost': 21}, {'agent_id': 'A2', 'task_id': 'M', 'cost': 8}, {'agent_id': 'A2', 'task_id': 'N', 'cost': 10}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 16}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 12}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 18}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 9}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 13}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 16}, {'agent_id': 'A3', 'task_id': 'L', 'cost': 14}, {'agent_id': 'A3', 'task_id': 'M', 'cost': 19}, {'agent_id': 'A3', 'task_id': 'N', 'cost': 13}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 16}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 20}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 13}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 22}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 14}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 17}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 22}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'L', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'M', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'N', 'cost': 18}, {'agent_id': 'A5', 'task_id': 'A', 'cost': 10}, {'agent_id': 'A5', 'task_id': 'B', 'cost': 8}, {'agent_id': 'A5', 'task_id': 'C', 'cost': 24}, {'agent_id': 'A5', 'task_id': 'D', 'cost': 25}, {'agent_id': 'A5', 'task_id': 'E', 'cost': 17}, {'agent_id': 'A5', 'task_id': 'F', 'cost': 20}, {'agent_id': 'A5', 'task_id': 'G', 'cost': 8}, {'agent_id': 'A5', 'task_id': 'H', 'cost': 7}, {'agent_id': 'A5', 'task_id': 'I', 'cost': 14}, {'agent_id': 'A5', 'task_id': 'J', 'cost': 18}, {'agent_id': 'A5', 'task_id': 'K', 'cost': 16}, {'agent_id': 'A5', 'task_id': 'L', 'cost': 18}, {'agent_id': 'A5', 'task_id': 'M', 'cost': 20}, {'agent_id': 'A5', 'task_id': 'N', 'cost': 16}]}","['A5', 'A1', 'A2', 'A2', 'A4', 'A4', 'A1', 'A5', 'A2', 'A3', 'A4', 'A3', 'A2', 'A2']",23,nl,names GAP,GAP,"Someone in the neighborhood is coordinating supply drops, and their problem is matching up volunteers with packages. The rule is straightforward: each package must go with exactly one volunteer and no package gets duplicated or ignored. Volunteers can take multiple packages but only up to their own weight allowance, so the combined weight they carry must stay under that cap. Since every package–volunteer combination has a cost attached, the goal is to put packages with volunteers so the total of those costs is as low as possible — just sum the costs for every chosen pairing and prefer the plan with the smallest sum, keeping each person’s load within their limit. All the specific weights and costs are listed below. { ""num_volunteers"": 5, ""num_packages"": 15, ""volunteers"": [ ""A1"", ""A2"", ""A3"", ""A4"", ""A5"" ], ""packages"": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], ""capacities"": [ { ""volunteer_id"": ""A1"", ""max_carry_weight"": 342 }, { ""volunteer_id"": ""A2"", ""max_carry_weight"": 342 }, { ""volunteer_id"": ""A3"", ""max_carry_weight"": 342 }, { ""volunteer_id"": ""A4"", ""max_carry_weight"": 342 }, { ""volunteer_id"": ""A5"", ""max_carry_weight"": 342 } ], ""resource"": [ { ""volunteer_id"": ""A1"", ""package_id"": 1, ""weight_consumption"": 29 }, { ""volunteer_id"": ""A1"", ""package_id"": 2, ""weight_consumption"": 39 }, { ""volunteer_id"": ""A1"", ""package_id"": 3, ""weight_consumption"": 25 }, { ""volunteer_id"": ""A1"", ""package_id"": 4, ""weight_consumption"": 15 }, { ""volunteer_id"": ""A1"", ""package_id"": 5, ""weight_consumption"": 14 }, { ""volunteer_id"": ""A1"", ""package_id"": 6, ""weight_consumption"": 15 }, { ""volunteer_id"": ""A1"", ""package_id"": 7, ""weight_consumption"": 40 }, { ""volunteer_id"": ""A1"", ""package_id"": 8, ""weight_consumption"": 26 }, { ""volunteer_id"": ""A1"", ""package_id"": 9, ""weight_consumption"": 37 }, { ""volunteer_id"": ""A1"", ""package_id"": 10, ""weight_consumption"": 20 }, { ""volunteer_id"": ""A1"", ""package_id"": 11, ""weight_consumption"": 28 }, { ""volunteer_id"": ""A1"", ""package_id"": 12, ""weight_consumption"": 26 }, { ""volunteer_id"": ""A1"", ""package_id"": 13, ""weight_consumption"": 46 }, { ""volunteer_id"": ""A1"", ""package_id"": 14, ""weight_consumption"": 30 }, { ""volunteer_id"": ""A1"", ""package_id"": 15, ""weight_consumption"": 36 }, { ""volunteer_id"": ""A2"", ""package_id"": 1, ""weight_consumption"": 32 }, { ""volunteer_id"": ""A2"", ""package_id"": 2, ""weight_consumption"": 44 }, { ""volunteer_id"": ""A2"", ""package_id"": 3, ""weight_consumption"": 24 }, { ""volunteer_id"": ""A2"", ""package_id"": 4, ""weight_consumption"": 28 }, { ""volunteer_id"": ""A2"", ""package_id"": 5, ""weight_consumption"": 10 }, { ""volunteer_id"": ""A2"", ""package_id"": 6, ""weight_consumption"": 35 }, { ""volunteer_id"": ""A2"", ""package_id"": 7, ""weight_consumption"": 29 }, { ""volunteer_id"": ""A2"", ""package_id"": 8, ""weight_consumption"": 16 }, { ""volunteer_id"": ""A2"", ""package_id"": 9, ""weight_consumption"": 32 }, { ""volunteer_id"": ""A2"", ""package_id"": 10, ""weight_consumption"": 19 }, { ""volunteer_id"": ""A2"", ""package_id"": 11, ""weight_consumption"": 40 }, { ""volunteer_id"": ""A2"", ""package_id"": 12, ""weight_consumption"": 14 }, { ""volunteer_id"": ""A2"", ""package_id"": 13, ""weight_consumption"": 44 }, { ""volunteer_id"": ""A2"", ""package_id"": 14, ""weight_consumption"": 41 }, { ""volunteer_id"": ""A2"", ""package_id"": 15, ""weight_consumption"": 10 }, { ""volunteer_id"": ""A3"", ""package_id"": 1, ""weight_consumption"": 21 }, { ""volunteer_id"": ""A3"", ""package_id"": 2, ""weight_consumption"": 13 }, { ""volunteer_id"": ""A3"", ""package_id"": 3, ""weight_consumption"": 45 }, { ""volunteer_id"": ""A3"", ""package_id"": 4, ""weight_consumption"": 19 }, { ""volunteer_id"": ""A3"", ""package_id"": 5, ""weight_consumption"": 50 }, { ""volunteer_id"": ""A3"", ""package_id"": 6, ""weight_consumption"": 35 }, { ""volunteer_id"": ""A3"", ""package_id"": 7, ""weight_consumption"": 30 }, { ""volunteer_id"": ""A3"", ""package_id"": 8, ""weight_consumption"": 32 }, { ""volunteer_id"": ""A3"", ""package_id"": 9, ""weight_consumption"": 41 }, { ""volunteer_id"": ""A3"", ""package_id"": 10, ""weight_consumption"": 47 }, { ""volunteer_id"": ""A3"", ""package_id"": 11, ""weight_consumption"": 39 }, { ""volunteer_id"": ""A3"", ""package_id"": 12, ""weight_consumption"": 14 }, { ""volunteer_id"": ""A3"", ""package_id"": 13, ""weight_consumption"": 44 }, { ""volunteer_id"": ""A3"", ""package_id"": 14, ""weight_consumption"": 22 }, { ""volunteer_id"": ""A3"", ""package_id"": 15, ""weight_consumption"": 39 }, { ""volunteer_id"": ""A4"", ""package_id"": 1, ""weight_consumption"": 16 }, { ""volunteer_id"": ""A4"", ""package_id"": 2, ""weight_consumption"": 31 }, { ""volunteer_id"": ""A4"", ""package_id"": 3, ""weight_consumption"": 36 }, { ""volunteer_id"": ""A4"", ""package_id"": 4, ""weight_consumption"": 44 }, { ""volunteer_id"": ""A4"", ""package_id"": 5, ""weight_consumption"": 24 }, { ""volunteer_id"": ""A4"", ""package_id"": 6, ""weight_consumption"": 47 }, { ""volunteer_id"": ""A4"", ""package_id"": 7, ""weight_consumption"": 32 }, { ""volunteer_id"": ""A4"", ""package_id"": 8, ""weight_consumption"": 33 }, { ""volunteer_id"": ""A4"", ""package_id"": 9, ""weight_consumption"": 31 }, { ""volunteer_id"": ""A4"", ""package_id"": 10, ""weight_consumption"": 38 }, { ""volunteer_id"": ""A4"", ""package_id"": 11, ""weight_consumption"": 44 }, { ""volunteer_id"": ""A4"", ""package_id"": 12, ""weight_consumption"": 32 }, { ""volunteer_id"": ""A4"", ""package_id"": 13, ""weight_consumption"": 42 }, { ""volunteer_id"": ""A4"", ""package_id"": 14, ""weight_consumption"": 47 }, { ""volunteer_id"": ""A4"", ""package_id"": 15, ""weight_consumption"": 37 }, { ""volunteer_id"": ""A5"", ""package_id"": 1, ""weight_consumption"": 50 }, { ""volunteer_id"": ""A5"", ""package_id"": 2, ""weight_consumption"": 26 }, { ""volunteer_id"": ""A5"", ""package_id"": 3, ""weight_consumption"": 13 }, { ""volunteer_id"": ""A5"", ""package_id"": 4, ""weight_consumption"": 34 }, { ""volunteer_id"": ""A5"", ""package_id"": 5, ""weight_consumption"": 49 }, { ""volunteer_id"": ""A5"", ""package_id"": 6, ""weight_consumption"": 26 }, { ""volunteer_id"": ""A5"", ""package_id"": 7, ""weight_consumption"": 11 }, { ""volunteer_id"": ""A5"", ""package_id"": 8, ""weight_consumption"": 38 }, { ""volunteer_id"": ""A5"", ""package_id"": 9, ""weight_consumption"": 33 }, { ""volunteer_id"": ""A5"", ""package_id"": 10, ""weight_consumption"": 11 }, { ""volunteer_id"": ""A5"", ""package_id"": 11, ""weight_consumption"": 21 }, { ""volunteer_id"": ""A5"", ""package_id"": 12, ""weight_consumption"": 50 }, { ""volunteer_id"": ""A5"", ""package_id"": 13, ""weight_consumption"": 29 }, { ""volunteer_id"": ""A5"", ""package_id"": 14, ""weight_consumption"": 47 }, { ""volunteer_id"": ""A5"", ""package_id"": 15, ""weight_consumption"": 29 } ], ""cost"": [ { ""volunteer_id"": ""A1"", ""package_id"": 1, ""delivery_cost"": 24 }, { ""volunteer_id"": ""A1"", ""package_id"": 2, ""delivery_cost"": 12 }, { ""volunteer_id"": ""A1"", ""package_id"": 3, ""delivery_cost"": 25 }, { ""volunteer_id"": ""A1"", ""package_id"": 4, ""delivery_cost"": 18 }, { ""volunteer_id"": ""A1"", ""package_id"": 5, ""delivery_cost"": 19 }, { ""volunteer_id"": ""A1"", ""package_id"": 6, ""delivery_cost"": 13 }, { ""volunteer_id"": ""A1"", ""package_id"": 7, ""delivery_cost"": 9 }, { ""volunteer_id"": ""A1"", ""package_id"": 8, ""delivery_cost"": 20 }, { ""volunteer_id"": ""A1"", ""package_id"": 9, ""delivery_cost"": 17 }, { ""volunteer_id"": ""A1"", ""package_id"": 10, ""delivery_cost"": 10 }, { ""volunteer_id"": ""A1"", ""package_id"": 11, ""delivery_cost"": 13 }, { ""volunteer_id"": ""A1"", ""package_id"": 12, ""delivery_cost"": 5 }, { ""volunteer_id"": ""A1"", ""package_id"": 13, ""delivery_cost"": 15 }, { ""volunteer_id"": ""A1"", ""package_id"": 14, ""delivery_cost"": 19 }, { ""volunteer_id"": ""A1"", ""package_id"": 15, ""delivery_cost"": 9 }, { ""volunteer_id"": ""A2"", ""package_id"": 1, ""delivery_cost"": 20 }, { ""volunteer_id"": ""A2"", ""package_id"": 2, ""delivery_cost"": 25 }, { ""volunteer_id"": ""A2"", ""package_id"": 3, ""delivery_cost"": 10 }, { ""volunteer_id"": ""A2"", ""package_id"": 4, ""delivery_cost"": 7 }, { ""volunteer_id"": ""A2"", ""package_id"": 5, ""delivery_cost"": 8 }, { ""volunteer_id"": ""A2"", ""package_id"": 6, ""delivery_cost"": 20 }, { ""volunteer_id"": ""A2"", ""package_id"": 7, ""delivery_cost"": 7 }, { ""volunteer_id"": ""A2"", ""package_id"": 8, ""delivery_cost"": 19 }, { ""volunteer_id"": ""A2"", ""package_id"": 9, ""delivery_cost"": 20 }, { ""volunteer_id"": ""A2"", ""package_id"": 10, ""delivery_cost"": 13 }, { ""volunteer_id"": ""A2"", ""package_id"": 11, ""delivery_cost"": 10 }, { ""volunteer_id"": ""A2"", ""package_id"": 12, ""delivery_cost"": 5 }, { ""volunteer_id"": ""A2"", ""package_id"": 13, ""delivery_cost"": 7 }, { ""volunteer_id"": ""A2"", ""package_id"": 14, ""delivery_cost"": 12 }, { ""volunteer_id"": ""A2"", ""package_id"": 15, ""delivery_cost"": 17 }, { ""volunteer_id"": ""A3"", ""package_id"": 1, ""delivery_cost"": 22 }, { ""volunteer_id"": ""A3"", ""package_id"": 2, ""delivery_cost"": 16 }, { ""volunteer_id"": ""A3"", ""package_id"": 3, ""delivery_cost"": 7 }, { ""volunteer_id"": ""A3"", ""package_id"": 4, ""delivery_cost"": 10 }, { ""volunteer_id"": ""A3"", ""package_id"": 5, ""delivery_cost"": 11 }, { ""volunteer_id"": ""A3"", ""package_id"": 6, ""delivery_cost"": 5 }, { ""volunteer_id"": ""A3"", ""package_id"": 7, ""delivery_cost"": 16 }, { ""volunteer_id"": ""A3"", ""package_id"": 8, ""delivery_cost"": 12 }, { ""volunteer_id"": ""A3"", ""package_id"": 9, ""delivery_cost"": 20 }, { ""volunteer_id"": ""A3"", ""package_id"": 10, ""delivery_cost"": 20 }, { ""volunteer_id"": ""A3"", ""package_id"": 11, ""delivery_cost"": 21 }, { ""volunteer_id"": ""A3"", ""package_id"": 12, ""delivery_cost"": 5 }, { ""volunteer_id"": ""A3"", ""package_id"": 13, ""delivery_cost"": 17 }, { ""volunteer_id"": ""A3"", ""package_id"": 14, ""delivery_cost"": 13 }, { ""volunteer_id"": ""A3"", ""package_id"": 15, ""delivery_cost"": 25 }, { ""volunteer_id"": ""A4"", ""package_id"": 1, ""delivery_cost"": 24 }, { ""volunteer_id"": ""A4"", ""package_id"": 2, ""delivery_cost"": 6 }, { ""volunteer_id"": ""A4"", ""package_id"": 3, ""delivery_cost"": 7 }, { ""volunteer_id"": ""A4"", ""package_id"": 4, ""delivery_cost"": 11 }, { ""volunteer_id"": ""A4"", ""package_id"": 5, ""delivery_cost"": 9 }, { ""volunteer_id"": ""A4"", ""package_id"": 6, ""delivery_cost"": 17 }, { ""volunteer_id"": ""A4"", ""package_id"": 7, ""delivery_cost"": 5 }, { ""volunteer_id"": ""A4"", ""package_id"": 8, ""delivery_cost"": 5 }, { ""volunteer_id"": ""A4"", ""package_id"": 9, ""delivery_cost"": 12 }, { ""volunteer_id"": ""A4"", ""package_id"": 10, ""delivery_cost"": 9 }, { ""volunteer_id"": ""A4"", ""package_id"": 11, ""delivery_cost"": 20 }, { ""volunteer_id"": ""A4"", ""package_id"": 12, ""delivery_cost"": 23 }, { ""volunteer_id"": ""A4"", ""package_id"": 13, ""delivery_cost"": 10 }, { ""volunteer_id"": ""A4"", ""package_id"": 14, ""delivery_cost"": 18 }, { ""volunteer_id"": ""A4"", ""package_id"": 15, ""delivery_cost"": 12 }, { ""volunteer_id"": ""A5"", ""package_id"": 1, ""delivery_cost"": 25 }, { ""volunteer_id"": ""A5"", ""package_id"": 2, ""delivery_cost"": 8 }, { ""volunteer_id"": ""A5"", ""package_id"": 3, ""delivery_cost"": 16 }, { ""volunteer_id"": ""A5"", ""package_id"": 4, ""delivery_cost"": 20 }, { ""volunteer_id"": ""A5"", ""package_id"": 5, ""delivery_cost"": 19 }, { ""volunteer_id"": ""A5"", ""package_id"": 6, ""delivery_cost"": 14 }, { ""volunteer_id"": ""A5"", ""package_id"": 7, ""delivery_cost"": 5 }, { ""volunteer_id"": ""A5"", ""package_id"": 8, ""delivery_cost"": 9 }, { ""volunteer_id"": ""A5"", ""package_id"": 9, ""delivery_cost"": 9 }, { ""volunteer_id"": ""A5"", ""package_id"": 10, ""delivery_cost"": 7 }, { ""volunteer_id"": ""A5"", ""package_id"": 11, ""delivery_cost"": 22 }, { ""volunteer_id"": ""A5"", ""package_id"": 12, ""delivery_cost"": 18 }, { ""volunteer_id"": ""A5"", ""package_id"": 13, ""delivery_cost"": 14 }, { ""volunteer_id"": ""A5"", ""package_id"": 14, ""delivery_cost"": 9 }, { ""volunteer_id"": ""A5"", ""package_id"": 15, ""delivery_cost"": 24 } ] } Also, when you send your answer, please follow this simple JSON layout so I can read it easily: { ""solution"": [ , , ..., ] } The idea here is straightforward: the ""solution"" array lists, in order, which volunteer takes each package — the first entry is who handles the first package, the second entry is who handles the second package, and so on. Think of it like filling out a form: one volunteer ID per package, in the package order. This JSON is just a sketch of the shape I expect, not the final plan. Please make sure to use the exact identifiers from the instance input — do not rename them or invent new labels. Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.","{'resource_consumption': [[29, 39, 25, 15, 14, 15, 40, 26, 37, 20, 28, 26, 46, 30, 36], [32, 44, 24, 28, 10, 35, 29, 16, 32, 19, 40, 14, 44, 41, 10], [21, 13, 45, 19, 50, 35, 30, 32, 41, 47, 39, 14, 44, 22, 39], [16, 31, 36, 44, 24, 47, 32, 33, 31, 38, 44, 32, 42, 47, 37], [50, 26, 13, 34, 49, 26, 11, 38, 33, 11, 21, 50, 29, 47, 29]], 'assignment_costs': [[24, 12, 25, 18, 19, 13, 9, 20, 17, 10, 13, 5, 15, 19, 9], [20, 25, 10, 7, 8, 20, 7, 19, 20, 13, 10, 5, 7, 12, 17], [22, 16, 7, 10, 11, 5, 16, 12, 20, 20, 21, 5, 17, 13, 25], [24, 6, 7, 11, 9, 17, 5, 5, 12, 9, 20, 23, 10, 18, 12], [25, 8, 16, 20, 19, 14, 5, 9, 9, 7, 22, 18, 14, 9, 24]], 'capacities': [342, 342, 342, 342, 342], 'objective': 119.0}","[1, 3, 2, 1, 1, 2, 4, 3, 4, 4, 1, 1, 1, 4, 0]",119.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 342}, {'agent_id': 'A2', 'capacity': 342}, {'agent_id': 'A3', 'capacity': 342}, {'agent_id': 'A4', 'capacity': 342}, {'agent_id': 'A5', 'capacity': 342}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 14}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 40}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 26}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 26}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 30}, {'agent_id': 'A1', 'task_id': 15, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 35}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 40}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 15, 'consumption': 10}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 15, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 36}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 15, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 26}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 13}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 34}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 49}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 26}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 33}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 11}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 21}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 29}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 47}, {'agent_id': 'A5', 'task_id': 15, 'consumption': 29}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 24}, {'agent_id': 'A1', 'task_id': 2, 'cost': 12}, {'agent_id': 'A1', 'task_id': 3, 'cost': 25}, {'agent_id': 'A1', 'task_id': 4, 'cost': 18}, {'agent_id': 'A1', 'task_id': 5, 'cost': 19}, {'agent_id': 'A1', 'task_id': 6, 'cost': 13}, {'agent_id': 'A1', 'task_id': 7, 'cost': 9}, {'agent_id': 'A1', 'task_id': 8, 'cost': 20}, {'agent_id': 'A1', 'task_id': 9, 'cost': 17}, {'agent_id': 'A1', 'task_id': 10, 'cost': 10}, {'agent_id': 'A1', 'task_id': 11, 'cost': 13}, {'agent_id': 'A1', 'task_id': 12, 'cost': 5}, {'agent_id': 'A1', 'task_id': 13, 'cost': 15}, {'agent_id': 'A1', 'task_id': 14, 'cost': 19}, {'agent_id': 'A1', 'task_id': 15, 'cost': 9}, {'agent_id': 'A2', 'task_id': 1, 'cost': 20}, {'agent_id': 'A2', 'task_id': 2, 'cost': 25}, {'agent_id': 'A2', 'task_id': 3, 'cost': 10}, {'agent_id': 'A2', 'task_id': 4, 'cost': 7}, {'agent_id': 'A2', 'task_id': 5, 'cost': 8}, {'agent_id': 'A2', 'task_id': 6, 'cost': 20}, {'agent_id': 'A2', 'task_id': 7, 'cost': 7}, {'agent_id': 'A2', 'task_id': 8, 'cost': 19}, {'agent_id': 'A2', 'task_id': 9, 'cost': 20}, {'agent_id': 'A2', 'task_id': 10, 'cost': 13}, {'agent_id': 'A2', 'task_id': 11, 'cost': 10}, {'agent_id': 'A2', 'task_id': 12, 'cost': 5}, {'agent_id': 'A2', 'task_id': 13, 'cost': 7}, {'agent_id': 'A2', 'task_id': 14, 'cost': 12}, {'agent_id': 'A2', 'task_id': 15, 'cost': 17}, {'agent_id': 'A3', 'task_id': 1, 'cost': 22}, {'agent_id': 'A3', 'task_id': 2, 'cost': 16}, {'agent_id': 'A3', 'task_id': 3, 'cost': 7}, {'agent_id': 'A3', 'task_id': 4, 'cost': 10}, {'agent_id': 'A3', 'task_id': 5, 'cost': 11}, {'agent_id': 'A3', 'task_id': 6, 'cost': 5}, {'agent_id': 'A3', 'task_id': 7, 'cost': 16}, {'agent_id': 'A3', 'task_id': 8, 'cost': 12}, {'agent_id': 'A3', 'task_id': 9, 'cost': 20}, {'agent_id': 'A3', 'task_id': 10, 'cost': 20}, {'agent_id': 'A3', 'task_id': 11, 'cost': 21}, {'agent_id': 'A3', 'task_id': 12, 'cost': 5}, {'agent_id': 'A3', 'task_id': 13, 'cost': 17}, {'agent_id': 'A3', 'task_id': 14, 'cost': 13}, {'agent_id': 'A3', 'task_id': 15, 'cost': 25}, {'agent_id': 'A4', 'task_id': 1, 'cost': 24}, {'agent_id': 'A4', 'task_id': 2, 'cost': 6}, {'agent_id': 'A4', 'task_id': 3, 'cost': 7}, {'agent_id': 'A4', 'task_id': 4, 'cost': 11}, {'agent_id': 'A4', 'task_id': 5, 'cost': 9}, {'agent_id': 'A4', 'task_id': 6, 'cost': 17}, {'agent_id': 'A4', 'task_id': 7, 'cost': 5}, {'agent_id': 'A4', 'task_id': 8, 'cost': 5}, {'agent_id': 'A4', 'task_id': 9, 'cost': 12}, {'agent_id': 'A4', 'task_id': 10, 'cost': 9}, {'agent_id': 'A4', 'task_id': 11, 'cost': 20}, {'agent_id': 'A4', 'task_id': 12, 'cost': 23}, {'agent_id': 'A4', 'task_id': 13, 'cost': 10}, {'agent_id': 'A4', 'task_id': 14, 'cost': 18}, {'agent_id': 'A4', 'task_id': 15, 'cost': 12}, {'agent_id': 'A5', 'task_id': 1, 'cost': 25}, {'agent_id': 'A5', 'task_id': 2, 'cost': 8}, {'agent_id': 'A5', 'task_id': 3, 'cost': 16}, {'agent_id': 'A5', 'task_id': 4, 'cost': 20}, {'agent_id': 'A5', 'task_id': 5, 'cost': 19}, {'agent_id': 'A5', 'task_id': 6, 'cost': 14}, {'agent_id': 'A5', 'task_id': 7, 'cost': 5}, {'agent_id': 'A5', 'task_id': 8, 'cost': 9}, {'agent_id': 'A5', 'task_id': 9, 'cost': 9}, {'agent_id': 'A5', 'task_id': 10, 'cost': 7}, {'agent_id': 'A5', 'task_id': 11, 'cost': 22}, {'agent_id': 'A5', 'task_id': 12, 'cost': 18}, {'agent_id': 'A5', 'task_id': 13, 'cost': 14}, {'agent_id': 'A5', 'task_id': 14, 'cost': 9}, {'agent_id': 'A5', 'task_id': 15, 'cost': 24}]}","['A2', 'A4', 'A3', 'A2', 'A2', 'A3', 'A5', 'A4', 'A5', 'A5', 'A2', 'A2', 'A2', 'A5', 'A1']",24,json,1 GAP,GAP,"I’m juggling a shoot where a bunch of scenes need to be handed off to film crews, and the job is to pick exactly one crew for each scene — no scene gets skipped or doubled up. Each possible crew–scene pairing already has a known number of shooting days it would take and a price tag, and each crew only has so many days available. The aim is to make the whole production bill as small as possible by adding up the price for every scene with the crew it’s assigned to and keeping that total down, while never giving any crew more days than they have and always assigning every scene to one crew. Concrete details about scenes, crews, days, and costs are shown below. Here are the specifics: I've got 4 crews and 12 scenes — crews are A1, A2, A3, A4 and scenes are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. Crew A1 has 362 available shooting days. Crew A2 has 370 available shooting days. Crew A3 has 351 available shooting days. Crew A4 has 365 available shooting days. Crew A1 shooting scene 1 would take 42 days and cost 10. Crew A1 shooting scene 2 would take 33 days and cost 6. Crew A1 shooting scene 3 would take 37 days and cost 11. Crew A1 shooting scene 4 would take 28 days and cost 25. Crew A1 shooting scene 5 would take 21 days and cost 16. Crew A1 shooting scene 6 would take 21 days and cost 25. Crew A1 shooting scene 7 would take 19 days and cost 5. Crew A1 shooting scene 8 would take 35 days and cost 14. Crew A1 shooting scene 9 would take 11 days and cost 6. Crew A1 shooting scene 10 would take 34 days and cost 25. Crew A1 shooting scene 11 would take 29 days and cost 19. Crew A1 shooting scene 12 would take 23 days and cost 10. Crew A2 shooting scene 1 would take 36 days and cost 12. Crew A2 shooting scene 2 would take 15 days and cost 17. Crew A2 shooting scene 3 would take 47 days and cost 8. Crew A2 shooting scene 4 would take 30 days and cost 21. Crew A2 shooting scene 5 would take 38 days and cost 11. Crew A2 shooting scene 6 would take 17 days and cost 15. Crew A2 shooting scene 7 would take 31 days and cost 23. Crew A2 shooting scene 8 would take 39 days and cost 9. Crew A2 shooting scene 9 would take 48 days and cost 6. Crew A2 shooting scene 10 would take 12 days and cost 16. Crew A2 shooting scene 11 would take 14 days and cost 9. Crew A2 shooting scene 12 would take 49 days and cost 17. Crew A3 shooting scene 1 would take 35 days and cost 19. Crew A3 shooting scene 2 would take 29 days and cost 20. Crew A3 shooting scene 3 would take 17 days and cost 13. Crew A3 shooting scene 4 would take 24 days and cost 9. Crew A3 shooting scene 5 would take 14 days and cost 9. Crew A3 shooting scene 6 would take 32 days and cost 8. Crew A3 shooting scene 7 would take 50 days and cost 11. Crew A3 shooting scene 8 would take 45 days and cost 21. Crew A3 shooting scene 9 would take 12 days and cost 9. Crew A3 shooting scene 10 would take 29 days and cost 20. Crew A3 shooting scene 11 would take 34 days and cost 15. Crew A3 shooting scene 12 would take 20 days and cost 7. Crew A4 shooting scene 1 would take 43 days and cost 16. Crew A4 shooting scene 2 would take 17 days and cost 17. Crew A4 shooting scene 3 would take 30 days and cost 25. Crew A4 shooting scene 4 would take 12 days and cost 5. Crew A4 shooting scene 5 would take 34 days and cost 19. Crew A4 shooting scene 6 would take 31 days and cost 11. Crew A4 shooting scene 7 would take 17 days and cost 15. Crew A4 shooting scene 8 would take 33 days and cost 8. Crew A4 shooting scene 9 would take 17 days and cost 23. Crew A4 shooting scene 10 would take 39 days and cost 20. Crew A4 shooting scene 11 would take 18 days and cost 22. Crew A4 shooting scene 12 would take 41 days and cost 5. That's the setup — assign exactly one crew to each scene without exceeding any crew's available days, and keep the total cost as low as possible. Also, to keep things machine-friendly (and simple for you), please shape your reply like this little JSON snippet so it's clear which crew goes with which scene: { ""solution"": [ , , ..., ] } Think of ""solution"" as a short form: it’s just a list, where the first entry is the crew assigned to the first scene, the second entry is the crew for the second scene, and so on. The angled placeholders are where you’d drop the actual crew identifiers from the instance. This is just the expected shape — not the final assignment itself. Please be sure to use the exact identifiers from the instance input — don’t rename them and don’t invent new labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[42, 33, 37, 28, 21, 21, 19, 35, 11, 34, 29, 23], [36, 15, 47, 30, 38, 17, 31, 39, 48, 12, 14, 49], [35, 29, 17, 24, 14, 32, 50, 45, 12, 29, 34, 20], [43, 17, 30, 12, 34, 31, 17, 33, 17, 39, 18, 41]], 'assignment_costs': [[10, 6, 11, 25, 16, 25, 5, 14, 6, 25, 19, 10], [12, 17, 8, 21, 11, 15, 23, 9, 6, 16, 9, 17], [19, 20, 13, 9, 9, 8, 11, 21, 9, 20, 15, 7], [16, 17, 25, 5, 19, 11, 15, 8, 23, 20, 22, 5]], 'capacities': [362, 370, 351, 365], 'objective': 95.0}","[0, 0, 1, 3, 2, 2, 0, 3, 0, 1, 1, 3]",95.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 12, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 362}, {'agent_id': 'A2', 'capacity': 370}, {'agent_id': 'A3', 'capacity': 351}, {'agent_id': 'A4', 'capacity': 365}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 35}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 34}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 30}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 38}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 34}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 34}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 41}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 10}, {'agent_id': 'A1', 'task_id': 2, 'cost': 6}, {'agent_id': 'A1', 'task_id': 3, 'cost': 11}, {'agent_id': 'A1', 'task_id': 4, 'cost': 25}, {'agent_id': 'A1', 'task_id': 5, 'cost': 16}, {'agent_id': 'A1', 'task_id': 6, 'cost': 25}, {'agent_id': 'A1', 'task_id': 7, 'cost': 5}, {'agent_id': 'A1', 'task_id': 8, 'cost': 14}, {'agent_id': 'A1', 'task_id': 9, 'cost': 6}, {'agent_id': 'A1', 'task_id': 10, 'cost': 25}, {'agent_id': 'A1', 'task_id': 11, 'cost': 19}, {'agent_id': 'A1', 'task_id': 12, 'cost': 10}, {'agent_id': 'A2', 'task_id': 1, 'cost': 12}, {'agent_id': 'A2', 'task_id': 2, 'cost': 17}, {'agent_id': 'A2', 'task_id': 3, 'cost': 8}, {'agent_id': 'A2', 'task_id': 4, 'cost': 21}, {'agent_id': 'A2', 'task_id': 5, 'cost': 11}, {'agent_id': 'A2', 'task_id': 6, 'cost': 15}, {'agent_id': 'A2', 'task_id': 7, 'cost': 23}, {'agent_id': 'A2', 'task_id': 8, 'cost': 9}, {'agent_id': 'A2', 'task_id': 9, 'cost': 6}, {'agent_id': 'A2', 'task_id': 10, 'cost': 16}, {'agent_id': 'A2', 'task_id': 11, 'cost': 9}, {'agent_id': 'A2', 'task_id': 12, 'cost': 17}, {'agent_id': 'A3', 'task_id': 1, 'cost': 19}, {'agent_id': 'A3', 'task_id': 2, 'cost': 20}, {'agent_id': 'A3', 'task_id': 3, 'cost': 13}, {'agent_id': 'A3', 'task_id': 4, 'cost': 9}, {'agent_id': 'A3', 'task_id': 5, 'cost': 9}, {'agent_id': 'A3', 'task_id': 6, 'cost': 8}, {'agent_id': 'A3', 'task_id': 7, 'cost': 11}, {'agent_id': 'A3', 'task_id': 8, 'cost': 21}, {'agent_id': 'A3', 'task_id': 9, 'cost': 9}, {'agent_id': 'A3', 'task_id': 10, 'cost': 20}, {'agent_id': 'A3', 'task_id': 11, 'cost': 15}, {'agent_id': 'A3', 'task_id': 12, 'cost': 7}, {'agent_id': 'A4', 'task_id': 1, 'cost': 16}, {'agent_id': 'A4', 'task_id': 2, 'cost': 17}, {'agent_id': 'A4', 'task_id': 3, 'cost': 25}, {'agent_id': 'A4', 'task_id': 4, 'cost': 5}, {'agent_id': 'A4', 'task_id': 5, 'cost': 19}, {'agent_id': 'A4', 'task_id': 6, 'cost': 11}, {'agent_id': 'A4', 'task_id': 7, 'cost': 15}, {'agent_id': 'A4', 'task_id': 8, 'cost': 8}, {'agent_id': 'A4', 'task_id': 9, 'cost': 23}, {'agent_id': 'A4', 'task_id': 10, 'cost': 20}, {'agent_id': 'A4', 'task_id': 11, 'cost': 22}, {'agent_id': 'A4', 'task_id': 12, 'cost': 5}]}","['A1', 'A1', 'A2', 'A4', 'A3', 'A3', 'A1', 'A4', 'A1', 'A2', 'A2', 'A4']",25,nl,1 GAP,GAP,"Many people pitched in to map this out: there’s a roster of yards and a set of landscaping teams, and for each possible pairing the foremen recorded the hours needed from that team and the price they’d charge. The objective is to give each yard to exactly one team (no yard left out or given twice), keep every team’s total hours within its daily limit, and minimize the overall contracting cost by summing the fees of the selected assignments. The detailed yard-by-team labor and cost numbers follow below. There are 4 landscaping teams (A1, A2, A3, A4) and 13 yards (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13). | team_id | team_daily_capacity_hours | |---|---| | A1 | 245 | | A2 | 242 | | A3 | 239 | | A4 | 236 | | team_id | yard_id | labor_hours_required | |---|---|---| | A1 | 1 | 50 | | A1 | 2 | 37 | | A1 | 3 | 43 | | A1 | 4 | 48 | | A1 | 5 | 26 | | A1 | 6 | 32 | | A1 | 7 | 47 | | A1 | 8 | 14 | | A1 | 9 | 36 | | A1 | 10 | 49 | | A1 | 11 | 35 | | A1 | 12 | 30 | | A1 | 13 | 22 | | A2 | 1 | 47 | | A2 | 2 | 42 | | A2 | 3 | 14 | | A2 | 4 | 24 | | A2 | 5 | 40 | | A2 | 6 | 15 | | A2 | 7 | 20 | | A2 | 8 | 48 | | A2 | 9 | 33 | | A2 | 10 | 39 | | A2 | 11 | 46 | | A2 | 12 | 49 | | A2 | 13 | 10 | | A3 | 1 | 34 | | A3 | 2 | 42 | | A3 | 3 | 46 | | A3 | 4 | 24 | | A3 | 5 | 28 | | A3 | 6 | 44 | | A3 | 7 | 30 | | A3 | 8 | 20 | | A3 | 9 | 20 | | A3 | 10 | 34 | | A3 | 11 | 16 | | A3 | 12 | 22 | | A3 | 13 | 50 | | A4 | 1 | 22 | | A4 | 2 | 15 | | A4 | 3 | 24 | | A4 | 4 | 45 | | A4 | 5 | 17 | | A4 | 6 | 41 | | A4 | 7 | 12 | | A4 | 8 | 15 | | A4 | 9 | 38 | | A4 | 10 | 41 | | A4 | 11 | 43 | | A4 | 12 | 22 | | A4 | 13 | 17 | | team_id | yard_id | contract_charge | |---|---|---| | A1 | 1 | 10 | | A1 | 2 | 21 | | A1 | 3 | 22 | | A1 | 4 | 11 | | A1 | 5 | 9 | | A1 | 6 | 25 | | A1 | 7 | 17 | | A1 | 8 | 16 | | A1 | 9 | 11 | | A1 | 10 | 7 | | A1 | 11 | 17 | | A1 | 12 | 24 | | A1 | 13 | 6 | | A2 | 1 | 6 | | A2 | 2 | 15 | | A2 | 3 | 10 | | A2 | 4 | 22 | | A2 | 5 | 6 | | A2 | 6 | 17 | | A2 | 7 | 7 | | A2 | 8 | 22 | | A2 | 9 | 13 | | A2 | 10 | 14 | | A2 | 11 | 25 | | A2 | 12 | 7 | | A2 | 13 | 20 | | A3 | 1 | 5 | | A3 | 2 | 10 | | A3 | 3 | 13 | | A3 | 4 | 7 | | A3 | 5 | 17 | | A3 | 6 | 11 | | A3 | 7 | 15 | | A3 | 8 | 16 | | A3 | 9 | 18 | | A3 | 10 | 18 | | A3 | 11 | 17 | | A3 | 12 | 11 | | A3 | 13 | 25 | | A4 | 1 | 6 | | A4 | 2 | 11 | | A4 | 3 | 12 | | A4 | 4 | 15 | | A4 | 5 | 22 | | A4 | 6 | 11 | | A4 | 7 | 21 | | A4 | 8 | 11 | | A4 | 9 | 11 | | A4 | 10 | 23 | | A4 | 11 | 17 | | A4 | 12 | 24 | | A4 | 13 | 10 | Use these entries to enforce each team's daily hours and to minimize the total contracting cost. If you're going to send back the chosen assignments, just drop them in a tiny JSON snippet like this so it's easy to parse: { ""solution"": [ , , ..., ] } Think of that as a simple form: ""solution"" is the list, and each slot in the list is the team that will take the corresponding yard (first yard → first entry, second yard → second entry, and so on). This JSON is just a sketch of the shape I expect, not the final answer itself. Please make sure to use the exact identifiers from the instance input — do not rename or invent labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[50, 37, 43, 48, 26, 32, 47, 14, 36, 49, 35, 30, 22], [47, 42, 14, 24, 40, 15, 20, 48, 33, 39, 46, 49, 10], [34, 42, 46, 24, 28, 44, 30, 20, 20, 34, 16, 22, 50], [22, 15, 24, 45, 17, 41, 12, 15, 38, 41, 43, 22, 17]], 'assignment_costs': [[10, 21, 22, 11, 9, 25, 17, 16, 11, 7, 17, 24, 6], [6, 15, 10, 22, 6, 17, 7, 22, 13, 14, 25, 7, 20], [5, 10, 13, 7, 17, 11, 15, 16, 18, 18, 17, 11, 25], [6, 11, 12, 15, 22, 11, 21, 11, 11, 23, 17, 24, 10]], 'capacities': [245, 242, 239, 236], 'objective': 115.0}","[2, 2, 1, 2, 1, 2, 1, 3, 0, 0, 2, 1, 0]",115.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 13, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 245}, {'agent_id': 'A2', 'capacity': 242}, {'agent_id': 'A3', 'capacity': 239}, {'agent_id': 'A4', 'capacity': 236}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 43}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 26}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 14}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 35}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 30}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 40}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 49}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 10}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 34}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 20}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 20}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 34}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 16}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 17}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 10}, {'agent_id': 'A1', 'task_id': 2, 'cost': 21}, {'agent_id': 'A1', 'task_id': 3, 'cost': 22}, {'agent_id': 'A1', 'task_id': 4, 'cost': 11}, {'agent_id': 'A1', 'task_id': 5, 'cost': 9}, {'agent_id': 'A1', 'task_id': 6, 'cost': 25}, {'agent_id': 'A1', 'task_id': 7, 'cost': 17}, {'agent_id': 'A1', 'task_id': 8, 'cost': 16}, {'agent_id': 'A1', 'task_id': 9, 'cost': 11}, {'agent_id': 'A1', 'task_id': 10, 'cost': 7}, {'agent_id': 'A1', 'task_id': 11, 'cost': 17}, {'agent_id': 'A1', 'task_id': 12, 'cost': 24}, {'agent_id': 'A1', 'task_id': 13, 'cost': 6}, {'agent_id': 'A2', 'task_id': 1, 'cost': 6}, {'agent_id': 'A2', 'task_id': 2, 'cost': 15}, {'agent_id': 'A2', 'task_id': 3, 'cost': 10}, {'agent_id': 'A2', 'task_id': 4, 'cost': 22}, {'agent_id': 'A2', 'task_id': 5, 'cost': 6}, {'agent_id': 'A2', 'task_id': 6, 'cost': 17}, {'agent_id': 'A2', 'task_id': 7, 'cost': 7}, {'agent_id': 'A2', 'task_id': 8, 'cost': 22}, {'agent_id': 'A2', 'task_id': 9, 'cost': 13}, {'agent_id': 'A2', 'task_id': 10, 'cost': 14}, {'agent_id': 'A2', 'task_id': 11, 'cost': 25}, {'agent_id': 'A2', 'task_id': 12, 'cost': 7}, {'agent_id': 'A2', 'task_id': 13, 'cost': 20}, {'agent_id': 'A3', 'task_id': 1, 'cost': 5}, {'agent_id': 'A3', 'task_id': 2, 'cost': 10}, {'agent_id': 'A3', 'task_id': 3, 'cost': 13}, {'agent_id': 'A3', 'task_id': 4, 'cost': 7}, {'agent_id': 'A3', 'task_id': 5, 'cost': 17}, {'agent_id': 'A3', 'task_id': 6, 'cost': 11}, {'agent_id': 'A3', 'task_id': 7, 'cost': 15}, {'agent_id': 'A3', 'task_id': 8, 'cost': 16}, {'agent_id': 'A3', 'task_id': 9, 'cost': 18}, {'agent_id': 'A3', 'task_id': 10, 'cost': 18}, {'agent_id': 'A3', 'task_id': 11, 'cost': 17}, {'agent_id': 'A3', 'task_id': 12, 'cost': 11}, {'agent_id': 'A3', 'task_id': 13, 'cost': 25}, {'agent_id': 'A4', 'task_id': 1, 'cost': 6}, {'agent_id': 'A4', 'task_id': 2, 'cost': 11}, {'agent_id': 'A4', 'task_id': 3, 'cost': 12}, {'agent_id': 'A4', 'task_id': 4, 'cost': 15}, {'agent_id': 'A4', 'task_id': 5, 'cost': 22}, {'agent_id': 'A4', 'task_id': 6, 'cost': 11}, {'agent_id': 'A4', 'task_id': 7, 'cost': 21}, {'agent_id': 'A4', 'task_id': 8, 'cost': 11}, {'agent_id': 'A4', 'task_id': 9, 'cost': 11}, {'agent_id': 'A4', 'task_id': 10, 'cost': 23}, {'agent_id': 'A4', 'task_id': 11, 'cost': 17}, {'agent_id': 'A4', 'task_id': 12, 'cost': 24}, {'agent_id': 'A4', 'task_id': 13, 'cost': 10}]}","['A3', 'A3', 'A2', 'A3', 'A2', 'A3', 'A2', 'A4', 'A1', 'A1', 'A3', 'A2', 'A1']",26,markdown_table,1 GAP,GAP,"Many people on the shift depend on a clear assignment: all customer orders must be allocated to one picker apiece, nothing left out or duplicated, and each picker has only so much volume they can pick. For every pairing of order and picker someone has already recorded how much capacity that order would consume on that picker and what the picking cost would be. The priority is simple: minimize the overall picking cost — sum the costs of the chosen picker for every order — while making sure no picker’s total picked volume goes over their capacity. The detailed order-by-picker volumes and costs are below. # num_pickers=4 # num_orders=12 # pickers=A1, A2, A3, A4 # orders=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 picker_id,picker_capacity A1,243 A2,243 A3,243 A4,243 picker_id,order_id,order_volume A1,1,27 A1,2,16 A1,3,29 A1,4,24 A1,5,44 A1,6,20 A1,7,13 A1,8,25 A1,9,23 A1,10,40 A1,11,50 A1,12,32 A2,1,26 A2,2,32 A2,3,32 A2,4,14 A2,5,31 A2,6,46 A2,7,27 A2,8,33 A2,9,17 A2,10,18 A2,11,19 A2,12,13 A3,1,17 A3,2,48 A3,3,25 A3,4,24 A3,5,36 A3,6,45 A3,7,33 A3,8,11 A3,9,42 A3,10,13 A3,11,30 A3,12,19 A4,1,19 A4,2,49 A4,3,45 A4,4,42 A4,5,17 A4,6,21 A4,7,32 A4,8,28 A4,9,15 A4,10,24 A4,11,49 A4,12,50 picker_id,order_id,picking_cost A1,1,19 A1,2,18 A1,3,21 A1,4,18 A1,5,21 A1,6,14 A1,7,18 A1,8,14 A1,9,8 A1,10,22 A1,11,15 A1,12,7 A2,1,19 A2,2,8 A2,3,23 A2,4,15 A2,5,19 A2,6,11 A2,7,9 A2,8,13 A2,9,6 A2,10,12 A2,11,10 A2,12,6 A3,1,18 A3,2,22 A3,3,18 A3,4,6 A3,5,23 A3,6,6 A3,7,9 A3,8,19 A3,9,18 A3,10,18 A3,11,18 A3,12,19 A4,1,22 A4,2,20 A4,3,6 A4,4,13 A4,5,23 A4,6,9 A4,7,16 A4,8,16 A4,9,9 A4,10,23 A4,11,9 A4,12,8 You can just return the assignment in this little JSON shape — a ""solution"" array listing, in order, which picker handles each order. { ""solution"": [ , , ..., ] } Pretty simple: the ""solution"" array has one entry per order (first entry = first order, second = second order, etc.), and each entry names the picker assigned to that order. Think of it like filling out a form: order 1 → picker X, order 2 → picker Y. This is just a sketch of the shape I need, not the actual assignments. Please make sure to use the exact identifiers from the instance input — do not rename or invent labels. Valid identifiers look like: - plain numbers such as “1” or “23” - single capital letters like “A” or “B” - a capital letter followed by digits like “A1” or “X7”","{'resource_consumption': [[27, 16, 29, 24, 44, 20, 13, 25, 23, 40, 50, 32], [26, 32, 32, 14, 31, 46, 27, 33, 17, 18, 19, 13], [17, 48, 25, 24, 36, 45, 33, 11, 42, 13, 30, 19], [19, 49, 45, 42, 17, 21, 32, 28, 15, 24, 49, 50]], 'assignment_costs': [[19, 18, 21, 18, 21, 14, 18, 14, 8, 22, 15, 7], [19, 8, 23, 15, 19, 11, 9, 13, 6, 12, 10, 6], [18, 22, 18, 6, 23, 6, 9, 19, 18, 18, 18, 19], [22, 20, 6, 13, 23, 9, 16, 16, 9, 23, 9, 8]], 'capacities': [243, 243, 243, 243], 'objective': 118.0}","[2, 1, 3, 2, 1, 2, 1, 1, 1, 1, 3, 1]",118.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 12, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 243}, {'agent_id': 'A2', 'capacity': 243}, {'agent_id': 'A3', 'capacity': 243}, {'agent_id': 'A4', 'capacity': 243}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 44}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 13}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 23}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 40}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 26}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 27}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 18}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 19}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 19}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 50}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 19}, {'agent_id': 'A1', 'task_id': 2, 'cost': 18}, {'agent_id': 'A1', 'task_id': 3, 'cost': 21}, {'agent_id': 'A1', 'task_id': 4, 'cost': 18}, {'agent_id': 'A1', 'task_id': 5, 'cost': 21}, {'agent_id': 'A1', 'task_id': 6, 'cost': 14}, {'agent_id': 'A1', 'task_id': 7, 'cost': 18}, {'agent_id': 'A1', 'task_id': 8, 'cost': 14}, {'agent_id': 'A1', 'task_id': 9, 'cost': 8}, {'agent_id': 'A1', 'task_id': 10, 'cost': 22}, {'agent_id': 'A1', 'task_id': 11, 'cost': 15}, {'agent_id': 'A1', 'task_id': 12, 'cost': 7}, {'agent_id': 'A2', 'task_id': 1, 'cost': 19}, {'agent_id': 'A2', 'task_id': 2, 'cost': 8}, {'agent_id': 'A2', 'task_id': 3, 'cost': 23}, {'agent_id': 'A2', 'task_id': 4, 'cost': 15}, {'agent_id': 'A2', 'task_id': 5, 'cost': 19}, {'agent_id': 'A2', 'task_id': 6, 'cost': 11}, {'agent_id': 'A2', 'task_id': 7, 'cost': 9}, {'agent_id': 'A2', 'task_id': 8, 'cost': 13}, {'agent_id': 'A2', 'task_id': 9, 'cost': 6}, {'agent_id': 'A2', 'task_id': 10, 'cost': 12}, {'agent_id': 'A2', 'task_id': 11, 'cost': 10}, {'agent_id': 'A2', 'task_id': 12, 'cost': 6}, {'agent_id': 'A3', 'task_id': 1, 'cost': 18}, {'agent_id': 'A3', 'task_id': 2, 'cost': 22}, {'agent_id': 'A3', 'task_id': 3, 'cost': 18}, {'agent_id': 'A3', 'task_id': 4, 'cost': 6}, {'agent_id': 'A3', 'task_id': 5, 'cost': 23}, {'agent_id': 'A3', 'task_id': 6, 'cost': 6}, {'agent_id': 'A3', 'task_id': 7, 'cost': 9}, {'agent_id': 'A3', 'task_id': 8, 'cost': 19}, {'agent_id': 'A3', 'task_id': 9, 'cost': 18}, {'agent_id': 'A3', 'task_id': 10, 'cost': 18}, {'agent_id': 'A3', 'task_id': 11, 'cost': 18}, {'agent_id': 'A3', 'task_id': 12, 'cost': 19}, {'agent_id': 'A4', 'task_id': 1, 'cost': 22}, {'agent_id': 'A4', 'task_id': 2, 'cost': 20}, {'agent_id': 'A4', 'task_id': 3, 'cost': 6}, {'agent_id': 'A4', 'task_id': 4, 'cost': 13}, {'agent_id': 'A4', 'task_id': 5, 'cost': 23}, {'agent_id': 'A4', 'task_id': 6, 'cost': 9}, {'agent_id': 'A4', 'task_id': 7, 'cost': 16}, {'agent_id': 'A4', 'task_id': 8, 'cost': 16}, {'agent_id': 'A4', 'task_id': 9, 'cost': 9}, {'agent_id': 'A4', 'task_id': 10, 'cost': 23}, {'agent_id': 'A4', 'task_id': 11, 'cost': 9}, {'agent_id': 'A4', 'task_id': 12, 'cost': 8}]}","['A3', 'A2', 'A4', 'A3', 'A2', 'A3', 'A2', 'A2', 'A2', 'A2', 'A4', 'A2']",27,csv,1 GAP,GAP,"Late-night shifts or weekend rushes look the same: a stack of ride requests and a list of drivers with a fixed amount of time or distance they can cover. The rule is straightforward — every request must be sent to exactly one driver, drivers can take several requests as long as the total load fits inside their shift, and nothing can be duplicated or left out. The aim is to keep total payouts down, measured by summing the fares for all assigned rides. The exact fares, trip loads, and driver limits are listed below. There are 4 drivers and 14 rides, listed as A1, A2, A3, A4 and 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14. A1 has 182 of shift capacity remaining. A2 has 179 of shift capacity remaining. A3 has 175 of shift capacity remaining. A4 has 181 of shift capacity remaining. Assigning 1 to A1 consumes 46 of their shift and costs 23. Assigning 2 to A1 consumes 22 of their shift and costs 20. Assigning 3 to A1 consumes 46 of their shift and costs 24. Assigning 4 to A1 consumes 49 of their shift and costs 16. Assigning 5 to A1 consumes 48 of their shift and costs 12. Assigning 6 to A1 consumes 11 of their shift and costs 13. Assigning 7 to A1 consumes 29 of their shift and costs 18. Assigning 8 to A1 consumes 45 of their shift and costs 21. Assigning 9 to A1 consumes 22 of their shift and costs 17. Assigning 10 to A1 consumes 36 of their shift and costs 25. Assigning 11 to A1 consumes 16 of their shift and costs 16. Assigning 12 to A1 consumes 40 of their shift and costs 11. Assigning 13 to A1 consumes 31 of their shift and costs 25. Assigning 14 to A1 consumes 18 of their shift and costs 7. Assigning 1 to A2 consumes 49 of their shift and costs 11. Assigning 2 to A2 consumes 42 of their shift and costs 15. Assigning 3 to A2 consumes 38 of their shift and costs 17. Assigning 4 to A2 consumes 18 of their shift and costs 16. Assigning 5 to A2 consumes 29 of their shift and costs 17. Assigning 6 to A2 consumes 28 of their shift and costs 7. Assigning 7 to A2 consumes 11 of their shift and costs 7. Assigning 8 to A2 consumes 28 of their shift and costs 14. Assigning 9 to A2 consumes 46 of their shift and costs 14. Assigning 10 to A2 consumes 16 of their shift and costs 20. Assigning 11 to A2 consumes 48 of their shift and costs 15. Assigning 12 to A2 consumes 37 of their shift and costs 20. Assigning 13 to A2 consumes 20 of their shift and costs 12. Assigning 14 to A2 consumes 48 of their shift and costs 5. Assigning 1 to A3 consumes 40 of their shift and costs 11. Assigning 2 to A3 consumes 20 of their shift and costs 11. Assigning 3 to A3 consumes 33 of their shift and costs 9. Assigning 4 to A3 consumes 16 of their shift and costs 14. Assigning 5 to A3 consumes 24 of their shift and costs 16. Assigning 6 to A3 consumes 21 of their shift and costs 21. Assigning 7 to A3 consumes 30 of their shift and costs 17. Assigning 8 to A3 consumes 29 of their shift and costs 19. Assigning 9 to A3 consumes 22 of their shift and costs 18. Assigning 10 to A3 consumes 27 of their shift and costs 25. Assigning 11 to A3 consumes 36 of their shift and costs 24. Assigning 12 to A3 consumes 46 of their shift and costs 24. Assigning 13 to A3 consumes 34 of their shift and costs 21. Assigning 14 to A3 consumes 22 of their shift and costs 14. Assigning 1 to A4 consumes 18 of their shift and costs 24. Assigning 2 to A4 consumes 49 of their shift and costs 25. Assigning 3 to A4 consumes 26 of their shift and costs 14. Assigning 4 to A4 consumes 24 of their shift and costs 13. Assigning 5 to A4 consumes 49 of their shift and costs 8. Assigning 6 to A4 consumes 22 of their shift and costs 24. Assigning 7 to A4 consumes 24 of their shift and costs 18. Assigning 8 to A4 consumes 23 of their shift and costs 9. Assigning 9 to A4 consumes 17 of their shift and costs 22. Assigning 10 to A4 consumes 14 of their shift and costs 23. Assigning 11 to A4 consumes 19 of their shift and costs 23. Assigning 12 to A4 consumes 35 of their shift and costs 5. Assigning 13 to A4 consumes 18 of their shift and costs 6. Assigning 14 to A4 consumes 27 of their shift and costs 16. Assign every ride to one driver so all 14 rides fit within the 4 drivers' capacities while minimizing total fares. And hey — when you send back the answer, just stick to this little JSON layout so it's easy to parse. Nothing fancy, just a single list showing which driver gets each ride in order. { ""solution"": [ , , ..., ] } The idea is simple: the ""solution"" array lists, for each ride in the order shown above, the driver you assign it to. Think of each entry as the driver label you'd write next to a request on a clipboard. This block is just a sketch of the shape I need — not the final assignment itself. Please use the exact identifiers from the instance input — don't rename them or invent new labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[46, 22, 46, 49, 48, 11, 29, 45, 22, 36, 16, 40, 31, 18], [49, 42, 38, 18, 29, 28, 11, 28, 46, 16, 48, 37, 20, 48], [40, 20, 33, 16, 24, 21, 30, 29, 22, 27, 36, 46, 34, 22], [18, 49, 26, 24, 49, 22, 24, 23, 17, 14, 19, 35, 18, 27]], 'assignment_costs': [[23, 20, 24, 16, 12, 13, 18, 21, 17, 25, 16, 11, 25, 7], [11, 15, 17, 16, 17, 7, 7, 14, 14, 20, 15, 20, 12, 5], [11, 11, 9, 14, 16, 21, 17, 19, 18, 25, 24, 24, 21, 14], [24, 25, 14, 13, 8, 24, 18, 9, 22, 23, 23, 5, 6, 16]], 'capacities': [182, 179, 175, 181], 'objective': 141.0}","[2, 2, 2, 3, 3, 1, 1, 3, 1, 1, 0, 3, 3, 1]",141.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 182}, {'agent_id': 'A2', 'capacity': 179}, {'agent_id': 'A3', 'capacity': 175}, {'agent_id': 'A4', 'capacity': 181}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 22}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 22}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 40}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 18}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 49}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 38}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 18}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 37}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 40}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 20}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 16}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 34}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 26}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 14}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 19}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 35}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 27}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 23}, {'agent_id': 'A1', 'task_id': 2, 'cost': 20}, {'agent_id': 'A1', 'task_id': 3, 'cost': 24}, {'agent_id': 'A1', 'task_id': 4, 'cost': 16}, {'agent_id': 'A1', 'task_id': 5, 'cost': 12}, {'agent_id': 'A1', 'task_id': 6, 'cost': 13}, {'agent_id': 'A1', 'task_id': 7, 'cost': 18}, {'agent_id': 'A1', 'task_id': 8, 'cost': 21}, {'agent_id': 'A1', 'task_id': 9, 'cost': 17}, {'agent_id': 'A1', 'task_id': 10, 'cost': 25}, {'agent_id': 'A1', 'task_id': 11, 'cost': 16}, {'agent_id': 'A1', 'task_id': 12, 'cost': 11}, {'agent_id': 'A1', 'task_id': 13, 'cost': 25}, {'agent_id': 'A1', 'task_id': 14, 'cost': 7}, {'agent_id': 'A2', 'task_id': 1, 'cost': 11}, {'agent_id': 'A2', 'task_id': 2, 'cost': 15}, {'agent_id': 'A2', 'task_id': 3, 'cost': 17}, {'agent_id': 'A2', 'task_id': 4, 'cost': 16}, {'agent_id': 'A2', 'task_id': 5, 'cost': 17}, {'agent_id': 'A2', 'task_id': 6, 'cost': 7}, {'agent_id': 'A2', 'task_id': 7, 'cost': 7}, {'agent_id': 'A2', 'task_id': 8, 'cost': 14}, {'agent_id': 'A2', 'task_id': 9, 'cost': 14}, {'agent_id': 'A2', 'task_id': 10, 'cost': 20}, {'agent_id': 'A2', 'task_id': 11, 'cost': 15}, {'agent_id': 'A2', 'task_id': 12, 'cost': 20}, {'agent_id': 'A2', 'task_id': 13, 'cost': 12}, {'agent_id': 'A2', 'task_id': 14, 'cost': 5}, {'agent_id': 'A3', 'task_id': 1, 'cost': 11}, {'agent_id': 'A3', 'task_id': 2, 'cost': 11}, {'agent_id': 'A3', 'task_id': 3, 'cost': 9}, {'agent_id': 'A3', 'task_id': 4, 'cost': 14}, {'agent_id': 'A3', 'task_id': 5, 'cost': 16}, {'agent_id': 'A3', 'task_id': 6, 'cost': 21}, {'agent_id': 'A3', 'task_id': 7, 'cost': 17}, {'agent_id': 'A3', 'task_id': 8, 'cost': 19}, {'agent_id': 'A3', 'task_id': 9, 'cost': 18}, {'agent_id': 'A3', 'task_id': 10, 'cost': 25}, {'agent_id': 'A3', 'task_id': 11, 'cost': 24}, {'agent_id': 'A3', 'task_id': 12, 'cost': 24}, {'agent_id': 'A3', 'task_id': 13, 'cost': 21}, {'agent_id': 'A3', 'task_id': 14, 'cost': 14}, {'agent_id': 'A4', 'task_id': 1, 'cost': 24}, {'agent_id': 'A4', 'task_id': 2, 'cost': 25}, {'agent_id': 'A4', 'task_id': 3, 'cost': 14}, {'agent_id': 'A4', 'task_id': 4, 'cost': 13}, {'agent_id': 'A4', 'task_id': 5, 'cost': 8}, {'agent_id': 'A4', 'task_id': 6, 'cost': 24}, {'agent_id': 'A4', 'task_id': 7, 'cost': 18}, {'agent_id': 'A4', 'task_id': 8, 'cost': 9}, {'agent_id': 'A4', 'task_id': 9, 'cost': 22}, {'agent_id': 'A4', 'task_id': 10, 'cost': 23}, {'agent_id': 'A4', 'task_id': 11, 'cost': 23}, {'agent_id': 'A4', 'task_id': 12, 'cost': 5}, {'agent_id': 'A4', 'task_id': 13, 'cost': 6}, {'agent_id': 'A4', 'task_id': 14, 'cost': 16}]}","['A3', 'A3', 'A3', 'A4', 'A4', 'A2', 'A2', 'A4', 'A2', 'A2', 'A1', 'A4', 'A4', 'A2']",28,nl,1 GAP,GAP,"Last summer the B&B had to squeeze in festival guests and the manager had to place every reservation into exactly one room, with no double-bookings and no one left out, while respecting each room’s capacity. For each potential match there’s a clear idea of how much space or how many beds that booking would consume and what the room would charge per night, so the manager’s goal was to assign everyone without breaking capacity limits and to keep the total payout minimal — the total cost is just the sum of the nightly prices for all the chosen room assignments. The specific capacity and price details are shown below. # num_rooms=5 # num_bookings=12 # room_ids=A1, A2, A3, A4, A5 # booking_ids=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 room_id,room_capacity_beds A1,671 A2,671 A3,671 A4,671 A5,671 room_id,booking_id,beds_required A1,1,10 A1,2,15 A1,3,18 A1,4,13 A1,5,21 A1,6,42 A1,7,48 A1,8,36 A1,9,23 A1,10,48 A1,11,47 A1,12,42 A2,1,30 A2,2,13 A2,3,39 A2,4,47 A2,5,49 A2,6,26 A2,7,46 A2,8,22 A2,9,35 A2,10,36 A2,11,15 A2,12,10 A3,1,50 A3,2,25 A3,3,29 A3,4,27 A3,5,19 A3,6,45 A3,7,42 A3,8,41 A3,9,49 A3,10,38 A3,11,42 A3,12,31 A4,1,27 A4,2,11 A4,3,41 A4,4,29 A4,5,28 A4,6,41 A4,7,17 A4,8,25 A4,9,48 A4,10,26 A4,11,25 A4,12,25 A5,1,46 A5,2,50 A5,3,34 A5,4,48 A5,5,23 A5,6,30 A5,7,47 A5,8,28 A5,9,38 A5,10,48 A5,11,37 A5,12,36 room_id,booking_id,nightly_price_for_booking A1,1,24 A1,2,11 A1,3,20 A1,4,6 A1,5,17 A1,6,22 A1,7,6 A1,8,9 A1,9,12 A1,10,6 A1,11,5 A1,12,11 A2,1,10 A2,2,17 A2,3,6 A2,4,10 A2,5,5 A2,6,21 A2,7,24 A2,8,8 A2,9,16 A2,10,22 A2,11,14 A2,12,25 A3,1,10 A3,2,16 A3,3,10 A3,4,8 A3,5,25 A3,6,6 A3,7,14 A3,8,12 A3,9,21 A3,10,11 A3,11,19 A3,12,19 A4,1,16 A4,2,16 A4,3,10 A4,4,14 A4,5,15 A4,6,22 A4,7,10 A4,8,14 A4,9,23 A4,10,9 A4,11,13 A4,12,11 A5,1,5 A5,2,13 A5,3,10 A5,4,13 A5,5,24 A5,6,15 A5,7,13 A5,8,16 A5,9,17 A5,10,24 A5,11,8 A5,12,7 Oh — and when you send the final assignment back, please use this simple JSON shape so it's easy to parse and check: { ""solution"": [ , , ..., ] } This just sketches the shape: ""solution"" is a list with one entry per reservation (in the same order as the input), and each entry should be the room identifier chosen for that reservation. It's only showing the expected format, not the real answers. Please be sure to use the exact identifiers from 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”. ""","{'resource_consumption': [[10, 15, 18, 13, 21, 42, 48, 36, 23, 48, 47, 42], [30, 13, 39, 47, 49, 26, 46, 22, 35, 36, 15, 10], [50, 25, 29, 27, 19, 45, 42, 41, 49, 38, 42, 31], [27, 11, 41, 29, 28, 41, 17, 25, 48, 26, 25, 25], [46, 50, 34, 48, 23, 30, 47, 28, 38, 48, 37, 36]], 'assignment_costs': [[24, 11, 20, 6, 17, 22, 6, 9, 12, 6, 5, 11], [10, 17, 6, 10, 5, 21, 24, 8, 16, 22, 14, 25], [10, 16, 10, 8, 25, 6, 14, 12, 21, 11, 19, 19], [16, 16, 10, 14, 15, 22, 10, 14, 23, 9, 13, 11], [5, 13, 10, 13, 24, 15, 13, 16, 17, 24, 8, 7]], 'capacities': [671, 671, 671, 671, 671], 'objective': 83.0}","[4, 0, 1, 0, 1, 2, 0, 1, 0, 0, 0, 4]",83.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 12, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 671}, {'agent_id': 'A2', 'capacity': 671}, {'agent_id': 'A3', 'capacity': 671}, {'agent_id': 'A4', 'capacity': 671}, {'agent_id': 'A5', 'capacity': 671}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 18}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 13}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 23}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 30}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 49}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 26}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 35}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 10}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 38}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 27}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 29}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 26}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 25}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 34}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 48}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 23}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 47}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 48}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 36}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 24}, {'agent_id': 'A1', 'task_id': 2, 'cost': 11}, {'agent_id': 'A1', 'task_id': 3, 'cost': 20}, {'agent_id': 'A1', 'task_id': 4, 'cost': 6}, {'agent_id': 'A1', 'task_id': 5, 'cost': 17}, {'agent_id': 'A1', 'task_id': 6, 'cost': 22}, {'agent_id': 'A1', 'task_id': 7, 'cost': 6}, {'agent_id': 'A1', 'task_id': 8, 'cost': 9}, {'agent_id': 'A1', 'task_id': 9, 'cost': 12}, {'agent_id': 'A1', 'task_id': 10, 'cost': 6}, {'agent_id': 'A1', 'task_id': 11, 'cost': 5}, {'agent_id': 'A1', 'task_id': 12, 'cost': 11}, {'agent_id': 'A2', 'task_id': 1, 'cost': 10}, {'agent_id': 'A2', 'task_id': 2, 'cost': 17}, {'agent_id': 'A2', 'task_id': 3, 'cost': 6}, {'agent_id': 'A2', 'task_id': 4, 'cost': 10}, {'agent_id': 'A2', 'task_id': 5, 'cost': 5}, {'agent_id': 'A2', 'task_id': 6, 'cost': 21}, {'agent_id': 'A2', 'task_id': 7, 'cost': 24}, {'agent_id': 'A2', 'task_id': 8, 'cost': 8}, {'agent_id': 'A2', 'task_id': 9, 'cost': 16}, {'agent_id': 'A2', 'task_id': 10, 'cost': 22}, {'agent_id': 'A2', 'task_id': 11, 'cost': 14}, {'agent_id': 'A2', 'task_id': 12, 'cost': 25}, {'agent_id': 'A3', 'task_id': 1, 'cost': 10}, {'agent_id': 'A3', 'task_id': 2, 'cost': 16}, {'agent_id': 'A3', 'task_id': 3, 'cost': 10}, {'agent_id': 'A3', 'task_id': 4, 'cost': 8}, {'agent_id': 'A3', 'task_id': 5, 'cost': 25}, {'agent_id': 'A3', 'task_id': 6, 'cost': 6}, {'agent_id': 'A3', 'task_id': 7, 'cost': 14}, {'agent_id': 'A3', 'task_id': 8, 'cost': 12}, {'agent_id': 'A3', 'task_id': 9, 'cost': 21}, {'agent_id': 'A3', 'task_id': 10, 'cost': 11}, {'agent_id': 'A3', 'task_id': 11, 'cost': 19}, {'agent_id': 'A3', 'task_id': 12, 'cost': 19}, {'agent_id': 'A4', 'task_id': 1, 'cost': 16}, {'agent_id': 'A4', 'task_id': 2, 'cost': 16}, {'agent_id': 'A4', 'task_id': 3, 'cost': 10}, {'agent_id': 'A4', 'task_id': 4, 'cost': 14}, {'agent_id': 'A4', 'task_id': 5, 'cost': 15}, {'agent_id': 'A4', 'task_id': 6, 'cost': 22}, {'agent_id': 'A4', 'task_id': 7, 'cost': 10}, {'agent_id': 'A4', 'task_id': 8, 'cost': 14}, {'agent_id': 'A4', 'task_id': 9, 'cost': 23}, {'agent_id': 'A4', 'task_id': 10, 'cost': 9}, {'agent_id': 'A4', 'task_id': 11, 'cost': 13}, {'agent_id': 'A4', 'task_id': 12, 'cost': 11}, {'agent_id': 'A5', 'task_id': 1, 'cost': 5}, {'agent_id': 'A5', 'task_id': 2, 'cost': 13}, {'agent_id': 'A5', 'task_id': 3, 'cost': 10}, {'agent_id': 'A5', 'task_id': 4, 'cost': 13}, {'agent_id': 'A5', 'task_id': 5, 'cost': 24}, {'agent_id': 'A5', 'task_id': 6, 'cost': 15}, {'agent_id': 'A5', 'task_id': 7, 'cost': 13}, {'agent_id': 'A5', 'task_id': 8, 'cost': 16}, {'agent_id': 'A5', 'task_id': 9, 'cost': 17}, {'agent_id': 'A5', 'task_id': 10, 'cost': 24}, {'agent_id': 'A5', 'task_id': 11, 'cost': 8}, {'agent_id': 'A5', 'task_id': 12, 'cost': 7}]}","['A5', 'A1', 'A2', 'A1', 'A2', 'A3', 'A1', 'A2', 'A1', 'A1', 'A1', 'A5']",29,csv,1 GAP,GAP,"At a small dev shop there are more requests than available hours, and decisions have to be made about who tackles what. For every request there’s a known time and price depending on the developer who does it, and each developer has a cap on how many hours they can pick up. The requirement is to hand every request to exactly one developer, keep everyone’s assigned hours inside their limit, and try to lower the total bill — which is just the sum of the costs for whoever is assigned to each request. The detailed hours and cost figures follow below. { ""num_developers"": 5, ""num_requests"": 14, ""developer_ids"": [ ""A1"", ""A2"", ""A3"", ""A4"", ""A5"" ], ""request_ids"": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], ""capacities"": [ { ""developer_id"": ""A1"", ""available_hours"": 493 }, { ""developer_id"": ""A2"", ""available_hours"": 493 }, { ""developer_id"": ""A3"", ""available_hours"": 493 }, { ""developer_id"": ""A4"", ""available_hours"": 493 }, { ""developer_id"": ""A5"", ""available_hours"": 493 } ], ""resource"": [ { ""developer_id"": ""A1"", ""request_id"": 0, ""hours_required"": 34 }, { ""developer_id"": ""A1"", ""request_id"": 1, ""hours_required"": 21 }, { ""developer_id"": ""A1"", ""request_id"": 2, ""hours_required"": 45 }, { ""developer_id"": ""A1"", ""request_id"": 3, ""hours_required"": 39 }, { ""developer_id"": ""A1"", ""request_id"": 4, ""hours_required"": 41 }, { ""developer_id"": ""A1"", ""request_id"": 5, ""hours_required"": 39 }, { ""developer_id"": ""A1"", ""request_id"": 6, ""hours_required"": 23 }, { ""developer_id"": ""A1"", ""request_id"": 7, ""hours_required"": 49 }, { ""developer_id"": ""A1"", ""request_id"": 8, ""hours_required"": 40 }, { ""developer_id"": ""A1"", ""request_id"": 9, ""hours_required"": 45 }, { ""developer_id"": ""A1"", ""request_id"": 10, ""hours_required"": 20 }, { ""developer_id"": ""A1"", ""request_id"": 11, ""hours_required"": 41 }, { ""developer_id"": ""A1"", ""request_id"": 12, ""hours_required"": 32 }, { ""developer_id"": ""A1"", ""request_id"": 13, ""hours_required"": 35 }, { ""developer_id"": ""A2"", ""request_id"": 0, ""hours_required"": 26 }, { ""developer_id"": ""A2"", ""request_id"": 1, ""hours_required"": 36 }, { ""developer_id"": ""A2"", ""request_id"": 2, ""hours_required"": 48 }, { ""developer_id"": ""A2"", ""request_id"": 3, ""hours_required"": 17 }, { ""developer_id"": ""A2"", ""request_id"": 4, ""hours_required"": 17 }, { ""developer_id"": ""A2"", ""request_id"": 5, ""hours_required"": 19 }, { ""developer_id"": ""A2"", ""request_id"": 6, ""hours_required"": 30 }, { ""developer_id"": ""A2"", ""request_id"": 7, ""hours_required"": 15 }, { ""developer_id"": ""A2"", ""request_id"": 8, ""hours_required"": 13 }, { ""developer_id"": ""A2"", ""request_id"": 9, ""hours_required"": 46 }, { ""developer_id"": ""A2"", ""request_id"": 10, ""hours_required"": 13 }, { ""developer_id"": ""A2"", ""request_id"": 11, ""hours_required"": 24 }, { ""developer_id"": ""A2"", ""request_id"": 12, ""hours_required"": 45 }, { ""developer_id"": ""A2"", ""request_id"": 13, ""hours_required"": 47 }, { ""developer_id"": ""A3"", ""request_id"": 0, ""hours_required"": 38 }, { ""developer_id"": ""A3"", ""request_id"": 1, ""hours_required"": 36 }, { ""developer_id"": ""A3"", ""request_id"": 2, ""hours_required"": 46 }, { ""developer_id"": ""A3"", ""request_id"": 3, ""hours_required"": 17 }, { ""developer_id"": ""A3"", ""request_id"": 4, ""hours_required"": 43 }, { ""developer_id"": ""A3"", ""request_id"": 5, ""hours_required"": 13 }, { ""developer_id"": ""A3"", ""request_id"": 6, ""hours_required"": 29 }, { ""developer_id"": ""A3"", ""request_id"": 7, ""hours_required"": 11 }, { ""developer_id"": ""A3"", ""request_id"": 8, ""hours_required"": 48 }, { ""developer_id"": ""A3"", ""request_id"": 9, ""hours_required"": 27 }, { ""developer_id"": ""A3"", ""request_id"": 10, ""hours_required"": 34 }, { ""developer_id"": ""A3"", ""request_id"": 11, ""hours_required"": 20 }, { ""developer_id"": ""A3"", ""request_id"": 12, ""hours_required"": 40 }, { ""developer_id"": ""A3"", ""request_id"": 13, ""hours_required"": 17 }, { ""developer_id"": ""A4"", ""request_id"": 0, ""hours_required"": 16 }, { ""developer_id"": ""A4"", ""request_id"": 1, ""hours_required"": 40 }, { ""developer_id"": ""A4"", ""request_id"": 2, ""hours_required"": 21 }, { ""developer_id"": ""A4"", ""request_id"": 3, ""hours_required"": 33 }, { ""developer_id"": ""A4"", ""request_id"": 4, ""hours_required"": 42 }, { ""developer_id"": ""A4"", ""request_id"": 5, ""hours_required"": 40 }, { ""developer_id"": ""A4"", ""request_id"": 6, ""hours_required"": 11 }, { ""developer_id"": ""A4"", ""request_id"": 7, ""hours_required"": 32 }, { ""developer_id"": ""A4"", ""request_id"": 8, ""hours_required"": 50 }, { ""developer_id"": ""A4"", ""request_id"": 9, ""hours_required"": 19 }, { ""developer_id"": ""A4"", ""request_id"": 10, ""hours_required"": 20 }, { ""developer_id"": ""A4"", ""request_id"": 11, ""hours_required"": 12 }, { ""developer_id"": ""A4"", ""request_id"": 12, ""hours_required"": 32 }, { ""developer_id"": ""A4"", ""request_id"": 13, ""hours_required"": 35 }, { ""developer_id"": ""A5"", ""request_id"": 0, ""hours_required"": 30 }, { ""developer_id"": ""A5"", ""request_id"": 1, ""hours_required"": 30 }, { ""developer_id"": ""A5"", ""request_id"": 2, ""hours_required"": 27 }, { ""developer_id"": ""A5"", ""request_id"": 3, ""hours_required"": 31 }, { ""developer_id"": ""A5"", ""request_id"": 4, ""hours_required"": 12 }, { ""developer_id"": ""A5"", ""request_id"": 5, ""hours_required"": 35 }, { ""developer_id"": ""A5"", ""request_id"": 6, ""hours_required"": 45 }, { ""developer_id"": ""A5"", ""request_id"": 7, ""hours_required"": 39 }, { ""developer_id"": ""A5"", ""request_id"": 8, ""hours_required"": 38 }, { ""developer_id"": ""A5"", ""request_id"": 9, ""hours_required"": 32 }, { ""developer_id"": ""A5"", ""request_id"": 10, ""hours_required"": 36 }, { ""developer_id"": ""A5"", ""request_id"": 11, ""hours_required"": 25 }, { ""developer_id"": ""A5"", ""request_id"": 12, ""hours_required"": 20 }, { ""developer_id"": ""A5"", ""request_id"": 13, ""hours_required"": 31 } ], ""cost"": [ { ""developer_id"": ""A1"", ""request_id"": 0, ""assignment_cost"": 10 }, { ""developer_id"": ""A1"", ""request_id"": 1, ""assignment_cost"": 10 }, { ""developer_id"": ""A1"", ""request_id"": 2, ""assignment_cost"": 12 }, { ""developer_id"": ""A1"", ""request_id"": 3, ""assignment_cost"": 17 }, { ""developer_id"": ""A1"", ""request_id"": 4, ""assignment_cost"": 8 }, { ""developer_id"": ""A1"", ""request_id"": 5, ""assignment_cost"": 21 }, { ""developer_id"": ""A1"", ""request_id"": 6, ""assignment_cost"": 22 }, { ""developer_id"": ""A1"", ""request_id"": 7, ""assignment_cost"": 16 }, { ""developer_id"": ""A1"", ""request_id"": 8, ""assignment_cost"": 24 }, { ""developer_id"": ""A1"", ""request_id"": 9, ""assignment_cost"": 19 }, { ""developer_id"": ""A1"", ""request_id"": 10, ""assignment_cost"": 15 }, { ""developer_id"": ""A1"", ""request_id"": 11, ""assignment_cost"": 24 }, { ""developer_id"": ""A1"", ""request_id"": 12, ""assignment_cost"": 20 }, { ""developer_id"": ""A1"", ""request_id"": 13, ""assignment_cost"": 11 }, { ""developer_id"": ""A2"", ""request_id"": 0, ""assignment_cost"": 12 }, { ""developer_id"": ""A2"", ""request_id"": 1, ""assignment_cost"": 14 }, { ""developer_id"": ""A2"", ""request_id"": 2, ""assignment_cost"": 15 }, { ""developer_id"": ""A2"", ""request_id"": 3, ""assignment_cost"": 23 }, { ""developer_id"": ""A2"", ""request_id"": 4, ""assignment_cost"": 11 }, { ""developer_id"": ""A2"", ""request_id"": 5, ""assignment_cost"": 10 }, { ""developer_id"": ""A2"", ""request_id"": 6, ""assignment_cost"": 22 }, { ""developer_id"": ""A2"", ""request_id"": 7, ""assignment_cost"": 25 }, { ""developer_id"": ""A2"", ""request_id"": 8, ""assignment_cost"": 9 }, { ""developer_id"": ""A2"", ""request_id"": 9, ""assignment_cost"": 17 }, { ""developer_id"": ""A2"", ""request_id"": 10, ""assignment_cost"": 21 }, { ""developer_id"": ""A2"", ""request_id"": 11, ""assignment_cost"": 24 }, { ""developer_id"": ""A2"", ""request_id"": 12, ""assignment_cost"": 16 }, { ""developer_id"": ""A2"", ""request_id"": 13, ""assignment_cost"": 23 }, { ""developer_id"": ""A3"", ""request_id"": 0, ""assignment_cost"": 13 }, { ""developer_id"": ""A3"", ""request_id"": 1, ""assignment_cost"": 20 }, { ""developer_id"": ""A3"", ""request_id"": 2, ""assignment_cost"": 23 }, { ""developer_id"": ""A3"", ""request_id"": 3, ""assignment_cost"": 21 }, { ""developer_id"": ""A3"", ""request_id"": 4, ""assignment_cost"": 18 }, { ""developer_id"": ""A3"", ""request_id"": 5, ""assignment_cost"": 25 }, { ""developer_id"": ""A3"", ""request_id"": 6, ""assignment_cost"": 17 }, { ""developer_id"": ""A3"", ""request_id"": 7, ""assignment_cost"": 18 }, { ""developer_id"": ""A3"", ""request_id"": 8, ""assignment_cost"": 23 }, { ""developer_id"": ""A3"", ""request_id"": 9, ""assignment_cost"": 13 }, { ""developer_id"": ""A3"", ""request_id"": 10, ""assignment_cost"": 23 }, { ""developer_id"": ""A3"", ""request_id"": 11, ""assignment_cost"": 6 }, { ""developer_id"": ""A3"", ""request_id"": 12, ""assignment_cost"": 25 }, { ""developer_id"": ""A3"", ""request_id"": 13, ""assignment_cost"": 21 }, { ""developer_id"": ""A4"", ""request_id"": 0, ""assignment_cost"": 5 }, { ""developer_id"": ""A4"", ""request_id"": 1, ""assignment_cost"": 20 }, { ""developer_id"": ""A4"", ""request_id"": 2, ""assignment_cost"": 15 }, { ""developer_id"": ""A4"", ""request_id"": 3, ""assignment_cost"": 7 }, { ""developer_id"": ""A4"", ""request_id"": 4, ""assignment_cost"": 21 }, { ""developer_id"": ""A4"", ""request_id"": 5, ""assignment_cost"": 25 }, { ""developer_id"": ""A4"", ""request_id"": 6, ""assignment_cost"": 5 }, { ""developer_id"": ""A4"", ""request_id"": 7, ""assignment_cost"": 7 }, { ""developer_id"": ""A4"", ""request_id"": 8, ""assignment_cost"": 21 }, { ""developer_id"": ""A4"", ""request_id"": 9, ""assignment_cost"": 24 }, { ""developer_id"": ""A4"", ""request_id"": 10, ""assignment_cost"": 22 }, { ""developer_id"": ""A4"", ""request_id"": 11, ""assignment_cost"": 8 }, { ""developer_id"": ""A4"", ""request_id"": 12, ""assignment_cost"": 14 }, { ""developer_id"": ""A4"", ""request_id"": 13, ""assignment_cost"": 5 }, { ""developer_id"": ""A5"", ""request_id"": 0, ""assignment_cost"": 22 }, { ""developer_id"": ""A5"", ""request_id"": 1, ""assignment_cost"": 21 }, { ""developer_id"": ""A5"", ""request_id"": 2, ""assignment_cost"": 7 }, { ""developer_id"": ""A5"", ""request_id"": 3, ""assignment_cost"": 24 }, { ""developer_id"": ""A5"", ""request_id"": 4, ""assignment_cost"": 8 }, { ""developer_id"": ""A5"", ""request_id"": 5, ""assignment_cost"": 11 }, { ""developer_id"": ""A5"", ""request_id"": 6, ""assignment_cost"": 13 }, { ""developer_id"": ""A5"", ""request_id"": 7, ""assignment_cost"": 11 }, { ""developer_id"": ""A5"", ""request_id"": 8, ""assignment_cost"": 6 }, { ""developer_id"": ""A5"", ""request_id"": 9, ""assignment_cost"": 8 }, { ""developer_id"": ""A5"", ""request_id"": 10, ""assignment_cost"": 21 }, { ""developer_id"": ""A5"", ""request_id"": 11, ""assignment_cost"": 11 }, { ""developer_id"": ""A5"", ""request_id"": 12, ""assignment_cost"": 25 }, { ""developer_id"": ""A5"", ""request_id"": 13, ""assignment_cost"": 22 } ] } If you want the answer in a neat, machine-friendly package, just follow this little JSON shape when you reply — nothing fancy, just a list saying which developer takes each request in order. { ""solution"": [ , , ..., ] } Think of that ""solution"" array as a form: the first entry is who does request #1, the second is who does request #2, and so on — you just drop each developer's identifier into the matching slot. This is only a sketch of the shape I need, not the actual assignment. Please use the exact identifiers from the problem input when you fill this in — don't rename or invent labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[34, 21, 45, 39, 41, 39, 23, 49, 40, 45, 20, 41, 32, 35], [26, 36, 48, 17, 17, 19, 30, 15, 13, 46, 13, 24, 45, 47], [38, 36, 46, 17, 43, 13, 29, 11, 48, 27, 34, 20, 40, 17], [16, 40, 21, 33, 42, 40, 11, 32, 50, 19, 20, 12, 32, 35], [30, 30, 27, 31, 12, 35, 45, 39, 38, 32, 36, 25, 20, 31]], 'assignment_costs': [[10, 10, 12, 17, 8, 21, 22, 16, 24, 19, 15, 24, 20, 11], [12, 14, 15, 23, 11, 10, 22, 25, 9, 17, 21, 24, 16, 23], [13, 20, 23, 21, 18, 25, 17, 18, 23, 13, 23, 6, 25, 21], [5, 20, 15, 7, 21, 25, 5, 7, 21, 24, 22, 8, 14, 5], [22, 21, 7, 24, 8, 11, 13, 11, 6, 8, 21, 11, 25, 22]], 'capacities': [493, 493, 493, 493, 493], 'objective': 113.0}","[3, 0, 4, 3, 4, 1, 3, 3, 4, 4, 0, 2, 3, 3]",113.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 493}, {'agent_id': 'A2', 'capacity': 493}, {'agent_id': 'A3', 'capacity': 493}, {'agent_id': 'A4', 'capacity': 493}, {'agent_id': 'A5', 'capacity': 493}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 34}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 23}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 40}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 35}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 26}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 30}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 38}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 43}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 34}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 20}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 40}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 19}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 35}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 27}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 31}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 12}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 35}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 45}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 39}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 32}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 25}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 20}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 31}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 10}, {'agent_id': 'A1', 'task_id': 1, 'cost': 10}, {'agent_id': 'A1', 'task_id': 2, 'cost': 12}, {'agent_id': 'A1', 'task_id': 3, 'cost': 17}, {'agent_id': 'A1', 'task_id': 4, 'cost': 8}, {'agent_id': 'A1', 'task_id': 5, 'cost': 21}, {'agent_id': 'A1', 'task_id': 6, 'cost': 22}, {'agent_id': 'A1', 'task_id': 7, 'cost': 16}, {'agent_id': 'A1', 'task_id': 8, 'cost': 24}, {'agent_id': 'A1', 'task_id': 9, 'cost': 19}, {'agent_id': 'A1', 'task_id': 10, 'cost': 15}, {'agent_id': 'A1', 'task_id': 11, 'cost': 24}, {'agent_id': 'A1', 'task_id': 12, 'cost': 20}, {'agent_id': 'A1', 'task_id': 13, 'cost': 11}, {'agent_id': 'A2', 'task_id': 0, 'cost': 12}, {'agent_id': 'A2', 'task_id': 1, 'cost': 14}, {'agent_id': 'A2', 'task_id': 2, 'cost': 15}, {'agent_id': 'A2', 'task_id': 3, 'cost': 23}, {'agent_id': 'A2', 'task_id': 4, 'cost': 11}, {'agent_id': 'A2', 'task_id': 5, 'cost': 10}, {'agent_id': 'A2', 'task_id': 6, 'cost': 22}, {'agent_id': 'A2', 'task_id': 7, 'cost': 25}, {'agent_id': 'A2', 'task_id': 8, 'cost': 9}, {'agent_id': 'A2', 'task_id': 9, 'cost': 17}, {'agent_id': 'A2', 'task_id': 10, 'cost': 21}, {'agent_id': 'A2', 'task_id': 11, 'cost': 24}, {'agent_id': 'A2', 'task_id': 12, 'cost': 16}, {'agent_id': 'A2', 'task_id': 13, 'cost': 23}, {'agent_id': 'A3', 'task_id': 0, 'cost': 13}, {'agent_id': 'A3', 'task_id': 1, 'cost': 20}, {'agent_id': 'A3', 'task_id': 2, 'cost': 23}, {'agent_id': 'A3', 'task_id': 3, 'cost': 21}, {'agent_id': 'A3', 'task_id': 4, 'cost': 18}, {'agent_id': 'A3', 'task_id': 5, 'cost': 25}, {'agent_id': 'A3', 'task_id': 6, 'cost': 17}, {'agent_id': 'A3', 'task_id': 7, 'cost': 18}, {'agent_id': 'A3', 'task_id': 8, 'cost': 23}, {'agent_id': 'A3', 'task_id': 9, 'cost': 13}, {'agent_id': 'A3', 'task_id': 10, 'cost': 23}, {'agent_id': 'A3', 'task_id': 11, 'cost': 6}, {'agent_id': 'A3', 'task_id': 12, 'cost': 25}, {'agent_id': 'A3', 'task_id': 13, 'cost': 21}, {'agent_id': 'A4', 'task_id': 0, 'cost': 5}, {'agent_id': 'A4', 'task_id': 1, 'cost': 20}, {'agent_id': 'A4', 'task_id': 2, 'cost': 15}, {'agent_id': 'A4', 'task_id': 3, 'cost': 7}, {'agent_id': 'A4', 'task_id': 4, 'cost': 21}, {'agent_id': 'A4', 'task_id': 5, 'cost': 25}, {'agent_id': 'A4', 'task_id': 6, 'cost': 5}, {'agent_id': 'A4', 'task_id': 7, 'cost': 7}, {'agent_id': 'A4', 'task_id': 8, 'cost': 21}, {'agent_id': 'A4', 'task_id': 9, 'cost': 24}, {'agent_id': 'A4', 'task_id': 10, 'cost': 22}, {'agent_id': 'A4', 'task_id': 11, 'cost': 8}, {'agent_id': 'A4', 'task_id': 12, 'cost': 14}, {'agent_id': 'A4', 'task_id': 13, 'cost': 5}, {'agent_id': 'A5', 'task_id': 0, 'cost': 22}, {'agent_id': 'A5', 'task_id': 1, 'cost': 21}, {'agent_id': 'A5', 'task_id': 2, 'cost': 7}, {'agent_id': 'A5', 'task_id': 3, 'cost': 24}, {'agent_id': 'A5', 'task_id': 4, 'cost': 8}, {'agent_id': 'A5', 'task_id': 5, 'cost': 11}, {'agent_id': 'A5', 'task_id': 6, 'cost': 13}, {'agent_id': 'A5', 'task_id': 7, 'cost': 11}, {'agent_id': 'A5', 'task_id': 8, 'cost': 6}, {'agent_id': 'A5', 'task_id': 9, 'cost': 8}, {'agent_id': 'A5', 'task_id': 10, 'cost': 21}, {'agent_id': 'A5', 'task_id': 11, 'cost': 11}, {'agent_id': 'A5', 'task_id': 12, 'cost': 25}, {'agent_id': 'A5', 'task_id': 13, 'cost': 22}]}","['A4', 'A1', 'A5', 'A4', 'A5', 'A2', 'A4', 'A4', 'A5', 'A5', 'A1', 'A3', 'A4', 'A4']",30,json,0 GAP,GAP,"Recently the head chef sketched a map of the line: each menu item must be handled at a single station, stations have finite prep capacity, and for every item-station pairing the team recorded how much of that station’s capacity the item would use and what it would cost to prep there. The task is to decide where every item goes so no station runs past its capacity, and to minimize the total cost — computed by adding the cost of each item at the station it’s sent to. The detailed numbers are listed below. # num_stations=4 # num_menu_items=11 # stations=A1, A2, A3, A4 # menu_items=A, B, C, D, E, F, G, H, I, J, K station_id,prep_capacity A1,365 A2,365 A3,365 A4,365 station_id,menu_item_id,station_capacity_usage A1,A,13 A1,B,40 A1,C,27 A1,D,16 A1,E,28 A1,F,46 A1,G,38 A1,H,21 A1,I,30 A1,J,39 A1,K,30 A2,A,43 A2,B,50 A2,C,31 A2,D,49 A2,E,31 A2,F,27 A2,G,39 A2,H,32 A2,I,33 A2,J,24 A2,K,12 A3,A,31 A3,B,49 A3,C,33 A3,D,10 A3,E,32 A3,F,34 A3,G,33 A3,H,27 A3,I,31 A3,J,23 A3,K,32 A4,A,17 A4,B,15 A4,C,34 A4,D,42 A4,E,19 A4,F,27 A4,G,19 A4,H,28 A4,I,37 A4,J,15 A4,K,45 station_id,menu_item_id,prep_cost A1,A,5 A1,B,15 A1,C,24 A1,D,22 A1,E,16 A1,F,22 A1,G,10 A1,H,6 A1,I,16 A1,J,7 A1,K,20 A2,A,9 A2,B,8 A2,C,15 A2,D,19 A2,E,11 A2,F,13 A2,G,11 A2,H,9 A2,I,6 A2,J,23 A2,K,12 A3,A,12 A3,B,21 A3,C,21 A3,D,11 A3,E,12 A3,F,17 A3,G,21 A3,H,10 A3,I,8 A3,J,17 A3,K,9 A4,A,9 A4,B,12 A4,C,17 A4,D,8 A4,E,5 A4,F,15 A4,G,6 A4,H,25 A4,I,8 A4,J,20 A4,K,25 Oh, and when you hand this back to me, please keep it in a simple JSON layout so it's easy to check automatically. Here's the shape I expect — just a little list showing which station each menu item goes to: { ""solution"": [ , , , ..., ] } Pretty straightforward: ""solution"" is an array where the first entry is the station for the first menu item, the second entry is the station for the second menu item, and so on through the last menu item. Think of it like a sign-up sheet: each slot shows which station is taking that dish. This JSON is only a sketch of the expected shape — not the final assignment. Please use the exact identifiers 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”.","{'resource_consumption': [[13, 40, 27, 16, 28, 46, 38, 21, 30, 39, 30], [43, 50, 31, 49, 31, 27, 39, 32, 33, 24, 12], [31, 49, 33, 10, 32, 34, 33, 27, 31, 23, 32], [17, 15, 34, 42, 19, 27, 19, 28, 37, 15, 45]], 'assignment_costs': [[5, 15, 24, 22, 16, 22, 10, 6, 16, 7, 20], [9, 8, 15, 19, 11, 13, 11, 9, 6, 23, 12], [12, 21, 21, 11, 12, 17, 21, 10, 8, 17, 9], [9, 12, 17, 8, 5, 15, 6, 25, 8, 20, 25]], 'capacities': [365, 365, 365, 365], 'objective': 88.0}","[0, 1, 1, 3, 3, 1, 3, 0, 1, 0, 2]",88.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 11, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 365}, {'agent_id': 'A2', 'capacity': 365}, {'agent_id': 'A3', 'capacity': 365}, {'agent_id': 'A4', 'capacity': 365}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 13}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 40}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 27}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 16}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 28}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 46}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 38}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 21}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 30}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 39}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 30}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 43}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 50}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 49}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 27}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 39}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 32}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 33}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 12}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 31}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 49}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 10}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 32}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 34}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 27}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 31}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 23}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 32}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 17}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 34}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 42}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 19}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 27}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 19}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 28}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 37}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 45}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 5}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 15}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 24}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 22}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 22}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 10}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 6}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 7}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 20}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 9}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 8}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 11}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 13}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 11}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 9}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 6}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 12}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 12}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 12}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 10}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 8}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 12}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 17}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 6}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 25}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 20}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 25}]}","['A1', 'A2', 'A2', 'A4', 'A4', 'A2', 'A4', 'A1', 'A2', 'A1', 'A3']",31,csv,names GAP,GAP,"There’s a simple problem at the dock: match each pallet to one truck, make sure nothing’s missed or duplicated, and respect each truck’s space limits. Pallets use up different amounts of room and incur different fees depending on which truck they ride in, and trucks can only carry up to their capacity. A better plan is one where, after adding up the hauling cost for every pallet’s chosen truck, that total bill is as small as possible. The specific pallet dimensions, truck space limits, and costs are listed below. Below are the 4 trucks and the 14 pallets: A1, A2, A3, A4 and 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13. Truck A1 has capacity 479. Truck A2 has capacity 489. Truck A3 has capacity 472. Truck A4 has capacity 479. If pallet 0 rides on truck A1, it consumes 44 space and incurs cost 24. If pallet 1 rides on truck A1, it consumes 32 space and incurs cost 25. If pallet 2 rides on truck A1, it consumes 50 space and incurs cost 17. If pallet 3 rides on truck A1, it consumes 48 space and incurs cost 10. If pallet 4 rides on truck A1, it consumes 33 space and incurs cost 16. If pallet 5 rides on truck A1, it consumes 20 space and incurs cost 8. If pallet 6 rides on truck A1, it consumes 50 space and incurs cost 25. If pallet 7 rides on truck A1, it consumes 39 space and incurs cost 11. If pallet 8 rides on truck A1, it consumes 47 space and incurs cost 12. If pallet 9 rides on truck A1, it consumes 28 space and incurs cost 23. If pallet 10 rides on truck A1, it consumes 11 space and incurs cost 19. If pallet 11 rides on truck A1, it consumes 10 space and incurs cost 7. If pallet 12 rides on truck A1, it consumes 28 space and incurs cost 11. If pallet 13 rides on truck A1, it consumes 16 space and incurs cost 12. If pallet 0 rides on truck A2, it consumes 23 space and incurs cost 8. If pallet 1 rides on truck A2, it consumes 45 space and incurs cost 18. If pallet 2 rides on truck A2, it consumes 50 space and incurs cost 14. If pallet 3 rides on truck A2, it consumes 23 space and incurs cost 13. If pallet 4 rides on truck A2, it consumes 23 space and incurs cost 17. If pallet 5 rides on truck A2, it consumes 42 space and incurs cost 21. If pallet 6 rides on truck A2, it consumes 12 space and incurs cost 11. If pallet 7 rides on truck A2, it consumes 48 space and incurs cost 17. If pallet 8 rides on truck A2, it consumes 28 space and incurs cost 5. If pallet 9 rides on truck A2, it consumes 41 space and incurs cost 18. If pallet 10 rides on truck A2, it consumes 12 space and incurs cost 6. If pallet 11 rides on truck A2, it consumes 25 space and incurs cost 12. If pallet 12 rides on truck A2, it consumes 31 space and incurs cost 24. If pallet 13 rides on truck A2, it consumes 31 space and incurs cost 12. If pallet 0 rides on truck A3, it consumes 11 space and incurs cost 7. If pallet 1 rides on truck A3, it consumes 28 space and incurs cost 14. If pallet 2 rides on truck A3, it consumes 28 space and incurs cost 7. If pallet 3 rides on truck A3, it consumes 48 space and incurs cost 25. If pallet 4 rides on truck A3, it consumes 12 space and incurs cost 17. If pallet 5 rides on truck A3, it consumes 11 space and incurs cost 13. If pallet 6 rides on truck A3, it consumes 23 space and incurs cost 10. If pallet 7 rides on truck A3, it consumes 31 space and incurs cost 13. If pallet 8 rides on truck A3, it consumes 12 space and incurs cost 5. If pallet 9 rides on truck A3, it consumes 36 space and incurs cost 18. If pallet 10 rides on truck A3, it consumes 17 space and incurs cost 15. If pallet 11 rides on truck A3, it consumes 16 space and incurs cost 24. If pallet 12 rides on truck A3, it consumes 44 space and incurs cost 7. If pallet 13 rides on truck A3, it consumes 37 space and incurs cost 12. If pallet 0 rides on truck A4, it consumes 49 space and incurs cost 14. If pallet 1 rides on truck A4, it consumes 18 space and incurs cost 25. If pallet 2 rides on truck A4, it consumes 16 space and incurs cost 5. If pallet 3 rides on truck A4, it consumes 11 space and incurs cost 24. If pallet 4 rides on truck A4, it consumes 41 space and incurs cost 8. If pallet 5 rides on truck A4, it consumes 13 space and incurs cost 9. If pallet 6 rides on truck A4, it consumes 36 space and incurs cost 20. If pallet 7 rides on truck A4, it consumes 42 space and incurs cost 25. If pallet 8 rides on truck A4, it consumes 42 space and incurs cost 21. If pallet 9 rides on truck A4, it consumes 34 space and incurs cost 11. If pallet 10 rides on truck A4, it consumes 23 space and incurs cost 22. If pallet 11 rides on truck A4, it consumes 42 space and incurs cost 13. If pallet 12 rides on truck A4, it consumes 36 space and incurs cost 7. If pallet 13 rides on truck A4, it consumes 46 space and incurs cost 25. Assign every pallet to exactly one truck without exceeding any truck's capacity, and minimize the total hauling cost. When you send back the plan, just use this simple JSON layout so I can read it automatically: { ""solution"": [ , , ..., ] } This little block is just a sketch of the shape I expect: ""solution"" is a list where each entry is the truck chosen for the corresponding pallet (so the first entry is for the first pallet, the second for the second pallet, and so on). Keep it light and exact — the JSON itself is the form, not the full answer. Please 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”.""","{'resource_consumption': [[44, 32, 50, 48, 33, 20, 50, 39, 47, 28, 11, 10, 28, 16], [23, 45, 50, 23, 23, 42, 12, 48, 28, 41, 12, 25, 31, 31], [11, 28, 28, 48, 12, 11, 23, 31, 12, 36, 17, 16, 44, 37], [49, 18, 16, 11, 41, 13, 36, 42, 42, 34, 23, 42, 36, 46]], 'assignment_costs': [[24, 25, 17, 10, 16, 8, 25, 11, 12, 23, 19, 7, 11, 12], [8, 18, 14, 13, 17, 21, 11, 17, 5, 18, 6, 12, 24, 12], [7, 14, 7, 25, 17, 13, 10, 13, 5, 18, 15, 24, 7, 12], [14, 25, 5, 24, 8, 9, 20, 25, 21, 11, 22, 13, 7, 25]], 'capacities': [479, 489, 472, 479], 'objective': 121.0}","[2, 2, 3, 0, 3, 0, 2, 0, 2, 3, 1, 0, 2, 0]",121.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 479}, {'agent_id': 'A2', 'capacity': 489}, {'agent_id': 'A3', 'capacity': 472}, {'agent_id': 'A4', 'capacity': 479}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 44}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 50}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 25}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 23}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 16}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 36}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 34}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 36}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 46}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 24}, {'agent_id': 'A1', 'task_id': 1, 'cost': 25}, {'agent_id': 'A1', 'task_id': 2, 'cost': 17}, {'agent_id': 'A1', 'task_id': 3, 'cost': 10}, {'agent_id': 'A1', 'task_id': 4, 'cost': 16}, {'agent_id': 'A1', 'task_id': 5, 'cost': 8}, {'agent_id': 'A1', 'task_id': 6, 'cost': 25}, {'agent_id': 'A1', 'task_id': 7, 'cost': 11}, {'agent_id': 'A1', 'task_id': 8, 'cost': 12}, {'agent_id': 'A1', 'task_id': 9, 'cost': 23}, {'agent_id': 'A1', 'task_id': 10, 'cost': 19}, {'agent_id': 'A1', 'task_id': 11, 'cost': 7}, {'agent_id': 'A1', 'task_id': 12, 'cost': 11}, {'agent_id': 'A1', 'task_id': 13, 'cost': 12}, {'agent_id': 'A2', 'task_id': 0, 'cost': 8}, {'agent_id': 'A2', 'task_id': 1, 'cost': 18}, {'agent_id': 'A2', 'task_id': 2, 'cost': 14}, {'agent_id': 'A2', 'task_id': 3, 'cost': 13}, {'agent_id': 'A2', 'task_id': 4, 'cost': 17}, {'agent_id': 'A2', 'task_id': 5, 'cost': 21}, {'agent_id': 'A2', 'task_id': 6, 'cost': 11}, {'agent_id': 'A2', 'task_id': 7, 'cost': 17}, {'agent_id': 'A2', 'task_id': 8, 'cost': 5}, {'agent_id': 'A2', 'task_id': 9, 'cost': 18}, {'agent_id': 'A2', 'task_id': 10, 'cost': 6}, {'agent_id': 'A2', 'task_id': 11, 'cost': 12}, {'agent_id': 'A2', 'task_id': 12, 'cost': 24}, {'agent_id': 'A2', 'task_id': 13, 'cost': 12}, {'agent_id': 'A3', 'task_id': 0, 'cost': 7}, {'agent_id': 'A3', 'task_id': 1, 'cost': 14}, {'agent_id': 'A3', 'task_id': 2, 'cost': 7}, {'agent_id': 'A3', 'task_id': 3, 'cost': 25}, {'agent_id': 'A3', 'task_id': 4, 'cost': 17}, {'agent_id': 'A3', 'task_id': 5, 'cost': 13}, {'agent_id': 'A3', 'task_id': 6, 'cost': 10}, {'agent_id': 'A3', 'task_id': 7, 'cost': 13}, {'agent_id': 'A3', 'task_id': 8, 'cost': 5}, {'agent_id': 'A3', 'task_id': 9, 'cost': 18}, {'agent_id': 'A3', 'task_id': 10, 'cost': 15}, {'agent_id': 'A3', 'task_id': 11, 'cost': 24}, {'agent_id': 'A3', 'task_id': 12, 'cost': 7}, {'agent_id': 'A3', 'task_id': 13, 'cost': 12}, {'agent_id': 'A4', 'task_id': 0, 'cost': 14}, {'agent_id': 'A4', 'task_id': 1, 'cost': 25}, {'agent_id': 'A4', 'task_id': 2, 'cost': 5}, {'agent_id': 'A4', 'task_id': 3, 'cost': 24}, {'agent_id': 'A4', 'task_id': 4, 'cost': 8}, {'agent_id': 'A4', 'task_id': 5, 'cost': 9}, {'agent_id': 'A4', 'task_id': 6, 'cost': 20}, {'agent_id': 'A4', 'task_id': 7, 'cost': 25}, {'agent_id': 'A4', 'task_id': 8, 'cost': 21}, {'agent_id': 'A4', 'task_id': 9, 'cost': 11}, {'agent_id': 'A4', 'task_id': 10, 'cost': 22}, {'agent_id': 'A4', 'task_id': 11, 'cost': 13}, {'agent_id': 'A4', 'task_id': 12, 'cost': 7}, {'agent_id': 'A4', 'task_id': 13, 'cost': 25}]}","['A3', 'A3', 'A4', 'A1', 'A4', 'A1', 'A3', 'A1', 'A3', 'A4', 'A2', 'A1', 'A3', 'A1']",32,nl,0 GAP,GAP,"Someone in charge of the studio’s workflow needs to hand off each photograph to exactly one editor — no photo gets forgotten or passed around twice. Each editor asks a different price and needs a different amount of time per photo, and they can take on multiple photos as long as the sum of their editing times doesn’t exceed their available hours. The goal is obvious: arrange the assignments so the combined invoice (the sum of every editor’s fee for the photos they do) is as low as possible while keeping everyone within their time limits. The specific times, prices, and capacities are listed below. There are 5 editors (A1, A2, A3, A4, A5) and 13 photos (A, B, C, D, E, F, G, H, I, J, K, L, M). | editor_id | available_hours | |---|---| | A1 | 720 | | A2 | 711 | | A3 | 710 | | A4 | 717 | | A5 | 740 | | editor_id | photo_id | edit_time | |---|---|---| | A1 | A | 39 | | A1 | B | 34 | | A1 | C | 36 | | A1 | D | 37 | | A1 | E | 19 | | A1 | F | 43 | | A1 | G | 14 | | A1 | H | 29 | | A1 | I | 37 | | A1 | J | 28 | | A1 | K | 40 | | A1 | L | 42 | | A1 | M | 23 | | A2 | A | 23 | | A2 | B | 23 | | A2 | C | 30 | | A2 | D | 31 | | A2 | E | 47 | | A2 | F | 24 | | A2 | G | 16 | | A2 | H | 21 | | A2 | I | 14 | | A2 | J | 46 | | A2 | K | 36 | | A2 | L | 10 | | A2 | M | 40 | | A3 | A | 21 | | A3 | B | 37 | | A3 | C | 23 | | A3 | D | 38 | | A3 | E | 29 | | A3 | F | 45 | | A3 | G | 48 | | A3 | H | 19 | | A3 | I | 50 | | A3 | J | 33 | | A3 | K | 23 | | A3 | L | 48 | | A3 | M | 34 | | A4 | A | 10 | | A4 | B | 25 | | A4 | C | 19 | | A4 | D | 20 | | A4 | E | 22 | | A4 | F | 50 | | A4 | G | 28 | | A4 | H | 33 | | A4 | I | 42 | | A4 | J | 40 | | A4 | K | 33 | | A4 | L | 14 | | A4 | M | 50 | | A5 | A | 13 | | A5 | B | 41 | | A5 | C | 18 | | A5 | D | 15 | | A5 | E | 18 | | A5 | F | 49 | | A5 | G | 38 | | A5 | H | 28 | | A5 | I | 26 | | A5 | J | 39 | | A5 | K | 26 | | A5 | L | 47 | | A5 | M | 36 | | editor_id | photo_id | fee | |---|---|---| | A1 | A | 21 | | A1 | B | 16 | | A1 | C | 14 | | A1 | D | 17 | | A1 | E | 18 | | A1 | F | 13 | | A1 | G | 22 | | A1 | H | 14 | | A1 | I | 8 | | A1 | J | 8 | | A1 | K | 19 | | A1 | L | 6 | | A1 | M | 16 | | A2 | A | 8 | | A2 | B | 19 | | A2 | C | 11 | | A2 | D | 12 | | A2 | E | 21 | | A2 | F | 16 | | A2 | G | 14 | | A2 | H | 25 | | A2 | I | 23 | | A2 | J | 21 | | A2 | K | 19 | | A2 | L | 9 | | A2 | M | 22 | | A3 | A | 7 | | A3 | B | 20 | | A3 | C | 22 | | A3 | D | 22 | | A3 | E | 15 | | A3 | F | 17 | | A3 | G | 15 | | A3 | H | 20 | | A3 | I | 7 | | A3 | J | 19 | | A3 | K | 11 | | A3 | L | 16 | | A3 | M | 24 | | A4 | A | 5 | | A4 | B | 22 | | A4 | C | 7 | | A4 | D | 9 | | A4 | E | 25 | | A4 | F | 5 | | A4 | G | 24 | | A4 | H | 23 | | A4 | I | 11 | | A4 | J | 11 | | A4 | K | 5 | | A4 | L | 19 | | A4 | M | 19 | | A5 | A | 23 | | A5 | B | 10 | | A5 | C | 8 | | A5 | D | 13 | | A5 | E | 25 | | A5 | F | 15 | | A5 | G | 19 | | A5 | H | 9 | | A5 | I | 18 | | A5 | J | 11 | | A5 | K | 21 | | A5 | L | 19 | | A5 | M | 21 | The assignments should minimize the total invoice while ensuring each of the 13 photos is assigned to exactly one of the 5 editors within their listed capacities. Also, when you send your assignment back, it's handy if you stick to a simple JSON layout like this: { ""solution"": [ , , ..., ] } Think of ""solution"" as the form field that lists, in order, which editor gets each photo. Each placeholder like is where you'd put the exact editor identifier for the first photo (and so on for the rest). This is just a sketch of the shape I expect, not the actual answer — you'll replace each placeholder with the real identifiers from the instance. Please 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”.""","{'resource_consumption': [[39, 34, 36, 37, 19, 43, 14, 29, 37, 28, 40, 42, 23], [23, 23, 30, 31, 47, 24, 16, 21, 14, 46, 36, 10, 40], [21, 37, 23, 38, 29, 45, 48, 19, 50, 33, 23, 48, 34], [10, 25, 19, 20, 22, 50, 28, 33, 42, 40, 33, 14, 50], [13, 41, 18, 15, 18, 49, 38, 28, 26, 39, 26, 47, 36]], 'assignment_costs': [[21, 16, 14, 17, 18, 13, 22, 14, 8, 8, 19, 6, 16], [8, 19, 11, 12, 21, 16, 14, 25, 23, 21, 19, 9, 22], [7, 20, 22, 22, 15, 17, 15, 20, 7, 19, 11, 16, 24], [5, 22, 7, 9, 25, 5, 24, 23, 11, 11, 5, 19, 19], [23, 10, 8, 13, 25, 15, 19, 9, 18, 11, 21, 19, 21]], 'capacities': [720, 711, 710, 717, 740], 'objective': 116.0}","[3, 4, 3, 3, 2, 3, 1, 4, 2, 0, 3, 0, 0]",116.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 13, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 720}, {'agent_id': 'A2', 'capacity': 711}, {'agent_id': 'A3', 'capacity': 710}, {'agent_id': 'A4', 'capacity': 717}, {'agent_id': 'A5', 'capacity': 740}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 39}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 34}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 36}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 37}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 19}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 43}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 14}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 29}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 37}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 28}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 40}, {'agent_id': 'A1', 'task_id': 'L', 'consumption': 42}, {'agent_id': 'A1', 'task_id': 'M', 'consumption': 23}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 23}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 23}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 30}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 47}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 16}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 21}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 14}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 46}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 36}, {'agent_id': 'A2', 'task_id': 'L', 'consumption': 10}, {'agent_id': 'A2', 'task_id': 'M', 'consumption': 40}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 21}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 37}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 23}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 38}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 29}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 45}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 48}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 19}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 50}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 23}, {'agent_id': 'A3', 'task_id': 'L', 'consumption': 48}, {'agent_id': 'A3', 'task_id': 'M', 'consumption': 34}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 10}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 25}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 19}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 20}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 22}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 50}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 28}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 33}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 42}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 40}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 33}, {'agent_id': 'A4', 'task_id': 'L', 'consumption': 14}, {'agent_id': 'A4', 'task_id': 'M', 'consumption': 50}, {'agent_id': 'A5', 'task_id': 'A', 'consumption': 13}, {'agent_id': 'A5', 'task_id': 'B', 'consumption': 41}, {'agent_id': 'A5', 'task_id': 'C', 'consumption': 18}, {'agent_id': 'A5', 'task_id': 'D', 'consumption': 15}, {'agent_id': 'A5', 'task_id': 'E', 'consumption': 18}, {'agent_id': 'A5', 'task_id': 'F', 'consumption': 49}, {'agent_id': 'A5', 'task_id': 'G', 'consumption': 38}, {'agent_id': 'A5', 'task_id': 'H', 'consumption': 28}, {'agent_id': 'A5', 'task_id': 'I', 'consumption': 26}, {'agent_id': 'A5', 'task_id': 'J', 'consumption': 39}, {'agent_id': 'A5', 'task_id': 'K', 'consumption': 26}, {'agent_id': 'A5', 'task_id': 'L', 'consumption': 47}, {'agent_id': 'A5', 'task_id': 'M', 'consumption': 36}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 21}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 17}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 13}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 22}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 8}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 8}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 19}, {'agent_id': 'A1', 'task_id': 'L', 'cost': 6}, {'agent_id': 'A1', 'task_id': 'M', 'cost': 16}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 8}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 11}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 21}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 16}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 14}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 25}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 21}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'L', 'cost': 9}, {'agent_id': 'A2', 'task_id': 'M', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 7}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 7}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 19}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'L', 'cost': 16}, {'agent_id': 'A3', 'task_id': 'M', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 22}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 7}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 25}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 23}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'L', 'cost': 19}, {'agent_id': 'A4', 'task_id': 'M', 'cost': 19}, {'agent_id': 'A5', 'task_id': 'A', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'B', 'cost': 10}, {'agent_id': 'A5', 'task_id': 'C', 'cost': 8}, {'agent_id': 'A5', 'task_id': 'D', 'cost': 13}, {'agent_id': 'A5', 'task_id': 'E', 'cost': 25}, {'agent_id': 'A5', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A5', 'task_id': 'G', 'cost': 19}, {'agent_id': 'A5', 'task_id': 'H', 'cost': 9}, {'agent_id': 'A5', 'task_id': 'I', 'cost': 18}, {'agent_id': 'A5', 'task_id': 'J', 'cost': 11}, {'agent_id': 'A5', 'task_id': 'K', 'cost': 21}, {'agent_id': 'A5', 'task_id': 'L', 'cost': 19}, {'agent_id': 'A5', 'task_id': 'M', 'cost': 21}]}","['A4', 'A5', 'A4', 'A4', 'A3', 'A4', 'A2', 'A5', 'A3', 'A1', 'A4', 'A1', 'A1']",33,markdown_table,names GAP,GAP,"Someone on the planning team noticed that each vendor’s pickup could be handled by different carriers, each costing a different amount and using different amounts of truck space. The task is to hand each vendor request to a single carrier (no doubles, no misses), make sure none of the carriers get more than they can carry, and keep the entire event’s service charges as small as possible — just sum the fees for all assigned requests and choose the combination with the smallest sum. The detailed list of requests, space usages, and fees is shown below. # num_logistics_partners=5 # num_vendor_requests=14 # logistics_partners=A1, A2, A3, A4, A5 # vendor_requests=A, B, C, D, E, F, G, H, I, J, K, L, M, N partner_id,vehicle_capacity A1,122 A2,117 A3,124 A4,118 A5,117 partner_id,vendor_request_id,space_consumption A1,A,23 A1,B,45 A1,C,17 A1,D,22 A1,E,41 A1,F,31 A1,G,38 A1,H,42 A1,I,10 A1,J,14 A1,K,18 A1,L,45 A1,M,47 A1,N,31 A2,A,26 A2,B,26 A2,C,32 A2,D,12 A2,E,50 A2,F,37 A2,G,39 A2,H,31 A2,I,33 A2,J,47 A2,K,22 A2,L,16 A2,M,20 A2,N,46 A3,A,16 A3,B,32 A3,C,49 A3,D,49 A3,E,45 A3,F,35 A3,G,40 A3,H,25 A3,I,18 A3,J,16 A3,K,28 A3,L,12 A3,M,33 A3,N,30 A4,A,29 A4,B,47 A4,C,48 A4,D,36 A4,E,17 A4,F,33 A4,G,50 A4,H,33 A4,I,40 A4,J,31 A4,K,15 A4,L,10 A4,M,41 A4,N,21 A5,A,17 A5,B,17 A5,C,48 A5,D,36 A5,E,37 A5,F,43 A5,G,26 A5,H,39 A5,I,46 A5,J,27 A5,K,12 A5,L,39 A5,M,38 A5,N,14 partner_id,vendor_request_id,service_fee A1,A,17 A1,B,23 A1,C,25 A1,D,6 A1,E,16 A1,F,17 A1,G,13 A1,H,20 A1,I,13 A1,J,17 A1,K,17 A1,L,5 A1,M,16 A1,N,21 A2,A,10 A2,B,7 A2,C,17 A2,D,24 A2,E,11 A2,F,19 A2,G,13 A2,H,13 A2,I,22 A2,J,23 A2,K,6 A2,L,7 A2,M,19 A2,N,14 A3,A,17 A3,B,16 A3,C,8 A3,D,20 A3,E,15 A3,F,25 A3,G,20 A3,H,9 A3,I,23 A3,J,21 A3,K,14 A3,L,22 A3,M,16 A3,N,23 A4,A,14 A4,B,24 A4,C,9 A4,D,23 A4,E,7 A4,F,5 A4,G,21 A4,H,12 A4,I,19 A4,J,24 A4,K,12 A4,L,14 A4,M,8 A4,N,23 A5,A,6 A5,B,23 A5,C,10 A5,D,5 A5,E,13 A5,F,15 A5,G,18 A5,H,5 A5,I,25 A5,J,16 A5,K,23 A5,L,8 A5,M,17 A5,N,10 If you want to hand me the final picks in a tidy form, just drop them in this little JSON shape — nothing fancy, just a plain list of who handles which pickup: { ""solution"": [ , , ..., ] } Think of the JSON like a short form: the solution array is the ordered list of carriers, where each entry is the carrier chosen for that vendor pickup (first entry → first request, second → second request, and so on). It's just a sketch of the shape I expect, not the actual filled-in answer. Please use the exact identifiers from the instance input — do not rename them or invent new labels. Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.","{'resource_consumption': [[23, 45, 17, 22, 41, 31, 38, 42, 10, 14, 18, 45, 47, 31], [26, 26, 32, 12, 50, 37, 39, 31, 33, 47, 22, 16, 20, 46], [16, 32, 49, 49, 45, 35, 40, 25, 18, 16, 28, 12, 33, 30], [29, 47, 48, 36, 17, 33, 50, 33, 40, 31, 15, 10, 41, 21], [17, 17, 48, 36, 37, 43, 26, 39, 46, 27, 12, 39, 38, 14]], 'assignment_costs': [[17, 23, 25, 6, 16, 17, 13, 20, 13, 17, 17, 5, 16, 21], [10, 7, 17, 24, 11, 19, 13, 13, 22, 23, 6, 7, 19, 14], [17, 16, 8, 20, 15, 25, 20, 9, 23, 21, 14, 22, 16, 23], [14, 24, 9, 23, 7, 5, 21, 12, 19, 24, 12, 14, 8, 23], [6, 23, 10, 5, 13, 15, 18, 5, 25, 16, 23, 8, 17, 10]], 'capacities': [122, 117, 124, 118, 117], 'objective': 115.0}","[4, 1, 2, 4, 3, 3, 0, 4, 0, 0, 1, 0, 3, 4]",115.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 122}, {'agent_id': 'A2', 'capacity': 117}, {'agent_id': 'A3', 'capacity': 124}, {'agent_id': 'A4', 'capacity': 118}, {'agent_id': 'A5', 'capacity': 117}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 23}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 45}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 17}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 22}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 41}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 31}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 38}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 42}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 10}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 14}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 18}, {'agent_id': 'A1', 'task_id': 'L', 'consumption': 45}, {'agent_id': 'A1', 'task_id': 'M', 'consumption': 47}, {'agent_id': 'A1', 'task_id': 'N', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 26}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 26}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 32}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 12}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 50}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 37}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 39}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 33}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 47}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 22}, {'agent_id': 'A2', 'task_id': 'L', 'consumption': 16}, {'agent_id': 'A2', 'task_id': 'M', 'consumption': 20}, {'agent_id': 'A2', 'task_id': 'N', 'consumption': 46}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 16}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 32}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 49}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 49}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 45}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 35}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 40}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 25}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 18}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 16}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 28}, {'agent_id': 'A3', 'task_id': 'L', 'consumption': 12}, {'agent_id': 'A3', 'task_id': 'M', 'consumption': 33}, {'agent_id': 'A3', 'task_id': 'N', 'consumption': 30}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 29}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 47}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 48}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 36}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 17}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 33}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 50}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 33}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 40}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 31}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 15}, {'agent_id': 'A4', 'task_id': 'L', 'consumption': 10}, {'agent_id': 'A4', 'task_id': 'M', 'consumption': 41}, {'agent_id': 'A4', 'task_id': 'N', 'consumption': 21}, {'agent_id': 'A5', 'task_id': 'A', 'consumption': 17}, {'agent_id': 'A5', 'task_id': 'B', 'consumption': 17}, {'agent_id': 'A5', 'task_id': 'C', 'consumption': 48}, {'agent_id': 'A5', 'task_id': 'D', 'consumption': 36}, {'agent_id': 'A5', 'task_id': 'E', 'consumption': 37}, {'agent_id': 'A5', 'task_id': 'F', 'consumption': 43}, {'agent_id': 'A5', 'task_id': 'G', 'consumption': 26}, {'agent_id': 'A5', 'task_id': 'H', 'consumption': 39}, {'agent_id': 'A5', 'task_id': 'I', 'consumption': 46}, {'agent_id': 'A5', 'task_id': 'J', 'consumption': 27}, {'agent_id': 'A5', 'task_id': 'K', 'consumption': 12}, {'agent_id': 'A5', 'task_id': 'L', 'consumption': 39}, {'agent_id': 'A5', 'task_id': 'M', 'consumption': 38}, {'agent_id': 'A5', 'task_id': 'N', 'consumption': 14}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 17}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 23}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 25}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 6}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 17}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 13}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 20}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 13}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 17}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 17}, {'agent_id': 'A1', 'task_id': 'L', 'cost': 5}, {'agent_id': 'A1', 'task_id': 'M', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'N', 'cost': 21}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 10}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 7}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 24}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 11}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 13}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 13}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 22}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 23}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 6}, {'agent_id': 'A2', 'task_id': 'L', 'cost': 7}, {'agent_id': 'A2', 'task_id': 'M', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'N', 'cost': 14}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 16}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 8}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 15}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 25}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 9}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 23}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 21}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 14}, {'agent_id': 'A3', 'task_id': 'L', 'cost': 22}, {'agent_id': 'A3', 'task_id': 'M', 'cost': 16}, {'agent_id': 'A3', 'task_id': 'N', 'cost': 23}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 14}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 23}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 7}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 5}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 21}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 12}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 19}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 24}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 12}, {'agent_id': 'A4', 'task_id': 'L', 'cost': 14}, {'agent_id': 'A4', 'task_id': 'M', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'N', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'A', 'cost': 6}, {'agent_id': 'A5', 'task_id': 'B', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'C', 'cost': 10}, {'agent_id': 'A5', 'task_id': 'D', 'cost': 5}, {'agent_id': 'A5', 'task_id': 'E', 'cost': 13}, {'agent_id': 'A5', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A5', 'task_id': 'G', 'cost': 18}, {'agent_id': 'A5', 'task_id': 'H', 'cost': 5}, {'agent_id': 'A5', 'task_id': 'I', 'cost': 25}, {'agent_id': 'A5', 'task_id': 'J', 'cost': 16}, {'agent_id': 'A5', 'task_id': 'K', 'cost': 23}, {'agent_id': 'A5', 'task_id': 'L', 'cost': 8}, {'agent_id': 'A5', 'task_id': 'M', 'cost': 17}, {'agent_id': 'A5', 'task_id': 'N', 'cost': 10}]}","['A5', 'A2', 'A3', 'A5', 'A4', 'A4', 'A1', 'A5', 'A1', 'A1', 'A2', 'A1', 'A4', 'A5']",34,csv,names GAP,GAP,"Many teams face the same juggling act: a set of services must be assigned to available servers, every service must have a single host (can’t be split or copied), and each server has a strict amount of RAM to share. Since each service consumes different RAM and has a different price on each server, the goal is to place all services so memory caps aren’t breached and the combined operating cost — calculated by summing each service’s cost on the server it’s placed on — is as low as possible. The concrete task and server details are listed below. There are 5 servers and 14 services to place; the available server identifiers are A1, A2, A3, A4, A5 and the service identifiers are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13. Server A1 has 221 GB of RAM available. Server A2 has 224 GB of RAM available. Server A3 has 254 GB of RAM available. Server A4 has 235 GB of RAM available. Server A5 has 232 GB of RAM available. If service 0 is placed on server A1 it consumes 24 GB of RAM and incurs an operating cost of 13. If service 1 is placed on server A1 it consumes 48 GB of RAM and incurs an operating cost of 25. If service 2 is placed on server A1 it consumes 24 GB of RAM and incurs an operating cost of 12. If service 3 is placed on server A1 it consumes 31 GB of RAM and incurs an operating cost of 14. If service 4 is placed on server A1 it consumes 31 GB of RAM and incurs an operating cost of 12. If service 5 is placed on server A1 it consumes 30 GB of RAM and incurs an operating cost of 6. If service 6 is placed on server A1 it consumes 48 GB of RAM and incurs an operating cost of 12. If service 7 is placed on server A1 it consumes 48 GB of RAM and incurs an operating cost of 15. If service 8 is placed on server A1 it consumes 42 GB of RAM and incurs an operating cost of 10. If service 9 is placed on server A1 it consumes 28 GB of RAM and incurs an operating cost of 25. If service 10 is placed on server A1 it consumes 15 GB of RAM and incurs an operating cost of 11. If service 11 is placed on server A1 it consumes 38 GB of RAM and incurs an operating cost of 8. If service 12 is placed on server A1 it consumes 42 GB of RAM and incurs an operating cost of 16. If service 13 is placed on server A1 it consumes 42 GB of RAM and incurs an operating cost of 7. If service 0 is placed on server A2 it consumes 13 GB of RAM and incurs an operating cost of 13. If service 1 is placed on server A2 it consumes 36 GB of RAM and incurs an operating cost of 6. If service 2 is placed on server A2 it consumes 50 GB of RAM and incurs an operating cost of 23. If service 3 is placed on server A2 it consumes 30 GB of RAM and incurs an operating cost of 15. If service 4 is placed on server A2 it consumes 48 GB of RAM and incurs an operating cost of 5. If service 5 is placed on server A2 it consumes 36 GB of RAM and incurs an operating cost of 11. If service 6 is placed on server A2 it consumes 15 GB of RAM and incurs an operating cost of 24. If service 7 is placed on server A2 it consumes 21 GB of RAM and incurs an operating cost of 12. If service 8 is placed on server A2 it consumes 47 GB of RAM and incurs an operating cost of 7. If service 9 is placed on server A2 it consumes 41 GB of RAM and incurs an operating cost of 12. If service 10 is placed on server A2 it consumes 14 GB of RAM and incurs an operating cost of 20. If service 11 is placed on server A2 it consumes 24 GB of RAM and incurs an operating cost of 15. If service 12 is placed on server A2 it consumes 44 GB of RAM and incurs an operating cost of 24. If service 13 is placed on server A2 it consumes 35 GB of RAM and incurs an operating cost of 23. If service 0 is placed on server A3 it consumes 33 GB of RAM and incurs an operating cost of 25. If service 1 is placed on server A3 it consumes 47 GB of RAM and incurs an operating cost of 25. If service 2 is placed on server A3 it consumes 29 GB of RAM and incurs an operating cost of 14. If service 3 is placed on server A3 it consumes 44 GB of RAM and incurs an operating cost of 5. If service 4 is placed on server A3 it consumes 21 GB of RAM and incurs an operating cost of 19. If service 5 is placed on server A3 it consumes 48 GB of RAM and incurs an operating cost of 7. If service 6 is placed on server A3 it consumes 29 GB of RAM and incurs an operating cost of 14. If service 7 is placed on server A3 it consumes 17 GB of RAM and incurs an operating cost of 14. If service 8 is placed on server A3 it consumes 23 GB of RAM and incurs an operating cost of 12. If service 9 is placed on server A3 it consumes 41 GB of RAM and incurs an operating cost of 5. If service 10 is placed on server A3 it consumes 49 GB of RAM and incurs an operating cost of 14. If service 11 is placed on server A3 it consumes 13 GB of RAM and incurs an operating cost of 6. If service 12 is placed on server A3 it consumes 14 GB of RAM and incurs an operating cost of 18. If service 13 is placed on server A3 it consumes 22 GB of RAM and incurs an operating cost of 22. If service 0 is placed on server A4 it consumes 17 GB of RAM and incurs an operating cost of 5. If service 1 is placed on server A4 it consumes 23 GB of RAM and incurs an operating cost of 23. If service 2 is placed on server A4 it consumes 45 GB of RAM and incurs an operating cost of 25. If service 3 is placed on server A4 it consumes 19 GB of RAM and incurs an operating cost of 20. If service 4 is placed on server A4 it consumes 32 GB of RAM and incurs an operating cost of 19. If service 5 is placed on server A4 it consumes 33 GB of RAM and incurs an operating cost of 13. If service 6 is placed on server A4 it consumes 38 GB of RAM and incurs an operating cost of 19. If service 7 is placed on server A4 it consumes 46 GB of RAM and incurs an operating cost of 15. If service 8 is placed on server A4 it consumes 42 GB of RAM and incurs an operating cost of 23. If service 9 is placed on server A4 it consumes 36 GB of RAM and incurs an operating cost of 12. If service 10 is placed on server A4 it consumes 39 GB of RAM and incurs an operating cost of 21. If service 11 is placed on server A4 it consumes 37 GB of RAM and incurs an operating cost of 7. If service 12 is placed on server A4 it consumes 21 GB of RAM and incurs an operating cost of 5. If service 13 is placed on server A4 it consumes 17 GB of RAM and incurs an operating cost of 17. If service 0 is placed on server A5 it consumes 48 GB of RAM and incurs an operating cost of 11. If service 1 is placed on server A5 it consumes 28 GB of RAM and incurs an operating cost of 17. If service 2 is placed on server A5 it consumes 13 GB of RAM and incurs an operating cost of 24. If service 3 is placed on server A5 it consumes 36 GB of RAM and incurs an operating cost of 18. If service 4 is placed on server A5 it consumes 23 GB of RAM and incurs an operating cost of 25. If service 5 is placed on server A5 it consumes 31 GB of RAM and incurs an operating cost of 23. If service 6 is placed on server A5 it consumes 43 GB of RAM and incurs an operating cost of 6. If service 7 is placed on server A5 it consumes 36 GB of RAM and incurs an operating cost of 15. If service 8 is placed on server A5 it consumes 13 GB of RAM and incurs an operating cost of 17. If service 9 is placed on server A5 it consumes 24 GB of RAM and incurs an operating cost of 22. If service 10 is placed on server A5 it consumes 37 GB of RAM and incurs an operating cost of 10. If service 11 is placed on server A5 it consumes 45 GB of RAM and incurs an operating cost of 25. If service 12 is placed on server A5 it consumes 37 GB of RAM and incurs an operating cost of 16. If service 13 is placed on server A5 it consumes 50 GB of RAM and incurs an operating cost of 7. Place all 14 services onto the 5 servers without exceeding any server's RAM and while minimizing total operating cost. One more thing — when you send back the placement, please use this simple JSON layout so it's easy to parse: { ""solution"": [ , , ..., ] } Think of it like a form: ""solution"" is the list, and each entry in that list is the exact server (host) you picked for the corresponding service, in the same order the services were listed above. This is just the shape I expect — not the real answer itself. Please use the identifiers exactly as they appear in the instance input — don't invent new names or change them. - 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”.""","{'resource_consumption': [[24, 48, 24, 31, 31, 30, 48, 48, 42, 28, 15, 38, 42, 42], [13, 36, 50, 30, 48, 36, 15, 21, 47, 41, 14, 24, 44, 35], [33, 47, 29, 44, 21, 48, 29, 17, 23, 41, 49, 13, 14, 22], [17, 23, 45, 19, 32, 33, 38, 46, 42, 36, 39, 37, 21, 17], [48, 28, 13, 36, 23, 31, 43, 36, 13, 24, 37, 45, 37, 50]], 'assignment_costs': [[13, 25, 12, 14, 12, 6, 12, 15, 10, 25, 11, 8, 16, 7], [13, 6, 23, 15, 5, 11, 24, 12, 7, 12, 20, 15, 24, 23], [25, 25, 14, 5, 19, 7, 14, 14, 12, 5, 14, 6, 18, 22], [5, 23, 25, 20, 19, 13, 19, 15, 23, 12, 21, 7, 5, 17], [11, 17, 24, 18, 25, 23, 6, 15, 17, 22, 10, 25, 16, 7]], 'capacities': [221, 224, 254, 235, 232], 'objective': 97.0}","[3, 1, 0, 2, 1, 0, 4, 1, 1, 2, 4, 2, 3, 0]",97.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 221}, {'agent_id': 'A2', 'capacity': 224}, {'agent_id': 'A3', 'capacity': 254}, {'agent_id': 'A4', 'capacity': 235}, {'agent_id': 'A5', 'capacity': 232}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 30}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 50}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 30}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 23}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 19}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 36}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 17}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 48}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 13}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 23}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 31}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 43}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 24}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 45}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 50}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 13}, {'agent_id': 'A1', 'task_id': 1, 'cost': 25}, {'agent_id': 'A1', 'task_id': 2, 'cost': 12}, {'agent_id': 'A1', 'task_id': 3, 'cost': 14}, {'agent_id': 'A1', 'task_id': 4, 'cost': 12}, {'agent_id': 'A1', 'task_id': 5, 'cost': 6}, {'agent_id': 'A1', 'task_id': 6, 'cost': 12}, {'agent_id': 'A1', 'task_id': 7, 'cost': 15}, {'agent_id': 'A1', 'task_id': 8, 'cost': 10}, {'agent_id': 'A1', 'task_id': 9, 'cost': 25}, {'agent_id': 'A1', 'task_id': 10, 'cost': 11}, {'agent_id': 'A1', 'task_id': 11, 'cost': 8}, {'agent_id': 'A1', 'task_id': 12, 'cost': 16}, {'agent_id': 'A1', 'task_id': 13, 'cost': 7}, {'agent_id': 'A2', 'task_id': 0, 'cost': 13}, {'agent_id': 'A2', 'task_id': 1, 'cost': 6}, {'agent_id': 'A2', 'task_id': 2, 'cost': 23}, {'agent_id': 'A2', 'task_id': 3, 'cost': 15}, {'agent_id': 'A2', 'task_id': 4, 'cost': 5}, {'agent_id': 'A2', 'task_id': 5, 'cost': 11}, {'agent_id': 'A2', 'task_id': 6, 'cost': 24}, {'agent_id': 'A2', 'task_id': 7, 'cost': 12}, {'agent_id': 'A2', 'task_id': 8, 'cost': 7}, {'agent_id': 'A2', 'task_id': 9, 'cost': 12}, {'agent_id': 'A2', 'task_id': 10, 'cost': 20}, {'agent_id': 'A2', 'task_id': 11, 'cost': 15}, {'agent_id': 'A2', 'task_id': 12, 'cost': 24}, {'agent_id': 'A2', 'task_id': 13, 'cost': 23}, {'agent_id': 'A3', 'task_id': 0, 'cost': 25}, {'agent_id': 'A3', 'task_id': 1, 'cost': 25}, {'agent_id': 'A3', 'task_id': 2, 'cost': 14}, {'agent_id': 'A3', 'task_id': 3, 'cost': 5}, {'agent_id': 'A3', 'task_id': 4, 'cost': 19}, {'agent_id': 'A3', 'task_id': 5, 'cost': 7}, {'agent_id': 'A3', 'task_id': 6, 'cost': 14}, {'agent_id': 'A3', 'task_id': 7, 'cost': 14}, {'agent_id': 'A3', 'task_id': 8, 'cost': 12}, {'agent_id': 'A3', 'task_id': 9, 'cost': 5}, {'agent_id': 'A3', 'task_id': 10, 'cost': 14}, {'agent_id': 'A3', 'task_id': 11, 'cost': 6}, {'agent_id': 'A3', 'task_id': 12, 'cost': 18}, {'agent_id': 'A3', 'task_id': 13, 'cost': 22}, {'agent_id': 'A4', 'task_id': 0, 'cost': 5}, {'agent_id': 'A4', 'task_id': 1, 'cost': 23}, {'agent_id': 'A4', 'task_id': 2, 'cost': 25}, {'agent_id': 'A4', 'task_id': 3, 'cost': 20}, {'agent_id': 'A4', 'task_id': 4, 'cost': 19}, {'agent_id': 'A4', 'task_id': 5, 'cost': 13}, {'agent_id': 'A4', 'task_id': 6, 'cost': 19}, {'agent_id': 'A4', 'task_id': 7, 'cost': 15}, {'agent_id': 'A4', 'task_id': 8, 'cost': 23}, {'agent_id': 'A4', 'task_id': 9, 'cost': 12}, {'agent_id': 'A4', 'task_id': 10, 'cost': 21}, {'agent_id': 'A4', 'task_id': 11, 'cost': 7}, {'agent_id': 'A4', 'task_id': 12, 'cost': 5}, {'agent_id': 'A4', 'task_id': 13, 'cost': 17}, {'agent_id': 'A5', 'task_id': 0, 'cost': 11}, {'agent_id': 'A5', 'task_id': 1, 'cost': 17}, {'agent_id': 'A5', 'task_id': 2, 'cost': 24}, {'agent_id': 'A5', 'task_id': 3, 'cost': 18}, {'agent_id': 'A5', 'task_id': 4, 'cost': 25}, {'agent_id': 'A5', 'task_id': 5, 'cost': 23}, {'agent_id': 'A5', 'task_id': 6, 'cost': 6}, {'agent_id': 'A5', 'task_id': 7, 'cost': 15}, {'agent_id': 'A5', 'task_id': 8, 'cost': 17}, {'agent_id': 'A5', 'task_id': 9, 'cost': 22}, {'agent_id': 'A5', 'task_id': 10, 'cost': 10}, {'agent_id': 'A5', 'task_id': 11, 'cost': 25}, {'agent_id': 'A5', 'task_id': 12, 'cost': 16}, {'agent_id': 'A5', 'task_id': 13, 'cost': 7}]}","['A4', 'A2', 'A1', 'A3', 'A2', 'A1', 'A5', 'A2', 'A2', 'A3', 'A5', 'A3', 'A4', 'A1']",35,nl,0 GAP,GAP,"Many moves come down to a simple balancing act: put each item on one truck, never twice and never forgotten. Since trucks differ in how much room an item eats up and how much they’ll bill for hauling it, the job is to keep every truck under its capacity while making the total moving charges (add every item’s assigned charge together) as small as possible. The specific item-to-truck space usages and fees are shown below. # num_trucks=4 # num_items=11 # truck_ids=A1, A2, A3, A4 # item_ids=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 truck_id,truck_capacity A1,464 A2,485 A3,505 A4,495 truck_id,item_id,space_consumption A1,1,14 A1,2,33 A1,3,14 A1,4,49 A1,5,42 A1,6,19 A1,7,48 A1,8,47 A1,9,45 A1,10,13 A1,11,35 A2,1,24 A2,2,40 A2,3,37 A2,4,46 A2,5,25 A2,6,16 A2,7,22 A2,8,11 A2,9,11 A2,10,19 A2,11,19 A3,1,27 A3,2,22 A3,3,21 A3,4,46 A3,5,14 A3,6,17 A3,7,45 A3,8,50 A3,9,33 A3,10,41 A3,11,13 A4,1,39 A4,2,25 A4,3,15 A4,4,30 A4,5,35 A4,6,12 A4,7,37 A4,8,41 A4,9,38 A4,10,19 A4,11,46 truck_id,item_id,moving_fee A1,1,14 A1,2,12 A1,3,8 A1,4,11 A1,5,9 A1,6,20 A1,7,19 A1,8,6 A1,9,20 A1,10,7 A1,11,21 A2,1,6 A2,2,10 A2,3,25 A2,4,16 A2,5,6 A2,6,16 A2,7,23 A2,8,19 A2,9,19 A2,10,9 A2,11,25 A3,1,24 A3,2,15 A3,3,25 A3,4,23 A3,5,14 A3,6,15 A3,7,22 A3,8,7 A3,9,6 A3,10,10 A3,11,7 A4,1,23 A4,2,5 A4,3,22 A4,4,19 A4,5,21 A4,6,19 A4,7,18 A4,8,15 A4,9,15 A4,10,17 A4,11,25 And if you want to hand me the answer in a machine-friendly way, just drop it in a tiny JSON like this — one entry per item, in order: { ""solution"": [ , , ..., ] } This ""solution"" array is just a list that says which truck each item goes on (first array entry = first item, second = second item, and so on). Think of each placeholder as the spot where you'll put the exact truck identifier from the instance. It's just the shape I need, not the actual assignment. Please use the exact identifiers from the instance input — don't rename them or invent new ones. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”"".","{'resource_consumption': [[14, 33, 14, 49, 42, 19, 48, 47, 45, 13, 35], [24, 40, 37, 46, 25, 16, 22, 11, 11, 19, 19], [27, 22, 21, 46, 14, 17, 45, 50, 33, 41, 13], [39, 25, 15, 30, 35, 12, 37, 41, 38, 19, 46]], 'assignment_costs': [[14, 12, 8, 11, 9, 20, 19, 6, 20, 7, 21], [6, 10, 25, 16, 6, 16, 23, 19, 19, 9, 25], [24, 15, 25, 23, 14, 15, 22, 7, 6, 10, 7], [23, 5, 22, 19, 21, 19, 18, 15, 15, 17, 25]], 'capacities': [464, 485, 505, 495], 'objective': 95.0}","[1, 3, 0, 0, 1, 2, 3, 0, 2, 0, 2]",95.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 11, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 464}, {'agent_id': 'A2', 'capacity': 485}, {'agent_id': 'A3', 'capacity': 505}, {'agent_id': 'A4', 'capacity': 495}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 14}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 14}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 13}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 35}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 40}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 37}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 25}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 35}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 19}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 46}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 14}, {'agent_id': 'A1', 'task_id': 2, 'cost': 12}, {'agent_id': 'A1', 'task_id': 3, 'cost': 8}, {'agent_id': 'A1', 'task_id': 4, 'cost': 11}, {'agent_id': 'A1', 'task_id': 5, 'cost': 9}, {'agent_id': 'A1', 'task_id': 6, 'cost': 20}, {'agent_id': 'A1', 'task_id': 7, 'cost': 19}, {'agent_id': 'A1', 'task_id': 8, 'cost': 6}, {'agent_id': 'A1', 'task_id': 9, 'cost': 20}, {'agent_id': 'A1', 'task_id': 10, 'cost': 7}, {'agent_id': 'A1', 'task_id': 11, 'cost': 21}, {'agent_id': 'A2', 'task_id': 1, 'cost': 6}, {'agent_id': 'A2', 'task_id': 2, 'cost': 10}, {'agent_id': 'A2', 'task_id': 3, 'cost': 25}, {'agent_id': 'A2', 'task_id': 4, 'cost': 16}, {'agent_id': 'A2', 'task_id': 5, 'cost': 6}, {'agent_id': 'A2', 'task_id': 6, 'cost': 16}, {'agent_id': 'A2', 'task_id': 7, 'cost': 23}, {'agent_id': 'A2', 'task_id': 8, 'cost': 19}, {'agent_id': 'A2', 'task_id': 9, 'cost': 19}, {'agent_id': 'A2', 'task_id': 10, 'cost': 9}, {'agent_id': 'A2', 'task_id': 11, 'cost': 25}, {'agent_id': 'A3', 'task_id': 1, 'cost': 24}, {'agent_id': 'A3', 'task_id': 2, 'cost': 15}, {'agent_id': 'A3', 'task_id': 3, 'cost': 25}, {'agent_id': 'A3', 'task_id': 4, 'cost': 23}, {'agent_id': 'A3', 'task_id': 5, 'cost': 14}, {'agent_id': 'A3', 'task_id': 6, 'cost': 15}, {'agent_id': 'A3', 'task_id': 7, 'cost': 22}, {'agent_id': 'A3', 'task_id': 8, 'cost': 7}, {'agent_id': 'A3', 'task_id': 9, 'cost': 6}, {'agent_id': 'A3', 'task_id': 10, 'cost': 10}, {'agent_id': 'A3', 'task_id': 11, 'cost': 7}, {'agent_id': 'A4', 'task_id': 1, 'cost': 23}, {'agent_id': 'A4', 'task_id': 2, 'cost': 5}, {'agent_id': 'A4', 'task_id': 3, 'cost': 22}, {'agent_id': 'A4', 'task_id': 4, 'cost': 19}, {'agent_id': 'A4', 'task_id': 5, 'cost': 21}, {'agent_id': 'A4', 'task_id': 6, 'cost': 19}, {'agent_id': 'A4', 'task_id': 7, 'cost': 18}, {'agent_id': 'A4', 'task_id': 8, 'cost': 15}, {'agent_id': 'A4', 'task_id': 9, 'cost': 15}, {'agent_id': 'A4', 'task_id': 10, 'cost': 17}, {'agent_id': 'A4', 'task_id': 11, 'cost': 25}]}","['A2', 'A4', 'A1', 'A1', 'A2', 'A3', 'A4', 'A1', 'A3', 'A1', 'A3']",36,csv,1 GAP,GAP,"Someone at the library needs to sort out a batch of returned books by sending each title to one repair shop so nothing is missed or duplicated. Each shop uses a different amount of repair time on different books and charges different parts prices, and every shop only has a limited number of repair hours, so the sum of times for the books sent there can’t go over that limit. The idea is to minimize the overall repair bill — calculated by adding up the parts cost for every book where it’s sent — while making sure every book is assigned and no shop’s hours are exceeded. The full breakdown of books, times, costs, and shop hour limits is shown below. There are 4 repair shops and 11 returned books; the shops are A1, A2, A3, A4 and the books are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. | repair_shop_id | available_hours | |---|---| | A1 | 481 | | A2 | 476 | | A3 | 476 | | A4 | 478 | | repair_shop_id | book_id | repair_time_hours | |---|---|---| | A1 | 0 | 21 | | A1 | 1 | 24 | | A1 | 2 | 32 | | A1 | 3 | 20 | | A1 | 4 | 12 | | A1 | 5 | 10 | | A1 | 6 | 48 | | A1 | 7 | 20 | | A1 | 8 | 16 | | A1 | 9 | 36 | | A1 | 10 | 37 | | A2 | 0 | 23 | | A2 | 1 | 10 | | A2 | 2 | 20 | | A2 | 3 | 47 | | A2 | 4 | 24 | | A2 | 5 | 46 | | A2 | 6 | 37 | | A2 | 7 | 42 | | A2 | 8 | 19 | | A2 | 9 | 28 | | A2 | 10 | 18 | | A3 | 0 | 31 | | A3 | 1 | 28 | | A3 | 2 | 48 | | A3 | 3 | 44 | | A3 | 4 | 48 | | A3 | 5 | 28 | | A3 | 6 | 38 | | A3 | 7 | 36 | | A3 | 8 | 19 | | A3 | 9 | 45 | | A3 | 10 | 11 | | A4 | 0 | 18 | | A4 | 1 | 28 | | A4 | 2 | 41 | | A4 | 3 | 16 | | A4 | 4 | 28 | | A4 | 5 | 44 | | A4 | 6 | 22 | | A4 | 7 | 32 | | A4 | 8 | 14 | | A4 | 9 | 16 | | A4 | 10 | 46 | | repair_shop_id | book_id | parts_cost | |---|---|---| | A1 | 0 | 20 | | A1 | 1 | 24 | | A1 | 2 | 25 | | A1 | 3 | 5 | | A1 | 4 | 21 | | A1 | 5 | 14 | | A1 | 6 | 21 | | A1 | 7 | 12 | | A1 | 8 | 10 | | A1 | 9 | 10 | | A1 | 10 | 16 | | A2 | 0 | 19 | | A2 | 1 | 15 | | A2 | 2 | 11 | | A2 | 3 | 21 | | A2 | 4 | 24 | | A2 | 5 | 16 | | A2 | 6 | 6 | | A2 | 7 | 14 | | A2 | 8 | 24 | | A2 | 9 | 15 | | A2 | 10 | 19 | | A3 | 0 | 6 | | A3 | 1 | 19 | | A3 | 2 | 8 | | A3 | 3 | 23 | | A3 | 4 | 12 | | A3 | 5 | 18 | | A3 | 6 | 17 | | A3 | 7 | 11 | | A3 | 8 | 12 | | A3 | 9 | 22 | | A3 | 10 | 11 | | A4 | 0 | 23 | | A4 | 1 | 7 | | A4 | 2 | 15 | | A4 | 3 | 9 | | A4 | 4 | 24 | | A4 | 5 | 16 | | A4 | 6 | 19 | | A4 | 7 | 15 | | A4 | 8 | 17 | | A4 | 9 | 11 | | A4 | 10 | 16 | Assign each book to exactly one shop, keeping within each shop's available hours and minimizing the total parts cost. If you want to hand me the final assignment in a tidy, machine-friendly way, just use this simple JSON layout so it's clear which shop each book goes to: { ""solution"": [ , , ..., ] } This little sketch means: the ""solution"" array lists, in order, which repair shop each returned book should be sent to — the first entry is the shop for the first book, the second entry is the shop for the second book, and so on. It's just the shape I expect, not the actual assignment. Please make sure to use the exact identifiers from the instance input — don't rename them or introduce 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”.","{'resource_consumption': [[21, 24, 32, 20, 12, 10, 48, 20, 16, 36, 37], [23, 10, 20, 47, 24, 46, 37, 42, 19, 28, 18], [31, 28, 48, 44, 48, 28, 38, 36, 19, 45, 11], [18, 28, 41, 16, 28, 44, 22, 32, 14, 16, 46]], 'assignment_costs': [[20, 24, 25, 5, 21, 14, 21, 12, 10, 10, 16], [19, 15, 11, 21, 24, 16, 6, 14, 24, 15, 19], [6, 19, 8, 23, 12, 18, 17, 11, 12, 22, 11], [23, 7, 15, 9, 24, 16, 19, 15, 17, 11, 16]], 'capacities': [481, 476, 476, 478], 'objective': 100.0}","[2, 3, 2, 0, 2, 0, 1, 2, 0, 0, 2]",100.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 11, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 481}, {'agent_id': 'A2', 'capacity': 476}, {'agent_id': 'A3', 'capacity': 476}, {'agent_id': 'A4', 'capacity': 478}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 12}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 37}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 37}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 18}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 38}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 14}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 46}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 20}, {'agent_id': 'A1', 'task_id': 1, 'cost': 24}, {'agent_id': 'A1', 'task_id': 2, 'cost': 25}, {'agent_id': 'A1', 'task_id': 3, 'cost': 5}, {'agent_id': 'A1', 'task_id': 4, 'cost': 21}, {'agent_id': 'A1', 'task_id': 5, 'cost': 14}, {'agent_id': 'A1', 'task_id': 6, 'cost': 21}, {'agent_id': 'A1', 'task_id': 7, 'cost': 12}, {'agent_id': 'A1', 'task_id': 8, 'cost': 10}, {'agent_id': 'A1', 'task_id': 9, 'cost': 10}, {'agent_id': 'A1', 'task_id': 10, 'cost': 16}, {'agent_id': 'A2', 'task_id': 0, 'cost': 19}, {'agent_id': 'A2', 'task_id': 1, 'cost': 15}, {'agent_id': 'A2', 'task_id': 2, 'cost': 11}, {'agent_id': 'A2', 'task_id': 3, 'cost': 21}, {'agent_id': 'A2', 'task_id': 4, 'cost': 24}, {'agent_id': 'A2', 'task_id': 5, 'cost': 16}, {'agent_id': 'A2', 'task_id': 6, 'cost': 6}, {'agent_id': 'A2', 'task_id': 7, 'cost': 14}, {'agent_id': 'A2', 'task_id': 8, 'cost': 24}, {'agent_id': 'A2', 'task_id': 9, 'cost': 15}, {'agent_id': 'A2', 'task_id': 10, 'cost': 19}, {'agent_id': 'A3', 'task_id': 0, 'cost': 6}, {'agent_id': 'A3', 'task_id': 1, 'cost': 19}, {'agent_id': 'A3', 'task_id': 2, 'cost': 8}, {'agent_id': 'A3', 'task_id': 3, 'cost': 23}, {'agent_id': 'A3', 'task_id': 4, 'cost': 12}, {'agent_id': 'A3', 'task_id': 5, 'cost': 18}, {'agent_id': 'A3', 'task_id': 6, 'cost': 17}, {'agent_id': 'A3', 'task_id': 7, 'cost': 11}, {'agent_id': 'A3', 'task_id': 8, 'cost': 12}, {'agent_id': 'A3', 'task_id': 9, 'cost': 22}, {'agent_id': 'A3', 'task_id': 10, 'cost': 11}, {'agent_id': 'A4', 'task_id': 0, 'cost': 23}, {'agent_id': 'A4', 'task_id': 1, 'cost': 7}, {'agent_id': 'A4', 'task_id': 2, 'cost': 15}, {'agent_id': 'A4', 'task_id': 3, 'cost': 9}, {'agent_id': 'A4', 'task_id': 4, 'cost': 24}, {'agent_id': 'A4', 'task_id': 5, 'cost': 16}, {'agent_id': 'A4', 'task_id': 6, 'cost': 19}, {'agent_id': 'A4', 'task_id': 7, 'cost': 15}, {'agent_id': 'A4', 'task_id': 8, 'cost': 17}, {'agent_id': 'A4', 'task_id': 9, 'cost': 11}, {'agent_id': 'A4', 'task_id': 10, 'cost': 16}]}","['A3', 'A4', 'A3', 'A1', 'A3', 'A1', 'A2', 'A3', 'A1', 'A1', 'A3']",37,markdown_table,0 GAP,GAP,"There’s this juggling act at the shop: every customer order has to be handed to exactly one fulfillment partner, and different partners use different amounts of their packing space and charge different fees for the same order. The goal is straightforward — pick partners so the sum of all those fees is as small as possible (just add up each assigned order’s fee). But while chasing lower bills, there’s a practical limit: the total packing space taken by the orders sent to any one partner can’t go past their available space, and no order can be skipped or shipped twice. The full order-by-partner details are shown below. # num_partners=4 # num_orders=12 # partners=A1, A2, A3, A4 # orders=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 partner_id,available_packing_space A1,248 A2,240 A3,243 A4,239 partner_id,order_id,space_used A1,1,49 A1,2,27 A1,3,43 A1,4,25 A1,5,16 A1,6,20 A1,7,44 A1,8,35 A1,9,13 A1,10,10 A1,11,48 A1,12,30 A2,1,31 A2,2,29 A2,3,21 A2,4,17 A2,5,21 A2,6,38 A2,7,16 A2,8,38 A2,9,17 A2,10,49 A2,11,50 A2,12,28 A3,1,18 A3,2,23 A3,3,48 A3,4,35 A3,5,42 A3,6,46 A3,7,36 A3,8,18 A3,9,21 A3,10,29 A3,11,48 A3,12,35 A4,1,42 A4,2,17 A4,3,10 A4,4,19 A4,5,28 A4,6,47 A4,7,39 A4,8,23 A4,9,30 A4,10,34 A4,11,18 A4,12,13 partner_id,order_id,fulfillment_fee A1,1,8 A1,2,9 A1,3,6 A1,4,6 A1,5,19 A1,6,17 A1,7,19 A1,8,8 A1,9,19 A1,10,15 A1,11,20 A1,12,24 A2,1,12 A2,2,24 A2,3,18 A2,4,22 A2,5,17 A2,6,24 A2,7,23 A2,8,21 A2,9,16 A2,10,5 A2,11,13 A2,12,12 A3,1,24 A3,2,11 A3,3,7 A3,4,13 A3,5,15 A3,6,19 A3,7,23 A3,8,19 A3,9,17 A3,10,8 A3,11,20 A3,12,23 A4,1,24 A4,2,10 A4,3,22 A4,4,16 A4,5,18 A4,6,15 A4,7,22 A4,8,12 A4,9,17 A4,10,25 A4,11,6 A4,12,20 Oh, and when you send the assignment back, just stick to a tiny JSON sketch like this so it's easy to parse: { ""solution"": [ , , ..., ] } Here ""solution"" is just a list that says, in order, which fulfillment partner handles each order — the first entry is the partner for the first order, the second for the second order, and so on. Think of it like filling out a simple sign-up sheet: one partner name per order, in the order the orders were listed. This JSON is just the expected shape — not the actual assignment. Please use the exact identifiers from the problem input when you fill it in: no renaming, no invented 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”.","{'resource_consumption': [[49, 27, 43, 25, 16, 20, 44, 35, 13, 10, 48, 30], [31, 29, 21, 17, 21, 38, 16, 38, 17, 49, 50, 28], [18, 23, 48, 35, 42, 46, 36, 18, 21, 29, 48, 35], [42, 17, 10, 19, 28, 47, 39, 23, 30, 34, 18, 13]], 'assignment_costs': [[8, 9, 6, 6, 19, 17, 19, 8, 19, 15, 20, 24], [12, 24, 18, 22, 17, 24, 23, 21, 16, 5, 13, 12], [24, 11, 7, 13, 15, 19, 23, 19, 17, 8, 20, 23], [24, 10, 22, 16, 18, 15, 22, 12, 17, 25, 6, 20]], 'capacities': [248, 240, 243, 239], 'objective': 125.0}","[0, 0, 0, 0, 2, 3, 0, 0, 1, 1, 3, 1]",125.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 12, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 248}, {'agent_id': 'A2', 'capacity': 240}, {'agent_id': 'A3', 'capacity': 243}, {'agent_id': 'A4', 'capacity': 239}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 43}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 44}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 35}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 13}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 30}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 38}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 38}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 49}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 50}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 18}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 23}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 18}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 35}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 10}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 19}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 34}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 13}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 8}, {'agent_id': 'A1', 'task_id': 2, 'cost': 9}, {'agent_id': 'A1', 'task_id': 3, 'cost': 6}, {'agent_id': 'A1', 'task_id': 4, 'cost': 6}, {'agent_id': 'A1', 'task_id': 5, 'cost': 19}, {'agent_id': 'A1', 'task_id': 6, 'cost': 17}, {'agent_id': 'A1', 'task_id': 7, 'cost': 19}, {'agent_id': 'A1', 'task_id': 8, 'cost': 8}, {'agent_id': 'A1', 'task_id': 9, 'cost': 19}, {'agent_id': 'A1', 'task_id': 10, 'cost': 15}, {'agent_id': 'A1', 'task_id': 11, 'cost': 20}, {'agent_id': 'A1', 'task_id': 12, 'cost': 24}, {'agent_id': 'A2', 'task_id': 1, 'cost': 12}, {'agent_id': 'A2', 'task_id': 2, 'cost': 24}, {'agent_id': 'A2', 'task_id': 3, 'cost': 18}, {'agent_id': 'A2', 'task_id': 4, 'cost': 22}, {'agent_id': 'A2', 'task_id': 5, 'cost': 17}, {'agent_id': 'A2', 'task_id': 6, 'cost': 24}, {'agent_id': 'A2', 'task_id': 7, 'cost': 23}, {'agent_id': 'A2', 'task_id': 8, 'cost': 21}, {'agent_id': 'A2', 'task_id': 9, 'cost': 16}, {'agent_id': 'A2', 'task_id': 10, 'cost': 5}, {'agent_id': 'A2', 'task_id': 11, 'cost': 13}, {'agent_id': 'A2', 'task_id': 12, 'cost': 12}, {'agent_id': 'A3', 'task_id': 1, 'cost': 24}, {'agent_id': 'A3', 'task_id': 2, 'cost': 11}, {'agent_id': 'A3', 'task_id': 3, 'cost': 7}, {'agent_id': 'A3', 'task_id': 4, 'cost': 13}, {'agent_id': 'A3', 'task_id': 5, 'cost': 15}, {'agent_id': 'A3', 'task_id': 6, 'cost': 19}, {'agent_id': 'A3', 'task_id': 7, 'cost': 23}, {'agent_id': 'A3', 'task_id': 8, 'cost': 19}, {'agent_id': 'A3', 'task_id': 9, 'cost': 17}, {'agent_id': 'A3', 'task_id': 10, 'cost': 8}, {'agent_id': 'A3', 'task_id': 11, 'cost': 20}, {'agent_id': 'A3', 'task_id': 12, 'cost': 23}, {'agent_id': 'A4', 'task_id': 1, 'cost': 24}, {'agent_id': 'A4', 'task_id': 2, 'cost': 10}, {'agent_id': 'A4', 'task_id': 3, 'cost': 22}, {'agent_id': 'A4', 'task_id': 4, 'cost': 16}, {'agent_id': 'A4', 'task_id': 5, 'cost': 18}, {'agent_id': 'A4', 'task_id': 6, 'cost': 15}, {'agent_id': 'A4', 'task_id': 7, 'cost': 22}, {'agent_id': 'A4', 'task_id': 8, 'cost': 12}, {'agent_id': 'A4', 'task_id': 9, 'cost': 17}, {'agent_id': 'A4', 'task_id': 10, 'cost': 25}, {'agent_id': 'A4', 'task_id': 11, 'cost': 6}, {'agent_id': 'A4', 'task_id': 12, 'cost': 20}]}","['A1', 'A1', 'A1', 'A1', 'A3', 'A4', 'A1', 'A1', 'A2', 'A2', 'A4', 'A2']",38,csv,1 GAP,GAP,"I run the fleet’s maintenance planning and have to hand out a stack of repair jobs to the mechanics so that every job gets done and none are duplicated. Each mechanic takes different amounts of shop time on each job and charges different labor rates, and every mechanic only has a certain number of hours available that day. A better plan is simply the one that leads to the smallest total labor bill — add up the charge for each job under whoever is assigned, and pick the assignment with the lowest sum — but never leave a job unassigned or give the same job to two people, and don’t give anyone more hours than they actually have. The exact job times and rates are shown below. # num_mechanics=6 # num_jobs=15 # mechanics=A1, A2, A3, A4, A5, A6 # jobs=0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 mechanic_id,available_hours A1,243 A2,243 A3,243 A4,243 A5,243 A6,243 mechanic_id,job_id,hours_required A1,0,12 A1,1,29 A1,2,14 A1,3,25 A1,4,26 A1,5,41 A1,6,15 A1,7,50 A1,8,27 A1,9,43 A1,10,50 A1,11,42 A1,12,45 A1,13,31 A1,14,12 A2,0,18 A2,1,11 A2,2,44 A2,3,14 A2,4,27 A2,5,33 A2,6,39 A2,7,44 A2,8,23 A2,9,49 A2,10,48 A2,11,13 A2,12,43 A2,13,28 A2,14,50 A3,0,32 A3,1,10 A3,2,42 A3,3,32 A3,4,10 A3,5,10 A3,6,18 A3,7,14 A3,8,33 A3,9,46 A3,10,29 A3,11,32 A3,12,26 A3,13,33 A3,14,29 A4,0,39 A4,1,50 A4,2,14 A4,3,28 A4,4,28 A4,5,39 A4,6,18 A4,7,37 A4,8,13 A4,9,27 A4,10,15 A4,11,46 A4,12,24 A4,13,21 A4,14,40 A5,0,36 A5,1,12 A5,2,38 A5,3,46 A5,4,30 A5,5,11 A5,6,38 A5,7,33 A5,8,36 A5,9,47 A5,10,35 A5,11,31 A5,12,47 A5,13,18 A5,14,43 A6,0,28 A6,1,40 A6,2,36 A6,3,11 A6,4,31 A6,5,44 A6,6,38 A6,7,21 A6,8,39 A6,9,42 A6,10,40 A6,11,11 A6,12,43 A6,13,43 A6,14,31 mechanic_id,job_id,labor_cost A1,0,5 A1,1,18 A1,2,19 A1,3,8 A1,4,21 A1,5,18 A1,6,7 A1,7,15 A1,8,20 A1,9,17 A1,10,21 A1,11,22 A1,12,20 A1,13,11 A1,14,5 A2,0,14 A2,1,22 A2,2,18 A2,3,17 A2,4,24 A2,5,18 A2,6,8 A2,7,24 A2,8,15 A2,9,21 A2,10,13 A2,11,19 A2,12,7 A2,13,21 A2,14,17 A3,0,25 A3,1,22 A3,2,23 A3,3,16 A3,4,19 A3,5,19 A3,6,17 A3,7,12 A3,8,15 A3,9,25 A3,10,10 A3,11,17 A3,12,8 A3,13,5 A3,14,11 A4,0,16 A4,1,17 A4,2,23 A4,3,17 A4,4,22 A4,5,22 A4,6,5 A4,7,16 A4,8,10 A4,9,15 A4,10,11 A4,11,19 A4,12,16 A4,13,23 A4,14,23 A5,0,16 A5,1,6 A5,2,7 A5,3,15 A5,4,5 A5,5,24 A5,6,7 A5,7,13 A5,8,10 A5,9,15 A5,10,12 A5,11,11 A5,12,15 A5,13,9 A5,14,14 A6,0,6 A6,1,25 A6,2,19 A6,3,22 A6,4,17 A6,5,17 A6,6,18 A6,7,21 A6,8,16 A6,9,7 A6,10,11 A6,11,14 A6,12,11 A6,13,23 A6,14,24 ...and to make it easy for me to consume your answer, just drop the assignment into a tiny JSON snippet like this. { ""solution"": [ , , ..., ] } The ""solution"" array is just the ordered list of who does each job — first element = who takes the first repair job, second = who takes the second, and so on. The angle-bracket items above are placeholders showing the shape; when you fill it in, put the actual mechanic IDs from the instance. This JSON is only a sketch of the shape I expect, not the actual assignment itself. Please make sure to use the exact identifiers from 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”.""","{'resource_consumption': [[12, 29, 14, 25, 26, 41, 15, 50, 27, 43, 50, 42, 45, 31, 12], [18, 11, 44, 14, 27, 33, 39, 44, 23, 49, 48, 13, 43, 28, 50], [32, 10, 42, 32, 10, 10, 18, 14, 33, 46, 29, 32, 26, 33, 29], [39, 50, 14, 28, 28, 39, 18, 37, 13, 27, 15, 46, 24, 21, 40], [36, 12, 38, 46, 30, 11, 38, 33, 36, 47, 35, 31, 47, 18, 43], [28, 40, 36, 11, 31, 44, 38, 21, 39, 42, 40, 11, 43, 43, 31]], 'assignment_costs': [[5, 18, 19, 8, 21, 18, 7, 15, 20, 17, 21, 22, 20, 11, 5], [14, 22, 18, 17, 24, 18, 8, 24, 15, 21, 13, 19, 7, 21, 17], [25, 22, 23, 16, 19, 19, 17, 12, 15, 25, 10, 17, 8, 5, 11], [16, 17, 23, 17, 22, 22, 5, 16, 10, 15, 11, 19, 16, 23, 23], [16, 6, 7, 15, 5, 24, 7, 13, 10, 15, 12, 11, 15, 9, 14], [6, 25, 19, 22, 17, 17, 18, 21, 16, 7, 11, 14, 11, 23, 24]], 'capacities': [243, 243, 243, 243, 243, 243], 'objective': 120.0}","[0, 4, 4, 0, 4, 5, 3, 2, 3, 5, 2, 4, 1, 2, 0]",120.0,"{'problem_type': 'GAP', 'num_agents': 6, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5', 'A6'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 243}, {'agent_id': 'A2', 'capacity': 243}, {'agent_id': 'A3', 'capacity': 243}, {'agent_id': 'A4', 'capacity': 243}, {'agent_id': 'A5', 'capacity': 243}, {'agent_id': 'A6', 'capacity': 243}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 12}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 14}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 26}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 43}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 18}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 14}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 27}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 49}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 43}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 10}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 10}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 10}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 18}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 26}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 29}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 14}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 27}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 40}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 12}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 11}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 33}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 47}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 35}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 31}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 47}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 18}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 43}, {'agent_id': 'A6', 'task_id': 0, 'consumption': 28}, {'agent_id': 'A6', 'task_id': 1, 'consumption': 40}, {'agent_id': 'A6', 'task_id': 2, 'consumption': 36}, {'agent_id': 'A6', 'task_id': 3, 'consumption': 11}, {'agent_id': 'A6', 'task_id': 4, 'consumption': 31}, {'agent_id': 'A6', 'task_id': 5, 'consumption': 44}, {'agent_id': 'A6', 'task_id': 6, 'consumption': 38}, {'agent_id': 'A6', 'task_id': 7, 'consumption': 21}, {'agent_id': 'A6', 'task_id': 8, 'consumption': 39}, {'agent_id': 'A6', 'task_id': 9, 'consumption': 42}, {'agent_id': 'A6', 'task_id': 10, 'consumption': 40}, {'agent_id': 'A6', 'task_id': 11, 'consumption': 11}, {'agent_id': 'A6', 'task_id': 12, 'consumption': 43}, {'agent_id': 'A6', 'task_id': 13, 'consumption': 43}, {'agent_id': 'A6', 'task_id': 14, 'consumption': 31}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 5}, {'agent_id': 'A1', 'task_id': 1, 'cost': 18}, {'agent_id': 'A1', 'task_id': 2, 'cost': 19}, {'agent_id': 'A1', 'task_id': 3, 'cost': 8}, {'agent_id': 'A1', 'task_id': 4, 'cost': 21}, {'agent_id': 'A1', 'task_id': 5, 'cost': 18}, {'agent_id': 'A1', 'task_id': 6, 'cost': 7}, {'agent_id': 'A1', 'task_id': 7, 'cost': 15}, {'agent_id': 'A1', 'task_id': 8, 'cost': 20}, {'agent_id': 'A1', 'task_id': 9, 'cost': 17}, {'agent_id': 'A1', 'task_id': 10, 'cost': 21}, {'agent_id': 'A1', 'task_id': 11, 'cost': 22}, {'agent_id': 'A1', 'task_id': 12, 'cost': 20}, {'agent_id': 'A1', 'task_id': 13, 'cost': 11}, {'agent_id': 'A1', 'task_id': 14, 'cost': 5}, {'agent_id': 'A2', 'task_id': 0, 'cost': 14}, {'agent_id': 'A2', 'task_id': 1, 'cost': 22}, {'agent_id': 'A2', 'task_id': 2, 'cost': 18}, {'agent_id': 'A2', 'task_id': 3, 'cost': 17}, {'agent_id': 'A2', 'task_id': 4, 'cost': 24}, {'agent_id': 'A2', 'task_id': 5, 'cost': 18}, {'agent_id': 'A2', 'task_id': 6, 'cost': 8}, {'agent_id': 'A2', 'task_id': 7, 'cost': 24}, {'agent_id': 'A2', 'task_id': 8, 'cost': 15}, {'agent_id': 'A2', 'task_id': 9, 'cost': 21}, {'agent_id': 'A2', 'task_id': 10, 'cost': 13}, {'agent_id': 'A2', 'task_id': 11, 'cost': 19}, {'agent_id': 'A2', 'task_id': 12, 'cost': 7}, {'agent_id': 'A2', 'task_id': 13, 'cost': 21}, {'agent_id': 'A2', 'task_id': 14, 'cost': 17}, {'agent_id': 'A3', 'task_id': 0, 'cost': 25}, {'agent_id': 'A3', 'task_id': 1, 'cost': 22}, {'agent_id': 'A3', 'task_id': 2, 'cost': 23}, {'agent_id': 'A3', 'task_id': 3, 'cost': 16}, {'agent_id': 'A3', 'task_id': 4, 'cost': 19}, {'agent_id': 'A3', 'task_id': 5, 'cost': 19}, {'agent_id': 'A3', 'task_id': 6, 'cost': 17}, {'agent_id': 'A3', 'task_id': 7, 'cost': 12}, {'agent_id': 'A3', 'task_id': 8, 'cost': 15}, {'agent_id': 'A3', 'task_id': 9, 'cost': 25}, {'agent_id': 'A3', 'task_id': 10, 'cost': 10}, {'agent_id': 'A3', 'task_id': 11, 'cost': 17}, {'agent_id': 'A3', 'task_id': 12, 'cost': 8}, {'agent_id': 'A3', 'task_id': 13, 'cost': 5}, {'agent_id': 'A3', 'task_id': 14, 'cost': 11}, {'agent_id': 'A4', 'task_id': 0, 'cost': 16}, {'agent_id': 'A4', 'task_id': 1, 'cost': 17}, {'agent_id': 'A4', 'task_id': 2, 'cost': 23}, {'agent_id': 'A4', 'task_id': 3, 'cost': 17}, {'agent_id': 'A4', 'task_id': 4, 'cost': 22}, {'agent_id': 'A4', 'task_id': 5, 'cost': 22}, {'agent_id': 'A4', 'task_id': 6, 'cost': 5}, {'agent_id': 'A4', 'task_id': 7, 'cost': 16}, {'agent_id': 'A4', 'task_id': 8, 'cost': 10}, {'agent_id': 'A4', 'task_id': 9, 'cost': 15}, {'agent_id': 'A4', 'task_id': 10, 'cost': 11}, {'agent_id': 'A4', 'task_id': 11, 'cost': 19}, {'agent_id': 'A4', 'task_id': 12, 'cost': 16}, {'agent_id': 'A4', 'task_id': 13, 'cost': 23}, {'agent_id': 'A4', 'task_id': 14, 'cost': 23}, {'agent_id': 'A5', 'task_id': 0, 'cost': 16}, {'agent_id': 'A5', 'task_id': 1, 'cost': 6}, {'agent_id': 'A5', 'task_id': 2, 'cost': 7}, {'agent_id': 'A5', 'task_id': 3, 'cost': 15}, {'agent_id': 'A5', 'task_id': 4, 'cost': 5}, {'agent_id': 'A5', 'task_id': 5, 'cost': 24}, {'agent_id': 'A5', 'task_id': 6, 'cost': 7}, {'agent_id': 'A5', 'task_id': 7, 'cost': 13}, {'agent_id': 'A5', 'task_id': 8, 'cost': 10}, {'agent_id': 'A5', 'task_id': 9, 'cost': 15}, {'agent_id': 'A5', 'task_id': 10, 'cost': 12}, {'agent_id': 'A5', 'task_id': 11, 'cost': 11}, {'agent_id': 'A5', 'task_id': 12, 'cost': 15}, {'agent_id': 'A5', 'task_id': 13, 'cost': 9}, {'agent_id': 'A5', 'task_id': 14, 'cost': 14}, {'agent_id': 'A6', 'task_id': 0, 'cost': 6}, {'agent_id': 'A6', 'task_id': 1, 'cost': 25}, {'agent_id': 'A6', 'task_id': 2, 'cost': 19}, {'agent_id': 'A6', 'task_id': 3, 'cost': 22}, {'agent_id': 'A6', 'task_id': 4, 'cost': 17}, {'agent_id': 'A6', 'task_id': 5, 'cost': 17}, {'agent_id': 'A6', 'task_id': 6, 'cost': 18}, {'agent_id': 'A6', 'task_id': 7, 'cost': 21}, {'agent_id': 'A6', 'task_id': 8, 'cost': 16}, {'agent_id': 'A6', 'task_id': 9, 'cost': 7}, {'agent_id': 'A6', 'task_id': 10, 'cost': 11}, {'agent_id': 'A6', 'task_id': 11, 'cost': 14}, {'agent_id': 'A6', 'task_id': 12, 'cost': 11}, {'agent_id': 'A6', 'task_id': 13, 'cost': 23}, {'agent_id': 'A6', 'task_id': 14, 'cost': 24}]}","['A1', 'A5', 'A5', 'A1', 'A5', 'A6', 'A4', 'A3', 'A4', 'A6', 'A3', 'A5', 'A2', 'A3', 'A1']",39,csv,0 GAP,GAP,"Someone on the planning team is trying to fit all the acts into venue slots, making sure each act appears once and only once. Each act–slot pairing uses up some of the slot’s limited resources and has its own rental charge; a single slot can take on several acts but only up to its capacity. The aim is to choose a slot for every act so that when the rental charges for each choice are added up the overall bill is as low as it can be, and no slot’s total resource use goes past its limit. The concrete details are listed below. # num_venue_slots=4 # num_performances=14 # venue_slots=A1, A2, A3, A4 # performances=1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 slot_id,slot_resource_capacity A1,192 A2,192 A3,192 A4,192 slot_id,performance_id,slot_resource_usage A1,1,30 A1,2,47 A1,3,48 A1,4,47 A1,5,21 A1,6,11 A1,7,48 A1,8,27 A1,9,35 A1,10,49 A1,11,20 A1,12,10 A1,13,43 A1,14,15 A2,1,46 A2,2,27 A2,3,29 A2,4,48 A2,5,46 A2,6,39 A2,7,23 A2,8,26 A2,9,23 A2,10,42 A2,11,12 A2,12,34 A2,13,39 A2,14,36 A3,1,39 A3,2,44 A3,3,47 A3,4,40 A3,5,14 A3,6,45 A3,7,25 A3,8,39 A3,9,50 A3,10,25 A3,11,42 A3,12,48 A3,13,43 A3,14,48 A4,1,48 A4,2,28 A4,3,15 A4,4,34 A4,5,47 A4,6,21 A4,7,11 A4,8,12 A4,9,10 A4,10,12 A4,11,23 A4,12,22 A4,13,49 A4,14,40 slot_id,performance_id,rental_cost A1,1,7 A1,2,14 A1,3,12 A1,4,9 A1,5,6 A1,6,15 A1,7,14 A1,8,8 A1,9,24 A1,10,24 A1,11,10 A1,12,19 A1,13,13 A1,14,13 A2,1,15 A2,2,8 A2,3,7 A2,4,24 A2,5,24 A2,6,23 A2,7,12 A2,8,5 A2,9,16 A2,10,18 A2,11,20 A2,12,16 A2,13,6 A2,14,12 A3,1,13 A3,2,9 A3,3,8 A3,4,22 A3,5,8 A3,6,13 A3,7,6 A3,8,20 A3,9,20 A3,10,11 A3,11,23 A3,12,11 A3,13,13 A3,14,14 A4,1,7 A4,2,14 A4,3,7 A4,4,16 A4,5,22 A4,6,12 A4,7,11 A4,8,25 A4,9,22 A4,10,22 A4,11,9 A4,12,7 A4,13,17 A4,14,22 Also, when you send back the assignment, please use this simple JSON layout so it's easy to parse and check: { ""solution"": [ , , ..., ] } This just lists, in order, which slot each act is assigned to — the first entry is the slot for the first act, the next is the slot for the second act, and so on. Think of it like filling out a little form: one slot identifier per act. This is just a sketch of the shape I need, not the real answer. Please make sure to use the exact identifiers from the instance input — don't rename them or invent new labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[30, 47, 48, 47, 21, 11, 48, 27, 35, 49, 20, 10, 43, 15], [46, 27, 29, 48, 46, 39, 23, 26, 23, 42, 12, 34, 39, 36], [39, 44, 47, 40, 14, 45, 25, 39, 50, 25, 42, 48, 43, 48], [48, 28, 15, 34, 47, 21, 11, 12, 10, 12, 23, 22, 49, 40]], 'assignment_costs': [[7, 14, 12, 9, 6, 15, 14, 8, 24, 24, 10, 19, 13, 13], [15, 8, 7, 24, 24, 23, 12, 5, 16, 18, 20, 16, 6, 12], [13, 9, 8, 22, 8, 13, 6, 20, 20, 11, 23, 11, 13, 14], [7, 14, 7, 16, 22, 12, 11, 25, 22, 22, 9, 7, 17, 22]], 'capacities': [192, 192, 192, 192], 'objective': 121.0}","[0, 1, 3, 0, 0, 3, 2, 1, 1, 2, 3, 3, 1, 1]",121.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 192}, {'agent_id': 'A2', 'capacity': 192}, {'agent_id': 'A3', 'capacity': 192}, {'agent_id': 'A4', 'capacity': 192}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 30}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 35}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 20}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 43}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 27}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 26}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 47}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 40}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 43}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 34}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 10}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 40}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 7}, {'agent_id': 'A1', 'task_id': 2, 'cost': 14}, {'agent_id': 'A1', 'task_id': 3, 'cost': 12}, {'agent_id': 'A1', 'task_id': 4, 'cost': 9}, {'agent_id': 'A1', 'task_id': 5, 'cost': 6}, {'agent_id': 'A1', 'task_id': 6, 'cost': 15}, {'agent_id': 'A1', 'task_id': 7, 'cost': 14}, {'agent_id': 'A1', 'task_id': 8, 'cost': 8}, {'agent_id': 'A1', 'task_id': 9, 'cost': 24}, {'agent_id': 'A1', 'task_id': 10, 'cost': 24}, {'agent_id': 'A1', 'task_id': 11, 'cost': 10}, {'agent_id': 'A1', 'task_id': 12, 'cost': 19}, {'agent_id': 'A1', 'task_id': 13, 'cost': 13}, {'agent_id': 'A1', 'task_id': 14, 'cost': 13}, {'agent_id': 'A2', 'task_id': 1, 'cost': 15}, {'agent_id': 'A2', 'task_id': 2, 'cost': 8}, {'agent_id': 'A2', 'task_id': 3, 'cost': 7}, {'agent_id': 'A2', 'task_id': 4, 'cost': 24}, {'agent_id': 'A2', 'task_id': 5, 'cost': 24}, {'agent_id': 'A2', 'task_id': 6, 'cost': 23}, {'agent_id': 'A2', 'task_id': 7, 'cost': 12}, {'agent_id': 'A2', 'task_id': 8, 'cost': 5}, {'agent_id': 'A2', 'task_id': 9, 'cost': 16}, {'agent_id': 'A2', 'task_id': 10, 'cost': 18}, {'agent_id': 'A2', 'task_id': 11, 'cost': 20}, {'agent_id': 'A2', 'task_id': 12, 'cost': 16}, {'agent_id': 'A2', 'task_id': 13, 'cost': 6}, {'agent_id': 'A2', 'task_id': 14, 'cost': 12}, {'agent_id': 'A3', 'task_id': 1, 'cost': 13}, {'agent_id': 'A3', 'task_id': 2, 'cost': 9}, {'agent_id': 'A3', 'task_id': 3, 'cost': 8}, {'agent_id': 'A3', 'task_id': 4, 'cost': 22}, {'agent_id': 'A3', 'task_id': 5, 'cost': 8}, {'agent_id': 'A3', 'task_id': 6, 'cost': 13}, {'agent_id': 'A3', 'task_id': 7, 'cost': 6}, {'agent_id': 'A3', 'task_id': 8, 'cost': 20}, {'agent_id': 'A3', 'task_id': 9, 'cost': 20}, {'agent_id': 'A3', 'task_id': 10, 'cost': 11}, {'agent_id': 'A3', 'task_id': 11, 'cost': 23}, {'agent_id': 'A3', 'task_id': 12, 'cost': 11}, {'agent_id': 'A3', 'task_id': 13, 'cost': 13}, {'agent_id': 'A3', 'task_id': 14, 'cost': 14}, {'agent_id': 'A4', 'task_id': 1, 'cost': 7}, {'agent_id': 'A4', 'task_id': 2, 'cost': 14}, {'agent_id': 'A4', 'task_id': 3, 'cost': 7}, {'agent_id': 'A4', 'task_id': 4, 'cost': 16}, {'agent_id': 'A4', 'task_id': 5, 'cost': 22}, {'agent_id': 'A4', 'task_id': 6, 'cost': 12}, {'agent_id': 'A4', 'task_id': 7, 'cost': 11}, {'agent_id': 'A4', 'task_id': 8, 'cost': 25}, {'agent_id': 'A4', 'task_id': 9, 'cost': 22}, {'agent_id': 'A4', 'task_id': 10, 'cost': 22}, {'agent_id': 'A4', 'task_id': 11, 'cost': 9}, {'agent_id': 'A4', 'task_id': 12, 'cost': 7}, {'agent_id': 'A4', 'task_id': 13, 'cost': 17}, {'agent_id': 'A4', 'task_id': 14, 'cost': 22}]}","['A1', 'A2', 'A4', 'A1', 'A1', 'A4', 'A3', 'A2', 'A2', 'A3', 'A4', 'A4', 'A2', 'A2']",40,csv,1 GAP,GAP,"On a busy day the fulfillment team has to match every product listing to a single warehouse so all listings are stocked but none are stocked twice. For each product-warehouse pairing there's a known storage footprint and a known cost to handle and store that product there; the overall goal is just to lower the total bill — add up every chosen product’s handling and storage fees to get that total — while making sure no warehouse is asked to hold more than its available space. The detailed numbers for capacity, per-item space use, and per-item cost are listed below. There are 5 warehouses and 15 listings: A1, A2, A3, A4, A5; 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14. | warehouse_id | storage_capacity | |---|---| | A1 | 717 | | A2 | 712 | | A3 | 732 | | A4 | 713 | | A5 | 740 | | warehouse_id | listing_id | storage_footprint | |---|---|---| | A1 | 0 | 33 | | A1 | 1 | 29 | | A1 | 2 | 18 | | A1 | 3 | 42 | | A1 | 4 | 25 | | A1 | 5 | 49 | | A1 | 6 | 30 | | A1 | 7 | 32 | | A1 | 8 | 33 | | A1 | 9 | 29 | | A1 | 10 | 29 | | A1 | 11 | 31 | | A1 | 12 | 45 | | A1 | 13 | 47 | | A1 | 14 | 47 | | A2 | 0 | 41 | | A2 | 1 | 32 | | A2 | 2 | 38 | | A2 | 3 | 32 | | A2 | 4 | 25 | | A2 | 5 | 46 | | A2 | 6 | 23 | | A2 | 7 | 11 | | A2 | 8 | 36 | | A2 | 9 | 31 | | A2 | 10 | 22 | | A2 | 11 | 12 | | A2 | 12 | 10 | | A2 | 13 | 13 | | A2 | 14 | 45 | | A3 | 0 | 29 | | A3 | 1 | 22 | | A3 | 2 | 30 | | A3 | 3 | 24 | | A3 | 4 | 41 | | A3 | 5 | 35 | | A3 | 6 | 26 | | A3 | 7 | 16 | | A3 | 8 | 50 | | A3 | 9 | 50 | | A3 | 10 | 39 | | A3 | 11 | 16 | | A3 | 12 | 33 | | A3 | 13 | 35 | | A3 | 14 | 10 | | A4 | 0 | 48 | | A4 | 1 | 44 | | A4 | 2 | 10 | | A4 | 3 | 24 | | A4 | 4 | 16 | | A4 | 5 | 27 | | A4 | 6 | 37 | | A4 | 7 | 31 | | A4 | 8 | 21 | | A4 | 9 | 11 | | A4 | 10 | 42 | | A4 | 11 | 23 | | A4 | 12 | 23 | | A4 | 13 | 14 | | A4 | 14 | 12 | | A5 | 0 | 10 | | A5 | 1 | 41 | | A5 | 2 | 37 | | A5 | 3 | 14 | | A5 | 4 | 46 | | A5 | 5 | 38 | | A5 | 6 | 39 | | A5 | 7 | 27 | | A5 | 8 | 42 | | A5 | 9 | 29 | | A5 | 10 | 41 | | A5 | 11 | 37 | | A5 | 12 | 16 | | A5 | 13 | 40 | | A5 | 14 | 23 | | warehouse_id | listing_id | handling_and_storage_cost | |---|---|---| | A1 | 0 | 10 | | A1 | 1 | 18 | | A1 | 2 | 10 | | A1 | 3 | 11 | | A1 | 4 | 11 | | A1 | 5 | 24 | | A1 | 6 | 14 | | A1 | 7 | 12 | | A1 | 8 | 25 | | A1 | 9 | 11 | | A1 | 10 | 21 | | A1 | 11 | 21 | | A1 | 12 | 5 | | A1 | 13 | 7 | | A1 | 14 | 13 | | A2 | 0 | 12 | | A2 | 1 | 23 | | A2 | 2 | 13 | | A2 | 3 | 6 | | A2 | 4 | 9 | | A2 | 5 | 11 | | A2 | 6 | 13 | | A2 | 7 | 23 | | A2 | 8 | 14 | | A2 | 9 | 6 | | A2 | 10 | 22 | | A2 | 11 | 14 | | A2 | 12 | 11 | | A2 | 13 | 14 | | A2 | 14 | 10 | | A3 | 0 | 13 | | A3 | 1 | 14 | | A3 | 2 | 25 | | A3 | 3 | 15 | | A3 | 4 | 17 | | A3 | 5 | 15 | | A3 | 6 | 6 | | A3 | 7 | 12 | | A3 | 8 | 23 | | A3 | 9 | 7 | | A3 | 10 | 8 | | A3 | 11 | 21 | | A3 | 12 | 13 | | A3 | 13 | 20 | | A3 | 14 | 19 | | A4 | 0 | 14 | | A4 | 1 | 16 | | A4 | 2 | 6 | | A4 | 3 | 12 | | A4 | 4 | 19 | | A4 | 5 | 19 | | A4 | 6 | 11 | | A4 | 7 | 20 | | A4 | 8 | 22 | | A4 | 9 | 7 | | A4 | 10 | 7 | | A4 | 11 | 25 | | A4 | 12 | 8 | | A4 | 13 | 21 | | A4 | 14 | 9 | | A5 | 0 | 21 | | A5 | 1 | 21 | | A5 | 2 | 21 | | A5 | 3 | 25 | | A5 | 4 | 19 | | A5 | 5 | 25 | | A5 | 6 | 5 | | A5 | 7 | 9 | | A5 | 8 | 24 | | A5 | 9 | 5 | | A5 | 10 | 19 | | A5 | 11 | 19 | | A5 | 12 | 17 | | A5 | 13 | 8 | | A5 | 14 | 9 | Assign each listing to a single warehouse so no warehouse exceeds its capacity and the total handling and storage fees are minimized. If you want to hand the answer back in a tidy, machine-friendly way, you can just use a small JSON sketch like this: { ""solution"": [ , , ..., ] } Think of ""solution"" as a simple list: the first entry is the warehouse chosen for the first product listing, the second entry is the warehouse for the second product listing, and so on down the line. The angle-bracket placeholders are where you would put the actual warehouse identifiers from the instance. This is only a sketch of the shape I expect, not the final assignment itself. Please make sure to use the exact identifiers from the input — do not rename them or invent new ones. Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.","{'resource_consumption': [[33, 29, 18, 42, 25, 49, 30, 32, 33, 29, 29, 31, 45, 47, 47], [41, 32, 38, 32, 25, 46, 23, 11, 36, 31, 22, 12, 10, 13, 45], [29, 22, 30, 24, 41, 35, 26, 16, 50, 50, 39, 16, 33, 35, 10], [48, 44, 10, 24, 16, 27, 37, 31, 21, 11, 42, 23, 23, 14, 12], [10, 41, 37, 14, 46, 38, 39, 27, 42, 29, 41, 37, 16, 40, 23]], 'assignment_costs': [[10, 18, 10, 11, 11, 24, 14, 12, 25, 11, 21, 21, 5, 7, 13], [12, 23, 13, 6, 9, 11, 13, 23, 14, 6, 22, 14, 11, 14, 10], [13, 14, 25, 15, 17, 15, 6, 12, 23, 7, 8, 21, 13, 20, 19], [14, 16, 6, 12, 19, 19, 11, 20, 22, 7, 7, 25, 8, 21, 9], [21, 21, 21, 25, 19, 25, 5, 9, 24, 5, 19, 19, 17, 8, 9]], 'capacities': [717, 712, 732, 713, 740], 'objective': 131.0}","[0, 2, 3, 1, 1, 1, 4, 4, 1, 4, 3, 1, 0, 0, 4]",131.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 717}, {'agent_id': 'A2', 'capacity': 712}, {'agent_id': 'A3', 'capacity': 732}, {'agent_id': 'A4', 'capacity': 713}, {'agent_id': 'A5', 'capacity': 740}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 18}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 30}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 41}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 38}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 25}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 26}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 16}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 16}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 10}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 10}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 27}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 23}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 14}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 12}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 10}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 41}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 14}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 27}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 42}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 29}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 41}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 16}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 40}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 23}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 10}, {'agent_id': 'A1', 'task_id': 1, 'cost': 18}, {'agent_id': 'A1', 'task_id': 2, 'cost': 10}, {'agent_id': 'A1', 'task_id': 3, 'cost': 11}, {'agent_id': 'A1', 'task_id': 4, 'cost': 11}, {'agent_id': 'A1', 'task_id': 5, 'cost': 24}, {'agent_id': 'A1', 'task_id': 6, 'cost': 14}, {'agent_id': 'A1', 'task_id': 7, 'cost': 12}, {'agent_id': 'A1', 'task_id': 8, 'cost': 25}, {'agent_id': 'A1', 'task_id': 9, 'cost': 11}, {'agent_id': 'A1', 'task_id': 10, 'cost': 21}, {'agent_id': 'A1', 'task_id': 11, 'cost': 21}, {'agent_id': 'A1', 'task_id': 12, 'cost': 5}, {'agent_id': 'A1', 'task_id': 13, 'cost': 7}, {'agent_id': 'A1', 'task_id': 14, 'cost': 13}, {'agent_id': 'A2', 'task_id': 0, 'cost': 12}, {'agent_id': 'A2', 'task_id': 1, 'cost': 23}, {'agent_id': 'A2', 'task_id': 2, 'cost': 13}, {'agent_id': 'A2', 'task_id': 3, 'cost': 6}, {'agent_id': 'A2', 'task_id': 4, 'cost': 9}, {'agent_id': 'A2', 'task_id': 5, 'cost': 11}, {'agent_id': 'A2', 'task_id': 6, 'cost': 13}, {'agent_id': 'A2', 'task_id': 7, 'cost': 23}, {'agent_id': 'A2', 'task_id': 8, 'cost': 14}, {'agent_id': 'A2', 'task_id': 9, 'cost': 6}, {'agent_id': 'A2', 'task_id': 10, 'cost': 22}, {'agent_id': 'A2', 'task_id': 11, 'cost': 14}, {'agent_id': 'A2', 'task_id': 12, 'cost': 11}, {'agent_id': 'A2', 'task_id': 13, 'cost': 14}, {'agent_id': 'A2', 'task_id': 14, 'cost': 10}, {'agent_id': 'A3', 'task_id': 0, 'cost': 13}, {'agent_id': 'A3', 'task_id': 1, 'cost': 14}, {'agent_id': 'A3', 'task_id': 2, 'cost': 25}, {'agent_id': 'A3', 'task_id': 3, 'cost': 15}, {'agent_id': 'A3', 'task_id': 4, 'cost': 17}, {'agent_id': 'A3', 'task_id': 5, 'cost': 15}, {'agent_id': 'A3', 'task_id': 6, 'cost': 6}, {'agent_id': 'A3', 'task_id': 7, 'cost': 12}, {'agent_id': 'A3', 'task_id': 8, 'cost': 23}, {'agent_id': 'A3', 'task_id': 9, 'cost': 7}, {'agent_id': 'A3', 'task_id': 10, 'cost': 8}, {'agent_id': 'A3', 'task_id': 11, 'cost': 21}, {'agent_id': 'A3', 'task_id': 12, 'cost': 13}, {'agent_id': 'A3', 'task_id': 13, 'cost': 20}, {'agent_id': 'A3', 'task_id': 14, 'cost': 19}, {'agent_id': 'A4', 'task_id': 0, 'cost': 14}, {'agent_id': 'A4', 'task_id': 1, 'cost': 16}, {'agent_id': 'A4', 'task_id': 2, 'cost': 6}, {'agent_id': 'A4', 'task_id': 3, 'cost': 12}, {'agent_id': 'A4', 'task_id': 4, 'cost': 19}, {'agent_id': 'A4', 'task_id': 5, 'cost': 19}, {'agent_id': 'A4', 'task_id': 6, 'cost': 11}, {'agent_id': 'A4', 'task_id': 7, 'cost': 20}, {'agent_id': 'A4', 'task_id': 8, 'cost': 22}, {'agent_id': 'A4', 'task_id': 9, 'cost': 7}, {'agent_id': 'A4', 'task_id': 10, 'cost': 7}, {'agent_id': 'A4', 'task_id': 11, 'cost': 25}, {'agent_id': 'A4', 'task_id': 12, 'cost': 8}, {'agent_id': 'A4', 'task_id': 13, 'cost': 21}, {'agent_id': 'A4', 'task_id': 14, 'cost': 9}, {'agent_id': 'A5', 'task_id': 0, 'cost': 21}, {'agent_id': 'A5', 'task_id': 1, 'cost': 21}, {'agent_id': 'A5', 'task_id': 2, 'cost': 21}, {'agent_id': 'A5', 'task_id': 3, 'cost': 25}, {'agent_id': 'A5', 'task_id': 4, 'cost': 19}, {'agent_id': 'A5', 'task_id': 5, 'cost': 25}, {'agent_id': 'A5', 'task_id': 6, 'cost': 5}, {'agent_id': 'A5', 'task_id': 7, 'cost': 9}, {'agent_id': 'A5', 'task_id': 8, 'cost': 24}, {'agent_id': 'A5', 'task_id': 9, 'cost': 5}, {'agent_id': 'A5', 'task_id': 10, 'cost': 19}, {'agent_id': 'A5', 'task_id': 11, 'cost': 19}, {'agent_id': 'A5', 'task_id': 12, 'cost': 17}, {'agent_id': 'A5', 'task_id': 13, 'cost': 8}, {'agent_id': 'A5', 'task_id': 14, 'cost': 9}]}","['A1', 'A3', 'A4', 'A2', 'A2', 'A2', 'A5', 'A5', 'A2', 'A5', 'A4', 'A2', 'A1', 'A1', 'A5']",41,markdown_table,0 GAP,GAP,"I helped organize a cluster of home repairs around town: there’s a list of jobs and a handful of local contractors. The choice to make is which contractor gets which job — every repair must go to exactly one contractor, no job gets skipped or handed to two people. Each contractor can take on several jobs, but the hours they’ll spend on their assigned jobs can’t add up to more than the time they’ve got available. The aim is to keep the total bill as small as possible — that’s just the sum of the prices for each job under the contractor chosen for it. The exact hours each contractor would need for each job and their prices are shown below. I listed 5 contractors (A1, A2, A3, A4, A5) and 13 jobs (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12). I noted contractor A1 has 68 hours available. I noted contractor A2 has 68 hours available. I noted contractor A3 has 68 hours available. I noted contractor A4 has 68 hours available. I noted contractor A5 has 68 hours available. I recorded that contractor A1 would take job 0 in 28 hours for a price of 7. I recorded that contractor A1 would take job 1 in 10 hours for a price of 10. I recorded that contractor A1 would take job 2 in 17 hours for a price of 7. I recorded that contractor A1 would take job 3 in 26 hours for a price of 14. I recorded that contractor A1 would take job 4 in 11 hours for a price of 10. I recorded that contractor A1 would take job 5 in 35 hours for a price of 22. I recorded that contractor A1 would take job 6 in 50 hours for a price of 19. I recorded that contractor A1 would take job 7 in 36 hours for a price of 20. I recorded that contractor A1 would take job 8 in 45 hours for a price of 5. I recorded that contractor A1 would take job 9 in 34 hours for a price of 19. I recorded that contractor A1 would take job 10 in 19 hours for a price of 18. I recorded that contractor A1 would take job 11 in 37 hours for a price of 12. I recorded that contractor A1 would take job 12 in 13 hours for a price of 5. I recorded that contractor A2 would take job 0 in 19 hours for a price of 18. I recorded that contractor A2 would take job 1 in 21 hours for a price of 14. I recorded that contractor A2 would take job 2 in 11 hours for a price of 19. I recorded that contractor A2 would take job 3 in 29 hours for a price of 14. I recorded that contractor A2 would take job 4 in 20 hours for a price of 19. I recorded that contractor A2 would take job 5 in 15 hours for a price of 5. I recorded that contractor A2 would take job 6 in 10 hours for a price of 17. I recorded that contractor A2 would take job 7 in 33 hours for a price of 11. I recorded that contractor A2 would take job 8 in 23 hours for a price of 6. I recorded that contractor A2 would take job 9 in 13 hours for a price of 16. I recorded that contractor A2 would take job 10 in 21 hours for a price of 8. I recorded that contractor A2 would take job 11 in 12 hours for a price of 20. I recorded that contractor A2 would take job 12 in 17 hours for a price of 15. I recorded that contractor A3 would take job 0 in 14 hours for a price of 19. I recorded that contractor A3 would take job 1 in 35 hours for a price of 19. I recorded that contractor A3 would take job 2 in 14 hours for a price of 12. I recorded that contractor A3 would take job 3 in 50 hours for a price of 14. I recorded that contractor A3 would take job 4 in 48 hours for a price of 11. I recorded that contractor A3 would take job 5 in 17 hours for a price of 10. I recorded that contractor A3 would take job 6 in 29 hours for a price of 8. I recorded that contractor A3 would take job 7 in 21 hours for a price of 8. I recorded that contractor A3 would take job 8 in 15 hours for a price of 6. I recorded that contractor A3 would take job 9 in 11 hours for a price of 22. I recorded that contractor A3 would take job 10 in 11 hours for a price of 5. I recorded that contractor A3 would take job 11 in 19 hours for a price of 15. I recorded that contractor A3 would take job 12 in 15 hours for a price of 14. I recorded that contractor A4 would take job 0 in 38 hours for a price of 19. I recorded that contractor A4 would take job 1 in 48 hours for a price of 22. I recorded that contractor A4 would take job 2 in 49 hours for a price of 19. I recorded that contractor A4 would take job 3 in 31 hours for a price of 19. I recorded that contractor A4 would take job 4 in 32 hours for a price of 16. I recorded that contractor A4 would take job 5 in 17 hours for a price of 13. I recorded that contractor A4 would take job 6 in 24 hours for a price of 13. I recorded that contractor A4 would take job 7 in 12 hours for a price of 18. I recorded that contractor A4 would take job 8 in 37 hours for a price of 25. I recorded that contractor A4 would take job 9 in 25 hours for a price of 12. I recorded that contractor A4 would take job 10 in 27 hours for a price of 22. I recorded that contractor A4 would take job 11 in 42 hours for a price of 19. I recorded that contractor A4 would take job 12 in 38 hours for a price of 15. I recorded that contractor A5 would take job 0 in 18 hours for a price of 12. I recorded that contractor A5 would take job 1 in 28 hours for a price of 11. I recorded that contractor A5 would take job 2 in 14 hours for a price of 12. I recorded that contractor A5 would take job 3 in 31 hours for a price of 5. I recorded that contractor A5 would take job 4 in 50 hours for a price of 17. I recorded that contractor A5 would take job 5 in 25 hours for a price of 19. I recorded that contractor A5 would take job 6 in 28 hours for a price of 6. I recorded that contractor A5 would take job 7 in 37 hours for a price of 23. I recorded that contractor A5 would take job 8 in 38 hours for a price of 21. I recorded that contractor A5 would take job 9 in 49 hours for a price of 13. I recorded that contractor A5 would take job 10 in 30 hours for a price of 8. I recorded that contractor A5 would take job 11 in 32 hours for a price of 18. I recorded that contractor A5 would take job 12 in 44 hours for a price of 20. I want every job assigned to one contractor without exceeding available hours, and the total bill kept as low as possible. I'll send the final assignment back in a tiny JSON sketch so it's easy to read and paste — something like this: { ""solution"": [ , , ..., ] } This just shows the shape I need: ""solution"" is a list where each entry names which contractor gets the corresponding job (first entry → first job, second → second job, and so on). It's just a sketch of the shape, not the actual assignment. Please use the exact identifiers from the instance input when you fill this in — don't rename them or invent new labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[28, 10, 17, 26, 11, 35, 50, 36, 45, 34, 19, 37, 13], [19, 21, 11, 29, 20, 15, 10, 33, 23, 13, 21, 12, 17], [14, 35, 14, 50, 48, 17, 29, 21, 15, 11, 11, 19, 15], [38, 48, 49, 31, 32, 17, 24, 12, 37, 25, 27, 42, 38], [18, 28, 14, 31, 50, 25, 28, 37, 38, 49, 30, 32, 44]], 'assignment_costs': [[7, 10, 7, 14, 10, 22, 19, 20, 5, 19, 18, 12, 5], [18, 14, 19, 14, 19, 5, 17, 11, 6, 16, 8, 20, 15], [19, 19, 12, 14, 11, 10, 8, 8, 6, 22, 5, 15, 14], [19, 22, 19, 19, 16, 13, 13, 18, 25, 12, 22, 19, 15], [12, 11, 12, 5, 17, 19, 6, 23, 21, 13, 8, 18, 20]], 'capacities': [68, 68, 68, 68, 68], 'objective': 106.0}","[0, 0, 2, 4, 0, 1, 4, 2, 1, 3, 2, 2, 0]",106.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 13, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 68}, {'agent_id': 'A2', 'capacity': 68}, {'agent_id': 'A3', 'capacity': 68}, {'agent_id': 'A4', 'capacity': 68}, {'agent_id': 'A5', 'capacity': 68}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 10}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 26}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 35}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 50}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 34}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 33}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 21}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 14}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 15}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 27}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 18}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 14}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 31}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 25}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 49}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 32}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 44}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 7}, {'agent_id': 'A1', 'task_id': 1, 'cost': 10}, {'agent_id': 'A1', 'task_id': 2, 'cost': 7}, {'agent_id': 'A1', 'task_id': 3, 'cost': 14}, {'agent_id': 'A1', 'task_id': 4, 'cost': 10}, {'agent_id': 'A1', 'task_id': 5, 'cost': 22}, {'agent_id': 'A1', 'task_id': 6, 'cost': 19}, {'agent_id': 'A1', 'task_id': 7, 'cost': 20}, {'agent_id': 'A1', 'task_id': 8, 'cost': 5}, {'agent_id': 'A1', 'task_id': 9, 'cost': 19}, {'agent_id': 'A1', 'task_id': 10, 'cost': 18}, {'agent_id': 'A1', 'task_id': 11, 'cost': 12}, {'agent_id': 'A1', 'task_id': 12, 'cost': 5}, {'agent_id': 'A2', 'task_id': 0, 'cost': 18}, {'agent_id': 'A2', 'task_id': 1, 'cost': 14}, {'agent_id': 'A2', 'task_id': 2, 'cost': 19}, {'agent_id': 'A2', 'task_id': 3, 'cost': 14}, {'agent_id': 'A2', 'task_id': 4, 'cost': 19}, {'agent_id': 'A2', 'task_id': 5, 'cost': 5}, {'agent_id': 'A2', 'task_id': 6, 'cost': 17}, {'agent_id': 'A2', 'task_id': 7, 'cost': 11}, {'agent_id': 'A2', 'task_id': 8, 'cost': 6}, {'agent_id': 'A2', 'task_id': 9, 'cost': 16}, {'agent_id': 'A2', 'task_id': 10, 'cost': 8}, {'agent_id': 'A2', 'task_id': 11, 'cost': 20}, {'agent_id': 'A2', 'task_id': 12, 'cost': 15}, {'agent_id': 'A3', 'task_id': 0, 'cost': 19}, {'agent_id': 'A3', 'task_id': 1, 'cost': 19}, {'agent_id': 'A3', 'task_id': 2, 'cost': 12}, {'agent_id': 'A3', 'task_id': 3, 'cost': 14}, {'agent_id': 'A3', 'task_id': 4, 'cost': 11}, {'agent_id': 'A3', 'task_id': 5, 'cost': 10}, {'agent_id': 'A3', 'task_id': 6, 'cost': 8}, {'agent_id': 'A3', 'task_id': 7, 'cost': 8}, {'agent_id': 'A3', 'task_id': 8, 'cost': 6}, {'agent_id': 'A3', 'task_id': 9, 'cost': 22}, {'agent_id': 'A3', 'task_id': 10, 'cost': 5}, {'agent_id': 'A3', 'task_id': 11, 'cost': 15}, {'agent_id': 'A3', 'task_id': 12, 'cost': 14}, {'agent_id': 'A4', 'task_id': 0, 'cost': 19}, {'agent_id': 'A4', 'task_id': 1, 'cost': 22}, {'agent_id': 'A4', 'task_id': 2, 'cost': 19}, {'agent_id': 'A4', 'task_id': 3, 'cost': 19}, {'agent_id': 'A4', 'task_id': 4, 'cost': 16}, {'agent_id': 'A4', 'task_id': 5, 'cost': 13}, {'agent_id': 'A4', 'task_id': 6, 'cost': 13}, {'agent_id': 'A4', 'task_id': 7, 'cost': 18}, {'agent_id': 'A4', 'task_id': 8, 'cost': 25}, {'agent_id': 'A4', 'task_id': 9, 'cost': 12}, {'agent_id': 'A4', 'task_id': 10, 'cost': 22}, {'agent_id': 'A4', 'task_id': 11, 'cost': 19}, {'agent_id': 'A4', 'task_id': 12, 'cost': 15}, {'agent_id': 'A5', 'task_id': 0, 'cost': 12}, {'agent_id': 'A5', 'task_id': 1, 'cost': 11}, {'agent_id': 'A5', 'task_id': 2, 'cost': 12}, {'agent_id': 'A5', 'task_id': 3, 'cost': 5}, {'agent_id': 'A5', 'task_id': 4, 'cost': 17}, {'agent_id': 'A5', 'task_id': 5, 'cost': 19}, {'agent_id': 'A5', 'task_id': 6, 'cost': 6}, {'agent_id': 'A5', 'task_id': 7, 'cost': 23}, {'agent_id': 'A5', 'task_id': 8, 'cost': 21}, {'agent_id': 'A5', 'task_id': 9, 'cost': 13}, {'agent_id': 'A5', 'task_id': 10, 'cost': 8}, {'agent_id': 'A5', 'task_id': 11, 'cost': 18}, {'agent_id': 'A5', 'task_id': 12, 'cost': 20}]}","['A1', 'A1', 'A3', 'A5', 'A1', 'A2', 'A5', 'A3', 'A2', 'A4', 'A3', 'A3', 'A1']",42,nl,0 GAP,GAP,"Many households juggle routines and favoritism when deciding chores, but here the plan is clear: every chore gets exactly one person, and no one is given more cumulative work than they can handle. Since each person will take different amounts of time and ask for different rewards for the same chores, the aim is to keep the total payout for all chores as low as possible — just add up each person’s reward for the chores they end up doing and compare totals, with the smallest total being the win. The specific chores, who can do them, time costs, and their reward requests are listed below. There are 5 family members (A1, A2, A3, A4, A5) and 15 chores (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14). Family member A1 can spend up to 364 time units on chores. Family member A2 can spend up to 351 time units on chores. Family member A3 can spend up to 359 time units on chores. Family member A4 can spend up to 359 time units on chores. Family member A5 can spend up to 354 time units on chores. A1 would take 37 time to do 0 and requests 23 reward for it. A1 would take 29 time to do 1 and requests 11 reward for it. A1 would take 14 time to do 2 and requests 6 reward for it. A1 would take 41 time to do 3 and requests 24 reward for it. A1 would take 11 time to do 4 and requests 5 reward for it. A1 would take 23 time to do 5 and requests 21 reward for it. A1 would take 21 time to do 6 and requests 17 reward for it. A1 would take 33 time to do 7 and requests 16 reward for it. A1 would take 46 time to do 8 and requests 13 reward for it. A1 would take 13 time to do 9 and requests 22 reward for it. A1 would take 15 time to do 10 and requests 17 reward for it. A1 would take 24 time to do 11 and requests 9 reward for it. A1 would take 37 time to do 12 and requests 16 reward for it. A1 would take 42 time to do 13 and requests 20 reward for it. A1 would take 39 time to do 14 and requests 17 reward for it. A2 would take 13 time to do 0 and requests 15 reward for it. A2 would take 34 time to do 1 and requests 15 reward for it. A2 would take 39 time to do 2 and requests 11 reward for it. A2 would take 42 time to do 3 and requests 14 reward for it. A2 would take 48 time to do 4 and requests 6 reward for it. A2 would take 48 time to do 5 and requests 22 reward for it. A2 would take 15 time to do 6 and requests 12 reward for it. A2 would take 27 time to do 7 and requests 23 reward for it. A2 would take 32 time to do 8 and requests 11 reward for it. A2 would take 20 time to do 9 and requests 11 reward for it. A2 would take 25 time to do 10 and requests 20 reward for it. A2 would take 34 time to do 11 and requests 25 reward for it. A2 would take 37 time to do 12 and requests 16 reward for it. A2 would take 47 time to do 13 and requests 20 reward for it. A2 would take 39 time to do 14 and requests 19 reward for it. A3 would take 28 time to do 0 and requests 23 reward for it. A3 would take 36 time to do 1 and requests 15 reward for it. A3 would take 41 time to do 2 and requests 18 reward for it. A3 would take 46 time to do 3 and requests 14 reward for it. A3 would take 18 time to do 4 and requests 20 reward for it. A3 would take 50 time to do 5 and requests 12 reward for it. A3 would take 44 time to do 6 and requests 11 reward for it. A3 would take 27 time to do 7 and requests 11 reward for it. A3 would take 41 time to do 8 and requests 22 reward for it. A3 would take 48 time to do 9 and requests 25 reward for it. A3 would take 44 time to do 10 and requests 23 reward for it. A3 would take 49 time to do 11 and requests 20 reward for it. A3 would take 48 time to do 12 and requests 21 reward for it. A3 would take 33 time to do 13 and requests 13 reward for it. A3 would take 43 time to do 14 and requests 15 reward for it. A4 would take 30 time to do 0 and requests 22 reward for it. A4 would take 13 time to do 1 and requests 17 reward for it. A4 would take 13 time to do 2 and requests 13 reward for it. A4 would take 37 time to do 3 and requests 16 reward for it. A4 would take 17 time to do 4 and requests 20 reward for it. A4 would take 32 time to do 5 and requests 8 reward for it. A4 would take 50 time to do 6 and requests 7 reward for it. A4 would take 16 time to do 7 and requests 7 reward for it. A4 would take 17 time to do 8 and requests 22 reward for it. A4 would take 29 time to do 9 and requests 10 reward for it. A4 would take 30 time to do 10 and requests 16 reward for it. A4 would take 13 time to do 11 and requests 8 reward for it. A4 would take 11 time to do 12 and requests 13 reward for it. A4 would take 34 time to do 13 and requests 18 reward for it. A4 would take 22 time to do 14 and requests 23 reward for it. A5 would take 42 time to do 0 and requests 24 reward for it. A5 would take 14 time to do 1 and requests 23 reward for it. A5 would take 41 time to do 2 and requests 21 reward for it. A5 would take 26 time to do 3 and requests 12 reward for it. A5 would take 19 time to do 4 and requests 24 reward for it. A5 would take 14 time to do 5 and requests 6 reward for it. A5 would take 13 time to do 6 and requests 10 reward for it. A5 would take 42 time to do 7 and requests 5 reward for it. A5 would take 11 time to do 8 and requests 7 reward for it. A5 would take 44 time to do 9 and requests 25 reward for it. A5 would take 38 time to do 10 and requests 12 reward for it. A5 would take 30 time to do 11 and requests 19 reward for it. A5 would take 37 time to do 12 and requests 15 reward for it. A5 would take 36 time to do 13 and requests 13 reward for it. A5 would take 33 time to do 14 and requests 22 reward for it. Assign all 15 chores among the 5 family members without exceeding anyone's available time, and minimize the sum of requested rewards. Oh, and just so everything gets handed back in the right shape, please use this little JSON layout for your reply — just a simple list showing who does each chore. { ""solution"": [ , , ..., ] } Think of that as a form: the ""solution"" array has one entry per chore in the exact order the chores were listed, and each placeholder is where you put the identifier of the person doing that chore. The placeholders are just a sketch of the shape I expect; when you fill it in, use the exact identifiers from the instance. Please don't rename or invent identifiers — use them exactly as they appear in the problem input. - 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”."" Remember: that JSON is just the expected format, not the answer itself.","{'resource_consumption': [[37, 29, 14, 41, 11, 23, 21, 33, 46, 13, 15, 24, 37, 42, 39], [13, 34, 39, 42, 48, 48, 15, 27, 32, 20, 25, 34, 37, 47, 39], [28, 36, 41, 46, 18, 50, 44, 27, 41, 48, 44, 49, 48, 33, 43], [30, 13, 13, 37, 17, 32, 50, 16, 17, 29, 30, 13, 11, 34, 22], [42, 14, 41, 26, 19, 14, 13, 42, 11, 44, 38, 30, 37, 36, 33]], 'assignment_costs': [[23, 11, 6, 24, 5, 21, 17, 16, 13, 22, 17, 9, 16, 20, 17], [15, 15, 11, 14, 6, 22, 12, 23, 11, 11, 20, 25, 16, 20, 19], [23, 15, 18, 14, 20, 12, 11, 11, 22, 25, 23, 20, 21, 13, 15], [22, 17, 13, 16, 20, 8, 7, 7, 22, 10, 16, 8, 13, 18, 23], [24, 23, 21, 12, 24, 6, 10, 5, 7, 25, 12, 19, 15, 13, 22]], 'capacities': [364, 351, 359, 359, 354], 'objective': 145.0}","[1, 0, 0, 4, 0, 4, 3, 4, 4, 3, 4, 3, 3, 4, 2]",145.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 364}, {'agent_id': 'A2', 'capacity': 351}, {'agent_id': 'A3', 'capacity': 359}, {'agent_id': 'A4', 'capacity': 359}, {'agent_id': 'A5', 'capacity': 354}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 14}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 41}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 23}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 13}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 37}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 48}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 27}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 25}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 37}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 18}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 50}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 48}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 32}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 29}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 34}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 22}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 42}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 14}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 41}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 26}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 19}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 14}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 13}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 42}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 11}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 44}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 38}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 30}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 33}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 23}, {'agent_id': 'A1', 'task_id': 1, 'cost': 11}, {'agent_id': 'A1', 'task_id': 2, 'cost': 6}, {'agent_id': 'A1', 'task_id': 3, 'cost': 24}, {'agent_id': 'A1', 'task_id': 4, 'cost': 5}, {'agent_id': 'A1', 'task_id': 5, 'cost': 21}, {'agent_id': 'A1', 'task_id': 6, 'cost': 17}, {'agent_id': 'A1', 'task_id': 7, 'cost': 16}, {'agent_id': 'A1', 'task_id': 8, 'cost': 13}, {'agent_id': 'A1', 'task_id': 9, 'cost': 22}, {'agent_id': 'A1', 'task_id': 10, 'cost': 17}, {'agent_id': 'A1', 'task_id': 11, 'cost': 9}, {'agent_id': 'A1', 'task_id': 12, 'cost': 16}, {'agent_id': 'A1', 'task_id': 13, 'cost': 20}, {'agent_id': 'A1', 'task_id': 14, 'cost': 17}, {'agent_id': 'A2', 'task_id': 0, 'cost': 15}, {'agent_id': 'A2', 'task_id': 1, 'cost': 15}, {'agent_id': 'A2', 'task_id': 2, 'cost': 11}, {'agent_id': 'A2', 'task_id': 3, 'cost': 14}, {'agent_id': 'A2', 'task_id': 4, 'cost': 6}, {'agent_id': 'A2', 'task_id': 5, 'cost': 22}, {'agent_id': 'A2', 'task_id': 6, 'cost': 12}, {'agent_id': 'A2', 'task_id': 7, 'cost': 23}, {'agent_id': 'A2', 'task_id': 8, 'cost': 11}, {'agent_id': 'A2', 'task_id': 9, 'cost': 11}, {'agent_id': 'A2', 'task_id': 10, 'cost': 20}, {'agent_id': 'A2', 'task_id': 11, 'cost': 25}, {'agent_id': 'A2', 'task_id': 12, 'cost': 16}, {'agent_id': 'A2', 'task_id': 13, 'cost': 20}, {'agent_id': 'A2', 'task_id': 14, 'cost': 19}, {'agent_id': 'A3', 'task_id': 0, 'cost': 23}, {'agent_id': 'A3', 'task_id': 1, 'cost': 15}, {'agent_id': 'A3', 'task_id': 2, 'cost': 18}, {'agent_id': 'A3', 'task_id': 3, 'cost': 14}, {'agent_id': 'A3', 'task_id': 4, 'cost': 20}, {'agent_id': 'A3', 'task_id': 5, 'cost': 12}, {'agent_id': 'A3', 'task_id': 6, 'cost': 11}, {'agent_id': 'A3', 'task_id': 7, 'cost': 11}, {'agent_id': 'A3', 'task_id': 8, 'cost': 22}, {'agent_id': 'A3', 'task_id': 9, 'cost': 25}, {'agent_id': 'A3', 'task_id': 10, 'cost': 23}, {'agent_id': 'A3', 'task_id': 11, 'cost': 20}, {'agent_id': 'A3', 'task_id': 12, 'cost': 21}, {'agent_id': 'A3', 'task_id': 13, 'cost': 13}, {'agent_id': 'A3', 'task_id': 14, 'cost': 15}, {'agent_id': 'A4', 'task_id': 0, 'cost': 22}, {'agent_id': 'A4', 'task_id': 1, 'cost': 17}, {'agent_id': 'A4', 'task_id': 2, 'cost': 13}, {'agent_id': 'A4', 'task_id': 3, 'cost': 16}, {'agent_id': 'A4', 'task_id': 4, 'cost': 20}, {'agent_id': 'A4', 'task_id': 5, 'cost': 8}, {'agent_id': 'A4', 'task_id': 6, 'cost': 7}, {'agent_id': 'A4', 'task_id': 7, 'cost': 7}, {'agent_id': 'A4', 'task_id': 8, 'cost': 22}, {'agent_id': 'A4', 'task_id': 9, 'cost': 10}, {'agent_id': 'A4', 'task_id': 10, 'cost': 16}, {'agent_id': 'A4', 'task_id': 11, 'cost': 8}, {'agent_id': 'A4', 'task_id': 12, 'cost': 13}, {'agent_id': 'A4', 'task_id': 13, 'cost': 18}, {'agent_id': 'A4', 'task_id': 14, 'cost': 23}, {'agent_id': 'A5', 'task_id': 0, 'cost': 24}, {'agent_id': 'A5', 'task_id': 1, 'cost': 23}, {'agent_id': 'A5', 'task_id': 2, 'cost': 21}, {'agent_id': 'A5', 'task_id': 3, 'cost': 12}, {'agent_id': 'A5', 'task_id': 4, 'cost': 24}, {'agent_id': 'A5', 'task_id': 5, 'cost': 6}, {'agent_id': 'A5', 'task_id': 6, 'cost': 10}, {'agent_id': 'A5', 'task_id': 7, 'cost': 5}, {'agent_id': 'A5', 'task_id': 8, 'cost': 7}, {'agent_id': 'A5', 'task_id': 9, 'cost': 25}, {'agent_id': 'A5', 'task_id': 10, 'cost': 12}, {'agent_id': 'A5', 'task_id': 11, 'cost': 19}, {'agent_id': 'A5', 'task_id': 12, 'cost': 15}, {'agent_id': 'A5', 'task_id': 13, 'cost': 13}, {'agent_id': 'A5', 'task_id': 14, 'cost': 22}]}","['A2', 'A1', 'A1', 'A5', 'A1', 'A5', 'A4', 'A5', 'A5', 'A4', 'A5', 'A4', 'A4', 'A5', 'A3']",43,nl,0 GAP,GAP,"Someone managing the routes has to decide how to spread out the day’s parcels across the fleet. Each parcel must go on exactly one van; vans may carry multiple parcels but the sum of their space or weight must stay inside that van’s allowance. What makes one decision better than another is the total delivery expense — add up the cost for each parcel’s chosen van to get that total — and the lower that sum, the better. Nothing is allowed to be left behind or duplicated, and no van may exceed its limits. The detailed list is below. # num_vans=4 # num_parcels=14 # van_ids=A1, A2, A3, A4 # parcel_ids=0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 van_id,van_capacity A1,730 A2,712 A3,704 A4,729 van_id,parcel_id,parcel_consumption_on_van A1,0,28 A1,1,46 A1,2,46 A1,3,42 A1,4,28 A1,5,22 A1,6,40 A1,7,24 A1,8,34 A1,9,21 A1,10,44 A1,11,32 A1,12,19 A1,13,39 A2,0,44 A2,1,43 A2,2,20 A2,3,28 A2,4,16 A2,5,39 A2,6,43 A2,7,17 A2,8,49 A2,9,29 A2,10,11 A2,11,18 A2,12,39 A2,13,31 A3,0,45 A3,1,36 A3,2,22 A3,3,36 A3,4,25 A3,5,35 A3,6,29 A3,7,11 A3,8,13 A3,9,12 A3,10,49 A3,11,39 A3,12,41 A3,13,46 A4,0,46 A4,1,41 A4,2,38 A4,3,30 A4,4,16 A4,5,40 A4,6,50 A4,7,29 A4,8,50 A4,9,30 A4,10,20 A4,11,16 A4,12,49 A4,13,17 van_id,parcel_id,parcel_cost_on_van A1,0,19 A1,1,20 A1,2,17 A1,3,9 A1,4,9 A1,5,17 A1,6,21 A1,7,9 A1,8,16 A1,9,16 A1,10,24 A1,11,5 A1,12,8 A1,13,17 A2,0,21 A2,1,12 A2,2,10 A2,3,19 A2,4,6 A2,5,16 A2,6,16 A2,7,7 A2,8,24 A2,9,8 A2,10,25 A2,11,23 A2,12,21 A2,13,6 A3,0,13 A3,1,6 A3,2,17 A3,3,5 A3,4,20 A3,5,25 A3,6,11 A3,7,13 A3,8,15 A3,9,6 A3,10,14 A3,11,14 A3,12,19 A3,13,19 A4,0,20 A4,1,20 A4,2,20 A4,3,22 A4,4,13 A4,5,23 A4,6,18 A4,7,21 A4,8,16 A4,9,18 A4,10,12 A4,11,22 A4,12,14 A4,13,25 And one more thing — when you send back the assignment, please use this little JSON shape so I can read it automatically: { ""solution"": [ , , ..., ] } This just means ""solution"" should be a list where each entry names which van takes that parcel (first entry = first parcel, second = second parcel, etc.). Keep it casual: each placeholder stands for the van identifier you choose for that parcel, in order. The block above is just the shape I expect, not the actual answer. Please also make sure to use the exact identifiers from the instance input — don't rename them or invent new ones. For example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[28, 46, 46, 42, 28, 22, 40, 24, 34, 21, 44, 32, 19, 39], [44, 43, 20, 28, 16, 39, 43, 17, 49, 29, 11, 18, 39, 31], [45, 36, 22, 36, 25, 35, 29, 11, 13, 12, 49, 39, 41, 46], [46, 41, 38, 30, 16, 40, 50, 29, 50, 30, 20, 16, 49, 17]], 'assignment_costs': [[19, 20, 17, 9, 9, 17, 21, 9, 16, 16, 24, 5, 8, 17], [21, 12, 10, 19, 6, 16, 16, 7, 24, 8, 25, 23, 21, 6], [13, 6, 17, 5, 20, 25, 11, 13, 15, 6, 14, 14, 19, 19], [20, 20, 20, 22, 13, 23, 18, 21, 16, 18, 12, 22, 14, 25]], 'capacities': [730, 712, 704, 729], 'objective': 126.0}","[2, 2, 1, 2, 1, 1, 2, 1, 2, 2, 3, 0, 0, 1]",126.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 730}, {'agent_id': 'A2', 'capacity': 712}, {'agent_id': 'A3', 'capacity': 704}, {'agent_id': 'A4', 'capacity': 729}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 22}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 40}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 24}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 34}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 44}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 32}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 43}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 43}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 49}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 18}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 39}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 41}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 41}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 29}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 50}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 20}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 17}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 19}, {'agent_id': 'A1', 'task_id': 1, 'cost': 20}, {'agent_id': 'A1', 'task_id': 2, 'cost': 17}, {'agent_id': 'A1', 'task_id': 3, 'cost': 9}, {'agent_id': 'A1', 'task_id': 4, 'cost': 9}, {'agent_id': 'A1', 'task_id': 5, 'cost': 17}, {'agent_id': 'A1', 'task_id': 6, 'cost': 21}, {'agent_id': 'A1', 'task_id': 7, 'cost': 9}, {'agent_id': 'A1', 'task_id': 8, 'cost': 16}, {'agent_id': 'A1', 'task_id': 9, 'cost': 16}, {'agent_id': 'A1', 'task_id': 10, 'cost': 24}, {'agent_id': 'A1', 'task_id': 11, 'cost': 5}, {'agent_id': 'A1', 'task_id': 12, 'cost': 8}, {'agent_id': 'A1', 'task_id': 13, 'cost': 17}, {'agent_id': 'A2', 'task_id': 0, 'cost': 21}, {'agent_id': 'A2', 'task_id': 1, 'cost': 12}, {'agent_id': 'A2', 'task_id': 2, 'cost': 10}, {'agent_id': 'A2', 'task_id': 3, 'cost': 19}, {'agent_id': 'A2', 'task_id': 4, 'cost': 6}, {'agent_id': 'A2', 'task_id': 5, 'cost': 16}, {'agent_id': 'A2', 'task_id': 6, 'cost': 16}, {'agent_id': 'A2', 'task_id': 7, 'cost': 7}, {'agent_id': 'A2', 'task_id': 8, 'cost': 24}, {'agent_id': 'A2', 'task_id': 9, 'cost': 8}, {'agent_id': 'A2', 'task_id': 10, 'cost': 25}, {'agent_id': 'A2', 'task_id': 11, 'cost': 23}, {'agent_id': 'A2', 'task_id': 12, 'cost': 21}, {'agent_id': 'A2', 'task_id': 13, 'cost': 6}, {'agent_id': 'A3', 'task_id': 0, 'cost': 13}, {'agent_id': 'A3', 'task_id': 1, 'cost': 6}, {'agent_id': 'A3', 'task_id': 2, 'cost': 17}, {'agent_id': 'A3', 'task_id': 3, 'cost': 5}, {'agent_id': 'A3', 'task_id': 4, 'cost': 20}, {'agent_id': 'A3', 'task_id': 5, 'cost': 25}, {'agent_id': 'A3', 'task_id': 6, 'cost': 11}, {'agent_id': 'A3', 'task_id': 7, 'cost': 13}, {'agent_id': 'A3', 'task_id': 8, 'cost': 15}, {'agent_id': 'A3', 'task_id': 9, 'cost': 6}, {'agent_id': 'A3', 'task_id': 10, 'cost': 14}, {'agent_id': 'A3', 'task_id': 11, 'cost': 14}, {'agent_id': 'A3', 'task_id': 12, 'cost': 19}, {'agent_id': 'A3', 'task_id': 13, 'cost': 19}, {'agent_id': 'A4', 'task_id': 0, 'cost': 20}, {'agent_id': 'A4', 'task_id': 1, 'cost': 20}, {'agent_id': 'A4', 'task_id': 2, 'cost': 20}, {'agent_id': 'A4', 'task_id': 3, 'cost': 22}, {'agent_id': 'A4', 'task_id': 4, 'cost': 13}, {'agent_id': 'A4', 'task_id': 5, 'cost': 23}, {'agent_id': 'A4', 'task_id': 6, 'cost': 18}, {'agent_id': 'A4', 'task_id': 7, 'cost': 21}, {'agent_id': 'A4', 'task_id': 8, 'cost': 16}, {'agent_id': 'A4', 'task_id': 9, 'cost': 18}, {'agent_id': 'A4', 'task_id': 10, 'cost': 12}, {'agent_id': 'A4', 'task_id': 11, 'cost': 22}, {'agent_id': 'A4', 'task_id': 12, 'cost': 14}, {'agent_id': 'A4', 'task_id': 13, 'cost': 25}]}","['A3', 'A3', 'A2', 'A3', 'A2', 'A2', 'A3', 'A2', 'A3', 'A3', 'A4', 'A1', 'A1', 'A2']",44,csv,0 GAP,GAP,"I’m picturing a busy term where a pile of student projects needs grading and a handful of teaching assistants are available to do the reviews. Each project has to be handed to one TA — no project gets skipped and no project gets split between people — and each TA can take on several reviews as long as the total time or effort they’d need for those reviews doesn’t exceed what they can realistically handle. For every possible pairing, it’s already known how much work that project would be for that TA and how much the TA would charge. The goal is simple: keep the overall grading bill as small as possible by assigning every project to exactly one TA, adding up the fee for each assigned review to get the total cost, and choosing assignments that make that total as low as possible while making sure no TA is overloaded. The exact project loads, TA capacities, and fees are listed below. { ""num_tas"": 4, ""num_projects"": 12, ""tas"": [ ""A1"", ""A2"", ""A3"", ""A4"" ], ""projects"": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 ], ""capacities"": [ { ""ta_id"": ""A1"", ""ta_available_capacity"": 236 }, { ""ta_id"": ""A2"", ""ta_available_capacity"": 238 }, { ""ta_id"": ""A3"", ""ta_available_capacity"": 229 }, { ""ta_id"": ""A4"", ""ta_available_capacity"": 233 } ], ""resource"": [ { ""ta_id"": ""A1"", ""project_id"": 1, ""grading_effort"": 11 }, { ""ta_id"": ""A1"", ""project_id"": 2, ""grading_effort"": 31 }, { ""ta_id"": ""A1"", ""project_id"": 3, ""grading_effort"": 45 }, { ""ta_id"": ""A1"", ""project_id"": 4, ""grading_effort"": 19 }, { ""ta_id"": ""A1"", ""project_id"": 5, ""grading_effort"": 39 }, { ""ta_id"": ""A1"", ""project_id"": 6, ""grading_effort"": 39 }, { ""ta_id"": ""A1"", ""project_id"": 7, ""grading_effort"": 14 }, { ""ta_id"": ""A1"", ""project_id"": 8, ""grading_effort"": 27 }, { ""ta_id"": ""A1"", ""project_id"": 9, ""grading_effort"": 42 }, { ""ta_id"": ""A1"", ""project_id"": 10, ""grading_effort"": 17 }, { ""ta_id"": ""A1"", ""project_id"": 11, ""grading_effort"": 29 }, { ""ta_id"": ""A1"", ""project_id"": 12, ""grading_effort"": 25 }, { ""ta_id"": ""A2"", ""project_id"": 1, ""grading_effort"": 49 }, { ""ta_id"": ""A2"", ""project_id"": 2, ""grading_effort"": 10 }, { ""ta_id"": ""A2"", ""project_id"": 3, ""grading_effort"": 28 }, { ""ta_id"": ""A2"", ""project_id"": 4, ""grading_effort"": 16 }, { ""ta_id"": ""A2"", ""project_id"": 5, ""grading_effort"": 50 }, { ""ta_id"": ""A2"", ""project_id"": 6, ""grading_effort"": 44 }, { ""ta_id"": ""A2"", ""project_id"": 7, ""grading_effort"": 38 }, { ""ta_id"": ""A2"", ""project_id"": 8, ""grading_effort"": 36 }, { ""ta_id"": ""A2"", ""project_id"": 9, ""grading_effort"": 31 }, { ""ta_id"": ""A2"", ""project_id"": 10, ""grading_effort"": 45 }, { ""ta_id"": ""A2"", ""project_id"": 11, ""grading_effort"": 31 }, { ""ta_id"": ""A2"", ""project_id"": 12, ""grading_effort"": 25 }, { ""ta_id"": ""A3"", ""project_id"": 1, ""grading_effort"": 17 }, { ""ta_id"": ""A3"", ""project_id"": 2, ""grading_effort"": 16 }, { ""ta_id"": ""A3"", ""project_id"": 3, ""grading_effort"": 32 }, { ""ta_id"": ""A3"", ""project_id"": 4, ""grading_effort"": 33 }, { ""ta_id"": ""A3"", ""project_id"": 5, ""grading_effort"": 31 }, { ""ta_id"": ""A3"", ""project_id"": 6, ""grading_effort"": 20 }, { ""ta_id"": ""A3"", ""project_id"": 7, ""grading_effort"": 42 }, { ""ta_id"": ""A3"", ""project_id"": 8, ""grading_effort"": 13 }, { ""ta_id"": ""A3"", ""project_id"": 9, ""grading_effort"": 45 }, { ""ta_id"": ""A3"", ""project_id"": 10, ""grading_effort"": 23 }, { ""ta_id"": ""A3"", ""project_id"": 11, ""grading_effort"": 32 }, { ""ta_id"": ""A3"", ""project_id"": 12, ""grading_effort"": 37 }, { ""ta_id"": ""A4"", ""project_id"": 1, ""grading_effort"": 26 }, { ""ta_id"": ""A4"", ""project_id"": 2, ""grading_effort"": 25 }, { ""ta_id"": ""A4"", ""project_id"": 3, ""grading_effort"": 26 }, { ""ta_id"": ""A4"", ""project_id"": 4, ""grading_effort"": 21 }, { ""ta_id"": ""A4"", ""project_id"": 5, ""grading_effort"": 29 }, { ""ta_id"": ""A4"", ""project_id"": 6, ""grading_effort"": 24 }, { ""ta_id"": ""A4"", ""project_id"": 7, ""grading_effort"": 31 }, { ""ta_id"": ""A4"", ""project_id"": 8, ""grading_effort"": 31 }, { ""ta_id"": ""A4"", ""project_id"": 9, ""grading_effort"": 49 }, { ""ta_id"": ""A4"", ""project_id"": 10, ""grading_effort"": 45 }, { ""ta_id"": ""A4"", ""project_id"": 11, ""grading_effort"": 19 }, { ""ta_id"": ""A4"", ""project_id"": 12, ""grading_effort"": 18 } ], ""cost"": [ { ""ta_id"": ""A1"", ""project_id"": 1, ""grading_fee"": 16 }, { ""ta_id"": ""A1"", ""project_id"": 2, ""grading_fee"": 23 }, { ""ta_id"": ""A1"", ""project_id"": 3, ""grading_fee"": 13 }, { ""ta_id"": ""A1"", ""project_id"": 4, ""grading_fee"": 9 }, { ""ta_id"": ""A1"", ""project_id"": 5, ""grading_fee"": 21 }, { ""ta_id"": ""A1"", ""project_id"": 6, ""grading_fee"": 24 }, { ""ta_id"": ""A1"", ""project_id"": 7, ""grading_fee"": 5 }, { ""ta_id"": ""A1"", ""project_id"": 8, ""grading_fee"": 19 }, { ""ta_id"": ""A1"", ""project_id"": 9, ""grading_fee"": 10 }, { ""ta_id"": ""A1"", ""project_id"": 10, ""grading_fee"": 7 }, { ""ta_id"": ""A1"", ""project_id"": 11, ""grading_fee"": 7 }, { ""ta_id"": ""A1"", ""project_id"": 12, ""grading_fee"": 13 }, { ""ta_id"": ""A2"", ""project_id"": 1, ""grading_fee"": 15 }, { ""ta_id"": ""A2"", ""project_id"": 2, ""grading_fee"": 7 }, { ""ta_id"": ""A2"", ""project_id"": 3, ""grading_fee"": 25 }, { ""ta_id"": ""A2"", ""project_id"": 4, ""grading_fee"": 8 }, { ""ta_id"": ""A2"", ""project_id"": 5, ""grading_fee"": 18 }, { ""ta_id"": ""A2"", ""project_id"": 6, ""grading_fee"": 11 }, { ""ta_id"": ""A2"", ""project_id"": 7, ""grading_fee"": 11 }, { ""ta_id"": ""A2"", ""project_id"": 8, ""grading_fee"": 6 }, { ""ta_id"": ""A2"", ""project_id"": 9, ""grading_fee"": 7 }, { ""ta_id"": ""A2"", ""project_id"": 10, ""grading_fee"": 9 }, { ""ta_id"": ""A2"", ""project_id"": 11, ""grading_fee"": 24 }, { ""ta_id"": ""A2"", ""project_id"": 12, ""grading_fee"": 8 }, { ""ta_id"": ""A3"", ""project_id"": 1, ""grading_fee"": 13 }, { ""ta_id"": ""A3"", ""project_id"": 2, ""grading_fee"": 17 }, { ""ta_id"": ""A3"", ""project_id"": 3, ""grading_fee"": 19 }, { ""ta_id"": ""A3"", ""project_id"": 4, ""grading_fee"": 6 }, { ""ta_id"": ""A3"", ""project_id"": 5, ""grading_fee"": 24 }, { ""ta_id"": ""A3"", ""project_id"": 6, ""grading_fee"": 23 }, { ""ta_id"": ""A3"", ""project_id"": 7, ""grading_fee"": 7 }, { ""ta_id"": ""A3"", ""project_id"": 8, ""grading_fee"": 14 }, { ""ta_id"": ""A3"", ""project_id"": 9, ""grading_fee"": 9 }, { ""ta_id"": ""A3"", ""project_id"": 10, ""grading_fee"": 21 }, { ""ta_id"": ""A3"", ""project_id"": 11, ""grading_fee"": 23 }, { ""ta_id"": ""A3"", ""project_id"": 12, ""grading_fee"": 6 }, { ""ta_id"": ""A4"", ""project_id"": 1, ""grading_fee"": 8 }, { ""ta_id"": ""A4"", ""project_id"": 2, ""grading_fee"": 16 }, { ""ta_id"": ""A4"", ""project_id"": 3, ""grading_fee"": 24 }, { ""ta_id"": ""A4"", ""project_id"": 4, ""grading_fee"": 11 }, { ""ta_id"": ""A4"", ""project_id"": 5, ""grading_fee"": 13 }, { ""ta_id"": ""A4"", ""project_id"": 6, ""grading_fee"": 7 }, { ""ta_id"": ""A4"", ""project_id"": 7, ""grading_fee"": 22 }, { ""ta_id"": ""A4"", ""project_id"": 8, ""grading_fee"": 25 }, { ""ta_id"": ""A4"", ""project_id"": 9, ""grading_fee"": 9 }, { ""ta_id"": ""A4"", ""project_id"": 10, ""grading_fee"": 8 }, { ""ta_id"": ""A4"", ""project_id"": 11, ""grading_fee"": 20 }, { ""ta_id"": ""A4"", ""project_id"": 12, ""grading_fee"": 21 } ] } Also, when you give the final assignment, a small JSON snippet like this is perfect — it just lists which TA handles which project in order. { ""solution"": [ , , ..., ] } Think of that array as a checklist: the first entry is the ID of the TA who will grade the first project, the second entry is the TA for the second project, and so on until the last project. This is just the shape I need — replace each placeholder with the actual TA identifiers from the instance when you submit the final assignment. Please use the exact identifiers from the input with no renaming and no new labels — otherwise the mapping won't match. - 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”.""","{'resource_consumption': [[11, 31, 45, 19, 39, 39, 14, 27, 42, 17, 29, 25], [49, 10, 28, 16, 50, 44, 38, 36, 31, 45, 31, 25], [17, 16, 32, 33, 31, 20, 42, 13, 45, 23, 32, 37], [26, 25, 26, 21, 29, 24, 31, 31, 49, 45, 19, 18]], 'assignment_costs': [[16, 23, 13, 9, 21, 24, 5, 19, 10, 7, 7, 13], [15, 7, 25, 8, 18, 11, 11, 6, 7, 9, 24, 8], [13, 17, 19, 6, 24, 23, 7, 14, 9, 21, 23, 6], [8, 16, 24, 11, 13, 7, 22, 25, 9, 8, 20, 21]], 'capacities': [236, 238, 229, 233], 'objective': 92.0}","[3, 1, 0, 2, 3, 3, 0, 1, 1, 0, 0, 2]",92.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 12, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 236}, {'agent_id': 'A2', 'capacity': 238}, {'agent_id': 'A3', 'capacity': 229}, {'agent_id': 'A4', 'capacity': 233}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 11}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 45}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 19}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 14}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 25}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 49}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 28}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 16}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 50}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 44}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 38}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 16}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 20}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 42}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 23}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 37}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 26}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 26}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 21}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 29}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 24}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 19}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 18}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 16}, {'agent_id': 'A1', 'task_id': 2, 'cost': 23}, {'agent_id': 'A1', 'task_id': 3, 'cost': 13}, {'agent_id': 'A1', 'task_id': 4, 'cost': 9}, {'agent_id': 'A1', 'task_id': 5, 'cost': 21}, {'agent_id': 'A1', 'task_id': 6, 'cost': 24}, {'agent_id': 'A1', 'task_id': 7, 'cost': 5}, {'agent_id': 'A1', 'task_id': 8, 'cost': 19}, {'agent_id': 'A1', 'task_id': 9, 'cost': 10}, {'agent_id': 'A1', 'task_id': 10, 'cost': 7}, {'agent_id': 'A1', 'task_id': 11, 'cost': 7}, {'agent_id': 'A1', 'task_id': 12, 'cost': 13}, {'agent_id': 'A2', 'task_id': 1, 'cost': 15}, {'agent_id': 'A2', 'task_id': 2, 'cost': 7}, {'agent_id': 'A2', 'task_id': 3, 'cost': 25}, {'agent_id': 'A2', 'task_id': 4, 'cost': 8}, {'agent_id': 'A2', 'task_id': 5, 'cost': 18}, {'agent_id': 'A2', 'task_id': 6, 'cost': 11}, {'agent_id': 'A2', 'task_id': 7, 'cost': 11}, {'agent_id': 'A2', 'task_id': 8, 'cost': 6}, {'agent_id': 'A2', 'task_id': 9, 'cost': 7}, {'agent_id': 'A2', 'task_id': 10, 'cost': 9}, {'agent_id': 'A2', 'task_id': 11, 'cost': 24}, {'agent_id': 'A2', 'task_id': 12, 'cost': 8}, {'agent_id': 'A3', 'task_id': 1, 'cost': 13}, {'agent_id': 'A3', 'task_id': 2, 'cost': 17}, {'agent_id': 'A3', 'task_id': 3, 'cost': 19}, {'agent_id': 'A3', 'task_id': 4, 'cost': 6}, {'agent_id': 'A3', 'task_id': 5, 'cost': 24}, {'agent_id': 'A3', 'task_id': 6, 'cost': 23}, {'agent_id': 'A3', 'task_id': 7, 'cost': 7}, {'agent_id': 'A3', 'task_id': 8, 'cost': 14}, {'agent_id': 'A3', 'task_id': 9, 'cost': 9}, {'agent_id': 'A3', 'task_id': 10, 'cost': 21}, {'agent_id': 'A3', 'task_id': 11, 'cost': 23}, {'agent_id': 'A3', 'task_id': 12, 'cost': 6}, {'agent_id': 'A4', 'task_id': 1, 'cost': 8}, {'agent_id': 'A4', 'task_id': 2, 'cost': 16}, {'agent_id': 'A4', 'task_id': 3, 'cost': 24}, {'agent_id': 'A4', 'task_id': 4, 'cost': 11}, {'agent_id': 'A4', 'task_id': 5, 'cost': 13}, {'agent_id': 'A4', 'task_id': 6, 'cost': 7}, {'agent_id': 'A4', 'task_id': 7, 'cost': 22}, {'agent_id': 'A4', 'task_id': 8, 'cost': 25}, {'agent_id': 'A4', 'task_id': 9, 'cost': 9}, {'agent_id': 'A4', 'task_id': 10, 'cost': 8}, {'agent_id': 'A4', 'task_id': 11, 'cost': 20}, {'agent_id': 'A4', 'task_id': 12, 'cost': 21}]}","['A4', 'A2', 'A1', 'A3', 'A4', 'A4', 'A1', 'A2', 'A2', 'A1', 'A1', 'A3']",45,json,1 GAP,GAP,"Recently the floor manager had to put patients onto nurses’ lists: each patient must go to a single nurse, nurses can take on multiple patients until their allotted shift time fills up, and for every nurse–patient combo there’s a stated care duration and cost. What counts as a better plan is one with a smaller total staffing charge — found by adding up each selected pairing’s cost — and the plan must assign every patient once and never push a nurse beyond their available hours. The concrete data are shown below. # num_nurses=4 # num_patients=11 # nurse_ids=A1, A2, A3, A4 # patient_ids=A, B, C, D, E, F, G, H, I, J, K nurse_id,available_shift_time A1,362 A2,359 A3,361 A4,357 nurse_id,patient_id,care_time A1,A,50 A1,B,45 A1,C,40 A1,D,31 A1,E,35 A1,F,28 A1,G,12 A1,H,50 A1,I,45 A1,J,32 A1,K,42 A2,A,24 A2,B,41 A2,C,35 A2,D,27 A2,E,17 A2,F,11 A2,G,12 A2,H,30 A2,I,20 A2,J,49 A2,K,36 A3,A,39 A3,B,44 A3,C,39 A3,D,37 A3,E,49 A3,F,28 A3,G,45 A3,H,39 A3,I,42 A3,J,39 A3,K,32 A4,A,16 A4,B,39 A4,C,41 A4,D,50 A4,E,36 A4,F,26 A4,G,29 A4,H,34 A4,I,12 A4,J,50 A4,K,23 nurse_id,patient_id,assignment_cost A1,A,25 A1,B,20 A1,C,10 A1,D,6 A1,E,12 A1,F,24 A1,G,13 A1,H,18 A1,I,8 A1,J,14 A1,K,12 A2,A,19 A2,B,22 A2,C,9 A2,D,16 A2,E,16 A2,F,15 A2,G,10 A2,H,10 A2,I,11 A2,J,20 A2,K,9 A3,A,24 A3,B,6 A3,C,23 A3,D,11 A3,E,20 A3,F,19 A3,G,20 A3,H,17 A3,I,17 A3,J,18 A3,K,15 A4,A,6 A4,B,6 A4,C,14 A4,D,10 A4,E,20 A4,F,15 A4,G,25 A4,H,11 A4,I,7 A4,J,11 A4,K,23 If you want the assignment in a machine-friendly form, just send it back in this relaxed little JSON shape so I know which nurse goes with which patient (one entry per patient, in order): { ""solution"": [ , , ..., ] } Pretty simple: ""solution"" is a list where each spot is the nurse assigned to the corresponding patient (first list entry → first patient, second → second patient, and so on). Think of it like filling out a form: one nurse ID per patient, in the patient order from the instance. This is just a sketch of the shape I need, not the actual answer. Please use the exact nurse identifiers from the instance — 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"".","{'resource_consumption': [[50, 45, 40, 31, 35, 28, 12, 50, 45, 32, 42], [24, 41, 35, 27, 17, 11, 12, 30, 20, 49, 36], [39, 44, 39, 37, 49, 28, 45, 39, 42, 39, 32], [16, 39, 41, 50, 36, 26, 29, 34, 12, 50, 23]], 'assignment_costs': [[25, 20, 10, 6, 12, 24, 13, 18, 8, 14, 12], [19, 22, 9, 16, 16, 15, 10, 10, 11, 20, 9], [24, 6, 23, 11, 20, 19, 20, 17, 17, 18, 15], [6, 6, 14, 10, 20, 15, 25, 11, 7, 11, 23]], 'capacities': [362, 359, 361, 357], 'objective': 101.0}","[3, 3, 1, 0, 0, 1, 1, 1, 3, 3, 1]",101.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 11, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 362}, {'agent_id': 'A2', 'capacity': 359}, {'agent_id': 'A3', 'capacity': 361}, {'agent_id': 'A4', 'capacity': 357}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 50}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 45}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 40}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 31}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 35}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 28}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 12}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 50}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 45}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 32}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 42}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 24}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 41}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 35}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 27}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 17}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 11}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 12}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 30}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 20}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 49}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 36}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 39}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 44}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 39}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 37}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 49}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 28}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 45}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 39}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 42}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 39}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 32}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 16}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 39}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 41}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 50}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 36}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 26}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 29}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 34}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 12}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 50}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 23}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 25}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 20}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 10}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 6}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 12}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 24}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 13}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 18}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 8}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 12}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 22}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 9}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 16}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 16}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 10}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 10}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 11}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 20}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 9}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 24}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 6}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 23}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 19}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 17}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 18}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 15}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 6}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 6}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 14}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 10}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 20}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 25}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 7}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 23}]}","['A4', 'A4', 'A2', 'A1', 'A1', 'A2', 'A2', 'A2', 'A4', 'A4', 'A2']",46,csv,names GAP,GAP,"Someone in charge of bookings has to match every photoshoot to one studio, given that each shoot has an hour demand and each studio charges a specific amount for that shoot. Studios can host multiple shoots, provided the total time booked there stays within that studio’s available hours. The win is the plan with the lowest total rental and setup bill — calculated by adding up the cost of each shoot at the studio it’s put into. The exact numbers and studio hours are shown below. There are 4 studios and 11 shoots to place; the studios are A1, A2, A3, A4 and the shoots are A, B, C, D, E, F, G, H, I, J, K. Studio A1 has 248 available hours. Studio A2 has 240 available hours. Studio A3 has 238 available hours. Studio A4 has 233 available hours. Placing shoot A in studio A1 consumes 20 hours and costs 16. Placing shoot B in studio A1 consumes 32 hours and costs 14. Placing shoot C in studio A1 consumes 28 hours and costs 23. Placing shoot D in studio A1 consumes 42 hours and costs 17. Placing shoot E in studio A1 consumes 43 hours and costs 22. Placing shoot F in studio A1 consumes 16 hours and costs 14. Placing shoot G in studio A1 consumes 17 hours and costs 21. Placing shoot H in studio A1 consumes 21 hours and costs 20. Placing shoot I in studio A1 consumes 33 hours and costs 25. Placing shoot J in studio A1 consumes 28 hours and costs 24. Placing shoot K in studio A1 consumes 46 hours and costs 19. Placing shoot A in studio A2 consumes 44 hours and costs 21. Placing shoot B in studio A2 consumes 21 hours and costs 17. Placing shoot C in studio A2 consumes 34 hours and costs 16. Placing shoot D in studio A2 consumes 25 hours and costs 25. Placing shoot E in studio A2 consumes 13 hours and costs 25. Placing shoot F in studio A2 consumes 17 hours and costs 15. Placing shoot G in studio A2 consumes 34 hours and costs 24. Placing shoot H in studio A2 consumes 10 hours and costs 25. Placing shoot I in studio A2 consumes 37 hours and costs 11. Placing shoot J in studio A2 consumes 31 hours and costs 9. Placing shoot K in studio A2 consumes 21 hours and costs 20. Placing shoot A in studio A3 consumes 35 hours and costs 6. Placing shoot B in studio A3 consumes 18 hours and costs 19. Placing shoot C in studio A3 consumes 34 hours and costs 11. Placing shoot D in studio A3 consumes 38 hours and costs 24. Placing shoot E in studio A3 consumes 50 hours and costs 24. Placing shoot F in studio A3 consumes 44 hours and costs 11. Placing shoot G in studio A3 consumes 23 hours and costs 12. Placing shoot H in studio A3 consumes 11 hours and costs 11. Placing shoot I in studio A3 consumes 12 hours and costs 13. Placing shoot J in studio A3 consumes 30 hours and costs 11. Placing shoot K in studio A3 consumes 11 hours and costs 21. Placing shoot A in studio A4 consumes 45 hours and costs 11. Placing shoot B in studio A4 consumes 14 hours and costs 14. Placing shoot C in studio A4 consumes 20 hours and costs 10. Placing shoot D in studio A4 consumes 20 hours and costs 8. Placing shoot E in studio A4 consumes 24 hours and costs 7. Placing shoot F in studio A4 consumes 17 hours and costs 12. Placing shoot G in studio A4 consumes 49 hours and costs 9. Placing shoot H in studio A4 consumes 18 hours and costs 7. Placing shoot I in studio A4 consumes 23 hours and costs 10. Placing shoot J in studio A4 consumes 45 hours and costs 6. Placing shoot K in studio A4 consumes 49 hours and costs 24. The planner must assign all 11 shoots across the 4 studios without exceeding any studio's available hours, minimizing the total rental and setup bill. If you could send the final plan in a compact JSON snippet, that makes it easy to check automatically — something casual like this will do: { ""solution"": [ , , ..., ] } This just shows the shape: the ""solution"" array should list, in order, which studio each shoot is assigned to (first shoot → first entry, second shoot → second entry, and so on). It's just a sketch of the expected layout, not the actual assignment itself. Please make sure to use the exact identifiers from 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"" - a capital letter followed by digits like ""A1"" or ""X7""","{'resource_consumption': [[20, 32, 28, 42, 43, 16, 17, 21, 33, 28, 46], [44, 21, 34, 25, 13, 17, 34, 10, 37, 31, 21], [35, 18, 34, 38, 50, 44, 23, 11, 12, 30, 11], [45, 14, 20, 20, 24, 17, 49, 18, 23, 45, 49]], 'assignment_costs': [[16, 14, 23, 17, 22, 14, 21, 20, 25, 24, 19], [21, 17, 16, 25, 25, 15, 24, 25, 11, 9, 20], [6, 19, 11, 24, 24, 11, 12, 11, 13, 11, 21], [11, 14, 10, 8, 7, 12, 9, 7, 10, 6, 24]], 'capacities': [248, 240, 238, 233], 'objective': 107.0}","[2, 3, 3, 3, 3, 2, 3, 3, 3, 3, 0]",107.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 11, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K'], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 248}, {'agent_id': 'A2', 'capacity': 240}, {'agent_id': 'A3', 'capacity': 238}, {'agent_id': 'A4', 'capacity': 233}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'consumption': 20}, {'agent_id': 'A1', 'task_id': 'B', 'consumption': 32}, {'agent_id': 'A1', 'task_id': 'C', 'consumption': 28}, {'agent_id': 'A1', 'task_id': 'D', 'consumption': 42}, {'agent_id': 'A1', 'task_id': 'E', 'consumption': 43}, {'agent_id': 'A1', 'task_id': 'F', 'consumption': 16}, {'agent_id': 'A1', 'task_id': 'G', 'consumption': 17}, {'agent_id': 'A1', 'task_id': 'H', 'consumption': 21}, {'agent_id': 'A1', 'task_id': 'I', 'consumption': 33}, {'agent_id': 'A1', 'task_id': 'J', 'consumption': 28}, {'agent_id': 'A1', 'task_id': 'K', 'consumption': 46}, {'agent_id': 'A2', 'task_id': 'A', 'consumption': 44}, {'agent_id': 'A2', 'task_id': 'B', 'consumption': 21}, {'agent_id': 'A2', 'task_id': 'C', 'consumption': 34}, {'agent_id': 'A2', 'task_id': 'D', 'consumption': 25}, {'agent_id': 'A2', 'task_id': 'E', 'consumption': 13}, {'agent_id': 'A2', 'task_id': 'F', 'consumption': 17}, {'agent_id': 'A2', 'task_id': 'G', 'consumption': 34}, {'agent_id': 'A2', 'task_id': 'H', 'consumption': 10}, {'agent_id': 'A2', 'task_id': 'I', 'consumption': 37}, {'agent_id': 'A2', 'task_id': 'J', 'consumption': 31}, {'agent_id': 'A2', 'task_id': 'K', 'consumption': 21}, {'agent_id': 'A3', 'task_id': 'A', 'consumption': 35}, {'agent_id': 'A3', 'task_id': 'B', 'consumption': 18}, {'agent_id': 'A3', 'task_id': 'C', 'consumption': 34}, {'agent_id': 'A3', 'task_id': 'D', 'consumption': 38}, {'agent_id': 'A3', 'task_id': 'E', 'consumption': 50}, {'agent_id': 'A3', 'task_id': 'F', 'consumption': 44}, {'agent_id': 'A3', 'task_id': 'G', 'consumption': 23}, {'agent_id': 'A3', 'task_id': 'H', 'consumption': 11}, {'agent_id': 'A3', 'task_id': 'I', 'consumption': 12}, {'agent_id': 'A3', 'task_id': 'J', 'consumption': 30}, {'agent_id': 'A3', 'task_id': 'K', 'consumption': 11}, {'agent_id': 'A4', 'task_id': 'A', 'consumption': 45}, {'agent_id': 'A4', 'task_id': 'B', 'consumption': 14}, {'agent_id': 'A4', 'task_id': 'C', 'consumption': 20}, {'agent_id': 'A4', 'task_id': 'D', 'consumption': 20}, {'agent_id': 'A4', 'task_id': 'E', 'consumption': 24}, {'agent_id': 'A4', 'task_id': 'F', 'consumption': 17}, {'agent_id': 'A4', 'task_id': 'G', 'consumption': 49}, {'agent_id': 'A4', 'task_id': 'H', 'consumption': 18}, {'agent_id': 'A4', 'task_id': 'I', 'consumption': 23}, {'agent_id': 'A4', 'task_id': 'J', 'consumption': 45}, {'agent_id': 'A4', 'task_id': 'K', 'consumption': 49}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 'A', 'cost': 16}, {'agent_id': 'A1', 'task_id': 'B', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'C', 'cost': 23}, {'agent_id': 'A1', 'task_id': 'D', 'cost': 17}, {'agent_id': 'A1', 'task_id': 'E', 'cost': 22}, {'agent_id': 'A1', 'task_id': 'F', 'cost': 14}, {'agent_id': 'A1', 'task_id': 'G', 'cost': 21}, {'agent_id': 'A1', 'task_id': 'H', 'cost': 20}, {'agent_id': 'A1', 'task_id': 'I', 'cost': 25}, {'agent_id': 'A1', 'task_id': 'J', 'cost': 24}, {'agent_id': 'A1', 'task_id': 'K', 'cost': 19}, {'agent_id': 'A2', 'task_id': 'A', 'cost': 21}, {'agent_id': 'A2', 'task_id': 'B', 'cost': 17}, {'agent_id': 'A2', 'task_id': 'C', 'cost': 16}, {'agent_id': 'A2', 'task_id': 'D', 'cost': 25}, {'agent_id': 'A2', 'task_id': 'E', 'cost': 25}, {'agent_id': 'A2', 'task_id': 'F', 'cost': 15}, {'agent_id': 'A2', 'task_id': 'G', 'cost': 24}, {'agent_id': 'A2', 'task_id': 'H', 'cost': 25}, {'agent_id': 'A2', 'task_id': 'I', 'cost': 11}, {'agent_id': 'A2', 'task_id': 'J', 'cost': 9}, {'agent_id': 'A2', 'task_id': 'K', 'cost': 20}, {'agent_id': 'A3', 'task_id': 'A', 'cost': 6}, {'agent_id': 'A3', 'task_id': 'B', 'cost': 19}, {'agent_id': 'A3', 'task_id': 'C', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'D', 'cost': 24}, {'agent_id': 'A3', 'task_id': 'E', 'cost': 24}, {'agent_id': 'A3', 'task_id': 'F', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'G', 'cost': 12}, {'agent_id': 'A3', 'task_id': 'H', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'I', 'cost': 13}, {'agent_id': 'A3', 'task_id': 'J', 'cost': 11}, {'agent_id': 'A3', 'task_id': 'K', 'cost': 21}, {'agent_id': 'A4', 'task_id': 'A', 'cost': 11}, {'agent_id': 'A4', 'task_id': 'B', 'cost': 14}, {'agent_id': 'A4', 'task_id': 'C', 'cost': 10}, {'agent_id': 'A4', 'task_id': 'D', 'cost': 8}, {'agent_id': 'A4', 'task_id': 'E', 'cost': 7}, {'agent_id': 'A4', 'task_id': 'F', 'cost': 12}, {'agent_id': 'A4', 'task_id': 'G', 'cost': 9}, {'agent_id': 'A4', 'task_id': 'H', 'cost': 7}, {'agent_id': 'A4', 'task_id': 'I', 'cost': 10}, {'agent_id': 'A4', 'task_id': 'J', 'cost': 6}, {'agent_id': 'A4', 'task_id': 'K', 'cost': 24}]}","['A3', 'A4', 'A4', 'A4', 'A4', 'A3', 'A4', 'A4', 'A4', 'A4', 'A1']",47,nl,names GAP,GAP,"There’s a quiet scheduling puzzle in the dev office: a set of features needs owners, and each feature should be owned by a single developer. People can carry several tasks, provided the combined estimated effort for those tasks stays inside their personal time budget. We’ve mapped out, for each developer and each feature, how much effort that match would take and what it would cost; the winner among possible schedules is the one with the lowest overall bill, which you get by summing the individual assignment costs. The concrete estimates and capacities are shown below. { ""num_developers"": 5, ""num_features"": 15, ""developer_ids"": [ ""A1"", ""A2"", ""A3"", ""A4"", ""A5"" ], ""feature_ids"": [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 ], ""capacities"": [ { ""developer_id"": ""A1"", ""available_hours"": 973 }, { ""developer_id"": ""A2"", ""available_hours"": 965 }, { ""developer_id"": ""A3"", ""available_hours"": 953 }, { ""developer_id"": ""A4"", ""available_hours"": 978 }, { ""developer_id"": ""A5"", ""available_hours"": 958 } ], ""resource"": [ { ""developer_id"": ""A1"", ""feature_id"": 1, ""estimated_effort_hours"": 49 }, { ""developer_id"": ""A1"", ""feature_id"": 2, ""estimated_effort_hours"": 36 }, { ""developer_id"": ""A1"", ""feature_id"": 3, ""estimated_effort_hours"": 42 }, { ""developer_id"": ""A1"", ""feature_id"": 4, ""estimated_effort_hours"": 43 }, { ""developer_id"": ""A1"", ""feature_id"": 5, ""estimated_effort_hours"": 46 }, { ""developer_id"": ""A1"", ""feature_id"": 6, ""estimated_effort_hours"": 17 }, { ""developer_id"": ""A1"", ""feature_id"": 7, ""estimated_effort_hours"": 25 }, { ""developer_id"": ""A1"", ""feature_id"": 8, ""estimated_effort_hours"": 49 }, { ""developer_id"": ""A1"", ""feature_id"": 9, ""estimated_effort_hours"": 17 }, { ""developer_id"": ""A1"", ""feature_id"": 10, ""estimated_effort_hours"": 47 }, { ""developer_id"": ""A1"", ""feature_id"": 11, ""estimated_effort_hours"": 49 }, { ""developer_id"": ""A1"", ""feature_id"": 12, ""estimated_effort_hours"": 38 }, { ""developer_id"": ""A1"", ""feature_id"": 13, ""estimated_effort_hours"": 28 }, { ""developer_id"": ""A1"", ""feature_id"": 14, ""estimated_effort_hours"": 27 }, { ""developer_id"": ""A1"", ""feature_id"": 15, ""estimated_effort_hours"": 18 }, { ""developer_id"": ""A2"", ""feature_id"": 1, ""estimated_effort_hours"": 49 }, { ""developer_id"": ""A2"", ""feature_id"": 2, ""estimated_effort_hours"": 45 }, { ""developer_id"": ""A2"", ""feature_id"": 3, ""estimated_effort_hours"": 31 }, { ""developer_id"": ""A2"", ""feature_id"": 4, ""estimated_effort_hours"": 11 }, { ""developer_id"": ""A2"", ""feature_id"": 5, ""estimated_effort_hours"": 42 }, { ""developer_id"": ""A2"", ""feature_id"": 6, ""estimated_effort_hours"": 36 }, { ""developer_id"": ""A2"", ""feature_id"": 7, ""estimated_effort_hours"": 24 }, { ""developer_id"": ""A2"", ""feature_id"": 8, ""estimated_effort_hours"": 45 }, { ""developer_id"": ""A2"", ""feature_id"": 9, ""estimated_effort_hours"": 45 }, { ""developer_id"": ""A2"", ""feature_id"": 10, ""estimated_effort_hours"": 10 }, { ""developer_id"": ""A2"", ""feature_id"": 11, ""estimated_effort_hours"": 12 }, { ""developer_id"": ""A2"", ""feature_id"": 12, ""estimated_effort_hours"": 25 }, { ""developer_id"": ""A2"", ""feature_id"": 13, ""estimated_effort_hours"": 34 }, { ""developer_id"": ""A2"", ""feature_id"": 14, ""estimated_effort_hours"": 15 }, { ""developer_id"": ""A2"", ""feature_id"": 15, ""estimated_effort_hours"": 31 }, { ""developer_id"": ""A3"", ""feature_id"": 1, ""estimated_effort_hours"": 29 }, { ""developer_id"": ""A3"", ""feature_id"": 2, ""estimated_effort_hours"": 22 }, { ""developer_id"": ""A3"", ""feature_id"": 3, ""estimated_effort_hours"": 27 }, { ""developer_id"": ""A3"", ""feature_id"": 4, ""estimated_effort_hours"": 32 }, { ""developer_id"": ""A3"", ""feature_id"": 5, ""estimated_effort_hours"": 37 }, { ""developer_id"": ""A3"", ""feature_id"": 6, ""estimated_effort_hours"": 22 }, { ""developer_id"": ""A3"", ""feature_id"": 7, ""estimated_effort_hours"": 23 }, { ""developer_id"": ""A3"", ""feature_id"": 8, ""estimated_effort_hours"": 38 }, { ""developer_id"": ""A3"", ""feature_id"": 9, ""estimated_effort_hours"": 12 }, { ""developer_id"": ""A3"", ""feature_id"": 10, ""estimated_effort_hours"": 17 }, { ""developer_id"": ""A3"", ""feature_id"": 11, ""estimated_effort_hours"": 24 }, { ""developer_id"": ""A3"", ""feature_id"": 12, ""estimated_effort_hours"": 46 }, { ""developer_id"": ""A3"", ""feature_id"": 13, ""estimated_effort_hours"": 44 }, { ""developer_id"": ""A3"", ""feature_id"": 14, ""estimated_effort_hours"": 25 }, { ""developer_id"": ""A3"", ""feature_id"": 15, ""estimated_effort_hours"": 13 }, { ""developer_id"": ""A4"", ""feature_id"": 1, ""estimated_effort_hours"": 31 }, { ""developer_id"": ""A4"", ""feature_id"": 2, ""estimated_effort_hours"": 48 }, { ""developer_id"": ""A4"", ""feature_id"": 3, ""estimated_effort_hours"": 30 }, { ""developer_id"": ""A4"", ""feature_id"": 4, ""estimated_effort_hours"": 25 }, { ""developer_id"": ""A4"", ""feature_id"": 5, ""estimated_effort_hours"": 11 }, { ""developer_id"": ""A4"", ""feature_id"": 6, ""estimated_effort_hours"": 10 }, { ""developer_id"": ""A4"", ""feature_id"": 7, ""estimated_effort_hours"": 11 }, { ""developer_id"": ""A4"", ""feature_id"": 8, ""estimated_effort_hours"": 46 }, { ""developer_id"": ""A4"", ""feature_id"": 9, ""estimated_effort_hours"": 18 }, { ""developer_id"": ""A4"", ""feature_id"": 10, ""estimated_effort_hours"": 45 }, { ""developer_id"": ""A4"", ""feature_id"": 11, ""estimated_effort_hours"": 25 }, { ""developer_id"": ""A4"", ""feature_id"": 12, ""estimated_effort_hours"": 39 }, { ""developer_id"": ""A4"", ""feature_id"": 13, ""estimated_effort_hours"": 47 }, { ""developer_id"": ""A4"", ""feature_id"": 14, ""estimated_effort_hours"": 28 }, { ""developer_id"": ""A4"", ""feature_id"": 15, ""estimated_effort_hours"": 46 }, { ""developer_id"": ""A5"", ""feature_id"": 1, ""estimated_effort_hours"": 42 }, { ""developer_id"": ""A5"", ""feature_id"": 2, ""estimated_effort_hours"": 31 }, { ""developer_id"": ""A5"", ""feature_id"": 3, ""estimated_effort_hours"": 22 }, { ""developer_id"": ""A5"", ""feature_id"": 4, ""estimated_effort_hours"": 36 }, { ""developer_id"": ""A5"", ""feature_id"": 5, ""estimated_effort_hours"": 32 }, { ""developer_id"": ""A5"", ""feature_id"": 6, ""estimated_effort_hours"": 46 }, { ""developer_id"": ""A5"", ""feature_id"": 7, ""estimated_effort_hours"": 36 }, { ""developer_id"": ""A5"", ""feature_id"": 8, ""estimated_effort_hours"": 46 }, { ""developer_id"": ""A5"", ""feature_id"": 9, ""estimated_effort_hours"": 45 }, { ""developer_id"": ""A5"", ""feature_id"": 10, ""estimated_effort_hours"": 39 }, { ""developer_id"": ""A5"", ""feature_id"": 11, ""estimated_effort_hours"": 46 }, { ""developer_id"": ""A5"", ""feature_id"": 12, ""estimated_effort_hours"": 37 }, { ""developer_id"": ""A5"", ""feature_id"": 13, ""estimated_effort_hours"": 18 }, { ""developer_id"": ""A5"", ""feature_id"": 14, ""estimated_effort_hours"": 14 }, { ""developer_id"": ""A5"", ""feature_id"": 15, ""estimated_effort_hours"": 10 } ], ""cost"": [ { ""developer_id"": ""A1"", ""feature_id"": 1, ""implementation_cost"": 25 }, { ""developer_id"": ""A1"", ""feature_id"": 2, ""implementation_cost"": 25 }, { ""developer_id"": ""A1"", ""feature_id"": 3, ""implementation_cost"": 21 }, { ""developer_id"": ""A1"", ""feature_id"": 4, ""implementation_cost"": 15 }, { ""developer_id"": ""A1"", ""feature_id"": 5, ""implementation_cost"": 12 }, { ""developer_id"": ""A1"", ""feature_id"": 6, ""implementation_cost"": 24 }, { ""developer_id"": ""A1"", ""feature_id"": 7, ""implementation_cost"": 7 }, { ""developer_id"": ""A1"", ""feature_id"": 8, ""implementation_cost"": 19 }, { ""developer_id"": ""A1"", ""feature_id"": 9, ""implementation_cost"": 22 }, { ""developer_id"": ""A1"", ""feature_id"": 10, ""implementation_cost"": 18 }, { ""developer_id"": ""A1"", ""feature_id"": 11, ""implementation_cost"": 7 }, { ""developer_id"": ""A1"", ""feature_id"": 12, ""implementation_cost"": 10 }, { ""developer_id"": ""A1"", ""feature_id"": 13, ""implementation_cost"": 17 }, { ""developer_id"": ""A1"", ""feature_id"": 14, ""implementation_cost"": 12 }, { ""developer_id"": ""A1"", ""feature_id"": 15, ""implementation_cost"": 20 }, { ""developer_id"": ""A2"", ""feature_id"": 1, ""implementation_cost"": 18 }, { ""developer_id"": ""A2"", ""feature_id"": 2, ""implementation_cost"": 15 }, { ""developer_id"": ""A2"", ""feature_id"": 3, ""implementation_cost"": 20 }, { ""developer_id"": ""A2"", ""feature_id"": 4, ""implementation_cost"": 8 }, { ""developer_id"": ""A2"", ""feature_id"": 5, ""implementation_cost"": 13 }, { ""developer_id"": ""A2"", ""feature_id"": 6, ""implementation_cost"": 16 }, { ""developer_id"": ""A2"", ""feature_id"": 7, ""implementation_cost"": 15 }, { ""developer_id"": ""A2"", ""feature_id"": 8, ""implementation_cost"": 24 }, { ""developer_id"": ""A2"", ""feature_id"": 9, ""implementation_cost"": 8 }, { ""developer_id"": ""A2"", ""feature_id"": 10, ""implementation_cost"": 9 }, { ""developer_id"": ""A2"", ""feature_id"": 11, ""implementation_cost"": 11 }, { ""developer_id"": ""A2"", ""feature_id"": 12, ""implementation_cost"": 25 }, { ""developer_id"": ""A2"", ""feature_id"": 13, ""implementation_cost"": 21 }, { ""developer_id"": ""A2"", ""feature_id"": 14, ""implementation_cost"": 16 }, { ""developer_id"": ""A2"", ""feature_id"": 15, ""implementation_cost"": 15 }, { ""developer_id"": ""A3"", ""feature_id"": 1, ""implementation_cost"": 15 }, { ""developer_id"": ""A3"", ""feature_id"": 2, ""implementation_cost"": 15 }, { ""developer_id"": ""A3"", ""feature_id"": 3, ""implementation_cost"": 24 }, { ""developer_id"": ""A3"", ""feature_id"": 4, ""implementation_cost"": 22 }, { ""developer_id"": ""A3"", ""feature_id"": 5, ""implementation_cost"": 24 }, { ""developer_id"": ""A3"", ""feature_id"": 6, ""implementation_cost"": 17 }, { ""developer_id"": ""A3"", ""feature_id"": 7, ""implementation_cost"": 24 }, { ""developer_id"": ""A3"", ""feature_id"": 8, ""implementation_cost"": 6 }, { ""developer_id"": ""A3"", ""feature_id"": 9, ""implementation_cost"": 5 }, { ""developer_id"": ""A3"", ""feature_id"": 10, ""implementation_cost"": 25 }, { ""developer_id"": ""A3"", ""feature_id"": 11, ""implementation_cost"": 13 }, { ""developer_id"": ""A3"", ""feature_id"": 12, ""implementation_cost"": 15 }, { ""developer_id"": ""A3"", ""feature_id"": 13, ""implementation_cost"": 16 }, { ""developer_id"": ""A3"", ""feature_id"": 14, ""implementation_cost"": 5 }, { ""developer_id"": ""A3"", ""feature_id"": 15, ""implementation_cost"": 14 }, { ""developer_id"": ""A4"", ""feature_id"": 1, ""implementation_cost"": 16 }, { ""developer_id"": ""A4"", ""feature_id"": 2, ""implementation_cost"": 13 }, { ""developer_id"": ""A4"", ""feature_id"": 3, ""implementation_cost"": 15 }, { ""developer_id"": ""A4"", ""feature_id"": 4, ""implementation_cost"": 20 }, { ""developer_id"": ""A4"", ""feature_id"": 5, ""implementation_cost"": 22 }, { ""developer_id"": ""A4"", ""feature_id"": 6, ""implementation_cost"": 22 }, { ""developer_id"": ""A4"", ""feature_id"": 7, ""implementation_cost"": 15 }, { ""developer_id"": ""A4"", ""feature_id"": 8, ""implementation_cost"": 6 }, { ""developer_id"": ""A4"", ""feature_id"": 9, ""implementation_cost"": 19 }, { ""developer_id"": ""A4"", ""feature_id"": 10, ""implementation_cost"": 13 }, { ""developer_id"": ""A4"", ""feature_id"": 11, ""implementation_cost"": 9 }, { ""developer_id"": ""A4"", ""feature_id"": 12, ""implementation_cost"": 5 }, { ""developer_id"": ""A4"", ""feature_id"": 13, ""implementation_cost"": 12 }, { ""developer_id"": ""A4"", ""feature_id"": 14, ""implementation_cost"": 5 }, { ""developer_id"": ""A4"", ""feature_id"": 15, ""implementation_cost"": 6 }, { ""developer_id"": ""A5"", ""feature_id"": 1, ""implementation_cost"": 20 }, { ""developer_id"": ""A5"", ""feature_id"": 2, ""implementation_cost"": 10 }, { ""developer_id"": ""A5"", ""feature_id"": 3, ""implementation_cost"": 8 }, { ""developer_id"": ""A5"", ""feature_id"": 4, ""implementation_cost"": 11 }, { ""developer_id"": ""A5"", ""feature_id"": 5, ""implementation_cost"": 22 }, { ""developer_id"": ""A5"", ""feature_id"": 6, ""implementation_cost"": 24 }, { ""developer_id"": ""A5"", ""feature_id"": 7, ""implementation_cost"": 25 }, { ""developer_id"": ""A5"", ""feature_id"": 8, ""implementation_cost"": 18 }, { ""developer_id"": ""A5"", ""feature_id"": 9, ""implementation_cost"": 8 }, { ""developer_id"": ""A5"", ""feature_id"": 10, ""implementation_cost"": 23 }, { ""developer_id"": ""A5"", ""feature_id"": 11, ""implementation_cost"": 5 }, { ""developer_id"": ""A5"", ""feature_id"": 12, ""implementation_cost"": 12 }, { ""developer_id"": ""A5"", ""feature_id"": 13, ""implementation_cost"": 16 }, { ""developer_id"": ""A5"", ""feature_id"": 14, ""implementation_cost"": 15 }, { ""developer_id"": ""A5"", ""feature_id"": 15, ""implementation_cost"": 23 } ] } Oh, and one more thing — when you send the final assignment back, a simple JSON sketch like the one below is all I need: it just lists, in order, who takes each feature. { ""solution"": [ , , ..., ] } Think of that array as a simple form: each slot corresponds to a feature (in the same order as the instance), and the placeholder in each slot is the identifier for the developer who’ll own it. This is just the shape I’m expecting, not the actual assignments. Please make sure you use the exact identifiers from the instance input — don’t rename them or invent new labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[49, 36, 42, 43, 46, 17, 25, 49, 17, 47, 49, 38, 28, 27, 18], [49, 45, 31, 11, 42, 36, 24, 45, 45, 10, 12, 25, 34, 15, 31], [29, 22, 27, 32, 37, 22, 23, 38, 12, 17, 24, 46, 44, 25, 13], [31, 48, 30, 25, 11, 10, 11, 46, 18, 45, 25, 39, 47, 28, 46], [42, 31, 22, 36, 32, 46, 36, 46, 45, 39, 46, 37, 18, 14, 10]], 'assignment_costs': [[25, 25, 21, 15, 12, 24, 7, 19, 22, 18, 7, 10, 17, 12, 20], [18, 15, 20, 8, 13, 16, 15, 24, 8, 9, 11, 25, 21, 16, 15], [15, 15, 24, 22, 24, 17, 24, 6, 5, 25, 13, 15, 16, 5, 14], [16, 13, 15, 20, 22, 22, 15, 6, 19, 13, 9, 5, 12, 5, 6], [20, 10, 8, 11, 22, 24, 25, 18, 8, 23, 5, 12, 16, 15, 23]], 'capacities': [973, 965, 953, 978, 958], 'objective': 129.0}","[2, 4, 4, 1, 0, 1, 0, 3, 2, 1, 4, 3, 3, 2, 3]",129.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 15, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 973}, {'agent_id': 'A2', 'capacity': 965}, {'agent_id': 'A3', 'capacity': 953}, {'agent_id': 'A4', 'capacity': 978}, {'agent_id': 'A5', 'capacity': 958}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 1, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 36}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 42}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 43}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 46}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 25}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 14, 'consumption': 27}, {'agent_id': 'A1', 'task_id': 15, 'consumption': 18}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 49}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 31}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 11}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 42}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 10}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 25}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 14, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 15, 'consumption': 31}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 29}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 27}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 37}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 22}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 23}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 38}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 12}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 44}, {'agent_id': 'A3', 'task_id': 14, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 15, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 48}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 10}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 46}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 14, 'consumption': 28}, {'agent_id': 'A4', 'task_id': 15, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 42}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 31}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 22}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 32}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 36}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 45}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 39}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 46}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 37}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 18}, {'agent_id': 'A5', 'task_id': 14, 'consumption': 14}, {'agent_id': 'A5', 'task_id': 15, 'consumption': 10}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 1, 'cost': 25}, {'agent_id': 'A1', 'task_id': 2, 'cost': 25}, {'agent_id': 'A1', 'task_id': 3, 'cost': 21}, {'agent_id': 'A1', 'task_id': 4, 'cost': 15}, {'agent_id': 'A1', 'task_id': 5, 'cost': 12}, {'agent_id': 'A1', 'task_id': 6, 'cost': 24}, {'agent_id': 'A1', 'task_id': 7, 'cost': 7}, {'agent_id': 'A1', 'task_id': 8, 'cost': 19}, {'agent_id': 'A1', 'task_id': 9, 'cost': 22}, {'agent_id': 'A1', 'task_id': 10, 'cost': 18}, {'agent_id': 'A1', 'task_id': 11, 'cost': 7}, {'agent_id': 'A1', 'task_id': 12, 'cost': 10}, {'agent_id': 'A1', 'task_id': 13, 'cost': 17}, {'agent_id': 'A1', 'task_id': 14, 'cost': 12}, {'agent_id': 'A1', 'task_id': 15, 'cost': 20}, {'agent_id': 'A2', 'task_id': 1, 'cost': 18}, {'agent_id': 'A2', 'task_id': 2, 'cost': 15}, {'agent_id': 'A2', 'task_id': 3, 'cost': 20}, {'agent_id': 'A2', 'task_id': 4, 'cost': 8}, {'agent_id': 'A2', 'task_id': 5, 'cost': 13}, {'agent_id': 'A2', 'task_id': 6, 'cost': 16}, {'agent_id': 'A2', 'task_id': 7, 'cost': 15}, {'agent_id': 'A2', 'task_id': 8, 'cost': 24}, {'agent_id': 'A2', 'task_id': 9, 'cost': 8}, {'agent_id': 'A2', 'task_id': 10, 'cost': 9}, {'agent_id': 'A2', 'task_id': 11, 'cost': 11}, {'agent_id': 'A2', 'task_id': 12, 'cost': 25}, {'agent_id': 'A2', 'task_id': 13, 'cost': 21}, {'agent_id': 'A2', 'task_id': 14, 'cost': 16}, {'agent_id': 'A2', 'task_id': 15, 'cost': 15}, {'agent_id': 'A3', 'task_id': 1, 'cost': 15}, {'agent_id': 'A3', 'task_id': 2, 'cost': 15}, {'agent_id': 'A3', 'task_id': 3, 'cost': 24}, {'agent_id': 'A3', 'task_id': 4, 'cost': 22}, {'agent_id': 'A3', 'task_id': 5, 'cost': 24}, {'agent_id': 'A3', 'task_id': 6, 'cost': 17}, {'agent_id': 'A3', 'task_id': 7, 'cost': 24}, {'agent_id': 'A3', 'task_id': 8, 'cost': 6}, {'agent_id': 'A3', 'task_id': 9, 'cost': 5}, {'agent_id': 'A3', 'task_id': 10, 'cost': 25}, {'agent_id': 'A3', 'task_id': 11, 'cost': 13}, {'agent_id': 'A3', 'task_id': 12, 'cost': 15}, {'agent_id': 'A3', 'task_id': 13, 'cost': 16}, {'agent_id': 'A3', 'task_id': 14, 'cost': 5}, {'agent_id': 'A3', 'task_id': 15, 'cost': 14}, {'agent_id': 'A4', 'task_id': 1, 'cost': 16}, {'agent_id': 'A4', 'task_id': 2, 'cost': 13}, {'agent_id': 'A4', 'task_id': 3, 'cost': 15}, {'agent_id': 'A4', 'task_id': 4, 'cost': 20}, {'agent_id': 'A4', 'task_id': 5, 'cost': 22}, {'agent_id': 'A4', 'task_id': 6, 'cost': 22}, {'agent_id': 'A4', 'task_id': 7, 'cost': 15}, {'agent_id': 'A4', 'task_id': 8, 'cost': 6}, {'agent_id': 'A4', 'task_id': 9, 'cost': 19}, {'agent_id': 'A4', 'task_id': 10, 'cost': 13}, {'agent_id': 'A4', 'task_id': 11, 'cost': 9}, {'agent_id': 'A4', 'task_id': 12, 'cost': 5}, {'agent_id': 'A4', 'task_id': 13, 'cost': 12}, {'agent_id': 'A4', 'task_id': 14, 'cost': 5}, {'agent_id': 'A4', 'task_id': 15, 'cost': 6}, {'agent_id': 'A5', 'task_id': 1, 'cost': 20}, {'agent_id': 'A5', 'task_id': 2, 'cost': 10}, {'agent_id': 'A5', 'task_id': 3, 'cost': 8}, {'agent_id': 'A5', 'task_id': 4, 'cost': 11}, {'agent_id': 'A5', 'task_id': 5, 'cost': 22}, {'agent_id': 'A5', 'task_id': 6, 'cost': 24}, {'agent_id': 'A5', 'task_id': 7, 'cost': 25}, {'agent_id': 'A5', 'task_id': 8, 'cost': 18}, {'agent_id': 'A5', 'task_id': 9, 'cost': 8}, {'agent_id': 'A5', 'task_id': 10, 'cost': 23}, {'agent_id': 'A5', 'task_id': 11, 'cost': 5}, {'agent_id': 'A5', 'task_id': 12, 'cost': 12}, {'agent_id': 'A5', 'task_id': 13, 'cost': 16}, {'agent_id': 'A5', 'task_id': 14, 'cost': 15}, {'agent_id': 'A5', 'task_id': 15, 'cost': 23}]}","['A3', 'A5', 'A5', 'A2', 'A1', 'A2', 'A1', 'A4', 'A3', 'A2', 'A5', 'A4', 'A4', 'A3', 'A4']",48,json,1 GAP,GAP,"Many people don’t think about how manuscripts get distributed: the reality is every article needs one editor, editors can handle multiple articles but their pages add up, and for every potential match we already know both the page cost and the money it would take. The objective is straightforward — spend the least possible in total by summing the fees of the chosen editor–manuscript pairs — while ensuring no editor’s pages go over their limit and every manuscript is assigned exactly once. The specific details follow below. There are 4 editors (A1, A2, A3, A4) and 13 manuscripts (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12). | editor_id | page_capacity | |---|---| | A1 | 199 | | A2 | 199 | | A3 | 199 | | A4 | 199 | | editor_id | manuscript_id | pages | |---|---|---| | A1 | 0 | 17 | | A1 | 1 | 23 | | A1 | 2 | 48 | | A1 | 3 | 30 | | A1 | 4 | 34 | | A1 | 5 | 30 | | A1 | 6 | 49 | | A1 | 7 | 21 | | A1 | 8 | 22 | | A1 | 9 | 38 | | A1 | 10 | 17 | | A1 | 11 | 28 | | A1 | 12 | 36 | | A2 | 0 | 23 | | A2 | 1 | 30 | | A2 | 2 | 32 | | A2 | 3 | 37 | | A2 | 4 | 36 | | A2 | 5 | 19 | | A2 | 6 | 29 | | A2 | 7 | 20 | | A2 | 8 | 40 | | A2 | 9 | 46 | | A2 | 10 | 22 | | A2 | 11 | 13 | | A2 | 12 | 10 | | A3 | 0 | 17 | | A3 | 1 | 39 | | A3 | 2 | 49 | | A3 | 3 | 25 | | A3 | 4 | 45 | | A3 | 5 | 33 | | A3 | 6 | 28 | | A3 | 7 | 21 | | A3 | 8 | 21 | | A3 | 9 | 26 | | A3 | 10 | 28 | | A3 | 11 | 19 | | A3 | 12 | 31 | | A4 | 0 | 25 | | A4 | 1 | 33 | | A4 | 2 | 39 | | A4 | 3 | 30 | | A4 | 4 | 43 | | A4 | 5 | 16 | | A4 | 6 | 22 | | A4 | 7 | 45 | | A4 | 8 | 49 | | A4 | 9 | 17 | | A4 | 10 | 42 | | A4 | 11 | 15 | | A4 | 12 | 24 | | editor_id | manuscript_id | fee | |---|---|---| | A1 | 0 | 14 | | A1 | 1 | 6 | | A1 | 2 | 22 | | A1 | 3 | 8 | | A1 | 4 | 15 | | A1 | 5 | 20 | | A1 | 6 | 18 | | A1 | 7 | 21 | | A1 | 8 | 17 | | A1 | 9 | 19 | | A1 | 10 | 7 | | A1 | 11 | 10 | | A1 | 12 | 19 | | A2 | 0 | 20 | | A2 | 1 | 23 | | A2 | 2 | 13 | | A2 | 3 | 11 | | A2 | 4 | 11 | | A2 | 5 | 8 | | A2 | 6 | 9 | | A2 | 7 | 24 | | A2 | 8 | 10 | | A2 | 9 | 14 | | A2 | 10 | 7 | | A2 | 11 | 16 | | A2 | 12 | 24 | | A3 | 0 | 9 | | A3 | 1 | 10 | | A3 | 2 | 15 | | A3 | 3 | 21 | | A3 | 4 | 25 | | A3 | 5 | 14 | | A3 | 6 | 16 | | A3 | 7 | 13 | | A3 | 8 | 25 | | A3 | 9 | 24 | | A3 | 10 | 12 | | A3 | 11 | 17 | | A3 | 12 | 12 | | A4 | 0 | 10 | | A4 | 1 | 14 | | A4 | 2 | 6 | | A4 | 3 | 5 | | A4 | 4 | 17 | | A4 | 5 | 25 | | A4 | 6 | 8 | | A4 | 7 | 21 | | A4 | 8 | 20 | | A4 | 9 | 17 | | A4 | 10 | 5 | | A4 | 11 | 25 | | A4 | 12 | 5 | These entries enumerate each editor's page limits and every editor–manuscript pages-and-fees option. Also, when you send back the assignments, just use this simple JSON layout so it's easy to parse and check: { ""solution"": [ , , ..., ] } Think of that ""solution"" list as a one-line form: the first entry names the editor for the first manuscript, the second entry the editor for the second manuscript, and so on. It's just a sketch of the shape I need — not the final answer itself. Please make sure to use the exact identifiers from the instance input when you fill it in. No renaming and no invented labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[17, 23, 48, 30, 34, 30, 49, 21, 22, 38, 17, 28, 36], [23, 30, 32, 37, 36, 19, 29, 20, 40, 46, 22, 13, 10], [17, 39, 49, 25, 45, 33, 28, 21, 21, 26, 28, 19, 31], [25, 33, 39, 30, 43, 16, 22, 45, 49, 17, 42, 15, 24]], 'assignment_costs': [[14, 6, 22, 8, 15, 20, 18, 21, 17, 19, 7, 10, 19], [20, 23, 13, 11, 11, 8, 9, 24, 10, 14, 7, 16, 24], [9, 10, 15, 21, 25, 14, 16, 13, 25, 24, 12, 17, 12], [10, 14, 6, 5, 17, 25, 8, 21, 20, 17, 5, 25, 5]], 'capacities': [199, 199, 199, 199], 'objective': 110.0}","[2, 0, 3, 3, 1, 1, 3, 2, 1, 1, 3, 0, 3]",110.0,"{'problem_type': 'GAP', 'num_agents': 4, 'num_tasks': 13, 'agents': ['A1', 'A2', 'A3', 'A4'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 199}, {'agent_id': 'A2', 'capacity': 199}, {'agent_id': 'A3', 'capacity': 199}, {'agent_id': 'A4', 'capacity': 199}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 23}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 48}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 30}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 34}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 30}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 49}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 21}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 22}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 38}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 17}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 30}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 37}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 36}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 29}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 20}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 40}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 46}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 22}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 10}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 17}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 39}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 49}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 25}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 33}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 21}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 26}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 28}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 19}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 31}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 33}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 39}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 16}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 22}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 45}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 49}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 17}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 42}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 15}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 24}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 14}, {'agent_id': 'A1', 'task_id': 1, 'cost': 6}, {'agent_id': 'A1', 'task_id': 2, 'cost': 22}, {'agent_id': 'A1', 'task_id': 3, 'cost': 8}, {'agent_id': 'A1', 'task_id': 4, 'cost': 15}, {'agent_id': 'A1', 'task_id': 5, 'cost': 20}, {'agent_id': 'A1', 'task_id': 6, 'cost': 18}, {'agent_id': 'A1', 'task_id': 7, 'cost': 21}, {'agent_id': 'A1', 'task_id': 8, 'cost': 17}, {'agent_id': 'A1', 'task_id': 9, 'cost': 19}, {'agent_id': 'A1', 'task_id': 10, 'cost': 7}, {'agent_id': 'A1', 'task_id': 11, 'cost': 10}, {'agent_id': 'A1', 'task_id': 12, 'cost': 19}, {'agent_id': 'A2', 'task_id': 0, 'cost': 20}, {'agent_id': 'A2', 'task_id': 1, 'cost': 23}, {'agent_id': 'A2', 'task_id': 2, 'cost': 13}, {'agent_id': 'A2', 'task_id': 3, 'cost': 11}, {'agent_id': 'A2', 'task_id': 4, 'cost': 11}, {'agent_id': 'A2', 'task_id': 5, 'cost': 8}, {'agent_id': 'A2', 'task_id': 6, 'cost': 9}, {'agent_id': 'A2', 'task_id': 7, 'cost': 24}, {'agent_id': 'A2', 'task_id': 8, 'cost': 10}, {'agent_id': 'A2', 'task_id': 9, 'cost': 14}, {'agent_id': 'A2', 'task_id': 10, 'cost': 7}, {'agent_id': 'A2', 'task_id': 11, 'cost': 16}, {'agent_id': 'A2', 'task_id': 12, 'cost': 24}, {'agent_id': 'A3', 'task_id': 0, 'cost': 9}, {'agent_id': 'A3', 'task_id': 1, 'cost': 10}, {'agent_id': 'A3', 'task_id': 2, 'cost': 15}, {'agent_id': 'A3', 'task_id': 3, 'cost': 21}, {'agent_id': 'A3', 'task_id': 4, 'cost': 25}, {'agent_id': 'A3', 'task_id': 5, 'cost': 14}, {'agent_id': 'A3', 'task_id': 6, 'cost': 16}, {'agent_id': 'A3', 'task_id': 7, 'cost': 13}, {'agent_id': 'A3', 'task_id': 8, 'cost': 25}, {'agent_id': 'A3', 'task_id': 9, 'cost': 24}, {'agent_id': 'A3', 'task_id': 10, 'cost': 12}, {'agent_id': 'A3', 'task_id': 11, 'cost': 17}, {'agent_id': 'A3', 'task_id': 12, 'cost': 12}, {'agent_id': 'A4', 'task_id': 0, 'cost': 10}, {'agent_id': 'A4', 'task_id': 1, 'cost': 14}, {'agent_id': 'A4', 'task_id': 2, 'cost': 6}, {'agent_id': 'A4', 'task_id': 3, 'cost': 5}, {'agent_id': 'A4', 'task_id': 4, 'cost': 17}, {'agent_id': 'A4', 'task_id': 5, 'cost': 25}, {'agent_id': 'A4', 'task_id': 6, 'cost': 8}, {'agent_id': 'A4', 'task_id': 7, 'cost': 21}, {'agent_id': 'A4', 'task_id': 8, 'cost': 20}, {'agent_id': 'A4', 'task_id': 9, 'cost': 17}, {'agent_id': 'A4', 'task_id': 10, 'cost': 5}, {'agent_id': 'A4', 'task_id': 11, 'cost': 25}, {'agent_id': 'A4', 'task_id': 12, 'cost': 5}]}","['A3', 'A1', 'A4', 'A4', 'A2', 'A2', 'A4', 'A3', 'A2', 'A2', 'A4', 'A1', 'A4']",49,markdown_table,0 GAP,GAP,"We’re juggling a pile of film showings and a handful of rooms: each showing needs one room slot, never more than one, and every showing must appear somewhere on the schedule. Rooms can hold multiple showings as long as the combined running time fits inside that room’s available hours. The aim is to arrange all the screenings so the total spent on room rentals is as low as it can be — compute that by summing the rental cost for each screening-room pairing. The detailed times and prices follow below. { ""num_rooms"": 5, ""num_screenings"": 14, ""rooms"": [ ""A1"", ""A2"", ""A3"", ""A4"", ""A5"" ], ""screenings"": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 ], ""capacities"": [ { ""room_id"": ""A1"", ""available_hours"": 493 }, { ""room_id"": ""A2"", ""available_hours"": 493 }, { ""room_id"": ""A3"", ""available_hours"": 493 }, { ""room_id"": ""A4"", ""available_hours"": 493 }, { ""room_id"": ""A5"", ""available_hours"": 493 } ], ""resource"": [ { ""room_id"": ""A1"", ""screening_id"": 0, ""screening_duration"": 33 }, { ""room_id"": ""A1"", ""screening_id"": 1, ""screening_duration"": 16 }, { ""room_id"": ""A1"", ""screening_id"": 2, ""screening_duration"": 34 }, { ""room_id"": ""A1"", ""screening_id"": 3, ""screening_duration"": 29 }, { ""room_id"": ""A1"", ""screening_id"": 4, ""screening_duration"": 15 }, { ""room_id"": ""A1"", ""screening_id"": 5, ""screening_duration"": 40 }, { ""room_id"": ""A1"", ""screening_id"": 6, ""screening_duration"": 35 }, { ""room_id"": ""A1"", ""screening_id"": 7, ""screening_duration"": 29 }, { ""room_id"": ""A1"", ""screening_id"": 8, ""screening_duration"": 39 }, { ""room_id"": ""A1"", ""screening_id"": 9, ""screening_duration"": 31 }, { ""room_id"": ""A1"", ""screening_id"": 10, ""screening_duration"": 28 }, { ""room_id"": ""A1"", ""screening_id"": 11, ""screening_duration"": 47 }, { ""room_id"": ""A1"", ""screening_id"": 12, ""screening_duration"": 15 }, { ""room_id"": ""A1"", ""screening_id"": 13, ""screening_duration"": 47 }, { ""room_id"": ""A2"", ""screening_id"": 0, ""screening_duration"": 13 }, { ""room_id"": ""A2"", ""screening_id"": 1, ""screening_duration"": 12 }, { ""room_id"": ""A2"", ""screening_id"": 2, ""screening_duration"": 34 }, { ""room_id"": ""A2"", ""screening_id"": 3, ""screening_duration"": 32 }, { ""room_id"": ""A2"", ""screening_id"": 4, ""screening_duration"": 15 }, { ""room_id"": ""A2"", ""screening_id"": 5, ""screening_duration"": 30 }, { ""room_id"": ""A2"", ""screening_id"": 6, ""screening_duration"": 15 }, { ""room_id"": ""A2"", ""screening_id"": 7, ""screening_duration"": 17 }, { ""room_id"": ""A2"", ""screening_id"": 8, ""screening_duration"": 19 }, { ""room_id"": ""A2"", ""screening_id"": 9, ""screening_duration"": 45 }, { ""room_id"": ""A2"", ""screening_id"": 10, ""screening_duration"": 23 }, { ""room_id"": ""A2"", ""screening_id"": 11, ""screening_duration"": 37 }, { ""room_id"": ""A2"", ""screening_id"": 12, ""screening_duration"": 24 }, { ""room_id"": ""A2"", ""screening_id"": 13, ""screening_duration"": 26 }, { ""room_id"": ""A3"", ""screening_id"": 0, ""screening_duration"": 40 }, { ""room_id"": ""A3"", ""screening_id"": 1, ""screening_duration"": 24 }, { ""room_id"": ""A3"", ""screening_id"": 2, ""screening_duration"": 43 }, { ""room_id"": ""A3"", ""screening_id"": 3, ""screening_duration"": 30 }, { ""room_id"": ""A3"", ""screening_id"": 4, ""screening_duration"": 45 }, { ""room_id"": ""A3"", ""screening_id"": 5, ""screening_duration"": 46 }, { ""room_id"": ""A3"", ""screening_id"": 6, ""screening_duration"": 36 }, { ""room_id"": ""A3"", ""screening_id"": 7, ""screening_duration"": 11 }, { ""room_id"": ""A3"", ""screening_id"": 8, ""screening_duration"": 13 }, { ""room_id"": ""A3"", ""screening_id"": 9, ""screening_duration"": 26 }, { ""room_id"": ""A3"", ""screening_id"": 10, ""screening_duration"": 35 }, { ""room_id"": ""A3"", ""screening_id"": 11, ""screening_duration"": 16 }, { ""room_id"": ""A3"", ""screening_id"": 12, ""screening_duration"": 32 }, { ""room_id"": ""A3"", ""screening_id"": 13, ""screening_duration"": 44 }, { ""room_id"": ""A4"", ""screening_id"": 0, ""screening_duration"": 43 }, { ""room_id"": ""A4"", ""screening_id"": 1, ""screening_duration"": 13 }, { ""room_id"": ""A4"", ""screening_id"": 2, ""screening_duration"": 25 }, { ""room_id"": ""A4"", ""screening_id"": 3, ""screening_duration"": 35 }, { ""room_id"": ""A4"", ""screening_id"": 4, ""screening_duration"": 44 }, { ""room_id"": ""A4"", ""screening_id"": 5, ""screening_duration"": 12 }, { ""room_id"": ""A4"", ""screening_id"": 6, ""screening_duration"": 18 }, { ""room_id"": ""A4"", ""screening_id"": 7, ""screening_duration"": 47 }, { ""room_id"": ""A4"", ""screening_id"": 8, ""screening_duration"": 40 }, { ""room_id"": ""A4"", ""screening_id"": 9, ""screening_duration"": 38 }, { ""room_id"": ""A4"", ""screening_id"": 10, ""screening_duration"": 30 }, { ""room_id"": ""A4"", ""screening_id"": 11, ""screening_duration"": 13 }, { ""room_id"": ""A4"", ""screening_id"": 12, ""screening_duration"": 43 }, { ""room_id"": ""A4"", ""screening_id"": 13, ""screening_duration"": 49 }, { ""room_id"": ""A5"", ""screening_id"": 0, ""screening_duration"": 44 }, { ""room_id"": ""A5"", ""screening_id"": 1, ""screening_duration"": 18 }, { ""room_id"": ""A5"", ""screening_id"": 2, ""screening_duration"": 28 }, { ""room_id"": ""A5"", ""screening_id"": 3, ""screening_duration"": 12 }, { ""room_id"": ""A5"", ""screening_id"": 4, ""screening_duration"": 28 }, { ""room_id"": ""A5"", ""screening_id"": 5, ""screening_duration"": 25 }, { ""room_id"": ""A5"", ""screening_id"": 6, ""screening_duration"": 47 }, { ""room_id"": ""A5"", ""screening_id"": 7, ""screening_duration"": 13 }, { ""room_id"": ""A5"", ""screening_id"": 8, ""screening_duration"": 35 }, { ""room_id"": ""A5"", ""screening_id"": 9, ""screening_duration"": 27 }, { ""room_id"": ""A5"", ""screening_id"": 10, ""screening_duration"": 20 }, { ""room_id"": ""A5"", ""screening_id"": 11, ""screening_duration"": 32 }, { ""room_id"": ""A5"", ""screening_id"": 12, ""screening_duration"": 50 }, { ""room_id"": ""A5"", ""screening_id"": 13, ""screening_duration"": 31 } ], ""cost"": [ { ""room_id"": ""A1"", ""screening_id"": 0, ""rental_cost"": 25 }, { ""room_id"": ""A1"", ""screening_id"": 1, ""rental_cost"": 16 }, { ""room_id"": ""A1"", ""screening_id"": 2, ""rental_cost"": 12 }, { ""room_id"": ""A1"", ""screening_id"": 3, ""rental_cost"": 6 }, { ""room_id"": ""A1"", ""screening_id"": 4, ""rental_cost"": 12 }, { ""room_id"": ""A1"", ""screening_id"": 5, ""rental_cost"": 17 }, { ""room_id"": ""A1"", ""screening_id"": 6, ""rental_cost"": 21 }, { ""room_id"": ""A1"", ""screening_id"": 7, ""rental_cost"": 22 }, { ""room_id"": ""A1"", ""screening_id"": 8, ""rental_cost"": 21 }, { ""room_id"": ""A1"", ""screening_id"": 9, ""rental_cost"": 16 }, { ""room_id"": ""A1"", ""screening_id"": 10, ""rental_cost"": 19 }, { ""room_id"": ""A1"", ""screening_id"": 11, ""rental_cost"": 25 }, { ""room_id"": ""A1"", ""screening_id"": 12, ""rental_cost"": 17 }, { ""room_id"": ""A1"", ""screening_id"": 13, ""rental_cost"": 10 }, { ""room_id"": ""A2"", ""screening_id"": 0, ""rental_cost"": 15 }, { ""room_id"": ""A2"", ""screening_id"": 1, ""rental_cost"": 17 }, { ""room_id"": ""A2"", ""screening_id"": 2, ""rental_cost"": 11 }, { ""room_id"": ""A2"", ""screening_id"": 3, ""rental_cost"": 24 }, { ""room_id"": ""A2"", ""screening_id"": 4, ""rental_cost"": 15 }, { ""room_id"": ""A2"", ""screening_id"": 5, ""rental_cost"": 19 }, { ""room_id"": ""A2"", ""screening_id"": 6, ""rental_cost"": 16 }, { ""room_id"": ""A2"", ""screening_id"": 7, ""rental_cost"": 16 }, { ""room_id"": ""A2"", ""screening_id"": 8, ""rental_cost"": 10 }, { ""room_id"": ""A2"", ""screening_id"": 9, ""rental_cost"": 12 }, { ""room_id"": ""A2"", ""screening_id"": 10, ""rental_cost"": 12 }, { ""room_id"": ""A2"", ""screening_id"": 11, ""rental_cost"": 15 }, { ""room_id"": ""A2"", ""screening_id"": 12, ""rental_cost"": 14 }, { ""room_id"": ""A2"", ""screening_id"": 13, ""rental_cost"": 19 }, { ""room_id"": ""A3"", ""screening_id"": 0, ""rental_cost"": 5 }, { ""room_id"": ""A3"", ""screening_id"": 1, ""rental_cost"": 20 }, { ""room_id"": ""A3"", ""screening_id"": 2, ""rental_cost"": 24 }, { ""room_id"": ""A3"", ""screening_id"": 3, ""rental_cost"": 18 }, { ""room_id"": ""A3"", ""screening_id"": 4, ""rental_cost"": 15 }, { ""room_id"": ""A3"", ""screening_id"": 5, ""rental_cost"": 14 }, { ""room_id"": ""A3"", ""screening_id"": 6, ""rental_cost"": 8 }, { ""room_id"": ""A3"", ""screening_id"": 7, ""rental_cost"": 9 }, { ""room_id"": ""A3"", ""screening_id"": 8, ""rental_cost"": 25 }, { ""room_id"": ""A3"", ""screening_id"": 9, ""rental_cost"": 22 }, { ""room_id"": ""A3"", ""screening_id"": 10, ""rental_cost"": 16 }, { ""room_id"": ""A3"", ""screening_id"": 11, ""rental_cost"": 11 }, { ""room_id"": ""A3"", ""screening_id"": 12, ""rental_cost"": 7 }, { ""room_id"": ""A3"", ""screening_id"": 13, ""rental_cost"": 22 }, { ""room_id"": ""A4"", ""screening_id"": 0, ""rental_cost"": 16 }, { ""room_id"": ""A4"", ""screening_id"": 1, ""rental_cost"": 8 }, { ""room_id"": ""A4"", ""screening_id"": 2, ""rental_cost"": 23 }, { ""room_id"": ""A4"", ""screening_id"": 3, ""rental_cost"": 10 }, { ""room_id"": ""A4"", ""screening_id"": 4, ""rental_cost"": 15 }, { ""room_id"": ""A4"", ""screening_id"": 5, ""rental_cost"": 14 }, { ""room_id"": ""A4"", ""screening_id"": 6, ""rental_cost"": 7 }, { ""room_id"": ""A4"", ""screening_id"": 7, ""rental_cost"": 15 }, { ""room_id"": ""A4"", ""screening_id"": 8, ""rental_cost"": 25 }, { ""room_id"": ""A4"", ""screening_id"": 9, ""rental_cost"": 21 }, { ""room_id"": ""A4"", ""screening_id"": 10, ""rental_cost"": 17 }, { ""room_id"": ""A4"", ""screening_id"": 11, ""rental_cost"": 11 }, { ""room_id"": ""A4"", ""screening_id"": 12, ""rental_cost"": 12 }, { ""room_id"": ""A4"", ""screening_id"": 13, ""rental_cost"": 16 }, { ""room_id"": ""A5"", ""screening_id"": 0, ""rental_cost"": 24 }, { ""room_id"": ""A5"", ""screening_id"": 1, ""rental_cost"": 21 }, { ""room_id"": ""A5"", ""screening_id"": 2, ""rental_cost"": 15 }, { ""room_id"": ""A5"", ""screening_id"": 3, ""rental_cost"": 5 }, { ""room_id"": ""A5"", ""screening_id"": 4, ""rental_cost"": 11 }, { ""room_id"": ""A5"", ""screening_id"": 5, ""rental_cost"": 18 }, { ""room_id"": ""A5"", ""screening_id"": 6, ""rental_cost"": 17 }, { ""room_id"": ""A5"", ""screening_id"": 7, ""rental_cost"": 22 }, { ""room_id"": ""A5"", ""screening_id"": 8, ""rental_cost"": 11 }, { ""room_id"": ""A5"", ""screening_id"": 9, ""rental_cost"": 14 }, { ""room_id"": ""A5"", ""screening_id"": 10, ""rental_cost"": 22 }, { ""room_id"": ""A5"", ""screening_id"": 11, ""rental_cost"": 13 }, { ""room_id"": ""A5"", ""screening_id"": 12, ""rental_cost"": 21 }, { ""room_id"": ""A5"", ""screening_id"": 13, ""rental_cost"": 14 } ] } Also, one quick thing about the format: when you send the assignment back, keep it in a tiny JSON sketch so it's easy to read and validate. Something along these lines is perfect. { ""solution"": [ , , ..., ] } This just shows that ""solution"" is a list where each entry names the room for a showing, in the same order as the showings were listed above. Think of it like filling out a simple form: position 1 is the room for the first showing, position 2 is the room for the second showing, and so on. It's just a shape sketch — not the real assignment. Please be sure to use the exact identifiers from the instance input when you fill this in — don't rename them or invent new labels. - for example: ""Valid identifiers look like plain numbers such as “1” or “23”, single capital letters like “A” or “B”, or a capital letter followed by digits like “A1” or “X7”.""","{'resource_consumption': [[33, 16, 34, 29, 15, 40, 35, 29, 39, 31, 28, 47, 15, 47], [13, 12, 34, 32, 15, 30, 15, 17, 19, 45, 23, 37, 24, 26], [40, 24, 43, 30, 45, 46, 36, 11, 13, 26, 35, 16, 32, 44], [43, 13, 25, 35, 44, 12, 18, 47, 40, 38, 30, 13, 43, 49], [44, 18, 28, 12, 28, 25, 47, 13, 35, 27, 20, 32, 50, 31]], 'assignment_costs': [[25, 16, 12, 6, 12, 17, 21, 22, 21, 16, 19, 25, 17, 10], [15, 17, 11, 24, 15, 19, 16, 16, 10, 12, 12, 15, 14, 19], [5, 20, 24, 18, 15, 14, 8, 9, 25, 22, 16, 11, 7, 22], [16, 8, 23, 10, 15, 14, 7, 15, 25, 21, 17, 11, 12, 16], [24, 21, 15, 5, 11, 18, 17, 22, 11, 14, 22, 13, 21, 14]], 'capacities': [493, 493, 493, 493, 493], 'objective': 132.0}","[2, 3, 1, 4, 4, 3, 3, 2, 1, 1, 1, 2, 2, 0]",132.0,"{'problem_type': 'GAP', 'num_agents': 5, 'num_tasks': 14, 'agents': ['A1', 'A2', 'A3', 'A4', 'A5'], 'tasks': [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], 'capacity_pairs': [{'agent_id': 'A1', 'capacity': 493}, {'agent_id': 'A2', 'capacity': 493}, {'agent_id': 'A3', 'capacity': 493}, {'agent_id': 'A4', 'capacity': 493}, {'agent_id': 'A5', 'capacity': 493}], 'resource_pairs': [{'agent_id': 'A1', 'task_id': 0, 'consumption': 33}, {'agent_id': 'A1', 'task_id': 1, 'consumption': 16}, {'agent_id': 'A1', 'task_id': 2, 'consumption': 34}, {'agent_id': 'A1', 'task_id': 3, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 4, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 5, 'consumption': 40}, {'agent_id': 'A1', 'task_id': 6, 'consumption': 35}, {'agent_id': 'A1', 'task_id': 7, 'consumption': 29}, {'agent_id': 'A1', 'task_id': 8, 'consumption': 39}, {'agent_id': 'A1', 'task_id': 9, 'consumption': 31}, {'agent_id': 'A1', 'task_id': 10, 'consumption': 28}, {'agent_id': 'A1', 'task_id': 11, 'consumption': 47}, {'agent_id': 'A1', 'task_id': 12, 'consumption': 15}, {'agent_id': 'A1', 'task_id': 13, 'consumption': 47}, {'agent_id': 'A2', 'task_id': 0, 'consumption': 13}, {'agent_id': 'A2', 'task_id': 1, 'consumption': 12}, {'agent_id': 'A2', 'task_id': 2, 'consumption': 34}, {'agent_id': 'A2', 'task_id': 3, 'consumption': 32}, {'agent_id': 'A2', 'task_id': 4, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 5, 'consumption': 30}, {'agent_id': 'A2', 'task_id': 6, 'consumption': 15}, {'agent_id': 'A2', 'task_id': 7, 'consumption': 17}, {'agent_id': 'A2', 'task_id': 8, 'consumption': 19}, {'agent_id': 'A2', 'task_id': 9, 'consumption': 45}, {'agent_id': 'A2', 'task_id': 10, 'consumption': 23}, {'agent_id': 'A2', 'task_id': 11, 'consumption': 37}, {'agent_id': 'A2', 'task_id': 12, 'consumption': 24}, {'agent_id': 'A2', 'task_id': 13, 'consumption': 26}, {'agent_id': 'A3', 'task_id': 0, 'consumption': 40}, {'agent_id': 'A3', 'task_id': 1, 'consumption': 24}, {'agent_id': 'A3', 'task_id': 2, 'consumption': 43}, {'agent_id': 'A3', 'task_id': 3, 'consumption': 30}, {'agent_id': 'A3', 'task_id': 4, 'consumption': 45}, {'agent_id': 'A3', 'task_id': 5, 'consumption': 46}, {'agent_id': 'A3', 'task_id': 6, 'consumption': 36}, {'agent_id': 'A3', 'task_id': 7, 'consumption': 11}, {'agent_id': 'A3', 'task_id': 8, 'consumption': 13}, {'agent_id': 'A3', 'task_id': 9, 'consumption': 26}, {'agent_id': 'A3', 'task_id': 10, 'consumption': 35}, {'agent_id': 'A3', 'task_id': 11, 'consumption': 16}, {'agent_id': 'A3', 'task_id': 12, 'consumption': 32}, {'agent_id': 'A3', 'task_id': 13, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 0, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 1, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 2, 'consumption': 25}, {'agent_id': 'A4', 'task_id': 3, 'consumption': 35}, {'agent_id': 'A4', 'task_id': 4, 'consumption': 44}, {'agent_id': 'A4', 'task_id': 5, 'consumption': 12}, {'agent_id': 'A4', 'task_id': 6, 'consumption': 18}, {'agent_id': 'A4', 'task_id': 7, 'consumption': 47}, {'agent_id': 'A4', 'task_id': 8, 'consumption': 40}, {'agent_id': 'A4', 'task_id': 9, 'consumption': 38}, {'agent_id': 'A4', 'task_id': 10, 'consumption': 30}, {'agent_id': 'A4', 'task_id': 11, 'consumption': 13}, {'agent_id': 'A4', 'task_id': 12, 'consumption': 43}, {'agent_id': 'A4', 'task_id': 13, 'consumption': 49}, {'agent_id': 'A5', 'task_id': 0, 'consumption': 44}, {'agent_id': 'A5', 'task_id': 1, 'consumption': 18}, {'agent_id': 'A5', 'task_id': 2, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 3, 'consumption': 12}, {'agent_id': 'A5', 'task_id': 4, 'consumption': 28}, {'agent_id': 'A5', 'task_id': 5, 'consumption': 25}, {'agent_id': 'A5', 'task_id': 6, 'consumption': 47}, {'agent_id': 'A5', 'task_id': 7, 'consumption': 13}, {'agent_id': 'A5', 'task_id': 8, 'consumption': 35}, {'agent_id': 'A5', 'task_id': 9, 'consumption': 27}, {'agent_id': 'A5', 'task_id': 10, 'consumption': 20}, {'agent_id': 'A5', 'task_id': 11, 'consumption': 32}, {'agent_id': 'A5', 'task_id': 12, 'consumption': 50}, {'agent_id': 'A5', 'task_id': 13, 'consumption': 31}], 'cost_pairs': [{'agent_id': 'A1', 'task_id': 0, 'cost': 25}, {'agent_id': 'A1', 'task_id': 1, 'cost': 16}, {'agent_id': 'A1', 'task_id': 2, 'cost': 12}, {'agent_id': 'A1', 'task_id': 3, 'cost': 6}, {'agent_id': 'A1', 'task_id': 4, 'cost': 12}, {'agent_id': 'A1', 'task_id': 5, 'cost': 17}, {'agent_id': 'A1', 'task_id': 6, 'cost': 21}, {'agent_id': 'A1', 'task_id': 7, 'cost': 22}, {'agent_id': 'A1', 'task_id': 8, 'cost': 21}, {'agent_id': 'A1', 'task_id': 9, 'cost': 16}, {'agent_id': 'A1', 'task_id': 10, 'cost': 19}, {'agent_id': 'A1', 'task_id': 11, 'cost': 25}, {'agent_id': 'A1', 'task_id': 12, 'cost': 17}, {'agent_id': 'A1', 'task_id': 13, 'cost': 10}, {'agent_id': 'A2', 'task_id': 0, 'cost': 15}, {'agent_id': 'A2', 'task_id': 1, 'cost': 17}, {'agent_id': 'A2', 'task_id': 2, 'cost': 11}, {'agent_id': 'A2', 'task_id': 3, 'cost': 24}, {'agent_id': 'A2', 'task_id': 4, 'cost': 15}, {'agent_id': 'A2', 'task_id': 5, 'cost': 19}, {'agent_id': 'A2', 'task_id': 6, 'cost': 16}, {'agent_id': 'A2', 'task_id': 7, 'cost': 16}, {'agent_id': 'A2', 'task_id': 8, 'cost': 10}, {'agent_id': 'A2', 'task_id': 9, 'cost': 12}, {'agent_id': 'A2', 'task_id': 10, 'cost': 12}, {'agent_id': 'A2', 'task_id': 11, 'cost': 15}, {'agent_id': 'A2', 'task_id': 12, 'cost': 14}, {'agent_id': 'A2', 'task_id': 13, 'cost': 19}, {'agent_id': 'A3', 'task_id': 0, 'cost': 5}, {'agent_id': 'A3', 'task_id': 1, 'cost': 20}, {'agent_id': 'A3', 'task_id': 2, 'cost': 24}, {'agent_id': 'A3', 'task_id': 3, 'cost': 18}, {'agent_id': 'A3', 'task_id': 4, 'cost': 15}, {'agent_id': 'A3', 'task_id': 5, 'cost': 14}, {'agent_id': 'A3', 'task_id': 6, 'cost': 8}, {'agent_id': 'A3', 'task_id': 7, 'cost': 9}, {'agent_id': 'A3', 'task_id': 8, 'cost': 25}, {'agent_id': 'A3', 'task_id': 9, 'cost': 22}, {'agent_id': 'A3', 'task_id': 10, 'cost': 16}, {'agent_id': 'A3', 'task_id': 11, 'cost': 11}, {'agent_id': 'A3', 'task_id': 12, 'cost': 7}, {'agent_id': 'A3', 'task_id': 13, 'cost': 22}, {'agent_id': 'A4', 'task_id': 0, 'cost': 16}, {'agent_id': 'A4', 'task_id': 1, 'cost': 8}, {'agent_id': 'A4', 'task_id': 2, 'cost': 23}, {'agent_id': 'A4', 'task_id': 3, 'cost': 10}, {'agent_id': 'A4', 'task_id': 4, 'cost': 15}, {'agent_id': 'A4', 'task_id': 5, 'cost': 14}, {'agent_id': 'A4', 'task_id': 6, 'cost': 7}, {'agent_id': 'A4', 'task_id': 7, 'cost': 15}, {'agent_id': 'A4', 'task_id': 8, 'cost': 25}, {'agent_id': 'A4', 'task_id': 9, 'cost': 21}, {'agent_id': 'A4', 'task_id': 10, 'cost': 17}, {'agent_id': 'A4', 'task_id': 11, 'cost': 11}, {'agent_id': 'A4', 'task_id': 12, 'cost': 12}, {'agent_id': 'A4', 'task_id': 13, 'cost': 16}, {'agent_id': 'A5', 'task_id': 0, 'cost': 24}, {'agent_id': 'A5', 'task_id': 1, 'cost': 21}, {'agent_id': 'A5', 'task_id': 2, 'cost': 15}, {'agent_id': 'A5', 'task_id': 3, 'cost': 5}, {'agent_id': 'A5', 'task_id': 4, 'cost': 11}, {'agent_id': 'A5', 'task_id': 5, 'cost': 18}, {'agent_id': 'A5', 'task_id': 6, 'cost': 17}, {'agent_id': 'A5', 'task_id': 7, 'cost': 22}, {'agent_id': 'A5', 'task_id': 8, 'cost': 11}, {'agent_id': 'A5', 'task_id': 9, 'cost': 14}, {'agent_id': 'A5', 'task_id': 10, 'cost': 22}, {'agent_id': 'A5', 'task_id': 11, 'cost': 13}, {'agent_id': 'A5', 'task_id': 12, 'cost': 21}, {'agent_id': 'A5', 'task_id': 13, 'cost': 14}]}","['A3', 'A4', 'A2', 'A5', 'A5', 'A4', 'A4', 'A3', 'A2', 'A2', 'A2', 'A3', 'A3', 'A1']",50,json,0