| task_name,problem_type,instruction,instance,solution,obj,instance_variant,solution_variant,context_index,input_format,input_index_base |
| RCPSP,RCPSP, |
|
|
| { |
| ""num_activities"": 21, |
| ""num_resource_types"": 3, |
| ""resources"": [ |
| 1, |
| 2, |
| 3 |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": 1, |
| ""capacity"": 8 |
| }, |
| { |
| ""resource_id"": 2, |
| ""capacity"": 13 |
| }, |
| { |
| ""resource_id"": 3, |
| ""capacity"": 13 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""activity_id"": ""T1"", |
| ""activity_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_activities"": [ |
| ""T2"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T2"", |
| ""activity_duration"": 1, |
| ""resource_demands"": [ |
| 5, |
| 7, |
| 3 |
| ], |
| ""successor_activities"": [ |
| ""T4"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T3"", |
| ""activity_duration"": 5, |
| ""resource_demands"": [ |
| 8, |
| 3, |
| 2 |
| ], |
| ""successor_activities"": [ |
| ""T4"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T4"", |
| ""activity_duration"": 2, |
| ""resource_demands"": [ |
| 4, |
| 2, |
| 7 |
| ], |
| ""successor_activities"": [ |
| ""T6"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T5"", |
| ""activity_duration"": 1, |
| ""resource_demands"": [ |
| 6, |
| 1, |
| 2 |
| ], |
| ""successor_activities"": [ |
| ""T8"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T6"", |
| ""activity_duration"": 1, |
| ""resource_demands"": [ |
| 5, |
| 2, |
| 3 |
| ], |
| ""successor_activities"": [ |
| ""T7"", |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T7"", |
| ""activity_duration"": 4, |
| ""resource_demands"": [ |
| 1, |
| 4, |
| 6 |
| ], |
| ""successor_activities"": [ |
| ""T11"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T8"", |
| ""activity_duration"": 2, |
| ""resource_demands"": [ |
| 3, |
| 1, |
| 3 |
| ], |
| ""successor_activities"": [ |
| ""T12"", |
| ""T14"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T9"", |
| ""activity_duration"": 1, |
| ""resource_demands"": [ |
| 4, |
| 6, |
| 4 |
| ], |
| ""successor_activities"": [ |
| ""T13"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T10"", |
| ""activity_duration"": 2, |
| ""resource_demands"": [ |
| 2, |
| 4, |
| 4 |
| ], |
| ""successor_activities"": [ |
| ""T11"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T11"", |
| ""activity_duration"": 5, |
| ""resource_demands"": [ |
| 2, |
| 9, |
| 7 |
| ], |
| ""successor_activities"": [ |
| ""T15"", |
| ""T18"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T12"", |
| ""activity_duration"": 4, |
| ""resource_demands"": [ |
| 2, |
| 4, |
| 4 |
| ], |
| ""successor_activities"": [ |
| ""T15"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T13"", |
| ""activity_duration"": 3, |
| ""resource_demands"": [ |
| 4, |
| 4, |
| 5 |
| ], |
| ""successor_activities"": [ |
| ""T15"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T14"", |
| ""activity_duration"": 13, |
| ""resource_demands"": [ |
| 1, |
| 3, |
| 10 |
| ], |
| ""successor_activities"": [ |
| ""T16"", |
| ""T17"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T15"", |
| ""activity_duration"": 4, |
| ""resource_demands"": [ |
| 2, |
| 7, |
| 3 |
| ], |
| ""successor_activities"": [ |
| ""T19"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T16"", |
| ""activity_duration"": 2, |
| ""resource_demands"": [ |
| 6, |
| 1, |
| 1 |
| ], |
| ""successor_activities"": [ |
| ""T19"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T17"", |
| ""activity_duration"": 3, |
| ""resource_demands"": [ |
| 2, |
| 0, |
| 3 |
| ], |
| ""successor_activities"": [ |
| ""T20"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T18"", |
| ""activity_duration"": 3, |
| ""resource_demands"": [ |
| 3, |
| 2, |
| 1 |
| ], |
| ""successor_activities"": [ |
| ""T20"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T19"", |
| ""activity_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 1, |
| 6 |
| ], |
| ""successor_activities"": [ |
| ""T21"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T20"", |
| ""activity_duration"": 5, |
| ""resource_demands"": [ |
| 1, |
| 4, |
| 3 |
| ], |
| ""successor_activities"": [ |
| ""T21"" |
| ] |
| }, |
| { |
| ""activity_id"": ""T21"", |
| ""activity_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_activities"": [] |
| } |
| ] |
| } |
|
|
| When you send the schedule back, just use this simple JSON shape so everythingβs clear and machine-friendly β nothing fancy, just that layout. |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of that like a little form: ""solution"" is the list of scheduled jobs, and each job record says which task it is and when it starts and ends. Keep it light β the JSON above is just the shape I expect, not the filled-in schedule. |
|
|
| Please make sure to use the exact identifiers from the instance input β do not rename tasks 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β.""","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [8, 13, 13], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1]}, {'duration': 1, 'demands': [5, 7, 3], 'successors': [3]}, {'duration': 5, 'demands': [8, 3, 2], 'successors': [3]}, {'duration': 2, 'demands': [4, 2, 7], 'successors': [5]}, {'duration': 1, 'demands': [6, 1, 2], 'successors': [7]}, {'duration': 1, 'demands': [5, 2, 3], 'successors': [6, 8, 9]}, {'duration': 4, 'demands': [1, 4, 6], 'successors': [10]}, {'duration': 2, 'demands': [3, 1, 3], 'successors': [11, 13]}, {'duration': 1, 'demands': [4, 6, 4], 'successors': [12]}, {'duration': 2, 'demands': [2, 4, 4], 'successors': [10]}, {'duration': 5, 'demands': [2, 9, 7], 'successors': [14, 17]}, {'duration': 4, 'demands': [2, 4, 4], 'successors': [14]}, {'duration': 3, 'demands': [4, 4, 5], 'successors': [14]}, {'duration': 13, 'demands': [1, 3, 10], 'successors': [15, 16]}, {'duration': 4, 'demands': [2, 7, 3], 'successors': [18]}, {'duration': 2, 'demands': [6, 1, 1], 'successors': [18]}, {'duration': 3, 'demands': [2, 0, 3], 'successors': [19]}, {'duration': 3, 'demands': [3, 2, 1], 'successors': [19]}, {'duration': 1, 'demands': [0, 1, 6], 'successors': [20]}, {'duration': 5, 'demands': [1, 4, 3], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 6, 'end': 7, 'duration': 1, 'demands': [5, 7, 3]}, {'task': 2, 'start': 0, 'end': 5, 'duration': 5, 'demands': [8, 3, 2]}, {'task': 3, 'start': 7, 'end': 9, 'duration': 2, 'demands': [4, 2, 7]}, {'task': 4, 'start': 5, 'end': 6, 'duration': 1, 'demands': [6, 1, 2]}, {'task': 5, 'start': 9, 'end': 10, 'duration': 1, 'demands': [5, 2, 3]}, {'task': 6, 'start': 22, 'end': 26, 'duration': 4, 'demands': [1, 4, 6]}, {'task': 7, 'start': 6, 'end': 8, 'duration': 2, 'demands': [3, 1, 3]}, {'task': 8, 'start': 24, 'end': 25, 'duration': 1, 'demands': [4, 6, 4]}, {'task': 9, 'start': 22, 'end': 24, 'duration': 2, 'demands': [2, 4, 4]}, {'task': 10, 'start': 26, 'end': 31, 'duration': 5, 'demands': [2, 9, 7]}, {'task': 11, 'start': 27, 'end': 31, 'duration': 4, 'demands': [2, 4, 4]}, {'task': 12, 'start': 31, 'end': 34, 'duration': 3, 'demands': [4, 4, 5]}, {'task': 13, 'start': 9, 'end': 22, 'duration': 13, 'demands': [1, 3, 10]}, {'task': 14, 'start': 34, 'end': 38, 'duration': 4, 'demands': [2, 7, 3]}, {'task': 15, 'start': 25, 'end': 27, 'duration': 2, 'demands': [6, 1, 1]}, {'task': 16, 'start': 22, 'end': 25, 'duration': 3, 'demands': [2, 0, 3]}, {'task': 17, 'start': 31, 'end': 34, 'duration': 3, 'demands': [3, 2, 1]}, {'task': 18, 'start': 38, 'end': 39, 'duration': 1, 'demands': [0, 1, 6]}, {'task': 19, 'start': 34, 'end': 39, 'duration': 5, 'demands': [1, 4, 3]}, {'task': 20, 'start': 39, 'end': 40, 'duration': 1, 'demands': [0, 0, 0]}]",40.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 8}, {'resource_id': 2, 'capacity': 13}, {'resource_id': 3, 'capacity': 13}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2']}, {'task_id': 'T2', 'duration': 1, 'demands': [5, 7, 3], 'successors': ['T4']}, {'task_id': 'T3', 'duration': 5, 'demands': [8, 3, 2], 'successors': ['T4']}, {'task_id': 'T4', 'duration': 2, 'demands': [4, 2, 7], 'successors': ['T6']}, {'task_id': 'T5', 'duration': 1, 'demands': [6, 1, 2], 'successors': ['T8']}, {'task_id': 'T6', 'duration': 1, 'demands': [5, 2, 3], 'successors': ['T7', 'T9', 'T10']}, {'task_id': 'T7', 'duration': 4, 'demands': [1, 4, 6], 'successors': ['T11']}, {'task_id': 'T8', 'duration': 2, 'demands': [3, 1, 3], 'successors': ['T12', 'T14']}, {'task_id': 'T9', 'duration': 1, 'demands': [4, 6, 4], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 2, 'demands': [2, 4, 4], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 5, 'demands': [2, 9, 7], 'successors': ['T15', 'T18']}, {'task_id': 'T12', 'duration': 4, 'demands': [2, 4, 4], 'successors': ['T15']}, {'task_id': 'T13', 'duration': 3, 'demands': [4, 4, 5], 'successors': ['T15']}, {'task_id': 'T14', 'duration': 13, 'demands': [1, 3, 10], 'successors': ['T16', 'T17']}, {'task_id': 'T15', 'duration': 4, 'demands': [2, 7, 3], 'successors': ['T19']}, {'task_id': 'T16', 'duration': 2, 'demands': [6, 1, 1], 'successors': ['T19']}, {'task_id': 'T17', 'duration': 3, 'demands': [2, 0, 3], 'successors': ['T20']}, {'task_id': 'T18', 'duration': 3, 'demands': [3, 2, 1], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 1, 'demands': [0, 1, 6], 'successors': ['T21']}, {'task_id': 'T20', 'duration': 5, 'demands': [1, 4, 3], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 6, 'end': 7, 'duration': 1, 'demands': [5, 7, 3]}, {'task': 'T3', 'start': 0, 'end': 5, 'duration': 5, 'demands': [8, 3, 2]}, {'task': 'T4', 'start': 7, 'end': 9, 'duration': 2, 'demands': [4, 2, 7]}, {'task': 'T5', 'start': 5, 'end': 6, 'duration': 1, 'demands': [6, 1, 2]}, {'task': 'T6', 'start': 9, 'end': 10, 'duration': 1, 'demands': [5, 2, 3]}, {'task': 'T7', 'start': 22, 'end': 26, 'duration': 4, 'demands': [1, 4, 6]}, {'task': 'T8', 'start': 6, 'end': 8, 'duration': 2, 'demands': [3, 1, 3]}, {'task': 'T9', 'start': 24, 'end': 25, 'duration': 1, 'demands': [4, 6, 4]}, {'task': 'T10', 'start': 22, 'end': 24, 'duration': 2, 'demands': [2, 4, 4]}, {'task': 'T11', 'start': 26, 'end': 31, 'duration': 5, 'demands': [2, 9, 7]}, {'task': 'T12', 'start': 27, 'end': 31, 'duration': 4, 'demands': [2, 4, 4]}, {'task': 'T13', 'start': 31, 'end': 34, 'duration': 3, 'demands': [4, 4, 5]}, {'task': 'T14', 'start': 9, 'end': 22, 'duration': 13, 'demands': [1, 3, 10]}, {'task': 'T15', 'start': 34, 'end': 38, 'duration': 4, 'demands': [2, 7, 3]}, {'task': 'T16', 'start': 25, 'end': 27, 'duration': 2, 'demands': [6, 1, 1]}, {'task': 'T17', 'start': 22, 'end': 25, 'duration': 3, 'demands': [2, 0, 3]}, {'task': 'T18', 'start': 31, 'end': 34, 'duration': 3, 'demands': [3, 2, 1]}, {'task': 'T19', 'start': 38, 'end': 39, 'duration': 1, 'demands': [0, 1, 6]}, {'task': 'T20', 'start': 34, 'end': 39, 'duration': 5, 'demands': [1, 4, 3]}, {'task': 'T21', 'start': 39, 'end': 40, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| # total_steps=16 |
| # nr_resource_types=3 |
| # resources=A, B, C |
| resource_id,capacity |
| A,15 |
| B,9 |
| C,10 |
| step_id,step_duration,resource_demands,successor_steps |
| T1,1,""7, 6, 6"",""T3, T5, T4"" |
| T2,2,""10, 2, 1"",""T4, T6"" |
| T3,6,""3, 1, 3"",""T7, T9"" |
| T4,9,""3, 5, 8"",""T8, T10"" |
| T5,5,""2, 3, 3"",""T7, T8"" |
| T6,2,""1, 3, 4"",""T8, T9"" |
| T7,4,""4, 4, 3"",""T11, T13, T2"" |
| T8,6,""4, 1, 7"",""T12, T10"" |
| T9,5,""4, 5, 2"",""T12, T14"" |
| T10,1,""5, 1, 2"",""T11"" |
| T11,1,""2, 4, 6"",""T15, T13"" |
| T12,9,""1, 4, 3"",""T13, T14"" |
| T13,2,""6, 9, 6"",""T16, T14"" |
| T14,4,""3, 3, 3"",""T16"" |
| T15,1,""4, 2, 5"",""T16, T13"" |
| T16,5,""1, 2, 10"",""none"" |
|
|
| Also, when you hand me the schedule, please use this JSON layout so I can parse it cleanly β something simple like this: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of that block as a little form: each item in the ""solution"" list is one recipe step. ""task"" is the step identifier, and ""start"" and ""end"" are when that step begins and finishes (in the same time units used in the instance). It's just a sketch of the shape I expect, not your actual answer. |
| |
| 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β.""","{'nr_tasks': 16, 'nr_resources': 3, 'capacities': [15, 9, 10], 'tasks': [{'duration': 1, 'demands': [7, 6, 6], 'successors': [2, 4, 3]}, {'duration': 2, 'demands': [10, 2, 1], 'successors': [3, 5]}, {'duration': 6, 'demands': [3, 1, 3], 'successors': [6, 8]}, {'duration': 9, 'demands': [3, 5, 8], 'successors': [7, 9]}, {'duration': 5, 'demands': [2, 3, 3], 'successors': [6, 7]}, {'duration': 2, 'demands': [1, 3, 4], 'successors': [7, 8]}, {'duration': 4, 'demands': [4, 4, 3], 'successors': [10, 12, 1]}, {'duration': 6, 'demands': [4, 1, 7], 'successors': [11, 9]}, {'duration': 5, 'demands': [4, 5, 2], 'successors': [11, 13]}, {'duration': 1, 'demands': [5, 1, 2], 'successors': [10]}, {'duration': 1, 'demands': [2, 4, 6], 'successors': [14, 12]}, {'duration': 9, 'demands': [1, 4, 3], 'successors': [12, 13]}, {'duration': 2, 'demands': [6, 9, 6], 'successors': [15, 13]}, {'duration': 4, 'demands': [3, 3, 3], 'successors': [15]}, {'duration': 1, 'demands': [4, 2, 5], 'successors': [15, 12]}, {'duration': 5, 'demands': [1, 2, 10], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [7, 6, 6]}, {'task': 1, 'start': 11, 'end': 13, 'duration': 2, 'demands': [10, 2, 1]}, {'task': 2, 'start': 1, 'end': 7, 'duration': 6, 'demands': [3, 1, 3]}, {'task': 3, 'start': 13, 'end': 22, 'duration': 9, 'demands': [3, 5, 8]}, {'task': 4, 'start': 1, 'end': 6, 'duration': 5, 'demands': [2, 3, 3]}, {'task': 5, 'start': 22, 'end': 24, 'duration': 2, 'demands': [1, 3, 4]}, {'task': 6, 'start': 7, 'end': 11, 'duration': 4, 'demands': [4, 4, 3]}, {'task': 7, 'start': 24, 'end': 30, 'duration': 6, 'demands': [4, 1, 7]}, {'task': 8, 'start': 24, 'end': 29, 'duration': 5, 'demands': [4, 5, 2]}, {'task': 9, 'start': 30, 'end': 31, 'duration': 1, 'demands': [5, 1, 2]}, {'task': 10, 'start': 31, 'end': 32, 'duration': 1, 'demands': [2, 4, 6]}, {'task': 11, 'start': 30, 'end': 39, 'duration': 9, 'demands': [1, 4, 3]}, {'task': 12, 'start': 39, 'end': 41, 'duration': 2, 'demands': [6, 9, 6]}, {'task': 13, 'start': 41, 'end': 45, 'duration': 4, 'demands': [3, 3, 3]}, {'task': 14, 'start': 32, 'end': 33, 'duration': 1, 'demands': [4, 2, 5]}, {'task': 15, 'start': 45, 'end': 50, 'duration': 5, 'demands': [1, 2, 10]}]",50.0,"{'problem_type': 'RCPSP', 'nr_tasks': 16, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 15}, {'resource_id': 'B', 'capacity': 9}, {'resource_id': 'C', 'capacity': 10}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [7, 6, 6], 'successors': ['T3', 'T5', 'T4']}, {'task_id': 'T2', 'duration': 2, 'demands': [10, 2, 1], 'successors': ['T4', 'T6']}, {'task_id': 'T3', 'duration': 6, 'demands': [3, 1, 3], 'successors': ['T7', 'T9']}, {'task_id': 'T4', 'duration': 9, 'demands': [3, 5, 8], 'successors': ['T8', 'T10']}, {'task_id': 'T5', 'duration': 5, 'demands': [2, 3, 3], 'successors': ['T7', 'T8']}, {'task_id': 'T6', 'duration': 2, 'demands': [1, 3, 4], 'successors': ['T8', 'T9']}, {'task_id': 'T7', 'duration': 4, 'demands': [4, 4, 3], 'successors': ['T11', 'T13', 'T2']}, {'task_id': 'T8', 'duration': 6, 'demands': [4, 1, 7], 'successors': ['T12', 'T10']}, {'task_id': 'T9', 'duration': 5, 'demands': [4, 5, 2], 'successors': ['T12', 'T14']}, {'task_id': 'T10', 'duration': 1, 'demands': [5, 1, 2], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 1, 'demands': [2, 4, 6], 'successors': ['T15', 'T13']}, {'task_id': 'T12', 'duration': 9, 'demands': [1, 4, 3], 'successors': ['T13', 'T14']}, {'task_id': 'T13', 'duration': 2, 'demands': [6, 9, 6], 'successors': ['T16', 'T14']}, {'task_id': 'T14', 'duration': 4, 'demands': [3, 3, 3], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 1, 'demands': [4, 2, 5], 'successors': ['T16', 'T13']}, {'task_id': 'T16', 'duration': 5, 'demands': [1, 2, 10], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [7, 6, 6]}, {'task': 'T2', 'start': 11, 'end': 13, 'duration': 2, 'demands': [10, 2, 1]}, {'task': 'T3', 'start': 1, 'end': 7, 'duration': 6, 'demands': [3, 1, 3]}, {'task': 'T4', 'start': 13, 'end': 22, 'duration': 9, 'demands': [3, 5, 8]}, {'task': 'T5', 'start': 1, 'end': 6, 'duration': 5, 'demands': [2, 3, 3]}, {'task': 'T6', 'start': 22, 'end': 24, 'duration': 2, 'demands': [1, 3, 4]}, {'task': 'T7', 'start': 7, 'end': 11, 'duration': 4, 'demands': [4, 4, 3]}, {'task': 'T8', 'start': 24, 'end': 30, 'duration': 6, 'demands': [4, 1, 7]}, {'task': 'T9', 'start': 24, 'end': 29, 'duration': 5, 'demands': [4, 5, 2]}, {'task': 'T10', 'start': 30, 'end': 31, 'duration': 1, 'demands': [5, 1, 2]}, {'task': 'T11', 'start': 31, 'end': 32, 'duration': 1, 'demands': [2, 4, 6]}, {'task': 'T12', 'start': 30, 'end': 39, 'duration': 9, 'demands': [1, 4, 3]}, {'task': 'T13', 'start': 39, 'end': 41, 'duration': 2, 'demands': [6, 9, 6]}, {'task': 'T14', 'start': 41, 'end': 45, 'duration': 4, 'demands': [3, 3, 3]}, {'task': 'T15', 'start': 32, 'end': 33, 'duration': 1, 'demands': [4, 2, 5]}, {'task': 'T16', 'start': 45, 'end': 50, 'duration': 5, 'demands': [1, 2, 10]}] |
| RCPSP,RCPSP, |
|
|
| { |
| ""nr_scenes"": 18, |
| ""nr_resource_types"": 3, |
| ""resources"": [ |
| ""A"", |
| ""B"", |
| ""C"" |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": ""A"", |
| ""capacity"": 10 |
| }, |
| { |
| ""resource_id"": ""B"", |
| ""capacity"": 12 |
| }, |
| { |
| ""resource_id"": ""C"", |
| ""capacity"": 9 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""scene_id"": ""T1"", |
| ""scene_duration"": 1, |
| ""resource_requirements"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_scenes"": [ |
| ""T2"", |
| ""T3"", |
| ""T4"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T2"", |
| ""scene_duration"": 2, |
| ""resource_requirements"": [ |
| 3, |
| 7, |
| 1 |
| ], |
| ""successor_scenes"": [ |
| ""T7"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T3"", |
| ""scene_duration"": 5, |
| ""resource_requirements"": [ |
| 8, |
| 4, |
| 4 |
| ], |
| ""successor_scenes"": [ |
| ""T6"", |
| ""T7"", |
| ""T17"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T4"", |
| ""scene_duration"": 3, |
| ""resource_requirements"": [ |
| 8, |
| 3, |
| 2 |
| ], |
| ""successor_scenes"": [ |
| ""T5"", |
| ""T6"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T5"", |
| ""scene_duration"": 2, |
| ""resource_requirements"": [ |
| 4, |
| 1, |
| 5 |
| ], |
| ""successor_scenes"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T6"", |
| ""scene_duration"": 4, |
| ""resource_requirements"": [ |
| 5, |
| 5, |
| 8 |
| ], |
| ""successor_scenes"": [ |
| ""T9"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T7"", |
| ""scene_duration"": 7, |
| ""resource_requirements"": [ |
| 3, |
| 5, |
| 1 |
| ], |
| ""successor_scenes"": [ |
| ""T10"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T8"", |
| ""scene_duration"": 1, |
| ""resource_requirements"": [ |
| 2, |
| 3, |
| 6 |
| ], |
| ""successor_scenes"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T9"", |
| ""scene_duration"": 2, |
| ""resource_requirements"": [ |
| 2, |
| 4, |
| 3 |
| ], |
| ""successor_scenes"": [ |
| ""T14"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T10"", |
| ""scene_duration"": 3, |
| ""resource_requirements"": [ |
| 3, |
| 4, |
| 2 |
| ], |
| ""successor_scenes"": [ |
| ""T11"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T11"", |
| ""scene_duration"": 11, |
| ""resource_requirements"": [ |
| 2, |
| 6, |
| 8 |
| ], |
| ""successor_scenes"": [ |
| ""T14"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T12"", |
| ""scene_duration"": 3, |
| ""resource_requirements"": [ |
| 2, |
| 1, |
| 4 |
| ], |
| ""successor_scenes"": [ |
| ""T13"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T13"", |
| ""scene_duration"": 3, |
| ""resource_requirements"": [ |
| 3, |
| 8, |
| 8 |
| ], |
| ""successor_scenes"": [] |
| }, |
| { |
| ""scene_id"": ""T14"", |
| ""scene_duration"": 5, |
| ""resource_requirements"": [ |
| 5, |
| 2, |
| 2 |
| ], |
| ""successor_scenes"": [ |
| ""T15"", |
| ""T16"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T15"", |
| ""scene_duration"": 14, |
| ""resource_requirements"": [ |
| 2, |
| 0, |
| 7 |
| ], |
| ""successor_scenes"": [ |
| ""T17"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T16"", |
| ""scene_duration"": 1, |
| ""resource_requirements"": [ |
| 3, |
| 1, |
| 1 |
| ], |
| ""successor_scenes"": [ |
| ""T17"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T17"", |
| ""scene_duration"": 4, |
| ""resource_requirements"": [ |
| 0, |
| 2, |
| 4 |
| ], |
| ""successor_scenes"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""scene_id"": ""T18"", |
| ""scene_duration"": 1, |
| ""resource_requirements"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_scenes"": [] |
| } |
| ] |
| } |
|
|
| If you want to hand me a schedule, just use this relaxed JSON layout so everything is predictable: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <scene_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of it like a little form: ""solution"" is the list of filmed scenes, each object records which scene (""task""), when it starts, and when it ends. Start and end are the numeric times (same units as the scene durations). This is only a sketch of the shape I expect β not the actual schedule. |
|
|
| Please use the exact scene identifiers from the instance input β no renaming, no made-up 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β.","{'nr_tasks': 18, 'nr_resources': 3, 'capacities': [10, 12, 9], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 2, 'demands': [3, 7, 1], 'successors': [6, 7]}, {'duration': 5, 'demands': [8, 4, 4], 'successors': [5, 6, 16]}, {'duration': 3, 'demands': [8, 3, 2], 'successors': [4, 5]}, {'duration': 2, 'demands': [4, 1, 5], 'successors': [8, 9]}, {'duration': 4, 'demands': [5, 5, 8], 'successors': [8]}, {'duration': 7, 'demands': [3, 5, 1], 'successors': [9]}, {'duration': 1, 'demands': [2, 3, 6], 'successors': [8, 9]}, {'duration': 2, 'demands': [2, 4, 3], 'successors': [13]}, {'duration': 3, 'demands': [3, 4, 2], 'successors': [10]}, {'duration': 11, 'demands': [2, 6, 8], 'successors': [13]}, {'duration': 3, 'demands': [2, 1, 4], 'successors': [12, 7]}, {'duration': 3, 'demands': [3, 8, 8], 'successors': []}, {'duration': 5, 'demands': [5, 2, 2], 'successors': [14, 15]}, {'duration': 14, 'demands': [2, 0, 7], 'successors': [16]}, {'duration': 1, 'demands': [3, 1, 1], 'successors': [16]}, {'duration': 4, 'demands': [0, 2, 4], 'successors': [17]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 6, 'end': 8, 'duration': 2, 'demands': [3, 7, 1]}, {'task': 2, 'start': 1, 'end': 6, 'duration': 5, 'demands': [8, 4, 4]}, {'task': 3, 'start': 8, 'end': 11, 'duration': 3, 'demands': [8, 3, 2]}, {'task': 4, 'start': 11, 'end': 13, 'duration': 2, 'demands': [4, 1, 5]}, {'task': 5, 'start': 13, 'end': 17, 'duration': 4, 'demands': [5, 5, 8]}, {'task': 6, 'start': 11, 'end': 18, 'duration': 7, 'demands': [3, 5, 1]}, {'task': 7, 'start': 8, 'end': 9, 'duration': 1, 'demands': [2, 3, 6]}, {'task': 8, 'start': 17, 'end': 19, 'duration': 2, 'demands': [2, 4, 3]}, {'task': 9, 'start': 18, 'end': 21, 'duration': 3, 'demands': [3, 4, 2]}, {'task': 10, 'start': 21, 'end': 32, 'duration': 11, 'demands': [2, 6, 8]}, {'task': 11, 'start': 0, 'end': 3, 'duration': 3, 'demands': [2, 1, 4]}, {'task': 12, 'start': 55, 'end': 58, 'duration': 3, 'demands': [3, 8, 8]}, {'task': 13, 'start': 32, 'end': 37, 'duration': 5, 'demands': [5, 2, 2]}, {'task': 14, 'start': 37, 'end': 51, 'duration': 14, 'demands': [2, 0, 7]}, {'task': 15, 'start': 37, 'end': 38, 'duration': 1, 'demands': [3, 1, 1]}, {'task': 16, 'start': 51, 'end': 55, 'duration': 4, 'demands': [0, 2, 4]}, {'task': 17, 'start': 55, 'end': 56, 'duration': 1, 'demands': [0, 0, 0]}]",58.0,"{'problem_type': 'RCPSP', 'nr_tasks': 18, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 10}, {'resource_id': 'B', 'capacity': 12}, {'resource_id': 'C', 'capacity': 9}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 2, 'demands': [3, 7, 1], 'successors': ['T7', 'T8']}, {'task_id': 'T3', 'duration': 5, 'demands': [8, 4, 4], 'successors': ['T6', 'T7', 'T17']}, {'task_id': 'T4', 'duration': 3, 'demands': [8, 3, 2], 'successors': ['T5', 'T6']}, {'task_id': 'T5', 'duration': 2, 'demands': [4, 1, 5], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 4, 'demands': [5, 5, 8], 'successors': ['T9']}, {'task_id': 'T7', 'duration': 7, 'demands': [3, 5, 1], 'successors': ['T10']}, {'task_id': 'T8', 'duration': 1, 'demands': [2, 3, 6], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 2, 'demands': [2, 4, 3], 'successors': ['T14']}, {'task_id': 'T10', 'duration': 3, 'demands': [3, 4, 2], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 11, 'demands': [2, 6, 8], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 3, 'demands': [2, 1, 4], 'successors': ['T13', 'T8']}, {'task_id': 'T13', 'duration': 3, 'demands': [3, 8, 8], 'successors': []}, {'task_id': 'T14', 'duration': 5, 'demands': [5, 2, 2], 'successors': ['T15', 'T16']}, {'task_id': 'T15', 'duration': 14, 'demands': [2, 0, 7], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 1, 'demands': [3, 1, 1], 'successors': ['T17']}, {'task_id': 'T17', 'duration': 4, 'demands': [0, 2, 4], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 6, 'end': 8, 'duration': 2, 'demands': [3, 7, 1]}, {'task': 'T3', 'start': 1, 'end': 6, 'duration': 5, 'demands': [8, 4, 4]}, {'task': 'T4', 'start': 8, 'end': 11, 'duration': 3, 'demands': [8, 3, 2]}, {'task': 'T5', 'start': 11, 'end': 13, 'duration': 2, 'demands': [4, 1, 5]}, {'task': 'T6', 'start': 13, 'end': 17, 'duration': 4, 'demands': [5, 5, 8]}, {'task': 'T7', 'start': 11, 'end': 18, 'duration': 7, 'demands': [3, 5, 1]}, {'task': 'T8', 'start': 8, 'end': 9, 'duration': 1, 'demands': [2, 3, 6]}, {'task': 'T9', 'start': 17, 'end': 19, 'duration': 2, 'demands': [2, 4, 3]}, {'task': 'T10', 'start': 18, 'end': 21, 'duration': 3, 'demands': [3, 4, 2]}, {'task': 'T11', 'start': 21, 'end': 32, 'duration': 11, 'demands': [2, 6, 8]}, {'task': 'T12', 'start': 0, 'end': 3, 'duration': 3, 'demands': [2, 1, 4]}, {'task': 'T13', 'start': 55, 'end': 58, 'duration': 3, 'demands': [3, 8, 8]}, {'task': 'T14', 'start': 32, 'end': 37, 'duration': 5, 'demands': [5, 2, 2]}, {'task': 'T15', 'start': 37, 'end': 51, 'duration': 14, 'demands': [2, 0, 7]}, {'task': 'T16', 'start': 37, 'end': 38, 'duration': 1, 'demands': [3, 1, 1]}, {'task': 'T17', 'start': 51, 'end': 55, 'duration': 4, 'demands': [0, 2, 4]}, {'task': 'T18', 'start': 55, 'end': 56, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| # total_tasks=17 |
| # resource_types_count=3 |
| # resources=A, B, C |
| resource_id,capacity |
| A,14 |
| B,9 |
| C,13 |
| task_code,task_duration,resource_demands,successor_tasks |
| T1,1,""0, 0, 0"",""T2, T3, T4"" |
| T2,6,""2, 9, 4"",""T5, T6"" |
| T3,5,""7, 7, 2"",""T5, T6"" |
| T4,1,""9, 1, 4"",""T7, T8"" |
| T5,8,""5, 1, 3"",""T11, T12"" |
| T6,4,""3, 5, 4"",""T9, T10, T17"" |
| T7,5,""3, 6, 1"",""T9, T12"" |
| T8,5,""3, 6, 8"",""T10, T11"" |
| T9,3,""4, 3, 3"",""T13"" |
| T10,14,""3, 3, 5"",""T13"" |
| T11,1,""2, 2, 3"",""none"" |
| T12,1,""6, 1, 3"",""T13"" |
| T13,1,""1, 6, 5"",""T14, T15"" |
| T14,2,""7, 3, 7"",""T16"" |
| T15,6,""4, 4, 6"",""T16"" |
| T16,3,""1, 8, 8"",""T17"" |
| T17,1,""0, 0, 0"",""none"" |
|
|
| Also, when you send the schedule back, just stick to a simple JSON layout so it's easy to parse. Something like this is what I expect to see: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| That's just the shape I wantβ""solution"" is an array of task entries. Each entry shows which task it is and the start and end times you picked for it. Keep it casual: task is the task identifier from the instance, start and end are the times (in the same time units used in the instance), and end should be after start. This block is only a sketch of the expected shape, not the actual answer. |
|
|
| Please make sure you use the exact identifiers from the instance input β do not rename tasks 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"".","{'nr_tasks': 17, 'nr_resources': 3, 'capacities': [14, 9, 13], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 6, 'demands': [2, 9, 4], 'successors': [4, 5]}, {'duration': 5, 'demands': [7, 7, 2], 'successors': [4, 5]}, {'duration': 1, 'demands': [9, 1, 4], 'successors': [6, 7]}, {'duration': 8, 'demands': [5, 1, 3], 'successors': [10, 11]}, {'duration': 4, 'demands': [3, 5, 4], 'successors': [8, 9, 16]}, {'duration': 5, 'demands': [3, 6, 1], 'successors': [8, 11]}, {'duration': 5, 'demands': [3, 6, 8], 'successors': [9, 10]}, {'duration': 3, 'demands': [4, 3, 3], 'successors': [12]}, {'duration': 14, 'demands': [3, 3, 5], 'successors': [12]}, {'duration': 1, 'demands': [2, 2, 3], 'successors': []}, {'duration': 1, 'demands': [6, 1, 3], 'successors': [12]}, {'duration': 1, 'demands': [1, 6, 5], 'successors': [13, 14]}, {'duration': 2, 'demands': [7, 3, 7], 'successors': [15]}, {'duration': 6, 'demands': [4, 4, 6], 'successors': [15]}, {'duration': 3, 'demands': [1, 8, 8], 'successors': [16]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 7, 'duration': 6, 'demands': [2, 9, 4]}, {'task': 2, 'start': 7, 'end': 12, 'duration': 5, 'demands': [7, 7, 2]}, {'task': 3, 'start': 12, 'end': 13, 'duration': 1, 'demands': [9, 1, 4]}, {'task': 4, 'start': 13, 'end': 21, 'duration': 8, 'demands': [5, 1, 3]}, {'task': 5, 'start': 12, 'end': 16, 'duration': 4, 'demands': [3, 5, 4]}, {'task': 6, 'start': 21, 'end': 26, 'duration': 5, 'demands': [3, 6, 1]}, {'task': 7, 'start': 16, 'end': 21, 'duration': 5, 'demands': [3, 6, 8]}, {'task': 8, 'start': 26, 'end': 29, 'duration': 3, 'demands': [4, 3, 3]}, {'task': 9, 'start': 21, 'end': 35, 'duration': 14, 'demands': [3, 3, 5]}, {'task': 10, 'start': 27, 'end': 28, 'duration': 1, 'demands': [2, 2, 3]}, {'task': 11, 'start': 26, 'end': 27, 'duration': 1, 'demands': [6, 1, 3]}, {'task': 12, 'start': 35, 'end': 36, 'duration': 1, 'demands': [1, 6, 5]}, {'task': 13, 'start': 36, 'end': 38, 'duration': 2, 'demands': [7, 3, 7]}, {'task': 14, 'start': 36, 'end': 42, 'duration': 6, 'demands': [4, 4, 6]}, {'task': 15, 'start': 42, 'end': 45, 'duration': 3, 'demands': [1, 8, 8]}, {'task': 16, 'start': 45, 'end': 46, 'duration': 1, 'demands': [0, 0, 0]}]",46.0,"{'problem_type': 'RCPSP', 'nr_tasks': 17, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 14}, {'resource_id': 'B', 'capacity': 9}, {'resource_id': 'C', 'capacity': 13}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 6, 'demands': [2, 9, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T3', 'duration': 5, 'demands': [7, 7, 2], 'successors': ['T5', 'T6']}, {'task_id': 'T4', 'duration': 1, 'demands': [9, 1, 4], 'successors': ['T7', 'T8']}, {'task_id': 'T5', 'duration': 8, 'demands': [5, 1, 3], 'successors': ['T11', 'T12']}, {'task_id': 'T6', 'duration': 4, 'demands': [3, 5, 4], 'successors': ['T9', 'T10', 'T17']}, {'task_id': 'T7', 'duration': 5, 'demands': [3, 6, 1], 'successors': ['T9', 'T12']}, {'task_id': 'T8', 'duration': 5, 'demands': [3, 6, 8], 'successors': ['T10', 'T11']}, {'task_id': 'T9', 'duration': 3, 'demands': [4, 3, 3], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 14, 'demands': [3, 3, 5], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 1, 'demands': [2, 2, 3], 'successors': []}, {'task_id': 'T12', 'duration': 1, 'demands': [6, 1, 3], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 1, 'demands': [1, 6, 5], 'successors': ['T14', 'T15']}, {'task_id': 'T14', 'duration': 2, 'demands': [7, 3, 7], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 6, 'demands': [4, 4, 6], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 3, 'demands': [1, 8, 8], 'successors': ['T17']}, {'task_id': 'T17', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 7, 'duration': 6, 'demands': [2, 9, 4]}, {'task': 'T3', 'start': 7, 'end': 12, 'duration': 5, 'demands': [7, 7, 2]}, {'task': 'T4', 'start': 12, 'end': 13, 'duration': 1, 'demands': [9, 1, 4]}, {'task': 'T5', 'start': 13, 'end': 21, 'duration': 8, 'demands': [5, 1, 3]}, {'task': 'T6', 'start': 12, 'end': 16, 'duration': 4, 'demands': [3, 5, 4]}, {'task': 'T7', 'start': 21, 'end': 26, 'duration': 5, 'demands': [3, 6, 1]}, {'task': 'T8', 'start': 16, 'end': 21, 'duration': 5, 'demands': [3, 6, 8]}, {'task': 'T9', 'start': 26, 'end': 29, 'duration': 3, 'demands': [4, 3, 3]}, {'task': 'T10', 'start': 21, 'end': 35, 'duration': 14, 'demands': [3, 3, 5]}, {'task': 'T11', 'start': 27, 'end': 28, 'duration': 1, 'demands': [2, 2, 3]}, {'task': 'T12', 'start': 26, 'end': 27, 'duration': 1, 'demands': [6, 1, 3]}, {'task': 'T13', 'start': 35, 'end': 36, 'duration': 1, 'demands': [1, 6, 5]}, {'task': 'T14', 'start': 36, 'end': 38, 'duration': 2, 'demands': [7, 3, 7]}, {'task': 'T15', 'start': 36, 'end': 42, 'duration': 6, 'demands': [4, 4, 6]}, {'task': 'T16', 'start': 42, 'end': 45, 'duration': 3, 'demands': [1, 8, 8]}, {'task': 'T17', 'start': 45, 'end': 46, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| { |
| ""total_items"": 21, |
| ""total_resource_types"": 3, |
| ""resources"": [ |
| 1, |
| 2, |
| 3 |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": 1, |
| ""capacity"": 13 |
| }, |
| { |
| ""resource_id"": 2, |
| ""capacity"": 10 |
| }, |
| { |
| ""resource_id"": 3, |
| ""capacity"": 14 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""item_id"": ""T1"", |
| ""duration_minutes"": 1, |
| ""resource_requirements"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_item_ids"": [ |
| ""T2"", |
| ""T3"" |
| ] |
| }, |
| { |
| ""item_id"": ""T2"", |
| ""duration_minutes"": 4, |
| ""resource_requirements"": [ |
| 4, |
| 10, |
| 1 |
| ], |
| ""successor_item_ids"": [ |
| ""T6"" |
| ] |
| }, |
| { |
| ""item_id"": ""T3"", |
| ""duration_minutes"": 1, |
| ""resource_requirements"": [ |
| 5, |
| 7, |
| 5 |
| ], |
| ""successor_item_ids"": [ |
| ""T5"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""item_id"": ""T4"", |
| ""duration_minutes"": 6, |
| ""resource_requirements"": [ |
| 9, |
| 3, |
| 4 |
| ], |
| ""successor_item_ids"": [ |
| ""T6"", |
| ""T7"" |
| ] |
| }, |
| { |
| ""item_id"": ""T5"", |
| ""duration_minutes"": 13, |
| ""resource_requirements"": [ |
| 3, |
| 2, |
| 5 |
| ], |
| ""successor_item_ids"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""item_id"": ""T6"", |
| ""duration_minutes"": 5, |
| ""resource_requirements"": [ |
| 6, |
| 3, |
| 6 |
| ], |
| ""successor_item_ids"": [ |
| ""T12"" |
| ] |
| }, |
| { |
| ""item_id"": ""T7"", |
| ""duration_minutes"": 4, |
| ""resource_requirements"": [ |
| 2, |
| 4, |
| 3 |
| ], |
| ""successor_item_ids"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""item_id"": ""T8"", |
| ""duration_minutes"": 3, |
| ""resource_requirements"": [ |
| 2, |
| 3, |
| 4 |
| ], |
| ""successor_item_ids"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""item_id"": ""T9"", |
| ""duration_minutes"": 1, |
| ""resource_requirements"": [ |
| 3, |
| 4, |
| 2 |
| ], |
| ""successor_item_ids"": [ |
| ""T13"" |
| ] |
| }, |
| { |
| ""item_id"": ""T10"", |
| ""duration_minutes"": 2, |
| ""resource_requirements"": [ |
| 5, |
| 2, |
| 3 |
| ], |
| ""successor_item_ids"": [] |
| }, |
| { |
| ""item_id"": ""T11"", |
| ""duration_minutes"": 3, |
| ""resource_requirements"": [ |
| 4, |
| 5, |
| 3 |
| ], |
| ""successor_item_ids"": [ |
| ""T14"" |
| ] |
| }, |
| { |
| ""item_id"": ""T12"", |
| ""duration_minutes"": 1, |
| ""resource_requirements"": [ |
| 4, |
| 1, |
| 5 |
| ], |
| ""successor_item_ids"": [ |
| ""T13"", |
| ""T15"" |
| ] |
| }, |
| { |
| ""item_id"": ""T13"", |
| ""duration_minutes"": 2, |
| ""resource_requirements"": [ |
| 2, |
| 5, |
| 5 |
| ], |
| ""successor_item_ids"": [ |
| ""T16"" |
| ] |
| }, |
| { |
| ""item_id"": ""T14"", |
| ""duration_minutes"": 9, |
| ""resource_requirements"": [ |
| 4, |
| 3, |
| 6 |
| ], |
| ""successor_item_ids"": [] |
| }, |
| { |
| ""item_id"": ""T15"", |
| ""duration_minutes"": 1, |
| ""resource_requirements"": [ |
| 1, |
| 7, |
| 8 |
| ], |
| ""successor_item_ids"": [ |
| ""T17"" |
| ] |
| }, |
| { |
| ""item_id"": ""T16"", |
| ""duration_minutes"": 1, |
| ""resource_requirements"": [ |
| 6, |
| 3, |
| 7 |
| ], |
| ""successor_item_ids"": [ |
| ""T20"" |
| ] |
| }, |
| { |
| ""item_id"": ""T17"", |
| ""duration_minutes"": 8, |
| ""resource_requirements"": [ |
| 2, |
| 2, |
| 4 |
| ], |
| ""successor_item_ids"": [ |
| ""T19"" |
| ] |
| }, |
| { |
| ""item_id"": ""T18"", |
| ""duration_minutes"": 4, |
| ""resource_requirements"": [ |
| 5, |
| 5, |
| 5 |
| ], |
| ""successor_item_ids"": [ |
| ""T19"" |
| ] |
| }, |
| { |
| ""item_id"": ""T19"", |
| ""duration_minutes"": 6, |
| ""resource_requirements"": [ |
| 2, |
| 6, |
| 4 |
| ], |
| ""successor_item_ids"": [ |
| ""T21"" |
| ] |
| }, |
| { |
| ""item_id"": ""T20"", |
| ""duration_minutes"": 2, |
| ""resource_requirements"": [ |
| 1, |
| 4, |
| 1 |
| ], |
| ""successor_item_ids"": [ |
| ""T21"" |
| ] |
| }, |
| { |
| ""item_id"": ""T21"", |
| ""duration_minutes"": 1, |
| ""resource_requirements"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_item_ids"": [] |
| } |
| ] |
| } |
|
|
| When you send back the schedule, just use this simple JSON layout so it's easy to parse and check: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of that as a short form: ""solution"" holds a list of all the items, and each item says which task it is and when it starts and finishes. Keep it informal β task is the item label from the event list, and start/end are the times on the event clock. |
| |
| This JSON is just a sketch of the shape I need, not the actual schedule β you'll replace the placeholders with the real identifiers and numeric times. |
|
|
| Please make sure to use the exact identifiers from the instance input β do not rename them or invent new labels. |
| - for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [13, 10, 14], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2]}, {'duration': 4, 'demands': [4, 10, 1], 'successors': [5]}, {'duration': 1, 'demands': [5, 7, 5], 'successors': [4, 7]}, {'duration': 6, 'demands': [9, 3, 4], 'successors': [5, 6]}, {'duration': 13, 'demands': [3, 2, 5], 'successors': [8, 9]}, {'duration': 5, 'demands': [6, 3, 6], 'successors': [11]}, {'duration': 4, 'demands': [2, 4, 3], 'successors': [8, 9]}, {'duration': 3, 'demands': [2, 3, 4], 'successors': [8, 9]}, {'duration': 1, 'demands': [3, 4, 2], 'successors': [12]}, {'duration': 2, 'demands': [5, 2, 3], 'successors': []}, {'duration': 3, 'demands': [4, 5, 3], 'successors': [13]}, {'duration': 1, 'demands': [4, 1, 5], 'successors': [12, 14]}, {'duration': 2, 'demands': [2, 5, 5], 'successors': [15]}, {'duration': 9, 'demands': [4, 3, 6], 'successors': []}, {'duration': 1, 'demands': [1, 7, 8], 'successors': [16]}, {'duration': 1, 'demands': [6, 3, 7], 'successors': [19]}, {'duration': 8, 'demands': [2, 2, 4], 'successors': [18]}, {'duration': 4, 'demands': [5, 5, 5], 'successors': [18]}, {'duration': 6, 'demands': [2, 6, 4], 'successors': [20]}, {'duration': 2, 'demands': [1, 4, 1], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 6, 'end': 10, 'duration': 4, 'demands': [4, 10, 1]}, {'task': 2, 'start': 10, 'end': 11, 'duration': 1, 'demands': [5, 7, 5]}, {'task': 3, 'start': 0, 'end': 6, 'duration': 6, 'demands': [9, 3, 4]}, {'task': 4, 'start': 11, 'end': 24, 'duration': 13, 'demands': [3, 2, 5]}, {'task': 5, 'start': 10, 'end': 15, 'duration': 5, 'demands': [6, 3, 6]}, {'task': 6, 'start': 11, 'end': 15, 'duration': 4, 'demands': [2, 4, 3]}, {'task': 7, 'start': 17, 'end': 20, 'duration': 3, 'demands': [2, 3, 4]}, {'task': 8, 'start': 24, 'end': 25, 'duration': 1, 'demands': [3, 4, 2]}, {'task': 9, 'start': 25, 'end': 27, 'duration': 2, 'demands': [5, 2, 3]}, {'task': 10, 'start': 0, 'end': 3, 'duration': 3, 'demands': [4, 5, 3]}, {'task': 11, 'start': 15, 'end': 16, 'duration': 1, 'demands': [4, 1, 5]}, {'task': 12, 'start': 25, 'end': 27, 'duration': 2, 'demands': [2, 5, 5]}, {'task': 13, 'start': 24, 'end': 33, 'duration': 9, 'demands': [4, 3, 6]}, {'task': 14, 'start': 16, 'end': 17, 'duration': 1, 'demands': [1, 7, 8]}, {'task': 15, 'start': 27, 'end': 28, 'duration': 1, 'demands': [6, 3, 7]}, {'task': 16, 'start': 17, 'end': 25, 'duration': 8, 'demands': [2, 2, 4]}, {'task': 17, 'start': 20, 'end': 24, 'duration': 4, 'demands': [5, 5, 5]}, {'task': 18, 'start': 28, 'end': 34, 'duration': 6, 'demands': [2, 6, 4]}, {'task': 19, 'start': 33, 'end': 35, 'duration': 2, 'demands': [1, 4, 1]}, {'task': 20, 'start': 35, 'end': 36, 'duration': 1, 'demands': [0, 0, 0]}]",36.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 13}, {'resource_id': 2, 'capacity': 10}, {'resource_id': 3, 'capacity': 14}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3']}, {'task_id': 'T2', 'duration': 4, 'demands': [4, 10, 1], 'successors': ['T6']}, {'task_id': 'T3', 'duration': 1, 'demands': [5, 7, 5], 'successors': ['T5', 'T8']}, {'task_id': 'T4', 'duration': 6, 'demands': [9, 3, 4], 'successors': ['T6', 'T7']}, {'task_id': 'T5', 'duration': 13, 'demands': [3, 2, 5], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 5, 'demands': [6, 3, 6], 'successors': ['T12']}, {'task_id': 'T7', 'duration': 4, 'demands': [2, 4, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 3, 'demands': [2, 3, 4], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 1, 'demands': [3, 4, 2], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 2, 'demands': [5, 2, 3], 'successors': []}, {'task_id': 'T11', 'duration': 3, 'demands': [4, 5, 3], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 1, 'demands': [4, 1, 5], 'successors': ['T13', 'T15']}, {'task_id': 'T13', 'duration': 2, 'demands': [2, 5, 5], 'successors': ['T16']}, {'task_id': 'T14', 'duration': 9, 'demands': [4, 3, 6], 'successors': []}, {'task_id': 'T15', 'duration': 1, 'demands': [1, 7, 8], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 1, 'demands': [6, 3, 7], 'successors': ['T20']}, {'task_id': 'T17', 'duration': 8, 'demands': [2, 2, 4], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 4, 'demands': [5, 5, 5], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 6, 'demands': [2, 6, 4], 'successors': ['T21']}, {'task_id': 'T20', 'duration': 2, 'demands': [1, 4, 1], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 6, 'end': 10, 'duration': 4, 'demands': [4, 10, 1]}, {'task': 'T3', 'start': 10, 'end': 11, 'duration': 1, 'demands': [5, 7, 5]}, {'task': 'T4', 'start': 0, 'end': 6, 'duration': 6, 'demands': [9, 3, 4]}, {'task': 'T5', 'start': 11, 'end': 24, 'duration': 13, 'demands': [3, 2, 5]}, {'task': 'T6', 'start': 10, 'end': 15, 'duration': 5, 'demands': [6, 3, 6]}, {'task': 'T7', 'start': 11, 'end': 15, 'duration': 4, 'demands': [2, 4, 3]}, {'task': 'T8', 'start': 17, 'end': 20, 'duration': 3, 'demands': [2, 3, 4]}, {'task': 'T9', 'start': 24, 'end': 25, 'duration': 1, 'demands': [3, 4, 2]}, {'task': 'T10', 'start': 25, 'end': 27, 'duration': 2, 'demands': [5, 2, 3]}, {'task': 'T11', 'start': 0, 'end': 3, 'duration': 3, 'demands': [4, 5, 3]}, {'task': 'T12', 'start': 15, 'end': 16, 'duration': 1, 'demands': [4, 1, 5]}, {'task': 'T13', 'start': 25, 'end': 27, 'duration': 2, 'demands': [2, 5, 5]}, {'task': 'T14', 'start': 24, 'end': 33, 'duration': 9, 'demands': [4, 3, 6]}, {'task': 'T15', 'start': 16, 'end': 17, 'duration': 1, 'demands': [1, 7, 8]}, {'task': 'T16', 'start': 27, 'end': 28, 'duration': 1, 'demands': [6, 3, 7]}, {'task': 'T17', 'start': 17, 'end': 25, 'duration': 8, 'demands': [2, 2, 4]}, {'task': 'T18', 'start': 20, 'end': 24, 'duration': 4, 'demands': [5, 5, 5]}, {'task': 'T19', 'start': 28, 'end': 34, 'duration': 6, 'demands': [2, 6, 4]}, {'task': 'T20', 'start': 33, 'end': 35, 'duration': 2, 'demands': [1, 4, 1]}, {'task': 'T21', 'start': 35, 'end': 36, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| There are 21 operations, 3 resource types, with capacities . |
|
|
| | resource_id | capacity | |
| |---|---| |
| | 0 | 11 | |
| | 1 | 12 | |
| | 2 | 13 | |
|
|
| | operation_id | processing_time | resource_requirements | immediate_successors | |
| |---|---|---|---| |
| | T1 | 3 | 4, 8, 3 | T4, T7 | |
| | T2 | 4 | 3, 8, 5 | T4, T7 | |
| | T3 | 5 | 3, 3, 2 | T4, T5, T6 | |
| | T4 | 9 | 3, 1, 5 | T8, T9, T11 | |
| | T5 | 3 | 7, 8, 4 | T8, T9 | |
| | T6 | 4 | 4, 4, 3 | T8, T10 | |
| | T7 | 2 | 4, 3, 3 | T9, T10 | |
| | T8 | 7 | 4, 3, 1 | T13, T14 | |
| | T9 | 4 | 3, 3, 4 | T13 | |
| | T10 | 6 | 2, 3, 2 | T12 | |
| | T11 | 7 | 7, 2, 7 | T12, T15 | |
| | T12 | 2 | 1, 5, 5 | T16 | |
| | T13 | 1 | 2, 4, 3 | T16 | |
| | T14 | 1 | 3, 9, 4 | T16, T18 | |
| | T15 | 3 | 1, 9, 3 | T17 | |
| | T16 | 4 | 3, 7, 7 | T19 | |
| | T17 | 3 | 4, 3, 4 | none | |
| | T18 | 5 | 5, 5, 4 | T19 | |
| | T19 | 7 | 1, 12, 3 | T21 | |
| | T20 | 1 | 0, 1, 3 | none | |
| | T21 | 2 | 2, 1, 3 | none | |
|
|
| Schedule each operation exactly once, respecting resource capacities and precedence constraints, aiming to minimize the finish time of the last operation. |
|
|
| You can return the schedule in a simple JSON shape β nothing fancy β just a list of tasks with their start and end times, for example: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This shows the structure I expect: ""solution"" is an array of entries, and each entry is a task record with the task identifier plus the start and end times (end would be the start plus the task's duration). Treat it like a little form for each job. |
| |
| Note that the JSON above is just a sketch of the expected shape β not the actual schedule. When you submit your answer, fill in the real task identifiers and times. |
| |
| All identifiers must be used exactly as they appear in the instance input β no renaming and no new labels. |
| - for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [11, 12, 13], 'tasks': [{'duration': 3, 'demands': [4, 8, 3], 'successors': [3, 6]}, {'duration': 4, 'demands': [3, 8, 5], 'successors': [3, 6]}, {'duration': 5, 'demands': [3, 3, 2], 'successors': [3, 4, 5]}, {'duration': 9, 'demands': [3, 1, 5], 'successors': [7, 8, 10]}, {'duration': 3, 'demands': [7, 8, 4], 'successors': [7, 8]}, {'duration': 4, 'demands': [4, 4, 3], 'successors': [7, 9]}, {'duration': 2, 'demands': [4, 3, 3], 'successors': [8, 9]}, {'duration': 7, 'demands': [4, 3, 1], 'successors': [12, 13]}, {'duration': 4, 'demands': [3, 3, 4], 'successors': [12]}, {'duration': 6, 'demands': [2, 3, 2], 'successors': [11]}, {'duration': 7, 'demands': [7, 2, 7], 'successors': [11, 14]}, {'duration': 2, 'demands': [1, 5, 5], 'successors': [15]}, {'duration': 1, 'demands': [2, 4, 3], 'successors': [15]}, {'duration': 1, 'demands': [3, 9, 4], 'successors': [15, 17]}, {'duration': 3, 'demands': [1, 9, 3], 'successors': [16]}, {'duration': 4, 'demands': [3, 7, 7], 'successors': [18]}, {'duration': 3, 'demands': [4, 3, 4], 'successors': []}, {'duration': 5, 'demands': [5, 5, 4], 'successors': [18]}, {'duration': 7, 'demands': [1, 12, 3], 'successors': [20]}, {'duration': 1, 'demands': [0, 1, 3], 'successors': []}, {'duration': 2, 'demands': [2, 1, 3], 'successors': []}]}","[{'task': 0, 'start': 4, 'end': 7, 'duration': 3, 'demands': [4, 8, 3]}, {'task': 1, 'start': 0, 'end': 4, 'duration': 4, 'demands': [3, 8, 5]}, {'task': 2, 'start': 0, 'end': 5, 'duration': 5, 'demands': [3, 3, 2]}, {'task': 3, 'start': 7, 'end': 16, 'duration': 9, 'demands': [3, 1, 5]}, {'task': 4, 'start': 9, 'end': 12, 'duration': 3, 'demands': [7, 8, 4]}, {'task': 5, 'start': 5, 'end': 9, 'duration': 4, 'demands': [4, 4, 3]}, {'task': 6, 'start': 7, 'end': 9, 'duration': 2, 'demands': [4, 3, 3]}, {'task': 7, 'start': 18, 'end': 25, 'duration': 7, 'demands': [4, 3, 1]}, {'task': 8, 'start': 25, 'end': 29, 'duration': 4, 'demands': [3, 3, 4]}, {'task': 9, 'start': 12, 'end': 18, 'duration': 6, 'demands': [2, 3, 2]}, {'task': 10, 'start': 16, 'end': 23, 'duration': 7, 'demands': [7, 2, 7]}, {'task': 11, 'start': 27, 'end': 29, 'duration': 2, 'demands': [1, 5, 5]}, {'task': 12, 'start': 29, 'end': 30, 'duration': 1, 'demands': [2, 4, 3]}, {'task': 13, 'start': 26, 'end': 27, 'duration': 1, 'demands': [3, 9, 4]}, {'task': 14, 'start': 23, 'end': 26, 'duration': 3, 'demands': [1, 9, 3]}, {'task': 15, 'start': 30, 'end': 34, 'duration': 4, 'demands': [3, 7, 7]}, {'task': 16, 'start': 27, 'end': 30, 'duration': 3, 'demands': [4, 3, 4]}, {'task': 17, 'start': 29, 'end': 34, 'duration': 5, 'demands': [5, 5, 4]}, {'task': 18, 'start': 34, 'end': 41, 'duration': 7, 'demands': [1, 12, 3]}, {'task': 19, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 1, 3]}, {'task': 20, 'start': 41, 'end': 43, 'duration': 2, 'demands': [2, 1, 3]}]",43.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 11}, {'resource_id': 1, 'capacity': 12}, {'resource_id': 2, 'capacity': 13}], 'task_records': [{'task_id': 'T1', 'duration': 3, 'demands': [4, 8, 3], 'successors': ['T4', 'T7']}, {'task_id': 'T2', 'duration': 4, 'demands': [3, 8, 5], 'successors': ['T4', 'T7']}, {'task_id': 'T3', 'duration': 5, 'demands': [3, 3, 2], 'successors': ['T4', 'T5', 'T6']}, {'task_id': 'T4', 'duration': 9, 'demands': [3, 1, 5], 'successors': ['T8', 'T9', 'T11']}, {'task_id': 'T5', 'duration': 3, 'demands': [7, 8, 4], 'successors': ['T8', 'T9']}, {'task_id': 'T6', 'duration': 4, 'demands': [4, 4, 3], 'successors': ['T8', 'T10']}, {'task_id': 'T7', 'duration': 2, 'demands': [4, 3, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 7, 'demands': [4, 3, 1], 'successors': ['T13', 'T14']}, {'task_id': 'T9', 'duration': 4, 'demands': [3, 3, 4], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 6, 'demands': [2, 3, 2], 'successors': ['T12']}, {'task_id': 'T11', 'duration': 7, 'demands': [7, 2, 7], 'successors': ['T12', 'T15']}, {'task_id': 'T12', 'duration': 2, 'demands': [1, 5, 5], 'successors': ['T16']}, {'task_id': 'T13', 'duration': 1, 'demands': [2, 4, 3], 'successors': ['T16']}, {'task_id': 'T14', 'duration': 1, 'demands': [3, 9, 4], 'successors': ['T16', 'T18']}, {'task_id': 'T15', 'duration': 3, 'demands': [1, 9, 3], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 4, 'demands': [3, 7, 7], 'successors': ['T19']}, {'task_id': 'T17', 'duration': 3, 'demands': [4, 3, 4], 'successors': []}, {'task_id': 'T18', 'duration': 5, 'demands': [5, 5, 4], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 7, 'demands': [1, 12, 3], 'successors': ['T21']}, {'task_id': 'T20', 'duration': 1, 'demands': [0, 1, 3], 'successors': []}, {'task_id': 'T21', 'duration': 2, 'demands': [2, 1, 3], 'successors': []}]}","[{'task': 'T1', 'start': 4, 'end': 7, 'duration': 3, 'demands': [4, 8, 3]}, {'task': 'T2', 'start': 0, 'end': 4, 'duration': 4, 'demands': [3, 8, 5]}, {'task': 'T3', 'start': 0, 'end': 5, 'duration': 5, 'demands': [3, 3, 2]}, {'task': 'T4', 'start': 7, 'end': 16, 'duration': 9, 'demands': [3, 1, 5]}, {'task': 'T5', 'start': 9, 'end': 12, 'duration': 3, 'demands': [7, 8, 4]}, {'task': 'T6', 'start': 5, 'end': 9, 'duration': 4, 'demands': [4, 4, 3]}, {'task': 'T7', 'start': 7, 'end': 9, 'duration': 2, 'demands': [4, 3, 3]}, {'task': 'T8', 'start': 18, 'end': 25, 'duration': 7, 'demands': [4, 3, 1]}, {'task': 'T9', 'start': 25, 'end': 29, 'duration': 4, 'demands': [3, 3, 4]}, {'task': 'T10', 'start': 12, 'end': 18, 'duration': 6, 'demands': [2, 3, 2]}, {'task': 'T11', 'start': 16, 'end': 23, 'duration': 7, 'demands': [7, 2, 7]}, {'task': 'T12', 'start': 27, 'end': 29, 'duration': 2, 'demands': [1, 5, 5]}, {'task': 'T13', 'start': 29, 'end': 30, 'duration': 1, 'demands': [2, 4, 3]}, {'task': 'T14', 'start': 26, 'end': 27, 'duration': 1, 'demands': [3, 9, 4]}, {'task': 'T15', 'start': 23, 'end': 26, 'duration': 3, 'demands': [1, 9, 3]}, {'task': 'T16', 'start': 30, 'end': 34, 'duration': 4, 'demands': [3, 7, 7]}, {'task': 'T17', 'start': 27, 'end': 30, 'duration': 3, 'demands': [4, 3, 4]}, {'task': 'T18', 'start': 29, 'end': 34, 'duration': 5, 'demands': [5, 5, 4]}, {'task': 'T19', 'start': 34, 'end': 41, 'duration': 7, 'demands': [1, 12, 3]}, {'task': 'T20', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 1, 3]}, {'task': 'T21', 'start': 41, 'end': 43, 'duration': 2, 'demands': [2, 1, 3]}]",6,markdown_table,0 |
| RCPSP,RCPSP,"Picture this: the head nurse has a list of fixed-time procedures, each of which consumes one or more operating rooms and staff members while it runs, and several procedures are chained so one canβt start until another has finished. The task is simply choosing start times so no rooms or staff are double-booked, every dependency is honored, and every procedure is scheduled once. A clearer plan is the one where the whole set of procedures is done sooner β find each procedureβs end by adding its duration to its start, then take the latest of those end times; a smaller latest end time means a better schedule. The precise patient procedures, their lengths, resource capacities, and ordering constraints are shown below. |
| |
| There are 20 procedures to schedule using 3 resource types with capacities . |
| Procedure T1 runs for 1 time units, consumes 0, 0, 0 of the resources while running, and must finish before its successor procedures T2, T3, T4 can start. |
| Procedure T2 runs for 6 time units, consumes 5, 6, 1 of the resources while running, and must finish before its successor procedures T5, T8 can start. |
| Procedure T3 runs for 9 time units, consumes 7, 5, 2 of the resources while running, and must finish before its successor procedures T5, T8 can start. |
| Procedure T4 runs for 5 time units, consumes 7, 3, 2 of the resources while running, and must finish before its successor procedures T6, T8 can start. |
| Procedure T5 runs for 2 time units, consumes 5, 1, 6 of the resources while running, and must finish before its successor procedures T9 can start. |
| Procedure T6 runs for 2 time units, consumes 3, 7, 8 of the resources while running, and must finish before its successor procedures none can start. |
| Procedure T7 runs for 9 time units, consumes 2, 4, 2 of the resources while running, and must finish before its successor procedures T9, T10 can start. |
| Procedure T8 runs for 1 time units, consumes 4, 7, 6 of the resources while running, and must finish before its successor procedures T9, T10 can start. |
| Procedure T9 runs for 6 time units, consumes 3, 2, 3 of the resources while running, and must finish before its successor procedures T11 can start. |
| Procedure T10 runs for 5 time units, consumes 4, 1, 3 of the resources while running, and must finish before its successor procedures T11 can start. |
| Procedure T11 runs for 5 time units, consumes 1, 2, 4 of the resources while running, and must finish before its successor procedures T14 can start. |
| Procedure T12 runs for 4 time units, consumes 1, 9, 3 of the resources while running, and must finish before its successor procedures T13 can start. |
| Procedure T13 runs for 6 time units, consumes 5, 4, 3 of the resources while running, and must finish before its successor procedures T16 can start. |
| Procedure T14 runs for 4 time units, consumes 7, 6, 4 of the resources while running, and must finish before its successor procedures T17 can start. |
| Procedure T15 runs for 4 time units, consumes 1, 3, 3 of the resources while running, and must finish before its successor procedures T18 can start. |
| Procedure T16 runs for 9 time units, consumes 3, 4, 1 of the resources while running, and must finish before its successor procedures T18 can start. |
| Procedure T17 runs for 7 time units, consumes 1, 0, 5 of the resources while running, and must finish before its successor procedures T19 can start. |
| Procedure T18 runs for 6 time units, consumes 0, 2, 5 of the resources while running, and must finish before its successor procedures T20 can start. |
| Procedure T19 runs for 5 time units, consumes 4, 2, 2 of the resources while running, and must finish before its successor procedures T20 can start. |
| Procedure T20 runs for 1 time units, consumes 0, 0, 0 of the resources while running, and must finish before its successor procedures none can start. |
| The head nurse will choose start times that respect these 20 procedures, the 3 resource capacities , and all precedence links, aiming to minimize the latest completion time. |
| |
| Also, to keep things machine-friendly and easy to check, please return the schedule using this simple JSON layout: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| It's just a little form: ""solution"" is a list, and each entry has the task identifier plus its start and end times. Think of each entry like a line on the schedule β which procedure, when it starts, and when it finishes. This is just the shape I expect, not the actual filled-in schedule. |
|
|
| Please make sure to use the exact task identifiers from the instance input β do not rename them or introduce new labels. |
| - for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'nr_tasks': 20, 'nr_resources': 3, 'capacities': [16, 12, 12], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 6, 'demands': [5, 6, 1], 'successors': [4, 7]}, {'duration': 9, 'demands': [7, 5, 2], 'successors': [4, 7]}, {'duration': 5, 'demands': [7, 3, 2], 'successors': [5, 7]}, {'duration': 2, 'demands': [5, 1, 6], 'successors': [8]}, {'duration': 2, 'demands': [3, 7, 8], 'successors': []}, {'duration': 9, 'demands': [2, 4, 2], 'successors': [8, 9]}, {'duration': 1, 'demands': [4, 7, 6], 'successors': [8, 9]}, {'duration': 6, 'demands': [3, 2, 3], 'successors': [10]}, {'duration': 5, 'demands': [4, 1, 3], 'successors': [10]}, {'duration': 5, 'demands': [1, 2, 4], 'successors': [13]}, {'duration': 4, 'demands': [1, 9, 3], 'successors': [12]}, {'duration': 6, 'demands': [5, 4, 3], 'successors': [15]}, {'duration': 4, 'demands': [7, 6, 4], 'successors': [16]}, {'duration': 4, 'demands': [1, 3, 3], 'successors': [17]}, {'duration': 9, 'demands': [3, 4, 1], 'successors': [17]}, {'duration': 7, 'demands': [1, 0, 5], 'successors': [18]}, {'duration': 6, 'demands': [0, 2, 5], 'successors': [19]}, {'duration': 5, 'demands': [4, 2, 2], 'successors': [19]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 7, 'duration': 6, 'demands': [5, 6, 1]}, {'task': 2, 'start': 4, 'end': 13, 'duration': 9, 'demands': [7, 5, 2]}, {'task': 3, 'start': 7, 'end': 12, 'duration': 5, 'demands': [7, 3, 2]}, {'task': 4, 'start': 13, 'end': 15, 'duration': 2, 'demands': [5, 1, 6]}, {'task': 5, 'start': 41, 'end': 43, 'duration': 2, 'demands': [3, 7, 8]}, {'task': 6, 'start': 7, 'end': 16, 'duration': 9, 'demands': [2, 4, 2]}, {'task': 7, 'start': 15, 'end': 16, 'duration': 1, 'demands': [4, 7, 6]}, {'task': 8, 'start': 16, 'end': 22, 'duration': 6, 'demands': [3, 2, 3]}, {'task': 9, 'start': 16, 'end': 21, 'duration': 5, 'demands': [4, 1, 3]}, {'task': 10, 'start': 22, 'end': 27, 'duration': 5, 'demands': [1, 2, 4]}, {'task': 11, 'start': 16, 'end': 20, 'duration': 4, 'demands': [1, 9, 3]}, {'task': 12, 'start': 20, 'end': 26, 'duration': 6, 'demands': [5, 4, 3]}, {'task': 13, 'start': 27, 'end': 31, 'duration': 4, 'demands': [7, 6, 4]}, {'task': 14, 'start': 0, 'end': 4, 'duration': 4, 'demands': [1, 3, 3]}, {'task': 15, 'start': 26, 'end': 35, 'duration': 9, 'demands': [3, 4, 1]}, {'task': 16, 'start': 31, 'end': 38, 'duration': 7, 'demands': [1, 0, 5]}, {'task': 17, 'start': 35, 'end': 41, 'duration': 6, 'demands': [0, 2, 5]}, {'task': 18, 'start': 38, 'end': 43, 'duration': 5, 'demands': [4, 2, 2]}, {'task': 19, 'start': 43, 'end': 44, 'duration': 1, 'demands': [0, 0, 0]}]",44.0,"{'problem_type': 'RCPSP', 'nr_tasks': 20, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 16}, {'resource_id': 1, 'capacity': 12}, {'resource_id': 2, 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 6, 'demands': [5, 6, 1], 'successors': ['T5', 'T8']}, {'task_id': 'T3', 'duration': 9, 'demands': [7, 5, 2], 'successors': ['T5', 'T8']}, {'task_id': 'T4', 'duration': 5, 'demands': [7, 3, 2], 'successors': ['T6', 'T8']}, {'task_id': 'T5', 'duration': 2, 'demands': [5, 1, 6], 'successors': ['T9']}, {'task_id': 'T6', 'duration': 2, 'demands': [3, 7, 8], 'successors': []}, {'task_id': 'T7', 'duration': 9, 'demands': [2, 4, 2], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 1, 'demands': [4, 7, 6], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 6, 'demands': [3, 2, 3], 'successors': ['T11']}, {'task_id': 'T10', 'duration': 5, 'demands': [4, 1, 3], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 5, 'demands': [1, 2, 4], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 4, 'demands': [1, 9, 3], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 6, 'demands': [5, 4, 3], 'successors': ['T16']}, {'task_id': 'T14', 'duration': 4, 'demands': [7, 6, 4], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 4, 'demands': [1, 3, 3], 'successors': ['T18']}, {'task_id': 'T16', 'duration': 9, 'demands': [3, 4, 1], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 7, 'demands': [1, 0, 5], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 6, 'demands': [0, 2, 5], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 5, 'demands': [4, 2, 2], 'successors': ['T20']}, {'task_id': 'T20', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 7, 'duration': 6, 'demands': [5, 6, 1]}, {'task': 'T3', 'start': 4, 'end': 13, 'duration': 9, 'demands': [7, 5, 2]}, {'task': 'T4', 'start': 7, 'end': 12, 'duration': 5, 'demands': [7, 3, 2]}, {'task': 'T5', 'start': 13, 'end': 15, 'duration': 2, 'demands': [5, 1, 6]}, {'task': 'T6', 'start': 41, 'end': 43, 'duration': 2, 'demands': [3, 7, 8]}, {'task': 'T7', 'start': 7, 'end': 16, 'duration': 9, 'demands': [2, 4, 2]}, {'task': 'T8', 'start': 15, 'end': 16, 'duration': 1, 'demands': [4, 7, 6]}, {'task': 'T9', 'start': 16, 'end': 22, 'duration': 6, 'demands': [3, 2, 3]}, {'task': 'T10', 'start': 16, 'end': 21, 'duration': 5, 'demands': [4, 1, 3]}, {'task': 'T11', 'start': 22, 'end': 27, 'duration': 5, 'demands': [1, 2, 4]}, {'task': 'T12', 'start': 16, 'end': 20, 'duration': 4, 'demands': [1, 9, 3]}, {'task': 'T13', 'start': 20, 'end': 26, 'duration': 6, 'demands': [5, 4, 3]}, {'task': 'T14', 'start': 27, 'end': 31, 'duration': 4, 'demands': [7, 6, 4]}, {'task': 'T15', 'start': 0, 'end': 4, 'duration': 4, 'demands': [1, 3, 3]}, {'task': 'T16', 'start': 26, 'end': 35, 'duration': 9, 'demands': [3, 4, 1]}, {'task': 'T17', 'start': 31, 'end': 38, 'duration': 7, 'demands': [1, 0, 5]}, {'task': 'T18', 'start': 35, 'end': 41, 'duration': 6, 'demands': [0, 2, 5]}, {'task': 'T19', 'start': 38, 'end': 43, 'duration': 5, 'demands': [4, 2, 2]}, {'task': 'T20', 'start': 43, 'end': 44, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| { |
| ""total_jobs_count"": 20, |
| ""resource_types_count"": 3, |
| ""resources"": [ |
| ""A"", |
| ""B"", |
| ""C"" |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": ""A"", |
| ""capacity"": 12 |
| }, |
| { |
| ""resource_id"": ""B"", |
| ""capacity"": 12 |
| }, |
| { |
| ""resource_id"": ""C"", |
| ""capacity"": 10 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""job_id"": ""T1"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_job_ids"": [ |
| ""T2"", |
| ""T3"", |
| ""T4"" |
| ] |
| }, |
| { |
| ""job_id"": ""T2"", |
| ""job_duration"": 5, |
| ""resource_demands"": [ |
| 5, |
| 8, |
| 2 |
| ], |
| ""successor_job_ids"": [ |
| ""T7"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""job_id"": ""T3"", |
| ""job_duration"": 2, |
| ""resource_demands"": [ |
| 3, |
| 5, |
| 2 |
| ], |
| ""successor_job_ids"": [ |
| ""T5"", |
| ""T7"" |
| ] |
| }, |
| { |
| ""job_id"": ""T4"", |
| ""job_duration"": 9, |
| ""resource_demands"": [ |
| 5, |
| 2, |
| 1 |
| ], |
| ""successor_job_ids"": [ |
| ""T5"", |
| ""T6"" |
| ] |
| }, |
| { |
| ""job_id"": ""T5"", |
| ""job_duration"": 11, |
| ""resource_demands"": [ |
| 3, |
| 2, |
| 4 |
| ], |
| ""successor_job_ids"": [ |
| ""T11"" |
| ] |
| }, |
| { |
| ""job_id"": ""T6"", |
| ""job_duration"": 5, |
| ""resource_demands"": [ |
| 7, |
| 10, |
| 6 |
| ], |
| ""successor_job_ids"": [ |
| ""T10"", |
| ""T12"" |
| ] |
| }, |
| { |
| ""job_id"": ""T7"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 3, |
| 7, |
| 3 |
| ], |
| ""successor_job_ids"": [ |
| ""T10"", |
| ""T11"" |
| ] |
| }, |
| { |
| ""job_id"": ""T8"", |
| ""job_duration"": 7, |
| ""resource_demands"": [ |
| 4, |
| 5, |
| 5 |
| ], |
| ""successor_job_ids"": [ |
| ""T11"", |
| ""T12"" |
| ] |
| }, |
| { |
| ""job_id"": ""T9"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 2, |
| 4, |
| 2 |
| ], |
| ""successor_job_ids"": [ |
| ""T13"", |
| ""T14"" |
| ] |
| }, |
| { |
| ""job_id"": ""T10"", |
| ""job_duration"": 3, |
| ""resource_demands"": [ |
| 6, |
| 2, |
| 6 |
| ], |
| ""successor_job_ids"": [ |
| ""T13"" |
| ] |
| }, |
| { |
| ""job_id"": ""T11"", |
| ""job_duration"": 2, |
| ""resource_demands"": [ |
| 3, |
| 6, |
| 3 |
| ], |
| ""successor_job_ids"": [ |
| ""T13"" |
| ] |
| }, |
| { |
| ""job_id"": ""T12"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 7, |
| 1, |
| 8 |
| ], |
| ""successor_job_ids"": [ |
| ""T13"" |
| ] |
| }, |
| { |
| ""job_id"": ""T13"", |
| ""job_duration"": 4, |
| ""resource_demands"": [ |
| 2, |
| 4, |
| 2 |
| ], |
| ""successor_job_ids"": [ |
| ""T15"" |
| ] |
| }, |
| { |
| ""job_id"": ""T14"", |
| ""job_duration"": 4, |
| ""resource_demands"": [ |
| 1, |
| 5, |
| 3 |
| ], |
| ""successor_job_ids"": [ |
| ""T16"", |
| ""T17"" |
| ] |
| }, |
| { |
| ""job_id"": ""T15"", |
| ""job_duration"": 5, |
| ""resource_demands"": [ |
| 5, |
| 6, |
| 3 |
| ], |
| ""successor_job_ids"": [] |
| }, |
| { |
| ""job_id"": ""T16"", |
| ""job_duration"": 2, |
| ""resource_demands"": [ |
| 2, |
| 4, |
| 3 |
| ], |
| ""successor_job_ids"": [ |
| ""T18"", |
| ""T19"" |
| ] |
| }, |
| { |
| ""job_id"": ""T17"", |
| ""job_duration"": 2, |
| ""resource_demands"": [ |
| 7, |
| 2, |
| 2 |
| ], |
| ""successor_job_ids"": [] |
| }, |
| { |
| ""job_id"": ""T18"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 1, |
| 7, |
| 4 |
| ], |
| ""successor_job_ids"": [ |
| ""T20"" |
| ] |
| }, |
| { |
| ""job_id"": ""T19"", |
| ""job_duration"": 6, |
| ""resource_demands"": [ |
| 2, |
| 12, |
| 1 |
| ], |
| ""successor_job_ids"": [ |
| ""T20"" |
| ] |
| }, |
| { |
| ""job_id"": ""T20"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_job_ids"": [] |
| } |
| ] |
| } |
|
|
| Oh, and when you're ready to hand the schedule back, just use this little JSON shape so it's easy to parse and check: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of each object in the ""solution"" list as one job on the timeline: the task identifier, when it starts, and when it finishes. It's just a simple form β list every task once with its start and end times. This block is only a sketch of the expected shape, not the actual filled-in schedule. |
| |
| Please use the exact task identifiers from the instance input β don't rename them and don't 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β.","{'nr_tasks': 20, 'nr_resources': 3, 'capacities': [12, 12, 10], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 5, 'demands': [5, 8, 2], 'successors': [6, 7]}, {'duration': 2, 'demands': [3, 5, 2], 'successors': [4, 6]}, {'duration': 9, 'demands': [5, 2, 1], 'successors': [4, 5]}, {'duration': 11, 'demands': [3, 2, 4], 'successors': [10]}, {'duration': 5, 'demands': [7, 10, 6], 'successors': [9, 11]}, {'duration': 1, 'demands': [3, 7, 3], 'successors': [9, 10]}, {'duration': 7, 'demands': [4, 5, 5], 'successors': [10, 11]}, {'duration': 1, 'demands': [2, 4, 2], 'successors': [12, 13]}, {'duration': 3, 'demands': [6, 2, 6], 'successors': [12]}, {'duration': 2, 'demands': [3, 6, 3], 'successors': [12]}, {'duration': 1, 'demands': [7, 1, 8], 'successors': [12]}, {'duration': 4, 'demands': [2, 4, 2], 'successors': [14]}, {'duration': 4, 'demands': [1, 5, 3], 'successors': [15, 16]}, {'duration': 5, 'demands': [5, 6, 3], 'successors': []}, {'duration': 2, 'demands': [2, 4, 3], 'successors': [17, 18]}, {'duration': 2, 'demands': [7, 2, 2], 'successors': []}, {'duration': 1, 'demands': [1, 7, 4], 'successors': [19]}, {'duration': 6, 'demands': [2, 12, 1], 'successors': [19]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 6, 'duration': 5, 'demands': [5, 8, 2]}, {'task': 2, 'start': 6, 'end': 8, 'duration': 2, 'demands': [3, 5, 2]}, {'task': 3, 'start': 1, 'end': 10, 'duration': 9, 'demands': [5, 2, 1]}, {'task': 4, 'start': 10, 'end': 21, 'duration': 11, 'demands': [3, 2, 4]}, {'task': 5, 'start': 16, 'end': 21, 'duration': 5, 'demands': [7, 10, 6]}, {'task': 6, 'start': 15, 'end': 16, 'duration': 1, 'demands': [3, 7, 3]}, {'task': 7, 'start': 8, 'end': 15, 'duration': 7, 'demands': [4, 5, 5]}, {'task': 8, 'start': 0, 'end': 1, 'duration': 1, 'demands': [2, 4, 2]}, {'task': 9, 'start': 22, 'end': 25, 'duration': 3, 'demands': [6, 2, 6]}, {'task': 10, 'start': 22, 'end': 24, 'duration': 2, 'demands': [3, 6, 3]}, {'task': 11, 'start': 21, 'end': 22, 'duration': 1, 'demands': [7, 1, 8]}, {'task': 12, 'start': 25, 'end': 29, 'duration': 4, 'demands': [2, 4, 2]}, {'task': 13, 'start': 6, 'end': 10, 'duration': 4, 'demands': [1, 5, 3]}, {'task': 14, 'start': 35, 'end': 40, 'duration': 5, 'demands': [5, 6, 3]}, {'task': 15, 'start': 24, 'end': 26, 'duration': 2, 'demands': [2, 4, 3]}, {'task': 16, 'start': 25, 'end': 27, 'duration': 2, 'demands': [7, 2, 2]}, {'task': 17, 'start': 27, 'end': 28, 'duration': 1, 'demands': [1, 7, 4]}, {'task': 18, 'start': 29, 'end': 35, 'duration': 6, 'demands': [2, 12, 1]}, {'task': 19, 'start': 35, 'end': 36, 'duration': 1, 'demands': [0, 0, 0]}]",40.0,"{'problem_type': 'RCPSP', 'nr_tasks': 20, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 12}, {'resource_id': 'B', 'capacity': 12}, {'resource_id': 'C', 'capacity': 10}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 5, 'demands': [5, 8, 2], 'successors': ['T7', 'T8']}, {'task_id': 'T3', 'duration': 2, 'demands': [3, 5, 2], 'successors': ['T5', 'T7']}, {'task_id': 'T4', 'duration': 9, 'demands': [5, 2, 1], 'successors': ['T5', 'T6']}, {'task_id': 'T5', 'duration': 11, 'demands': [3, 2, 4], 'successors': ['T11']}, {'task_id': 'T6', 'duration': 5, 'demands': [7, 10, 6], 'successors': ['T10', 'T12']}, {'task_id': 'T7', 'duration': 1, 'demands': [3, 7, 3], 'successors': ['T10', 'T11']}, {'task_id': 'T8', 'duration': 7, 'demands': [4, 5, 5], 'successors': ['T11', 'T12']}, {'task_id': 'T9', 'duration': 1, 'demands': [2, 4, 2], 'successors': ['T13', 'T14']}, {'task_id': 'T10', 'duration': 3, 'demands': [6, 2, 6], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 2, 'demands': [3, 6, 3], 'successors': ['T13']}, {'task_id': 'T12', 'duration': 1, 'demands': [7, 1, 8], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 4, 'demands': [2, 4, 2], 'successors': ['T15']}, {'task_id': 'T14', 'duration': 4, 'demands': [1, 5, 3], 'successors': ['T16', 'T17']}, {'task_id': 'T15', 'duration': 5, 'demands': [5, 6, 3], 'successors': []}, {'task_id': 'T16', 'duration': 2, 'demands': [2, 4, 3], 'successors': ['T18', 'T19']}, {'task_id': 'T17', 'duration': 2, 'demands': [7, 2, 2], 'successors': []}, {'task_id': 'T18', 'duration': 1, 'demands': [1, 7, 4], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 6, 'demands': [2, 12, 1], 'successors': ['T20']}, {'task_id': 'T20', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 6, 'duration': 5, 'demands': [5, 8, 2]}, {'task': 'T3', 'start': 6, 'end': 8, 'duration': 2, 'demands': [3, 5, 2]}, {'task': 'T4', 'start': 1, 'end': 10, 'duration': 9, 'demands': [5, 2, 1]}, {'task': 'T5', 'start': 10, 'end': 21, 'duration': 11, 'demands': [3, 2, 4]}, {'task': 'T6', 'start': 16, 'end': 21, 'duration': 5, 'demands': [7, 10, 6]}, {'task': 'T7', 'start': 15, 'end': 16, 'duration': 1, 'demands': [3, 7, 3]}, {'task': 'T8', 'start': 8, 'end': 15, 'duration': 7, 'demands': [4, 5, 5]}, {'task': 'T9', 'start': 0, 'end': 1, 'duration': 1, 'demands': [2, 4, 2]}, {'task': 'T10', 'start': 22, 'end': 25, 'duration': 3, 'demands': [6, 2, 6]}, {'task': 'T11', 'start': 22, 'end': 24, 'duration': 2, 'demands': [3, 6, 3]}, {'task': 'T12', 'start': 21, 'end': 22, 'duration': 1, 'demands': [7, 1, 8]}, {'task': 'T13', 'start': 25, 'end': 29, 'duration': 4, 'demands': [2, 4, 2]}, {'task': 'T14', 'start': 6, 'end': 10, 'duration': 4, 'demands': [1, 5, 3]}, {'task': 'T15', 'start': 35, 'end': 40, 'duration': 5, 'demands': [5, 6, 3]}, {'task': 'T16', 'start': 24, 'end': 26, 'duration': 2, 'demands': [2, 4, 3]}, {'task': 'T17', 'start': 25, 'end': 27, 'duration': 2, 'demands': [7, 2, 2]}, {'task': 'T18', 'start': 27, 'end': 28, 'duration': 1, 'demands': [1, 7, 4]}, {'task': 'T19', 'start': 29, 'end': 35, 'duration': 6, 'demands': [2, 12, 1]}, {'task': 'T20', 'start': 35, 'end': 36, 'duration': 1, 'demands': [0, 0, 0]}]",8,json,names |
| RCPSP,RCPSP,"Recently the team took on a landscaping overhaul where every step has a set duration, ties up a certain number of tractors and crew while underway, and depends on earlier prep in many cases. The coordinatorβs role is to set start times for every step so all dependencies are honored, the number of tractors and crew being used at once never exceeds whatβs available, and each step happens once. To compare different plans, just check when the final step ends β the sooner the entire job is done, the better. The detailed list of steps, times, and available tractors/crew appears below. |
| |
| There are 16 landscaping steps, 3 resource types, and the available resources are . |
| Step T1 runs for 3 time units, uses resources 3, 7, 2, and has successors T4, T6 that must start after it finishes. |
| Step T2 runs for 1 time units, uses resources 9, 4, 2, and has successors T5, T7 that must start after it finishes. |
| Step T3 runs for 1 time units, uses resources 4, 1, 4, and has successors T5, T6 that must start after it finishes. |
| Step T4 runs for 4 time units, uses resources 7, 1, 3, and has successors T9 that must start after it finishes. |
| Step T5 runs for 8 time units, uses resources 3, 7, 4, and has successors T8, T9, T4 that must start after it finishes. |
| Step T6 runs for 9 time units, uses resources 5, 3, 2, and has successors T8 that must start after it finishes. |
| Step T7 runs for 5 time units, uses resources 2, 8, 3, and has successors T8, T9 that must start after it finishes. |
| Step T8 runs for 1 time units, uses resources 4, 1, 6, and has successors T10 that must start after it finishes. |
| Step T9 runs for 4 time units, uses resources 6, 2, 4, and has successors T10, T11 that must start after it finishes. |
| Step T10 runs for 5 time units, uses resources 2, 5, 7, and has successors T13, T11, T16 that must start after it finishes. |
| Step T11 runs for 6 time units, uses resources 9, 8, 5, and has successors T12 that must start after it finishes. |
| Step T12 runs for 2 time units, uses resources 3, 3, 2, and has successors none that must start after it finishes. |
| Step T13 runs for 11 time units, uses resources 7, 5, 3, and has successors T15, T14, T11 that must start after it finishes. |
| Step T14 runs for 1 time units, uses resources 5, 3, 1, and has successors T16 that must start after it finishes. |
| Step T15 runs for 3 time units, uses resources 1, 2, 2, and has successors T16 that must start after it finishes. |
| Step T16 runs for 7 time units, uses resources 0, 1, 6, and has successors none that must start after it finishes. |
| The coordinator must assign start times so all 16 steps are scheduled, the 3 resource capacities are never exceeded, and the overall completion time is minimized. |
| |
| When you hand the schedule back, a simple JSON layout is perfect β nothing fancy, just the fields I showed below so it's easy to parse. |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <step_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of this like a short form: ""task"" is the step identifier from the job list, ""start"" is when that step kicks off, and ""end"" is when it finishes. Super casual β just fill in each step's ID and times. This block is only a sketch of the shape I expect, not the actual filled-in answer. |
| |
| Please 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β.","{'nr_tasks': 16, 'nr_resources': 3, 'capacities': [10, 12, 8], 'tasks': [{'duration': 3, 'demands': [3, 7, 2], 'successors': [3, 5]}, {'duration': 1, 'demands': [9, 4, 2], 'successors': [4, 6]}, {'duration': 1, 'demands': [4, 1, 4], 'successors': [4, 5]}, {'duration': 4, 'demands': [7, 1, 3], 'successors': [8]}, {'duration': 8, 'demands': [3, 7, 4], 'successors': [7, 8, 3]}, {'duration': 9, 'demands': [5, 3, 2], 'successors': [7]}, {'duration': 5, 'demands': [2, 8, 3], 'successors': [7, 8]}, {'duration': 1, 'demands': [4, 1, 6], 'successors': [9]}, {'duration': 4, 'demands': [6, 2, 4], 'successors': [9, 10]}, {'duration': 5, 'demands': [2, 5, 7], 'successors': [12, 10, 15]}, {'duration': 6, 'demands': [9, 8, 5], 'successors': [11]}, {'duration': 2, 'demands': [3, 3, 2], 'successors': []}, {'duration': 11, 'demands': [7, 5, 3], 'successors': [14, 13, 10]}, {'duration': 1, 'demands': [5, 3, 1], 'successors': [15]}, {'duration': 3, 'demands': [1, 2, 2], 'successors': [15]}, {'duration': 7, 'demands': [0, 1, 6], 'successors': []}]}","[{'task': 0, 'start': 1, 'end': 4, 'duration': 3, 'demands': [3, 7, 2]}, {'task': 1, 'start': 0, 'end': 1, 'duration': 1, 'demands': [9, 4, 2]}, {'task': 2, 'start': 1, 'end': 2, 'duration': 1, 'demands': [4, 1, 4]}, {'task': 3, 'start': 13, 'end': 17, 'duration': 4, 'demands': [7, 1, 3]}, {'task': 4, 'start': 4, 'end': 12, 'duration': 8, 'demands': [3, 7, 4]}, {'task': 5, 'start': 4, 'end': 13, 'duration': 9, 'demands': [5, 3, 2]}, {'task': 6, 'start': 12, 'end': 17, 'duration': 5, 'demands': [2, 8, 3]}, {'task': 7, 'start': 21, 'end': 22, 'duration': 1, 'demands': [4, 1, 6]}, {'task': 8, 'start': 17, 'end': 21, 'duration': 4, 'demands': [6, 2, 4]}, {'task': 9, 'start': 22, 'end': 27, 'duration': 5, 'demands': [2, 5, 7]}, {'task': 10, 'start': 39, 'end': 45, 'duration': 6, 'demands': [9, 8, 5]}, {'task': 11, 'start': 45, 'end': 47, 'duration': 2, 'demands': [3, 3, 2]}, {'task': 12, 'start': 27, 'end': 38, 'duration': 11, 'demands': [7, 5, 3]}, {'task': 13, 'start': 38, 'end': 39, 'duration': 1, 'demands': [5, 3, 1]}, {'task': 14, 'start': 38, 'end': 41, 'duration': 3, 'demands': [1, 2, 2]}, {'task': 15, 'start': 45, 'end': 52, 'duration': 7, 'demands': [0, 1, 6]}]",52.0,"{'problem_type': 'RCPSP', 'nr_tasks': 16, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 10}, {'resource_id': 2, 'capacity': 12}, {'resource_id': 3, 'capacity': 8}], 'task_records': [{'task_id': 'T1', 'duration': 3, 'demands': [3, 7, 2], 'successors': ['T4', 'T6']}, {'task_id': 'T2', 'duration': 1, 'demands': [9, 4, 2], 'successors': ['T5', 'T7']}, {'task_id': 'T3', 'duration': 1, 'demands': [4, 1, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T4', 'duration': 4, 'demands': [7, 1, 3], 'successors': ['T9']}, {'task_id': 'T5', 'duration': 8, 'demands': [3, 7, 4], 'successors': ['T8', 'T9', 'T4']}, {'task_id': 'T6', 'duration': 9, 'demands': [5, 3, 2], 'successors': ['T8']}, {'task_id': 'T7', 'duration': 5, 'demands': [2, 8, 3], 'successors': ['T8', 'T9']}, {'task_id': 'T8', 'duration': 1, 'demands': [4, 1, 6], 'successors': ['T10']}, {'task_id': 'T9', 'duration': 4, 'demands': [6, 2, 4], 'successors': ['T10', 'T11']}, {'task_id': 'T10', 'duration': 5, 'demands': [2, 5, 7], 'successors': ['T13', 'T11', 'T16']}, {'task_id': 'T11', 'duration': 6, 'demands': [9, 8, 5], 'successors': ['T12']}, {'task_id': 'T12', 'duration': 2, 'demands': [3, 3, 2], 'successors': []}, {'task_id': 'T13', 'duration': 11, 'demands': [7, 5, 3], 'successors': ['T15', 'T14', 'T11']}, {'task_id': 'T14', 'duration': 1, 'demands': [5, 3, 1], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 3, 'demands': [1, 2, 2], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 7, 'demands': [0, 1, 6], 'successors': []}]}","[{'task': 'T1', 'start': 1, 'end': 4, 'duration': 3, 'demands': [3, 7, 2]}, {'task': 'T2', 'start': 0, 'end': 1, 'duration': 1, 'demands': [9, 4, 2]}, {'task': 'T3', 'start': 1, 'end': 2, 'duration': 1, 'demands': [4, 1, 4]}, {'task': 'T4', 'start': 13, 'end': 17, 'duration': 4, 'demands': [7, 1, 3]}, {'task': 'T5', 'start': 4, 'end': 12, 'duration': 8, 'demands': [3, 7, 4]}, {'task': 'T6', 'start': 4, 'end': 13, 'duration': 9, 'demands': [5, 3, 2]}, {'task': 'T7', 'start': 12, 'end': 17, 'duration': 5, 'demands': [2, 8, 3]}, {'task': 'T8', 'start': 21, 'end': 22, 'duration': 1, 'demands': [4, 1, 6]}, {'task': 'T9', 'start': 17, 'end': 21, 'duration': 4, 'demands': [6, 2, 4]}, {'task': 'T10', 'start': 22, 'end': 27, 'duration': 5, 'demands': [2, 5, 7]}, {'task': 'T11', 'start': 39, 'end': 45, 'duration': 6, 'demands': [9, 8, 5]}, {'task': 'T12', 'start': 45, 'end': 47, 'duration': 2, 'demands': [3, 3, 2]}, {'task': 'T13', 'start': 27, 'end': 38, 'duration': 11, 'demands': [7, 5, 3]}, {'task': 'T14', 'start': 38, 'end': 39, 'duration': 1, 'demands': [5, 3, 1]}, {'task': 'T15', 'start': 38, 'end': 41, 'duration': 3, 'demands': [1, 2, 2]}, {'task': 'T16', 'start': 45, 'end': 52, 'duration': 7, 'demands': [0, 1, 6]}]",9,nl,1 |
| RCPSP,RCPSP,"Someone managing the shop needs to line up every assembly step like dominos. Each step lasts a set period, uses a given number of tools and a patch of bench while active, and some steps can only start after others finish. The plan must assign a start time to every step (no skipping, no double-running), keep simultaneous tool and bench usage within whatβs available, and aim to get the final piece finished as soon as possible β measured by the finishing time of the last step, with smaller times better. The specific tasks, durations, and available tools/benches appear below. |
| |
| # total_assembly_steps=16 |
| # resource_types_count=3 |
| # resources=A, B, C |
| resource_id,capacity |
| A,13 |
| B,12 |
| C,14 |
| step_id,step_duration,step_resource_usage,following_steps |
| T1,9,""3, 9, 3"",""T4, T5, T6"" |
| T2,1,""8, 5, 3"",""T5, T7"" |
| T3,7,""5, 2, 3"",""T6, T7"" |
| T4,2,""3, 1, 2"",""T8, T10"" |
| T5,3,""10, 5, 4"",""T9, T10"" |
| T6,4,""5, 9, 3"",""T8, T9, T4"" |
| T7,3,""1, 8, 3"",""T8, T11"" |
| T8,3,""2, 1, 3"",""none"" |
| T9,2,""5, 1, 5"",""T12, T13"" |
| T10,6,""6, 5, 4"",""T12, T15"" |
| T11,9,""8, 1, 5"",""T12"" |
| T12,18,""2, 6, 8"",""T14"" |
| T13,6,""2, 3, 7"",""T15, T11"" |
| T14,4,""4, 4, 5"",""T16"" |
| T15,7,""9, 3, 6"",""T16"" |
| T16,2,""2, 7, 8"",""none"" |
| |
| Also, when you send the scheduled plan back, a simple JSON sketch like this is the format I expect β just showing the shape of the answer so it's easy to parse: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of that as a little form: each object in ""solution"" is one assembly step, ""task"" picks which step, and ""start"" and ""end"" say when it begins and finishes. This is just the shape I want you to follow β not the actual schedule itself. |
|
|
| Also, please use the exact task identifiers from the instance input β don't rename tasks 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β.""","{'nr_tasks': 16, 'nr_resources': 3, 'capacities': [13, 12, 14], 'tasks': [{'duration': 9, 'demands': [3, 9, 3], 'successors': [3, 4, 5]}, {'duration': 1, 'demands': [8, 5, 3], 'successors': [4, 6]}, {'duration': 7, 'demands': [5, 2, 3], 'successors': [5, 6]}, {'duration': 2, 'demands': [3, 1, 2], 'successors': [7, 9]}, {'duration': 3, 'demands': [10, 5, 4], 'successors': [8, 9]}, {'duration': 4, 'demands': [5, 9, 3], 'successors': [7, 8, 3]}, {'duration': 3, 'demands': [1, 8, 3], 'successors': [7, 10]}, {'duration': 3, 'demands': [2, 1, 3], 'successors': []}, {'duration': 2, 'demands': [5, 1, 5], 'successors': [11, 12]}, {'duration': 6, 'demands': [6, 5, 4], 'successors': [11, 14]}, {'duration': 9, 'demands': [8, 1, 5], 'successors': [11]}, {'duration': 18, 'demands': [2, 6, 8], 'successors': [13]}, {'duration': 6, 'demands': [2, 3, 7], 'successors': [14, 10]}, {'duration': 4, 'demands': [4, 4, 5], 'successors': [15]}, {'duration': 7, 'demands': [9, 3, 6], 'successors': [15]}, {'duration': 2, 'demands': [2, 7, 8], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 9, 'duration': 9, 'demands': [3, 9, 3]}, {'task': 1, 'start': 9, 'end': 10, 'duration': 1, 'demands': [8, 5, 3]}, {'task': 2, 'start': 0, 'end': 7, 'duration': 7, 'demands': [5, 2, 3]}, {'task': 3, 'start': 14, 'end': 16, 'duration': 2, 'demands': [3, 1, 2]}, {'task': 4, 'start': 14, 'end': 17, 'duration': 3, 'demands': [10, 5, 4]}, {'task': 5, 'start': 10, 'end': 14, 'duration': 4, 'demands': [5, 9, 3]}, {'task': 6, 'start': 17, 'end': 20, 'duration': 3, 'demands': [1, 8, 3]}, {'task': 7, 'start': 20, 'end': 23, 'duration': 3, 'demands': [2, 1, 3]}, {'task': 8, 'start': 17, 'end': 19, 'duration': 2, 'demands': [5, 1, 5]}, {'task': 9, 'start': 20, 'end': 26, 'duration': 6, 'demands': [6, 5, 4]}, {'task': 10, 'start': 26, 'end': 35, 'duration': 9, 'demands': [8, 1, 5]}, {'task': 11, 'start': 35, 'end': 53, 'duration': 18, 'demands': [2, 6, 8]}, {'task': 12, 'start': 19, 'end': 25, 'duration': 6, 'demands': [2, 3, 7]}, {'task': 13, 'start': 53, 'end': 57, 'duration': 4, 'demands': [4, 4, 5]}, {'task': 14, 'start': 35, 'end': 42, 'duration': 7, 'demands': [9, 3, 6]}, {'task': 15, 'start': 57, 'end': 59, 'duration': 2, 'demands': [2, 7, 8]}]",59.0,"{'problem_type': 'RCPSP', 'nr_tasks': 16, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 13}, {'resource_id': 'B', 'capacity': 12}, {'resource_id': 'C', 'capacity': 14}], 'task_records': [{'task_id': 'T1', 'duration': 9, 'demands': [3, 9, 3], 'successors': ['T4', 'T5', 'T6']}, {'task_id': 'T2', 'duration': 1, 'demands': [8, 5, 3], 'successors': ['T5', 'T7']}, {'task_id': 'T3', 'duration': 7, 'demands': [5, 2, 3], 'successors': ['T6', 'T7']}, {'task_id': 'T4', 'duration': 2, 'demands': [3, 1, 2], 'successors': ['T8', 'T10']}, {'task_id': 'T5', 'duration': 3, 'demands': [10, 5, 4], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 4, 'demands': [5, 9, 3], 'successors': ['T8', 'T9', 'T4']}, {'task_id': 'T7', 'duration': 3, 'demands': [1, 8, 3], 'successors': ['T8', 'T11']}, {'task_id': 'T8', 'duration': 3, 'demands': [2, 1, 3], 'successors': []}, {'task_id': 'T9', 'duration': 2, 'demands': [5, 1, 5], 'successors': ['T12', 'T13']}, {'task_id': 'T10', 'duration': 6, 'demands': [6, 5, 4], 'successors': ['T12', 'T15']}, {'task_id': 'T11', 'duration': 9, 'demands': [8, 1, 5], 'successors': ['T12']}, {'task_id': 'T12', 'duration': 18, 'demands': [2, 6, 8], 'successors': ['T14']}, {'task_id': 'T13', 'duration': 6, 'demands': [2, 3, 7], 'successors': ['T15', 'T11']}, {'task_id': 'T14', 'duration': 4, 'demands': [4, 4, 5], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 7, 'demands': [9, 3, 6], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 2, 'demands': [2, 7, 8], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 9, 'duration': 9, 'demands': [3, 9, 3]}, {'task': 'T2', 'start': 9, 'end': 10, 'duration': 1, 'demands': [8, 5, 3]}, {'task': 'T3', 'start': 0, 'end': 7, 'duration': 7, 'demands': [5, 2, 3]}, {'task': 'T4', 'start': 14, 'end': 16, 'duration': 2, 'demands': [3, 1, 2]}, {'task': 'T5', 'start': 14, 'end': 17, 'duration': 3, 'demands': [10, 5, 4]}, {'task': 'T6', 'start': 10, 'end': 14, 'duration': 4, 'demands': [5, 9, 3]}, {'task': 'T7', 'start': 17, 'end': 20, 'duration': 3, 'demands': [1, 8, 3]}, {'task': 'T8', 'start': 20, 'end': 23, 'duration': 3, 'demands': [2, 1, 3]}, {'task': 'T9', 'start': 17, 'end': 19, 'duration': 2, 'demands': [5, 1, 5]}, {'task': 'T10', 'start': 20, 'end': 26, 'duration': 6, 'demands': [6, 5, 4]}, {'task': 'T11', 'start': 26, 'end': 35, 'duration': 9, 'demands': [8, 1, 5]}, {'task': 'T12', 'start': 35, 'end': 53, 'duration': 18, 'demands': [2, 6, 8]}, {'task': 'T13', 'start': 19, 'end': 25, 'duration': 6, 'demands': [2, 3, 7]}, {'task': 'T14', 'start': 53, 'end': 57, 'duration': 4, 'demands': [4, 4, 5]}, {'task': 'T15', 'start': 35, 'end': 42, 'duration': 7, 'demands': [9, 3, 6]}, {'task': 'T16', 'start': 57, 'end': 59, 'duration': 2, 'demands': [2, 7, 8]}]",10,csv,names |
| RCPSP,RCPSP,"Back when the new term calendar landed on my desk, it became clear: every classroom setup and lesson has a fixed length, uses up rooms and teachers while active, and some canβt begin until others have wrapped. The job is to pick a start time for every single item so we never have more concurrent classes than rooms or teachers available, and nothing is skipped or scheduled twice. The goal is to get everything done as soon as possible β in other words, make the time the final session ends as small as it can be. The concrete session and resource details will be shown below. |
| |
| So, hereβs what Iβm looking at: 17 sessions, 3 resource types, capacities . |
| Session T1: I note it lasts 1 units, ties up 0, 0, 0 while active, and must finish before T2, T3, T4 may start. |
| Session T2: I note it lasts 6 units, ties up 6, 4, 4 while active, and must finish before T5, T6, T3 may start. |
| Session T3: I note it lasts 3 units, ties up 4, 4, 4 while active, and must finish before T5, T6, T9 may start. |
| Session T4: I note it lasts 1 units, ties up 5, 1, 1 while active, and must finish before T7, T8 may start. |
| Session T5: I note it lasts 4 units, ties up 3, 1, 7 while active, and must finish before T11, T12 may start. |
| Session T6: I note it lasts 7 units, ties up 9, 9, 7 while active, and must finish before T9, T10 may start. |
| Session T7: I note it lasts 6 units, ties up 4, 8, 4 while active, and must finish before T9, T12 may start. |
| Session T8: I note it lasts 7 units, ties up 1, 5, 5 while active, and must finish before T10, T11 may start. |
| Session T9: I note it lasts 2 units, ties up 2, 2, 3 while active, and must finish before T13 may start. |
| Session T10: I note it lasts 15 units, ties up 4, 2, 2 while active, and must finish before T13 may start. |
| Session T11: I note it lasts 1 units, ties up 4, 4, 2 while active, and must finish before T7 may start. |
| Session T12: I note it lasts 1 units, ties up 3, 1, 3 while active, and must finish before T13, T9 may start. |
| Session T13: I note it lasts 1 units, ties up 1, 5, 5 while active, and must finish before T14, T15 may start. |
| Session T14: I note it lasts 4 units, ties up 7, 9, 5 while active, and must finish before T16 may start. |
| Session T15: I note it lasts 11 units, ties up 9, 3, 2 while active, and must finish before T16 may start. |
| Session T16: I note it lasts 2 units, ties up 3, 3, 10 while active, and must finish before T17 may start. |
| Session T17: I note it lasts 1 units, ties up 0, 0, 0 while active, and must finish before none may start. |
| Iβll need every session scheduled so the last one finishes as early as I can make it. |
| |
| Oh, and when you send the scheduled plan back, keep it in a tiny JSON layout so it's easy to check automatically β nothing fancy, just this shape: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This shows the shape I expect: ""solution"" is a list of scheduled items, and each item has a task identifier plus the start and end times for that session. Treat it like a simple form β each row says which session it is and when it begins and finishes. The block above is just a sketch of the expected shape, not the actual answer β replace those placeholders with the real IDs and times from the instance. |
|
|
| Please use the exact identifiers from the 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β.","{'nr_tasks': 17, 'nr_resources': 3, 'capacities': [9, 13, 15], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 6, 'demands': [6, 4, 4], 'successors': [4, 5, 2]}, {'duration': 3, 'demands': [4, 4, 4], 'successors': [4, 5, 8]}, {'duration': 1, 'demands': [5, 1, 1], 'successors': [6, 7]}, {'duration': 4, 'demands': [3, 1, 7], 'successors': [10, 11]}, {'duration': 7, 'demands': [9, 9, 7], 'successors': [8, 9]}, {'duration': 6, 'demands': [4, 8, 4], 'successors': [8, 11]}, {'duration': 7, 'demands': [1, 5, 5], 'successors': [9, 10]}, {'duration': 2, 'demands': [2, 2, 3], 'successors': [12]}, {'duration': 15, 'demands': [4, 2, 2], 'successors': [12]}, {'duration': 1, 'demands': [4, 4, 2], 'successors': [6]}, {'duration': 1, 'demands': [3, 1, 3], 'successors': [12, 8]}, {'duration': 1, 'demands': [1, 5, 5], 'successors': [13, 14]}, {'duration': 4, 'demands': [7, 9, 5], 'successors': [15]}, {'duration': 11, 'demands': [9, 3, 2], 'successors': [15]}, {'duration': 2, 'demands': [3, 3, 10], 'successors': [16]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 2, 'end': 8, 'duration': 6, 'demands': [6, 4, 4]}, {'task': 2, 'start': 8, 'end': 11, 'duration': 3, 'demands': [4, 4, 4]}, {'task': 3, 'start': 1, 'end': 2, 'duration': 1, 'demands': [5, 1, 1]}, {'task': 4, 'start': 18, 'end': 22, 'duration': 4, 'demands': [3, 1, 7]}, {'task': 5, 'start': 11, 'end': 18, 'duration': 7, 'demands': [9, 9, 7]}, {'task': 6, 'start': 23, 'end': 29, 'duration': 6, 'demands': [4, 8, 4]}, {'task': 7, 'start': 2, 'end': 9, 'duration': 7, 'demands': [1, 5, 5]}, {'task': 8, 'start': 30, 'end': 32, 'duration': 2, 'demands': [2, 2, 3]}, {'task': 9, 'start': 18, 'end': 33, 'duration': 15, 'demands': [4, 2, 2]}, {'task': 10, 'start': 22, 'end': 23, 'duration': 1, 'demands': [4, 4, 2]}, {'task': 11, 'start': 29, 'end': 30, 'duration': 1, 'demands': [3, 1, 3]}, {'task': 12, 'start': 33, 'end': 34, 'duration': 1, 'demands': [1, 5, 5]}, {'task': 13, 'start': 45, 'end': 49, 'duration': 4, 'demands': [7, 9, 5]}, {'task': 14, 'start': 34, 'end': 45, 'duration': 11, 'demands': [9, 3, 2]}, {'task': 15, 'start': 49, 'end': 51, 'duration': 2, 'demands': [3, 3, 10]}, {'task': 16, 'start': 51, 'end': 52, 'duration': 1, 'demands': [0, 0, 0]}]",52.0,"{'problem_type': 'RCPSP', 'nr_tasks': 17, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 9}, {'resource_id': 2, 'capacity': 13}, {'resource_id': 3, 'capacity': 15}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 6, 'demands': [6, 4, 4], 'successors': ['T5', 'T6', 'T3']}, {'task_id': 'T3', 'duration': 3, 'demands': [4, 4, 4], 'successors': ['T5', 'T6', 'T9']}, {'task_id': 'T4', 'duration': 1, 'demands': [5, 1, 1], 'successors': ['T7', 'T8']}, {'task_id': 'T5', 'duration': 4, 'demands': [3, 1, 7], 'successors': ['T11', 'T12']}, {'task_id': 'T6', 'duration': 7, 'demands': [9, 9, 7], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 6, 'demands': [4, 8, 4], 'successors': ['T9', 'T12']}, {'task_id': 'T8', 'duration': 7, 'demands': [1, 5, 5], 'successors': ['T10', 'T11']}, {'task_id': 'T9', 'duration': 2, 'demands': [2, 2, 3], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 15, 'demands': [4, 2, 2], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 1, 'demands': [4, 4, 2], 'successors': ['T7']}, {'task_id': 'T12', 'duration': 1, 'demands': [3, 1, 3], 'successors': ['T13', 'T9']}, {'task_id': 'T13', 'duration': 1, 'demands': [1, 5, 5], 'successors': ['T14', 'T15']}, {'task_id': 'T14', 'duration': 4, 'demands': [7, 9, 5], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 11, 'demands': [9, 3, 2], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 2, 'demands': [3, 3, 10], 'successors': ['T17']}, {'task_id': 'T17', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 2, 'end': 8, 'duration': 6, 'demands': [6, 4, 4]}, {'task': 'T3', 'start': 8, 'end': 11, 'duration': 3, 'demands': [4, 4, 4]}, {'task': 'T4', 'start': 1, 'end': 2, 'duration': 1, 'demands': [5, 1, 1]}, {'task': 'T5', 'start': 18, 'end': 22, 'duration': 4, 'demands': [3, 1, 7]}, {'task': 'T6', 'start': 11, 'end': 18, 'duration': 7, 'demands': [9, 9, 7]}, {'task': 'T7', 'start': 23, 'end': 29, 'duration': 6, 'demands': [4, 8, 4]}, {'task': 'T8', 'start': 2, 'end': 9, 'duration': 7, 'demands': [1, 5, 5]}, {'task': 'T9', 'start': 30, 'end': 32, 'duration': 2, 'demands': [2, 2, 3]}, {'task': 'T10', 'start': 18, 'end': 33, 'duration': 15, 'demands': [4, 2, 2]}, {'task': 'T11', 'start': 22, 'end': 23, 'duration': 1, 'demands': [4, 4, 2]}, {'task': 'T12', 'start': 29, 'end': 30, 'duration': 1, 'demands': [3, 1, 3]}, {'task': 'T13', 'start': 33, 'end': 34, 'duration': 1, 'demands': [1, 5, 5]}, {'task': 'T14', 'start': 45, 'end': 49, 'duration': 4, 'demands': [7, 9, 5]}, {'task': 'T15', 'start': 34, 'end': 45, 'duration': 11, 'demands': [9, 3, 2]}, {'task': 'T16', 'start': 49, 'end': 51, 'duration': 2, 'demands': [3, 3, 10]}, {'task': 'T17', 'start': 51, 'end': 52, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| # total_segments=20 |
| # resource_types_count=1 |
| # resources=A |
| resource_id,capacity |
| A,12 |
| segment_id,segment_duration,segment_resource_requirements,successor_segments |
| T1,1,""0"",""T3, T4, T5, T6"" |
| T2,3,""6"",""T17"" |
| T3,3,""1"",""T7, T8"" |
| T4,7,""1"",""T9, T14"" |
| T5,8,""9"",""T10, T12"" |
| T6,8,""1"",""T11"" |
| T7,3,""4"",""T17"" |
| T8,1,""0"",""T9, T14"" |
| T9,3,""2"",""none"" |
| T10,2,""3"",""T18"" |
| T11,13,""5"",""T18"" |
| T12,1,""2"",""T15, T16"" |
| T13,10,""4"",""T15, T16"" |
| T14,1,""3"",""T17"" |
| T15,1,""0"",""T17"" |
| T16,10,""4"",""T18"" |
| T17,6,""1"",""T18"" |
| T18,1,""0"",""none"" |
| T19,8,""0"",""none"" |
| T20,2,""1"",""none"" |
|
|
| When youβre ready to give me the schedule, a simple JSON layout like this works best β it's just a small list of entries, each saying which segment (task) starts when and ends when. |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of that as a little form: ""solution"" holds a list of scheduled segments, each item gives the segment's id under ""task"" and the time it starts and the time it finishes under ""start"" and ""end"". Keep it light β just one object per segment, and the end time should match when that segment is done. |
|
|
| This JSON is only a sketch of the shape I expect, not the actual filled-in schedule. |
|
|
| Also, 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β.""","{'nr_tasks': 20, 'nr_resources': 1, 'capacities': [12], 'tasks': [{'duration': 1, 'demands': [0], 'successors': [2, 3, 4, 5]}, {'duration': 3, 'demands': [6], 'successors': [16]}, {'duration': 3, 'demands': [1], 'successors': [6, 7]}, {'duration': 7, 'demands': [1], 'successors': [8, 13]}, {'duration': 8, 'demands': [9], 'successors': [9, 11]}, {'duration': 8, 'demands': [1], 'successors': [10]}, {'duration': 3, 'demands': [4], 'successors': [16]}, {'duration': 1, 'demands': [0], 'successors': [8, 13]}, {'duration': 3, 'demands': [2], 'successors': []}, {'duration': 2, 'demands': [3], 'successors': [17]}, {'duration': 13, 'demands': [5], 'successors': [17]}, {'duration': 1, 'demands': [2], 'successors': [14, 15]}, {'duration': 10, 'demands': [4], 'successors': [14, 15]}, {'duration': 1, 'demands': [3], 'successors': [16]}, {'duration': 1, 'demands': [0], 'successors': [16]}, {'duration': 10, 'demands': [4], 'successors': [17]}, {'duration': 6, 'demands': [1], 'successors': [17]}, {'duration': 1, 'demands': [0], 'successors': []}, {'duration': 8, 'demands': [0], 'successors': []}, {'duration': 2, 'demands': [1], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0]}, {'task': 1, 'start': 9, 'end': 12, 'duration': 3, 'demands': [6]}, {'task': 2, 'start': 1, 'end': 4, 'duration': 3, 'demands': [1]}, {'task': 3, 'start': 2, 'end': 9, 'duration': 7, 'demands': [1]}, {'task': 4, 'start': 1, 'end': 9, 'duration': 8, 'demands': [9]}, {'task': 5, 'start': 1, 'end': 9, 'duration': 8, 'demands': [1]}, {'task': 6, 'start': 12, 'end': 15, 'duration': 3, 'demands': [4]}, {'task': 7, 'start': 7, 'end': 8, 'duration': 1, 'demands': [0]}, {'task': 8, 'start': 10, 'end': 13, 'duration': 3, 'demands': [2]}, {'task': 9, 'start': 14, 'end': 16, 'duration': 2, 'demands': [3]}, {'task': 10, 'start': 15, 'end': 28, 'duration': 13, 'demands': [5]}, {'task': 11, 'start': 9, 'end': 10, 'duration': 1, 'demands': [2]}, {'task': 12, 'start': 9, 'end': 19, 'duration': 10, 'demands': [4]}, {'task': 13, 'start': 13, 'end': 14, 'duration': 1, 'demands': [3]}, {'task': 14, 'start': 19, 'end': 20, 'duration': 1, 'demands': [0]}, {'task': 15, 'start': 19, 'end': 29, 'duration': 10, 'demands': [4]}, {'task': 16, 'start': 20, 'end': 26, 'duration': 6, 'demands': [1]}, {'task': 17, 'start': 29, 'end': 30, 'duration': 1, 'demands': [0]}, {'task': 18, 'start': 0, 'end': 8, 'duration': 8, 'demands': [0]}, {'task': 19, 'start': 0, 'end': 2, 'duration': 2, 'demands': [1]}]",30.0,"{'problem_type': 'RCPSP', 'nr_tasks': 20, 'nr_resources': 1, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20'], 'resources': ['A'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0], 'successors': ['T3', 'T4', 'T5', 'T6']}, {'task_id': 'T2', 'duration': 3, 'demands': [6], 'successors': ['T17']}, {'task_id': 'T3', 'duration': 3, 'demands': [1], 'successors': ['T7', 'T8']}, {'task_id': 'T4', 'duration': 7, 'demands': [1], 'successors': ['T9', 'T14']}, {'task_id': 'T5', 'duration': 8, 'demands': [9], 'successors': ['T10', 'T12']}, {'task_id': 'T6', 'duration': 8, 'demands': [1], 'successors': ['T11']}, {'task_id': 'T7', 'duration': 3, 'demands': [4], 'successors': ['T17']}, {'task_id': 'T8', 'duration': 1, 'demands': [0], 'successors': ['T9', 'T14']}, {'task_id': 'T9', 'duration': 3, 'demands': [2], 'successors': []}, {'task_id': 'T10', 'duration': 2, 'demands': [3], 'successors': ['T18']}, {'task_id': 'T11', 'duration': 13, 'demands': [5], 'successors': ['T18']}, {'task_id': 'T12', 'duration': 1, 'demands': [2], 'successors': ['T15', 'T16']}, {'task_id': 'T13', 'duration': 10, 'demands': [4], 'successors': ['T15', 'T16']}, {'task_id': 'T14', 'duration': 1, 'demands': [3], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 1, 'demands': [0], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 10, 'demands': [4], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 6, 'demands': [1], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 1, 'demands': [0], 'successors': []}, {'task_id': 'T19', 'duration': 8, 'demands': [0], 'successors': []}, {'task_id': 'T20', 'duration': 2, 'demands': [1], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0]}, {'task': 'T2', 'start': 9, 'end': 12, 'duration': 3, 'demands': [6]}, {'task': 'T3', 'start': 1, 'end': 4, 'duration': 3, 'demands': [1]}, {'task': 'T4', 'start': 2, 'end': 9, 'duration': 7, 'demands': [1]}, {'task': 'T5', 'start': 1, 'end': 9, 'duration': 8, 'demands': [9]}, {'task': 'T6', 'start': 1, 'end': 9, 'duration': 8, 'demands': [1]}, {'task': 'T7', 'start': 12, 'end': 15, 'duration': 3, 'demands': [4]}, {'task': 'T8', 'start': 7, 'end': 8, 'duration': 1, 'demands': [0]}, {'task': 'T9', 'start': 10, 'end': 13, 'duration': 3, 'demands': [2]}, {'task': 'T10', 'start': 14, 'end': 16, 'duration': 2, 'demands': [3]}, {'task': 'T11', 'start': 15, 'end': 28, 'duration': 13, 'demands': [5]}, {'task': 'T12', 'start': 9, 'end': 10, 'duration': 1, 'demands': [2]}, {'task': 'T13', 'start': 9, 'end': 19, 'duration': 10, 'demands': [4]}, {'task': 'T14', 'start': 13, 'end': 14, 'duration': 1, 'demands': [3]}, {'task': 'T15', 'start': 19, 'end': 20, 'duration': 1, 'demands': [0]}, {'task': 'T16', 'start': 19, 'end': 29, 'duration': 10, 'demands': [4]}, {'task': 'T17', 'start': 20, 'end': 26, 'duration': 6, 'demands': [1]}, {'task': 'T18', 'start': 29, 'end': 30, 'duration': 1, 'demands': [0]}, {'task': 'T19', 'start': 0, 'end': 8, 'duration': 8, 'demands': [0]}, {'task': 'T20', 'start': 0, 'end': 2, 'duration': 2, 'demands': [1]}] |
| RCPSP,RCPSP, |
|
|
| # total_sessions=20 |
| # resource_types_count=3 |
| # resources=1, 2, 3 |
| resource_id,capacity |
| 1,10 |
| 2,12 |
| 3,13 |
| session_id,session_duration,session_resource_needs,must_follow_sessions |
| T1,1,""0, 0, 0"",""T3"" |
| T2,2,""3, 8, 4"",""T6, T7, T8"" |
| T3,4,""4, 3, 4"",""T5, T6"" |
| T4,8,""6, 1, 2"",""T5, T6"" |
| T5,3,""4, 1, 3"",""T9, T11"" |
| T6,7,""10, 10, 6"",""T9, T11"" |
| T7,2,""5, 5, 1"",""T9"" |
| T8,10,""2, 7, 7"",""T10"" |
| T9,1,""6, 1, 2"",""T12"" |
| T10,2,""2, 2, 3"",""T14"" |
| T11,4,""4, 4, 3"",""T12, T13"" |
| T12,4,""2, 5, 8"",""T16"" |
| T13,7,""7, 6, 5"",""T15"" |
| T14,11,""2, 8, 6"",""T16"" |
| T15,1,""4, 8, 7"",""T18, T19"" |
| T16,4,""2, 1, 3"",""none"" |
| T17,1,""5, 3, 3"",""T18"" |
| T18,3,""3, 7, 4"",""T20"" |
| T19,5,""1, 11, 2"",""T20"" |
| T20,1,""0, 0, 0"",""none"" |
|
|
| Also, when you send the actual schedule back, please use this JSON layout so it's easy to read and check: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of this like a simple form: ""solution"" is the list of all recording sessions, and each item says which session it is (""task"") and when it starts and finishes (""start"" and ""end""). Keep it casual β task is the song/session identifier, start and end are the times (same units as the instance) when that session begins and ends. |
| |
| This JSON is just a sketch of the shape I expect, not the final scheduled times. |
| |
| Please make sure you use the exact identifiers from the instance input β do not 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β.","{'nr_tasks': 20, 'nr_resources': 3, 'capacities': [10, 12, 13], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [2]}, {'duration': 2, 'demands': [3, 8, 4], 'successors': [5, 6, 7]}, {'duration': 4, 'demands': [4, 3, 4], 'successors': [4, 5]}, {'duration': 8, 'demands': [6, 1, 2], 'successors': [4, 5]}, {'duration': 3, 'demands': [4, 1, 3], 'successors': [8, 10]}, {'duration': 7, 'demands': [10, 10, 6], 'successors': [8, 10]}, {'duration': 2, 'demands': [5, 5, 1], 'successors': [8]}, {'duration': 10, 'demands': [2, 7, 7], 'successors': [9]}, {'duration': 1, 'demands': [6, 1, 2], 'successors': [11]}, {'duration': 2, 'demands': [2, 2, 3], 'successors': [13]}, {'duration': 4, 'demands': [4, 4, 3], 'successors': [11, 12]}, {'duration': 4, 'demands': [2, 5, 8], 'successors': [15]}, {'duration': 7, 'demands': [7, 6, 5], 'successors': [14]}, {'duration': 11, 'demands': [2, 8, 6], 'successors': [15]}, {'duration': 1, 'demands': [4, 8, 7], 'successors': [17, 18]}, {'duration': 4, 'demands': [2, 1, 3], 'successors': []}, {'duration': 1, 'demands': [5, 3, 3], 'successors': [17]}, {'duration': 3, 'demands': [3, 7, 4], 'successors': [19]}, {'duration': 5, 'demands': [1, 11, 2], 'successors': [19]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 0, 'end': 2, 'duration': 2, 'demands': [3, 8, 4]}, {'task': 2, 'start': 8, 'end': 12, 'duration': 4, 'demands': [4, 3, 4]}, {'task': 3, 'start': 0, 'end': 8, 'duration': 8, 'demands': [6, 1, 2]}, {'task': 4, 'start': 21, 'end': 24, 'duration': 3, 'demands': [4, 1, 3]}, {'task': 5, 'start': 12, 'end': 19, 'duration': 7, 'demands': [10, 10, 6]}, {'task': 6, 'start': 19, 'end': 21, 'duration': 2, 'demands': [5, 5, 1]}, {'task': 7, 'start': 2, 'end': 12, 'duration': 10, 'demands': [2, 7, 7]}, {'task': 8, 'start': 28, 'end': 29, 'duration': 1, 'demands': [6, 1, 2]}, {'task': 9, 'start': 19, 'end': 21, 'duration': 2, 'demands': [2, 2, 3]}, {'task': 10, 'start': 24, 'end': 28, 'duration': 4, 'demands': [4, 4, 3]}, {'task': 11, 'start': 32, 'end': 36, 'duration': 4, 'demands': [2, 5, 8]}, {'task': 12, 'start': 32, 'end': 39, 'duration': 7, 'demands': [7, 6, 5]}, {'task': 13, 'start': 21, 'end': 32, 'duration': 11, 'demands': [2, 8, 6]}, {'task': 14, 'start': 39, 'end': 40, 'duration': 1, 'demands': [4, 8, 7]}, {'task': 15, 'start': 36, 'end': 40, 'duration': 4, 'demands': [2, 1, 3]}, {'task': 16, 'start': 29, 'end': 30, 'duration': 1, 'demands': [5, 3, 3]}, {'task': 17, 'start': 45, 'end': 48, 'duration': 3, 'demands': [3, 7, 4]}, {'task': 18, 'start': 40, 'end': 45, 'duration': 5, 'demands': [1, 11, 2]}, {'task': 19, 'start': 48, 'end': 49, 'duration': 1, 'demands': [0, 0, 0]}]",49.0,"{'problem_type': 'RCPSP', 'nr_tasks': 20, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 10}, {'resource_id': 2, 'capacity': 12}, {'resource_id': 3, 'capacity': 13}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T3']}, {'task_id': 'T2', 'duration': 2, 'demands': [3, 8, 4], 'successors': ['T6', 'T7', 'T8']}, {'task_id': 'T3', 'duration': 4, 'demands': [4, 3, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T4', 'duration': 8, 'demands': [6, 1, 2], 'successors': ['T5', 'T6']}, {'task_id': 'T5', 'duration': 3, 'demands': [4, 1, 3], 'successors': ['T9', 'T11']}, {'task_id': 'T6', 'duration': 7, 'demands': [10, 10, 6], 'successors': ['T9', 'T11']}, {'task_id': 'T7', 'duration': 2, 'demands': [5, 5, 1], 'successors': ['T9']}, {'task_id': 'T8', 'duration': 10, 'demands': [2, 7, 7], 'successors': ['T10']}, {'task_id': 'T9', 'duration': 1, 'demands': [6, 1, 2], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 2, 'demands': [2, 2, 3], 'successors': ['T14']}, {'task_id': 'T11', 'duration': 4, 'demands': [4, 4, 3], 'successors': ['T12', 'T13']}, {'task_id': 'T12', 'duration': 4, 'demands': [2, 5, 8], 'successors': ['T16']}, {'task_id': 'T13', 'duration': 7, 'demands': [7, 6, 5], 'successors': ['T15']}, {'task_id': 'T14', 'duration': 11, 'demands': [2, 8, 6], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 1, 'demands': [4, 8, 7], 'successors': ['T18', 'T19']}, {'task_id': 'T16', 'duration': 4, 'demands': [2, 1, 3], 'successors': []}, {'task_id': 'T17', 'duration': 1, 'demands': [5, 3, 3], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 3, 'demands': [3, 7, 4], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 5, 'demands': [1, 11, 2], 'successors': ['T20']}, {'task_id': 'T20', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 0, 'end': 2, 'duration': 2, 'demands': [3, 8, 4]}, {'task': 'T3', 'start': 8, 'end': 12, 'duration': 4, 'demands': [4, 3, 4]}, {'task': 'T4', 'start': 0, 'end': 8, 'duration': 8, 'demands': [6, 1, 2]}, {'task': 'T5', 'start': 21, 'end': 24, 'duration': 3, 'demands': [4, 1, 3]}, {'task': 'T6', 'start': 12, 'end': 19, 'duration': 7, 'demands': [10, 10, 6]}, {'task': 'T7', 'start': 19, 'end': 21, 'duration': 2, 'demands': [5, 5, 1]}, {'task': 'T8', 'start': 2, 'end': 12, 'duration': 10, 'demands': [2, 7, 7]}, {'task': 'T9', 'start': 28, 'end': 29, 'duration': 1, 'demands': [6, 1, 2]}, {'task': 'T10', 'start': 19, 'end': 21, 'duration': 2, 'demands': [2, 2, 3]}, {'task': 'T11', 'start': 24, 'end': 28, 'duration': 4, 'demands': [4, 4, 3]}, {'task': 'T12', 'start': 32, 'end': 36, 'duration': 4, 'demands': [2, 5, 8]}, {'task': 'T13', 'start': 32, 'end': 39, 'duration': 7, 'demands': [7, 6, 5]}, {'task': 'T14', 'start': 21, 'end': 32, 'duration': 11, 'demands': [2, 8, 6]}, {'task': 'T15', 'start': 39, 'end': 40, 'duration': 1, 'demands': [4, 8, 7]}, {'task': 'T16', 'start': 36, 'end': 40, 'duration': 4, 'demands': [2, 1, 3]}, {'task': 'T17', 'start': 29, 'end': 30, 'duration': 1, 'demands': [5, 3, 3]}, {'task': 'T18', 'start': 45, 'end': 48, 'duration': 3, 'demands': [3, 7, 4]}, {'task': 'T19', 'start': 40, 'end': 45, 'duration': 5, 'demands': [1, 11, 2]}, {'task': 'T20', 'start': 48, 'end': 49, 'duration': 1, 'demands': [0, 0, 0]}]",13,csv,1 |
| RCPSP,RCPSP,"Someone in the lab needs to map out the day: every experiment has a fixed runtime, it uses up certain instruments and tech time while itβs active, and some experiments depend on the results of earlier ones. The job is to pick start times, making sure each experiment runs exactly once, dependencies are honored, and at no point do equipment or technicians get overbooked. What makes one timetable better than another is simple β the sooner the last experiment is done, the better; use that final completion time to compare plans. The specific experiment schedule and resource limits are given below. |
| |
| There are 21 experiments to schedule, with 3 resource types available and capacities . |
| |
| | resource_id | capacity | |
| |---|---| |
| | 0 | 9 | |
| | 1 | 15 | |
| | 2 | 10 | |
| |
| | experiment_id | runtime | resource_demands | dependent_experiments | |
| |---|---|---|---| |
| | T1 | 1 | 0, 0, 0 | T2, T3 | |
| | T2 | 2 | 2, 3, 4 | T6, T8 | |
| | T3 | 2 | 9, 5, 3 | T5, T8 | |
| | T4 | 5 | 5, 4, 4 | T6, T7 | |
| | T5 | 5 | 2, 1, 8 | T9, T10 | |
| | T6 | 3 | 3, 6, 3 | T9, T10 | |
| | T7 | 5 | 2, 7, 2 | T9, T10 | |
| | T8 | 6 | 2, 3, 4 | T9, T11 | |
| | T9 | 2 | 5, 2, 2 | T12, T15 | |
| | T10 | 10 | 3, 2, 3 | T12 | |
| | T11 | 1 | 2, 2, 3 | T13, T14 | |
| | T12 | 5 | 1, 6, 2 | T16 | |
| | T13 | 2 | 3, 2, 2 | T17 | |
| | T14 | 4 | 7, 8, 5 | T18 | |
| | T15 | 4 | 1, 5, 4 | T16 | |
| | T16 | 3 | 5, 7, 6 | T19 | |
| | T17 | 1 | 3, 3, 6 | T19 | |
| | T18 | 7 | 5, 3, 6 | T20 | |
| | T19 | 4 | 2, 6, 7 | T21 | |
| | T20 | 1 | 1, 8, 2 | T21 | |
| | T21 | 1 | 0, 0, 0 | none | |
| |
| Respect these experiment runtimes, resource demands, and precedences; use the final completion time to compare timetables. |
| |
| Also, when you hand me the timetable, please use a simple JSON shape so it's easy to parse and check. |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of it like a little form: ""solution"" holds a list of experiment entries; each entry names the task (the experiment label) and the start and end times when that experiment runs. It's just a sketch of the shape I expect, not the actual schedule β you'll fill in the real task ids and times. |
|
|
| One more important thing: use the exact identifiers from the instance input β don't rename them or invent new ones. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [9, 15, 10], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2]}, {'duration': 2, 'demands': [2, 3, 4], 'successors': [5, 7]}, {'duration': 2, 'demands': [9, 5, 3], 'successors': [4, 7]}, {'duration': 5, 'demands': [5, 4, 4], 'successors': [5, 6]}, {'duration': 5, 'demands': [2, 1, 8], 'successors': [8, 9]}, {'duration': 3, 'demands': [3, 6, 3], 'successors': [8, 9]}, {'duration': 5, 'demands': [2, 7, 2], 'successors': [8, 9]}, {'duration': 6, 'demands': [2, 3, 4], 'successors': [8, 10]}, {'duration': 2, 'demands': [5, 2, 2], 'successors': [11, 14]}, {'duration': 10, 'demands': [3, 2, 3], 'successors': [11]}, {'duration': 1, 'demands': [2, 2, 3], 'successors': [12, 13]}, {'duration': 5, 'demands': [1, 6, 2], 'successors': [15]}, {'duration': 2, 'demands': [3, 2, 2], 'successors': [16]}, {'duration': 4, 'demands': [7, 8, 5], 'successors': [17]}, {'duration': 4, 'demands': [1, 5, 4], 'successors': [15]}, {'duration': 3, 'demands': [5, 7, 6], 'successors': [18]}, {'duration': 1, 'demands': [3, 3, 6], 'successors': [18]}, {'duration': 7, 'demands': [5, 3, 6], 'successors': [19]}, {'duration': 4, 'demands': [2, 6, 7], 'successors': [20]}, {'duration': 1, 'demands': [1, 8, 2], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 3, 'duration': 2, 'demands': [2, 3, 4]}, {'task': 2, 'start': 5, 'end': 7, 'duration': 2, 'demands': [9, 5, 3]}, {'task': 3, 'start': 0, 'end': 5, 'duration': 5, 'demands': [5, 4, 4]}, {'task': 4, 'start': 7, 'end': 12, 'duration': 5, 'demands': [2, 1, 8]}, {'task': 5, 'start': 12, 'end': 15, 'duration': 3, 'demands': [3, 6, 3]}, {'task': 6, 'start': 7, 'end': 12, 'duration': 5, 'demands': [2, 7, 2]}, {'task': 7, 'start': 12, 'end': 18, 'duration': 6, 'demands': [2, 3, 4]}, {'task': 8, 'start': 18, 'end': 20, 'duration': 2, 'demands': [5, 2, 2]}, {'task': 9, 'start': 15, 'end': 25, 'duration': 10, 'demands': [3, 2, 3]}, {'task': 10, 'start': 20, 'end': 21, 'duration': 1, 'demands': [2, 2, 3]}, {'task': 11, 'start': 25, 'end': 30, 'duration': 5, 'demands': [1, 6, 2]}, {'task': 12, 'start': 21, 'end': 23, 'duration': 2, 'demands': [3, 2, 2]}, {'task': 13, 'start': 25, 'end': 29, 'duration': 4, 'demands': [7, 8, 5]}, {'task': 14, 'start': 20, 'end': 24, 'duration': 4, 'demands': [1, 5, 4]}, {'task': 15, 'start': 36, 'end': 39, 'duration': 3, 'demands': [5, 7, 6]}, {'task': 16, 'start': 24, 'end': 25, 'duration': 1, 'demands': [3, 3, 6]}, {'task': 17, 'start': 29, 'end': 36, 'duration': 7, 'demands': [5, 3, 6]}, {'task': 18, 'start': 39, 'end': 43, 'duration': 4, 'demands': [2, 6, 7]}, {'task': 19, 'start': 36, 'end': 37, 'duration': 1, 'demands': [1, 8, 2]}, {'task': 20, 'start': 43, 'end': 44, 'duration': 1, 'demands': [0, 0, 0]}]",44.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 9}, {'resource_id': 1, 'capacity': 15}, {'resource_id': 2, 'capacity': 10}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3']}, {'task_id': 'T2', 'duration': 2, 'demands': [2, 3, 4], 'successors': ['T6', 'T8']}, {'task_id': 'T3', 'duration': 2, 'demands': [9, 5, 3], 'successors': ['T5', 'T8']}, {'task_id': 'T4', 'duration': 5, 'demands': [5, 4, 4], 'successors': ['T6', 'T7']}, {'task_id': 'T5', 'duration': 5, 'demands': [2, 1, 8], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 3, 'demands': [3, 6, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 5, 'demands': [2, 7, 2], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 6, 'demands': [2, 3, 4], 'successors': ['T9', 'T11']}, {'task_id': 'T9', 'duration': 2, 'demands': [5, 2, 2], 'successors': ['T12', 'T15']}, {'task_id': 'T10', 'duration': 10, 'demands': [3, 2, 3], 'successors': ['T12']}, {'task_id': 'T11', 'duration': 1, 'demands': [2, 2, 3], 'successors': ['T13', 'T14']}, {'task_id': 'T12', 'duration': 5, 'demands': [1, 6, 2], 'successors': ['T16']}, {'task_id': 'T13', 'duration': 2, 'demands': [3, 2, 2], 'successors': ['T17']}, {'task_id': 'T14', 'duration': 4, 'demands': [7, 8, 5], 'successors': ['T18']}, {'task_id': 'T15', 'duration': 4, 'demands': [1, 5, 4], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 3, 'demands': [5, 7, 6], 'successors': ['T19']}, {'task_id': 'T17', 'duration': 1, 'demands': [3, 3, 6], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 7, 'demands': [5, 3, 6], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 4, 'demands': [2, 6, 7], 'successors': ['T21']}, {'task_id': 'T20', 'duration': 1, 'demands': [1, 8, 2], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 3, 'duration': 2, 'demands': [2, 3, 4]}, {'task': 'T3', 'start': 5, 'end': 7, 'duration': 2, 'demands': [9, 5, 3]}, {'task': 'T4', 'start': 0, 'end': 5, 'duration': 5, 'demands': [5, 4, 4]}, {'task': 'T5', 'start': 7, 'end': 12, 'duration': 5, 'demands': [2, 1, 8]}, {'task': 'T6', 'start': 12, 'end': 15, 'duration': 3, 'demands': [3, 6, 3]}, {'task': 'T7', 'start': 7, 'end': 12, 'duration': 5, 'demands': [2, 7, 2]}, {'task': 'T8', 'start': 12, 'end': 18, 'duration': 6, 'demands': [2, 3, 4]}, {'task': 'T9', 'start': 18, 'end': 20, 'duration': 2, 'demands': [5, 2, 2]}, {'task': 'T10', 'start': 15, 'end': 25, 'duration': 10, 'demands': [3, 2, 3]}, {'task': 'T11', 'start': 20, 'end': 21, 'duration': 1, 'demands': [2, 2, 3]}, {'task': 'T12', 'start': 25, 'end': 30, 'duration': 5, 'demands': [1, 6, 2]}, {'task': 'T13', 'start': 21, 'end': 23, 'duration': 2, 'demands': [3, 2, 2]}, {'task': 'T14', 'start': 25, 'end': 29, 'duration': 4, 'demands': [7, 8, 5]}, {'task': 'T15', 'start': 20, 'end': 24, 'duration': 4, 'demands': [1, 5, 4]}, {'task': 'T16', 'start': 36, 'end': 39, 'duration': 3, 'demands': [5, 7, 6]}, {'task': 'T17', 'start': 24, 'end': 25, 'duration': 1, 'demands': [3, 3, 6]}, {'task': 'T18', 'start': 29, 'end': 36, 'duration': 7, 'demands': [5, 3, 6]}, {'task': 'T19', 'start': 39, 'end': 43, 'duration': 4, 'demands': [2, 6, 7]}, {'task': 'T20', 'start': 36, 'end': 37, 'duration': 1, 'demands': [1, 8, 2]}, {'task': 'T21', 'start': 43, 'end': 44, 'duration': 1, 'demands': [0, 0, 0]}]",14,markdown_table,0 |
| RCPSP,RCPSP,"Someone on the floor is juggling start times for each picking and packing job β each job takes a set amount of time, needs a few forklifts and some hands while itβs running, and often has to wait for other jobs to finish first. The plan must include every job exactly once, keep the running count of forklifts and staff within the limits at all moments, and try to make the shipment go out as early as possible β that target is simply the time when the last job ends. The detailed instance (jobs, times, and resources) appears below. |
| |
| { |
| ""total_jobs"": 21, |
| ""resource_types_count"": 3, |
| ""resources"": [ |
| 1, |
| 2, |
| 3 |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": 1, |
| ""capacity"": 12 |
| }, |
| { |
| ""resource_id"": 2, |
| ""capacity"": 10 |
| }, |
| { |
| ""resource_id"": 3, |
| ""capacity"": 15 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""job_id"": ""T1"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_jobs"": [ |
| ""T2"", |
| ""T3"", |
| ""T4"" |
| ] |
| }, |
| { |
| ""job_id"": ""T2"", |
| ""job_duration"": 9, |
| ""resource_demands"": [ |
| 5, |
| 3, |
| 3 |
| ], |
| ""successor_jobs"": [ |
| ""T5"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""job_id"": ""T3"", |
| ""job_duration"": 5, |
| ""resource_demands"": [ |
| 4, |
| 5, |
| 2 |
| ], |
| ""successor_jobs"": [ |
| ""T5"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""job_id"": ""T4"", |
| ""job_duration"": 4, |
| ""resource_demands"": [ |
| 3, |
| 3, |
| 1 |
| ], |
| ""successor_jobs"": [ |
| ""T6"", |
| ""T7"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""job_id"": ""T5"", |
| ""job_duration"": 6, |
| ""resource_demands"": [ |
| 8, |
| 1, |
| 3 |
| ], |
| ""successor_jobs"": [ |
| ""T9"" |
| ] |
| }, |
| { |
| ""job_id"": ""T6"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 4, |
| 4, |
| 3 |
| ], |
| ""successor_jobs"": [ |
| ""T10"" |
| ] |
| }, |
| { |
| ""job_id"": ""T7"", |
| ""job_duration"": 6, |
| ""resource_demands"": [ |
| 6, |
| 10, |
| 3 |
| ], |
| ""successor_jobs"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""job_id"": ""T8"", |
| ""job_duration"": 3, |
| ""resource_demands"": [ |
| 2, |
| 3, |
| 5 |
| ], |
| ""successor_jobs"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""job_id"": ""T9"", |
| ""job_duration"": 10, |
| ""resource_demands"": [ |
| 3, |
| 3, |
| 1 |
| ], |
| ""successor_jobs"": [] |
| }, |
| { |
| ""job_id"": ""T10"", |
| ""job_duration"": 3, |
| ""resource_demands"": [ |
| 5, |
| 3, |
| 5 |
| ], |
| ""successor_jobs"": [ |
| ""T11"" |
| ] |
| }, |
| { |
| ""job_id"": ""T11"", |
| ""job_duration"": 5, |
| ""resource_demands"": [ |
| 1, |
| 4, |
| 6 |
| ], |
| ""successor_jobs"": [] |
| }, |
| { |
| ""job_id"": ""T12"", |
| ""job_duration"": 5, |
| ""resource_demands"": [ |
| 2, |
| 3, |
| 8 |
| ], |
| ""successor_jobs"": [ |
| ""T13"" |
| ] |
| }, |
| { |
| ""job_id"": ""T13"", |
| ""job_duration"": 7, |
| ""resource_demands"": [ |
| 7, |
| 7, |
| 4 |
| ], |
| ""successor_jobs"": [ |
| ""T16"", |
| ""T18"" |
| ] |
| }, |
| { |
| ""job_id"": ""T14"", |
| ""job_duration"": 4, |
| ""resource_demands"": [ |
| 3, |
| 5, |
| 3 |
| ], |
| ""successor_jobs"": [ |
| ""T15"", |
| ""T17"" |
| ] |
| }, |
| { |
| ""job_id"": ""T15"", |
| ""job_duration"": 5, |
| ""resource_demands"": [ |
| 2, |
| 3, |
| 1 |
| ], |
| ""successor_jobs"": [ |
| ""T19"" |
| ] |
| }, |
| { |
| ""job_id"": ""T16"", |
| ""job_duration"": 9, |
| ""resource_demands"": [ |
| 3, |
| 3, |
| 1 |
| ], |
| ""successor_jobs"": [ |
| ""T19"" |
| ] |
| }, |
| { |
| ""job_id"": ""T17"", |
| ""job_duration"": 7, |
| ""resource_demands"": [ |
| 2, |
| 0, |
| 8 |
| ], |
| ""successor_jobs"": [ |
| ""T19"", |
| ""T20"" |
| ] |
| }, |
| { |
| ""job_id"": ""T18"", |
| ""job_duration"": 2, |
| ""resource_demands"": [ |
| 3, |
| 4, |
| 2 |
| ], |
| ""successor_jobs"": [ |
| ""T19"" |
| ] |
| }, |
| { |
| ""job_id"": ""T19"", |
| ""job_duration"": 3, |
| ""resource_demands"": [ |
| 0, |
| 2, |
| 2 |
| ], |
| ""successor_jobs"": [ |
| ""T21"" |
| ] |
| }, |
| { |
| ""job_id"": ""T20"", |
| ""job_duration"": 2, |
| ""resource_demands"": [ |
| 2, |
| 3, |
| 4 |
| ], |
| ""successor_jobs"": [ |
| ""T21"" |
| ] |
| }, |
| { |
| ""job_id"": ""T21"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_jobs"": [] |
| } |
| ] |
| } |
| |
| If you want to hand me the schedule, a nice, tidy JSON layout works best β something like this shape will do the job: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This just sketches the shape: ""solution"" is the list of all jobs, and each entry says which task (its id) and when it starts and ends. Think of it like filling out a little form for each picking/packing job: the job label, its start time, and its end time. Itβs just an example of the format I expect, not the actual schedule. |
| |
| Please make sure to use the exact identifiers from the instance input β donβt rename tasks 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β.""","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [12, 10, 15], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 9, 'demands': [5, 3, 3], 'successors': [4, 7]}, {'duration': 5, 'demands': [4, 5, 2], 'successors': [4, 7]}, {'duration': 4, 'demands': [3, 3, 1], 'successors': [5, 6, 7]}, {'duration': 6, 'demands': [8, 1, 3], 'successors': [8]}, {'duration': 1, 'demands': [4, 4, 3], 'successors': [9]}, {'duration': 6, 'demands': [6, 10, 3], 'successors': [8, 9]}, {'duration': 3, 'demands': [2, 3, 5], 'successors': [8, 9]}, {'duration': 10, 'demands': [3, 3, 1], 'successors': []}, {'duration': 3, 'demands': [5, 3, 5], 'successors': [10]}, {'duration': 5, 'demands': [1, 4, 6], 'successors': []}, {'duration': 5, 'demands': [2, 3, 8], 'successors': [12]}, {'duration': 7, 'demands': [7, 7, 4], 'successors': [15, 17]}, {'duration': 4, 'demands': [3, 5, 3], 'successors': [14, 16]}, {'duration': 5, 'demands': [2, 3, 1], 'successors': [18]}, {'duration': 9, 'demands': [3, 3, 1], 'successors': [18]}, {'duration': 7, 'demands': [2, 0, 8], 'successors': [18, 19]}, {'duration': 2, 'demands': [3, 4, 2], 'successors': [18]}, {'duration': 3, 'demands': [0, 2, 2], 'successors': [20]}, {'duration': 2, 'demands': [2, 3, 4], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 4, 'end': 13, 'duration': 9, 'demands': [5, 3, 3]}, {'task': 2, 'start': 1, 'end': 6, 'duration': 5, 'demands': [4, 5, 2]}, {'task': 3, 'start': 6, 'end': 10, 'duration': 4, 'demands': [3, 3, 1]}, {'task': 4, 'start': 24, 'end': 30, 'duration': 6, 'demands': [8, 1, 3]}, {'task': 5, 'start': 10, 'end': 11, 'duration': 1, 'demands': [4, 4, 3]}, {'task': 6, 'start': 18, 'end': 24, 'duration': 6, 'demands': [6, 10, 3]}, {'task': 7, 'start': 24, 'end': 27, 'duration': 3, 'demands': [2, 3, 5]}, {'task': 8, 'start': 30, 'end': 40, 'duration': 10, 'demands': [3, 3, 1]}, {'task': 9, 'start': 30, 'end': 33, 'duration': 3, 'demands': [5, 3, 5]}, {'task': 10, 'start': 35, 'end': 40, 'duration': 5, 'demands': [1, 4, 6]}, {'task': 11, 'start': 6, 'end': 11, 'duration': 5, 'demands': [2, 3, 8]}, {'task': 12, 'start': 11, 'end': 18, 'duration': 7, 'demands': [7, 7, 4]}, {'task': 13, 'start': 0, 'end': 4, 'duration': 4, 'demands': [3, 5, 3]}, {'task': 14, 'start': 13, 'end': 18, 'duration': 5, 'demands': [2, 3, 1]}, {'task': 15, 'start': 27, 'end': 36, 'duration': 9, 'demands': [3, 3, 1]}, {'task': 16, 'start': 13, 'end': 20, 'duration': 7, 'demands': [2, 0, 8]}, {'task': 17, 'start': 33, 'end': 35, 'duration': 2, 'demands': [3, 4, 2]}, {'task': 18, 'start': 36, 'end': 39, 'duration': 3, 'demands': [0, 2, 2]}, {'task': 19, 'start': 24, 'end': 26, 'duration': 2, 'demands': [2, 3, 4]}, {'task': 20, 'start': 39, 'end': 40, 'duration': 1, 'demands': [0, 0, 0]}]",40.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 12}, {'resource_id': 2, 'capacity': 10}, {'resource_id': 3, 'capacity': 15}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 9, 'demands': [5, 3, 3], 'successors': ['T5', 'T8']}, {'task_id': 'T3', 'duration': 5, 'demands': [4, 5, 2], 'successors': ['T5', 'T8']}, {'task_id': 'T4', 'duration': 4, 'demands': [3, 3, 1], 'successors': ['T6', 'T7', 'T8']}, {'task_id': 'T5', 'duration': 6, 'demands': [8, 1, 3], 'successors': ['T9']}, {'task_id': 'T6', 'duration': 1, 'demands': [4, 4, 3], 'successors': ['T10']}, {'task_id': 'T7', 'duration': 6, 'demands': [6, 10, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 3, 'demands': [2, 3, 5], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 10, 'demands': [3, 3, 1], 'successors': []}, {'task_id': 'T10', 'duration': 3, 'demands': [5, 3, 5], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 5, 'demands': [1, 4, 6], 'successors': []}, {'task_id': 'T12', 'duration': 5, 'demands': [2, 3, 8], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 7, 'demands': [7, 7, 4], 'successors': ['T16', 'T18']}, {'task_id': 'T14', 'duration': 4, 'demands': [3, 5, 3], 'successors': ['T15', 'T17']}, {'task_id': 'T15', 'duration': 5, 'demands': [2, 3, 1], 'successors': ['T19']}, {'task_id': 'T16', 'duration': 9, 'demands': [3, 3, 1], 'successors': ['T19']}, {'task_id': 'T17', 'duration': 7, 'demands': [2, 0, 8], 'successors': ['T19', 'T20']}, {'task_id': 'T18', 'duration': 2, 'demands': [3, 4, 2], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 3, 'demands': [0, 2, 2], 'successors': ['T21']}, {'task_id': 'T20', 'duration': 2, 'demands': [2, 3, 4], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 4, 'end': 13, 'duration': 9, 'demands': [5, 3, 3]}, {'task': 'T3', 'start': 1, 'end': 6, 'duration': 5, 'demands': [4, 5, 2]}, {'task': 'T4', 'start': 6, 'end': 10, 'duration': 4, 'demands': [3, 3, 1]}, {'task': 'T5', 'start': 24, 'end': 30, 'duration': 6, 'demands': [8, 1, 3]}, {'task': 'T6', 'start': 10, 'end': 11, 'duration': 1, 'demands': [4, 4, 3]}, {'task': 'T7', 'start': 18, 'end': 24, 'duration': 6, 'demands': [6, 10, 3]}, {'task': 'T8', 'start': 24, 'end': 27, 'duration': 3, 'demands': [2, 3, 5]}, {'task': 'T9', 'start': 30, 'end': 40, 'duration': 10, 'demands': [3, 3, 1]}, {'task': 'T10', 'start': 30, 'end': 33, 'duration': 3, 'demands': [5, 3, 5]}, {'task': 'T11', 'start': 35, 'end': 40, 'duration': 5, 'demands': [1, 4, 6]}, {'task': 'T12', 'start': 6, 'end': 11, 'duration': 5, 'demands': [2, 3, 8]}, {'task': 'T13', 'start': 11, 'end': 18, 'duration': 7, 'demands': [7, 7, 4]}, {'task': 'T14', 'start': 0, 'end': 4, 'duration': 4, 'demands': [3, 5, 3]}, {'task': 'T15', 'start': 13, 'end': 18, 'duration': 5, 'demands': [2, 3, 1]}, {'task': 'T16', 'start': 27, 'end': 36, 'duration': 9, 'demands': [3, 3, 1]}, {'task': 'T17', 'start': 13, 'end': 20, 'duration': 7, 'demands': [2, 0, 8]}, {'task': 'T18', 'start': 33, 'end': 35, 'duration': 2, 'demands': [3, 4, 2]}, {'task': 'T19', 'start': 36, 'end': 39, 'duration': 3, 'demands': [0, 2, 2]}, {'task': 'T20', 'start': 24, 'end': 26, 'duration': 2, 'demands': [2, 3, 4]}, {'task': 'T21', 'start': 39, 'end': 40, 'duration': 1, 'demands': [0, 0, 0]}]",15,json,1 |
| RCPSP,RCPSP,"Many projects look simple on paper until the crews and tools start to overlap; this one lists hardscape and planting phases that each take a certain amount of time and need certain crews or equipment while they run. The decision is to place each phase on the timeline, respecting which phases must finish before others can begin, and avoiding any overlap that would demand more resources than exist. A smarter placement is the one where the final phase finishes sooner β that finish time is the bottom-line measure β and the concrete task breakdown and resource numbers are shown below. |
| |
| # total_phases=19 |
| # resource_types_count=3 |
| # resources=0, 1, 2 |
| resource_id,capacity |
| 0,9 |
| 1,14 |
| 2,8 |
| phase_id,phase_duration,resource_requirements,finish_to_start_successors |
| T1,1,""0, 0, 0"",""T2, T3, T4"" |
| T2,4,""6, 6, 4"",""T7"" |
| T3,2,""9, 3, 6"",""T5, T7"" |
| T4,5,""5, 1, 4"",""T5, T6"" |
| T5,10,""5, 1, 6"",""T9, T11"" |
| T6,4,""4, 5, 8"",""T10, T12"" |
| T7,3,""6, 6, 2"",""T10, T11"" |
| T8,6,""3, 5, 3"",""T11"" |
| T9,2,""3, 3, 2"",""T13, T14"" |
| T10,1,""4, 1, 4"",""T13"" |
| T11,1,""3, 5, 3"",""T13"" |
| T12,1,""2, 1, 4"",""T13"" |
| T13,2,""1, 6, 2"",""T15"" |
| T14,4,""1, 3, 7"",""none"" |
| T15,3,""3, 4, 5"",""T17"" |
| T16,2,""5, 3, 2"",""T17, T18"" |
| T17,1,""1, 3, 8"",""T19"" |
| T18,7,""1, 8, 4"",""T19"" |
| T19,1,""0, 0, 0"",""none"" |
| |
| Also, when you send the actual schedule back, please use this simple JSON shape β nothing fancy, just a list of tasks with their start and end times in that structure: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of it like a little form: each entry names the task and the time window when it runs. This block is just the sketch of the shape I need β replace those placeholders with the real task identifiers and numbers for start and end times when you give the schedule. |
| |
| Please make sure to use the exact task identifiers from the instance input β do not rename tasks 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β."" |
| |
| That's it β fill in that JSON shape with the real schedule and we'll be set.","{'nr_tasks': 19, 'nr_resources': 3, 'capacities': [9, 14, 8], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 4, 'demands': [6, 6, 4], 'successors': [6]}, {'duration': 2, 'demands': [9, 3, 6], 'successors': [4, 6]}, {'duration': 5, 'demands': [5, 1, 4], 'successors': [4, 5]}, {'duration': 10, 'demands': [5, 1, 6], 'successors': [8, 10]}, {'duration': 4, 'demands': [4, 5, 8], 'successors': [9, 11]}, {'duration': 3, 'demands': [6, 6, 2], 'successors': [9, 10]}, {'duration': 6, 'demands': [3, 5, 3], 'successors': [10]}, {'duration': 2, 'demands': [3, 3, 2], 'successors': [12, 13]}, {'duration': 1, 'demands': [4, 1, 4], 'successors': [12]}, {'duration': 1, 'demands': [3, 5, 3], 'successors': [12]}, {'duration': 1, 'demands': [2, 1, 4], 'successors': [12]}, {'duration': 2, 'demands': [1, 6, 2], 'successors': [14]}, {'duration': 4, 'demands': [1, 3, 7], 'successors': []}, {'duration': 3, 'demands': [3, 4, 5], 'successors': [16]}, {'duration': 2, 'demands': [5, 3, 2], 'successors': [16, 17]}, {'duration': 1, 'demands': [1, 3, 8], 'successors': [18]}, {'duration': 7, 'demands': [1, 8, 4], 'successors': [18]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 23, 'end': 27, 'duration': 4, 'demands': [6, 6, 4]}, {'task': 2, 'start': 7, 'end': 9, 'duration': 2, 'demands': [9, 3, 6]}, {'task': 3, 'start': 2, 'end': 7, 'duration': 5, 'demands': [5, 1, 4]}, {'task': 4, 'start': 9, 'end': 19, 'duration': 10, 'demands': [5, 1, 6]}, {'task': 5, 'start': 19, 'end': 23, 'duration': 4, 'demands': [4, 5, 8]}, {'task': 6, 'start': 27, 'end': 30, 'duration': 3, 'demands': [6, 6, 2]}, {'task': 7, 'start': 0, 'end': 6, 'duration': 6, 'demands': [3, 5, 3]}, {'task': 8, 'start': 23, 'end': 25, 'duration': 2, 'demands': [3, 3, 2]}, {'task': 9, 'start': 31, 'end': 32, 'duration': 1, 'demands': [4, 1, 4]}, {'task': 10, 'start': 30, 'end': 31, 'duration': 1, 'demands': [3, 5, 3]}, {'task': 11, 'start': 25, 'end': 26, 'duration': 1, 'demands': [2, 1, 4]}, {'task': 12, 'start': 32, 'end': 34, 'duration': 2, 'demands': [1, 6, 2]}, {'task': 13, 'start': 38, 'end': 42, 'duration': 4, 'demands': [1, 3, 7]}, {'task': 14, 'start': 34, 'end': 37, 'duration': 3, 'demands': [3, 4, 5]}, {'task': 15, 'start': 0, 'end': 2, 'duration': 2, 'demands': [5, 3, 2]}, {'task': 16, 'start': 37, 'end': 38, 'duration': 1, 'demands': [1, 3, 8]}, {'task': 17, 'start': 26, 'end': 33, 'duration': 7, 'demands': [1, 8, 4]}, {'task': 18, 'start': 38, 'end': 39, 'duration': 1, 'demands': [0, 0, 0]}]",42.0,"{'problem_type': 'RCPSP', 'nr_tasks': 19, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 9}, {'resource_id': 1, 'capacity': 14}, {'resource_id': 2, 'capacity': 8}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 4, 'demands': [6, 6, 4], 'successors': ['T7']}, {'task_id': 'T3', 'duration': 2, 'demands': [9, 3, 6], 'successors': ['T5', 'T7']}, {'task_id': 'T4', 'duration': 5, 'demands': [5, 1, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T5', 'duration': 10, 'demands': [5, 1, 6], 'successors': ['T9', 'T11']}, {'task_id': 'T6', 'duration': 4, 'demands': [4, 5, 8], 'successors': ['T10', 'T12']}, {'task_id': 'T7', 'duration': 3, 'demands': [6, 6, 2], 'successors': ['T10', 'T11']}, {'task_id': 'T8', 'duration': 6, 'demands': [3, 5, 3], 'successors': ['T11']}, {'task_id': 'T9', 'duration': 2, 'demands': [3, 3, 2], 'successors': ['T13', 'T14']}, {'task_id': 'T10', 'duration': 1, 'demands': [4, 1, 4], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 1, 'demands': [3, 5, 3], 'successors': ['T13']}, {'task_id': 'T12', 'duration': 1, 'demands': [2, 1, 4], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 2, 'demands': [1, 6, 2], 'successors': ['T15']}, {'task_id': 'T14', 'duration': 4, 'demands': [1, 3, 7], 'successors': []}, {'task_id': 'T15', 'duration': 3, 'demands': [3, 4, 5], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 2, 'demands': [5, 3, 2], 'successors': ['T17', 'T18']}, {'task_id': 'T17', 'duration': 1, 'demands': [1, 3, 8], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 7, 'demands': [1, 8, 4], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 23, 'end': 27, 'duration': 4, 'demands': [6, 6, 4]}, {'task': 'T3', 'start': 7, 'end': 9, 'duration': 2, 'demands': [9, 3, 6]}, {'task': 'T4', 'start': 2, 'end': 7, 'duration': 5, 'demands': [5, 1, 4]}, {'task': 'T5', 'start': 9, 'end': 19, 'duration': 10, 'demands': [5, 1, 6]}, {'task': 'T6', 'start': 19, 'end': 23, 'duration': 4, 'demands': [4, 5, 8]}, {'task': 'T7', 'start': 27, 'end': 30, 'duration': 3, 'demands': [6, 6, 2]}, {'task': 'T8', 'start': 0, 'end': 6, 'duration': 6, 'demands': [3, 5, 3]}, {'task': 'T9', 'start': 23, 'end': 25, 'duration': 2, 'demands': [3, 3, 2]}, {'task': 'T10', 'start': 31, 'end': 32, 'duration': 1, 'demands': [4, 1, 4]}, {'task': 'T11', 'start': 30, 'end': 31, 'duration': 1, 'demands': [3, 5, 3]}, {'task': 'T12', 'start': 25, 'end': 26, 'duration': 1, 'demands': [2, 1, 4]}, {'task': 'T13', 'start': 32, 'end': 34, 'duration': 2, 'demands': [1, 6, 2]}, {'task': 'T14', 'start': 38, 'end': 42, 'duration': 4, 'demands': [1, 3, 7]}, {'task': 'T15', 'start': 34, 'end': 37, 'duration': 3, 'demands': [3, 4, 5]}, {'task': 'T16', 'start': 0, 'end': 2, 'duration': 2, 'demands': [5, 3, 2]}, {'task': 'T17', 'start': 37, 'end': 38, 'duration': 1, 'demands': [1, 3, 8]}, {'task': 'T18', 'start': 26, 'end': 33, 'duration': 7, 'demands': [1, 8, 4]}, {'task': 'T19', 'start': 38, 'end': 39, 'duration': 1, 'demands': [0, 0, 0]}]",16,csv,0 |
| RCPSP,RCPSP,"Imagine the behind-the-scenes scramble: every booth and performance block has a known setup length, needs certain setup teams and power lines while itβs being built, and a few of them have to wait for others to be done first. The organizerβs job is to place each job on the timeline with a start time so overlapping work never asks for more teams or electricity than exists, nothing gets omitted or duplicated, and the full site is ready at the earliest moment β basically shave down the time when the last build completes. The specifics for each job and the available crews and power are below. |
| |
| There are 19 stalls and performance blocks to schedule, 3 resource types to track, and resource capacities are . |
| For task T1, the organizer must place a 1-time activity that consumes 0, 0, 0 while running and cannot start until T2, T3, T4 have finished. |
| For task T2, the organizer must place a 4-time activity that consumes 3, 10, 3 while running and cannot start until T5, T8 have finished. |
| For task T3, the organizer must place a 4-time activity that consumes 6, 6, 3 while running and cannot start until T5, T8 have finished. |
| For task T4, the organizer must place a 4-time activity that consumes 3, 2, 3 while running and cannot start until T6, T7, T8 have finished. |
| For task T5, the organizer must place a 5-time activity that consumes 6, 1, 2 while running and cannot start until T9, T19 have finished. |
| For task T6, the organizer must place a 2-time activity that consumes 8, 5, 3 while running and cannot start until T10 have finished. |
| For task T7, the organizer must place a 6-time activity that consumes 2, 7, 2 while running and cannot start until T9, T10, T13 have finished. |
| For task T8, the organizer must place a 3-time activity that consumes 1, 3, 3 while running and cannot start until T9, T10 have finished. |
| For task T9, the organizer must place a 4-time activity that consumes 5, 1, 3 while running and cannot start until T11 have finished. |
| For task T10, the organizer must place a 5-time activity that consumes 2, 3, 6 while running and cannot start until T11 have finished. |
| For task T11, the organizer must place a 3-time activity that consumes 1, 3, 8 while running and cannot start until T14 have finished. |
| For task T12, the organizer must place a 2-time activity that consumes 1, 4, 4 while running and cannot start until T13 have finished. |
| For task T13, the organizer must place a 2-time activity that consumes 5, 3, 2 while running and cannot start until T16 have finished. |
| For task T14, the organizer must place a 5-time activity that consumes 10, 3, 4 while running and cannot start until T15, T17 have finished. |
| For task T15, the organizer must place a 3-time activity that consumes 1, 9, 2 while running and cannot start until T18 have finished. |
| For task T16, the organizer must place a 4-time activity that consumes 6, 4, 1 while running and cannot start until T18 have finished. |
| For task T17, the organizer must place a 7-time activity that consumes 2, 0, 2 while running and cannot start until T18 have finished. |
| For task T18, the organizer must place a 3-time activity that consumes 0, 1, 5 while running and cannot start until T19 have finished. |
| For task T19, the organizer must place a 1-time activity that consumes 0, 0, 0 while running and cannot start until none have finished. |
| The organizer will use these lines to schedule each job and shave down the time when the last build completes. |
| |
| Also, when you hand me the schedule, please use this simple JSON shape so it's quick to parse and nobody has to guess what goes where. |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This just means the top-level ""solution"" is a list of entries; each entry names a task and the time it starts and finishes. Think of ""task"" as the job label (which matches whatever label appears in the input), and ""start"" / ""end"" as the scheduled times β super straightforward, like filling in a short form. This block is only a sketch of the expected shape, not the actual schedule. |
|
|
| 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β.""","{'nr_tasks': 19, 'nr_resources': 3, 'capacities': [15, 17, 18], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 4, 'demands': [3, 10, 3], 'successors': [4, 7]}, {'duration': 4, 'demands': [6, 6, 3], 'successors': [4, 7]}, {'duration': 4, 'demands': [3, 2, 3], 'successors': [5, 6, 7]}, {'duration': 5, 'demands': [6, 1, 2], 'successors': [8, 18]}, {'duration': 2, 'demands': [8, 5, 3], 'successors': [9]}, {'duration': 6, 'demands': [2, 7, 2], 'successors': [8, 9, 12]}, {'duration': 3, 'demands': [1, 3, 3], 'successors': [8, 9]}, {'duration': 4, 'demands': [5, 1, 3], 'successors': [10]}, {'duration': 5, 'demands': [2, 3, 6], 'successors': [10]}, {'duration': 3, 'demands': [1, 3, 8], 'successors': [13]}, {'duration': 2, 'demands': [1, 4, 4], 'successors': [12]}, {'duration': 2, 'demands': [5, 3, 2], 'successors': [15]}, {'duration': 5, 'demands': [10, 3, 4], 'successors': [14, 16]}, {'duration': 3, 'demands': [1, 9, 2], 'successors': [17]}, {'duration': 4, 'demands': [6, 4, 1], 'successors': [17]}, {'duration': 7, 'demands': [2, 0, 2], 'successors': [17]}, {'duration': 3, 'demands': [0, 1, 5], 'successors': [18]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 5, 'duration': 4, 'demands': [3, 10, 3]}, {'task': 2, 'start': 5, 'end': 9, 'duration': 4, 'demands': [6, 6, 3]}, {'task': 3, 'start': 1, 'end': 5, 'duration': 4, 'demands': [3, 2, 3]}, {'task': 4, 'start': 9, 'end': 14, 'duration': 5, 'demands': [6, 1, 2]}, {'task': 5, 'start': 11, 'end': 13, 'duration': 2, 'demands': [8, 5, 3]}, {'task': 6, 'start': 5, 'end': 11, 'duration': 6, 'demands': [2, 7, 2]}, {'task': 7, 'start': 9, 'end': 12, 'duration': 3, 'demands': [1, 3, 3]}, {'task': 8, 'start': 14, 'end': 18, 'duration': 4, 'demands': [5, 1, 3]}, {'task': 9, 'start': 13, 'end': 18, 'duration': 5, 'demands': [2, 3, 6]}, {'task': 10, 'start': 18, 'end': 21, 'duration': 3, 'demands': [1, 3, 8]}, {'task': 11, 'start': 0, 'end': 2, 'duration': 2, 'demands': [1, 4, 4]}, {'task': 12, 'start': 13, 'end': 15, 'duration': 2, 'demands': [5, 3, 2]}, {'task': 13, 'start': 21, 'end': 26, 'duration': 5, 'demands': [10, 3, 4]}, {'task': 14, 'start': 26, 'end': 29, 'duration': 3, 'demands': [1, 9, 2]}, {'task': 15, 'start': 15, 'end': 19, 'duration': 4, 'demands': [6, 4, 1]}, {'task': 16, 'start': 26, 'end': 33, 'duration': 7, 'demands': [2, 0, 2]}, {'task': 17, 'start': 33, 'end': 36, 'duration': 3, 'demands': [0, 1, 5]}, {'task': 18, 'start': 36, 'end': 37, 'duration': 1, 'demands': [0, 0, 0]}]",37.0,"{'problem_type': 'RCPSP', 'nr_tasks': 19, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 15}, {'resource_id': 'B', 'capacity': 17}, {'resource_id': 'C', 'capacity': 18}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 4, 'demands': [3, 10, 3], 'successors': ['T5', 'T8']}, {'task_id': 'T3', 'duration': 4, 'demands': [6, 6, 3], 'successors': ['T5', 'T8']}, {'task_id': 'T4', 'duration': 4, 'demands': [3, 2, 3], 'successors': ['T6', 'T7', 'T8']}, {'task_id': 'T5', 'duration': 5, 'demands': [6, 1, 2], 'successors': ['T9', 'T19']}, {'task_id': 'T6', 'duration': 2, 'demands': [8, 5, 3], 'successors': ['T10']}, {'task_id': 'T7', 'duration': 6, 'demands': [2, 7, 2], 'successors': ['T9', 'T10', 'T13']}, {'task_id': 'T8', 'duration': 3, 'demands': [1, 3, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 4, 'demands': [5, 1, 3], 'successors': ['T11']}, {'task_id': 'T10', 'duration': 5, 'demands': [2, 3, 6], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 3, 'demands': [1, 3, 8], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 2, 'demands': [1, 4, 4], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 2, 'demands': [5, 3, 2], 'successors': ['T16']}, {'task_id': 'T14', 'duration': 5, 'demands': [10, 3, 4], 'successors': ['T15', 'T17']}, {'task_id': 'T15', 'duration': 3, 'demands': [1, 9, 2], 'successors': ['T18']}, {'task_id': 'T16', 'duration': 4, 'demands': [6, 4, 1], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 7, 'demands': [2, 0, 2], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 3, 'demands': [0, 1, 5], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 5, 'duration': 4, 'demands': [3, 10, 3]}, {'task': 'T3', 'start': 5, 'end': 9, 'duration': 4, 'demands': [6, 6, 3]}, {'task': 'T4', 'start': 1, 'end': 5, 'duration': 4, 'demands': [3, 2, 3]}, {'task': 'T5', 'start': 9, 'end': 14, 'duration': 5, 'demands': [6, 1, 2]}, {'task': 'T6', 'start': 11, 'end': 13, 'duration': 2, 'demands': [8, 5, 3]}, {'task': 'T7', 'start': 5, 'end': 11, 'duration': 6, 'demands': [2, 7, 2]}, {'task': 'T8', 'start': 9, 'end': 12, 'duration': 3, 'demands': [1, 3, 3]}, {'task': 'T9', 'start': 14, 'end': 18, 'duration': 4, 'demands': [5, 1, 3]}, {'task': 'T10', 'start': 13, 'end': 18, 'duration': 5, 'demands': [2, 3, 6]}, {'task': 'T11', 'start': 18, 'end': 21, 'duration': 3, 'demands': [1, 3, 8]}, {'task': 'T12', 'start': 0, 'end': 2, 'duration': 2, 'demands': [1, 4, 4]}, {'task': 'T13', 'start': 13, 'end': 15, 'duration': 2, 'demands': [5, 3, 2]}, {'task': 'T14', 'start': 21, 'end': 26, 'duration': 5, 'demands': [10, 3, 4]}, {'task': 'T15', 'start': 26, 'end': 29, 'duration': 3, 'demands': [1, 9, 2]}, {'task': 'T16', 'start': 15, 'end': 19, 'duration': 4, 'demands': [6, 4, 1]}, {'task': 'T17', 'start': 26, 'end': 33, 'duration': 7, 'demands': [2, 0, 2]}, {'task': 'T18', 'start': 33, 'end': 36, 'duration': 3, 'demands': [0, 1, 5]}, {'task': 'T19', 'start': 36, 'end': 37, 'duration': 1, 'demands': [0, 0, 0]}]",17,nl,names |
| RCPSP,RCPSP,"Thereβs a remodel to run and the calendar needs filling: every task has a set duration, consumes a few specialists and tools while it runs, and depends on certain earlier jobs being done first. The job is to place each task on the timeline so nothing contradicts those orderings and the crew and kit arenβt double-booked on any day. The winning schedule is the one that finishes the entire renovation sooner β you judge that by when the last task finishes. The exact jobs, durations, and resource counts are listed below. |
| |
| # total_tasks=18 |
| # resource_types_count=3 |
| # resources=A, B, C |
| resource_id,capacity |
| A,15 |
| B,10 |
| C,11 |
| task_identifier,duration_days,resource_demand_vector,immediate_successors |
| T1,1,""0, 0, 0"",""T2, T3, T4"" |
| T2,3,""2, 7, 4"",""T6, T7"" |
| T3,1,""6, 7, 3"",""T5, T6, T7"" |
| T4,2,""7, 4, 2"",""T7, T8"" |
| T5,6,""5, 1, 4"",""T10"" |
| T6,2,""5, 3, 3"",""T9, T10"" |
| T7,4,""4, 3, 2"",""T9"" |
| T8,3,""4, 6, 6"",""T9, T10"" |
| T9,13,""4, 3, 1"",""T12"" |
| T10,2,""6, 5, 3"",""T11"" |
| T11,1,""1, 4, 6"",""T13"" |
| T12,14,""2, 3, 2"",""T13"" |
| T13,2,""7, 5, 6"",""T16"" |
| T14,10,""5, 1, 4"",""T17"" |
| T15,4,""4, 3, 5"",""T17"" |
| T16,1,""2, 4, 11"",""T18"" |
| T17,4,""1, 4, 2"",""T18"" |
| T18,1,""0, 0, 0"",""none"" |
| |
| Also, when you send the schedule back, please use this simple JSON layout so it's easy to read and check. Here's the shape I expect: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This is just a quick sketch of the shape I need β ""solution"" is a list of task placements. Each item is one task: ""task"" is the task identifier from the instance, ""start"" is when that task begins, and ""end"" is when it finishes. Think of it like filling out a little form for each job: which job, when it starts, and when it ends. |
| |
| Please note this JSON is only the expected shape, not the actual answer. Also be sure to use the exact identifiers from the input β no renaming and no new labels. |
| |
| - for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'nr_tasks': 18, 'nr_resources': 3, 'capacities': [15, 10, 11], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 3, 'demands': [2, 7, 4], 'successors': [5, 6]}, {'duration': 1, 'demands': [6, 7, 3], 'successors': [4, 5, 6]}, {'duration': 2, 'demands': [7, 4, 2], 'successors': [6, 7]}, {'duration': 6, 'demands': [5, 1, 4], 'successors': [9]}, {'duration': 2, 'demands': [5, 3, 3], 'successors': [8, 9]}, {'duration': 4, 'demands': [4, 3, 2], 'successors': [8]}, {'duration': 3, 'demands': [4, 6, 6], 'successors': [8, 9]}, {'duration': 13, 'demands': [4, 3, 1], 'successors': [11]}, {'duration': 2, 'demands': [6, 5, 3], 'successors': [10]}, {'duration': 1, 'demands': [1, 4, 6], 'successors': [12]}, {'duration': 14, 'demands': [2, 3, 2], 'successors': [12]}, {'duration': 2, 'demands': [7, 5, 6], 'successors': [15]}, {'duration': 10, 'demands': [5, 1, 4], 'successors': [16]}, {'duration': 4, 'demands': [4, 3, 5], 'successors': [16]}, {'duration': 1, 'demands': [2, 4, 11], 'successors': [17]}, {'duration': 4, 'demands': [1, 4, 2], 'successors': [17]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 2, 'end': 5, 'duration': 3, 'demands': [2, 7, 4]}, {'task': 2, 'start': 1, 'end': 2, 'duration': 1, 'demands': [6, 7, 3]}, {'task': 3, 'start': 5, 'end': 7, 'duration': 2, 'demands': [7, 4, 2]}, {'task': 4, 'start': 11, 'end': 17, 'duration': 6, 'demands': [5, 1, 4]}, {'task': 5, 'start': 5, 'end': 7, 'duration': 2, 'demands': [5, 3, 3]}, {'task': 6, 'start': 7, 'end': 11, 'duration': 4, 'demands': [4, 3, 2]}, {'task': 7, 'start': 8, 'end': 11, 'duration': 3, 'demands': [4, 6, 6]}, {'task': 8, 'start': 11, 'end': 24, 'duration': 13, 'demands': [4, 3, 1]}, {'task': 9, 'start': 17, 'end': 19, 'duration': 2, 'demands': [6, 5, 3]}, {'task': 10, 'start': 19, 'end': 20, 'duration': 1, 'demands': [1, 4, 6]}, {'task': 11, 'start': 24, 'end': 38, 'duration': 14, 'demands': [2, 3, 2]}, {'task': 12, 'start': 38, 'end': 40, 'duration': 2, 'demands': [7, 5, 6]}, {'task': 13, 'start': 12, 'end': 22, 'duration': 10, 'demands': [5, 1, 4]}, {'task': 14, 'start': 1, 'end': 5, 'duration': 4, 'demands': [4, 3, 5]}, {'task': 15, 'start': 40, 'end': 41, 'duration': 1, 'demands': [2, 4, 11]}, {'task': 16, 'start': 22, 'end': 26, 'duration': 4, 'demands': [1, 4, 2]}, {'task': 17, 'start': 41, 'end': 42, 'duration': 1, 'demands': [0, 0, 0]}]",42.0,"{'problem_type': 'RCPSP', 'nr_tasks': 18, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 15}, {'resource_id': 'B', 'capacity': 10}, {'resource_id': 'C', 'capacity': 11}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 3, 'demands': [2, 7, 4], 'successors': ['T6', 'T7']}, {'task_id': 'T3', 'duration': 1, 'demands': [6, 7, 3], 'successors': ['T5', 'T6', 'T7']}, {'task_id': 'T4', 'duration': 2, 'demands': [7, 4, 2], 'successors': ['T7', 'T8']}, {'task_id': 'T5', 'duration': 6, 'demands': [5, 1, 4], 'successors': ['T10']}, {'task_id': 'T6', 'duration': 2, 'demands': [5, 3, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 4, 'demands': [4, 3, 2], 'successors': ['T9']}, {'task_id': 'T8', 'duration': 3, 'demands': [4, 6, 6], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 13, 'demands': [4, 3, 1], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 2, 'demands': [6, 5, 3], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 1, 'demands': [1, 4, 6], 'successors': ['T13']}, {'task_id': 'T12', 'duration': 14, 'demands': [2, 3, 2], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 2, 'demands': [7, 5, 6], 'successors': ['T16']}, {'task_id': 'T14', 'duration': 10, 'demands': [5, 1, 4], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 4, 'demands': [4, 3, 5], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 1, 'demands': [2, 4, 11], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 4, 'demands': [1, 4, 2], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 2, 'end': 5, 'duration': 3, 'demands': [2, 7, 4]}, {'task': 'T3', 'start': 1, 'end': 2, 'duration': 1, 'demands': [6, 7, 3]}, {'task': 'T4', 'start': 5, 'end': 7, 'duration': 2, 'demands': [7, 4, 2]}, {'task': 'T5', 'start': 11, 'end': 17, 'duration': 6, 'demands': [5, 1, 4]}, {'task': 'T6', 'start': 5, 'end': 7, 'duration': 2, 'demands': [5, 3, 3]}, {'task': 'T7', 'start': 7, 'end': 11, 'duration': 4, 'demands': [4, 3, 2]}, {'task': 'T8', 'start': 8, 'end': 11, 'duration': 3, 'demands': [4, 6, 6]}, {'task': 'T9', 'start': 11, 'end': 24, 'duration': 13, 'demands': [4, 3, 1]}, {'task': 'T10', 'start': 17, 'end': 19, 'duration': 2, 'demands': [6, 5, 3]}, {'task': 'T11', 'start': 19, 'end': 20, 'duration': 1, 'demands': [1, 4, 6]}, {'task': 'T12', 'start': 24, 'end': 38, 'duration': 14, 'demands': [2, 3, 2]}, {'task': 'T13', 'start': 38, 'end': 40, 'duration': 2, 'demands': [7, 5, 6]}, {'task': 'T14', 'start': 12, 'end': 22, 'duration': 10, 'demands': [5, 1, 4]}, {'task': 'T15', 'start': 1, 'end': 5, 'duration': 4, 'demands': [4, 3, 5]}, {'task': 'T16', 'start': 40, 'end': 41, 'duration': 1, 'demands': [2, 4, 11]}, {'task': 'T17', 'start': 22, 'end': 26, 'duration': 4, 'demands': [1, 4, 2]}, {'task': 'T18', 'start': 41, 'end': 42, 'duration': 1, 'demands': [0, 0, 0]}]",18,csv,names |
| RCPSP,RCPSP,"Thereβs a relief operation to organize where every distribution job has a fixed duration, consumes some number of trucks and volunteers while it runs, and depends on certain earlier jobs finishing before it can begin. The coordinator must pick a start time for each job, ensuring each one happens once, that simultaneous jobs donβt use more vehicles or people than available, and that the whole operationβs completion time β the moment the last job ends β is as early as possible. The exact activities, timings, and available trucks and volunteers are listed below. |
| |
| # total_distribution_activities=17 |
| # resource_type_count=3 |
| # resources=0, 1, 2 |
| resource_id,capacity |
| 0,18 |
| 1,15 |
| 2,15 |
| distribution_job_id,job_duration,resource_demands,dependent_jobs |
| T1,1,""0, 0, 0"",""T2, T3, T4"" |
| T2,2,""6, 3, 4"",""T5, T6"" |
| T3,1,""9, 3, 2"",""T5, T6, T7"" |
| T4,1,""9, 2, 3"",""T5, T8"" |
| T5,1,""6, 2, 3"",""T9, T10"" |
| T6,1,""9, 3, 5"",""T10, T11, T17"" |
| T7,2,""2, 10, 2"",""T11, T17"" |
| T8,2,""3, 2, 3"",""T10, T11, T3"" |
| T9,2,""3, 3, 3"",""T12, T16"" |
| T10,2,""4, 4, 5"",""T12"" |
| T11,1,""2, 2, 2"",""T12"" |
| T12,2,""2, 5, 4"",""T13"" |
| T13,1,""3, 3, 6"",""T15, T16"" |
| T14,1,""3, 2, 4"",""T16"" |
| T15,2,""3, 7, 5"",""T17"" |
| T16,2,""2, 4, 3"",""T17"" |
| T17,1,""0, 0, 0"",""none"" |
| |
| Also, when you send the schedule back, please use this simple JSON layout so it's easy to read and parse β just a quick sketch of the shape I need: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This shows a list called ""solution"" made of entries for each job: ""task"" is the job identifier, ""start"" is when that job begins, and ""end"" is when it finishes. Think of it like filling out a little form for each activity: which job, and its start and end times. It's just the shape I expect β not the actual schedule itself. |
| |
| Please make sure to use the exact identifiers from the instance input β do not rename them or invent new labels. |
| - for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β."" |
| |
| I'll check the schedule against those exact IDs, so keeping them identical is important.","{'nr_tasks': 17, 'nr_resources': 3, 'capacities': [18, 15, 15], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 2, 'demands': [6, 3, 4], 'successors': [4, 5]}, {'duration': 1, 'demands': [9, 3, 2], 'successors': [4, 5, 6]}, {'duration': 1, 'demands': [9, 2, 3], 'successors': [4, 7]}, {'duration': 1, 'demands': [6, 2, 3], 'successors': [8, 9]}, {'duration': 1, 'demands': [9, 3, 5], 'successors': [9, 10, 16]}, {'duration': 2, 'demands': [2, 10, 2], 'successors': [10, 16]}, {'duration': 2, 'demands': [3, 2, 3], 'successors': [9, 10, 2]}, {'duration': 2, 'demands': [3, 3, 3], 'successors': [11, 15]}, {'duration': 2, 'demands': [4, 4, 5], 'successors': [11]}, {'duration': 1, 'demands': [2, 2, 2], 'successors': [11]}, {'duration': 2, 'demands': [2, 5, 4], 'successors': [12]}, {'duration': 1, 'demands': [3, 3, 6], 'successors': [14, 15]}, {'duration': 1, 'demands': [3, 2, 4], 'successors': [15]}, {'duration': 2, 'demands': [3, 7, 5], 'successors': [16]}, {'duration': 2, 'demands': [2, 4, 3], 'successors': [16]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 3, 'duration': 2, 'demands': [6, 3, 4]}, {'task': 2, 'start': 4, 'end': 5, 'duration': 1, 'demands': [9, 3, 2]}, {'task': 3, 'start': 1, 'end': 2, 'duration': 1, 'demands': [9, 2, 3]}, {'task': 4, 'start': 5, 'end': 6, 'duration': 1, 'demands': [6, 2, 3]}, {'task': 5, 'start': 5, 'end': 6, 'duration': 1, 'demands': [9, 3, 5]}, {'task': 6, 'start': 5, 'end': 7, 'duration': 2, 'demands': [2, 10, 2]}, {'task': 7, 'start': 2, 'end': 4, 'duration': 2, 'demands': [3, 2, 3]}, {'task': 8, 'start': 6, 'end': 8, 'duration': 2, 'demands': [3, 3, 3]}, {'task': 9, 'start': 7, 'end': 9, 'duration': 2, 'demands': [4, 4, 5]}, {'task': 10, 'start': 7, 'end': 8, 'duration': 1, 'demands': [2, 2, 2]}, {'task': 11, 'start': 9, 'end': 11, 'duration': 2, 'demands': [2, 5, 4]}, {'task': 12, 'start': 11, 'end': 12, 'duration': 1, 'demands': [3, 3, 6]}, {'task': 13, 'start': 0, 'end': 1, 'duration': 1, 'demands': [3, 2, 4]}, {'task': 14, 'start': 12, 'end': 14, 'duration': 2, 'demands': [3, 7, 5]}, {'task': 15, 'start': 12, 'end': 14, 'duration': 2, 'demands': [2, 4, 3]}, {'task': 16, 'start': 14, 'end': 15, 'duration': 1, 'demands': [0, 0, 0]}]",15.0,"{'problem_type': 'RCPSP', 'nr_tasks': 17, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 18}, {'resource_id': 1, 'capacity': 15}, {'resource_id': 2, 'capacity': 15}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 2, 'demands': [6, 3, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T3', 'duration': 1, 'demands': [9, 3, 2], 'successors': ['T5', 'T6', 'T7']}, {'task_id': 'T4', 'duration': 1, 'demands': [9, 2, 3], 'successors': ['T5', 'T8']}, {'task_id': 'T5', 'duration': 1, 'demands': [6, 2, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 1, 'demands': [9, 3, 5], 'successors': ['T10', 'T11', 'T17']}, {'task_id': 'T7', 'duration': 2, 'demands': [2, 10, 2], 'successors': ['T11', 'T17']}, {'task_id': 'T8', 'duration': 2, 'demands': [3, 2, 3], 'successors': ['T10', 'T11', 'T3']}, {'task_id': 'T9', 'duration': 2, 'demands': [3, 3, 3], 'successors': ['T12', 'T16']}, {'task_id': 'T10', 'duration': 2, 'demands': [4, 4, 5], 'successors': ['T12']}, {'task_id': 'T11', 'duration': 1, 'demands': [2, 2, 2], 'successors': ['T12']}, {'task_id': 'T12', 'duration': 2, 'demands': [2, 5, 4], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 1, 'demands': [3, 3, 6], 'successors': ['T15', 'T16']}, {'task_id': 'T14', 'duration': 1, 'demands': [3, 2, 4], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 2, 'demands': [3, 7, 5], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 2, 'demands': [2, 4, 3], 'successors': ['T17']}, {'task_id': 'T17', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 3, 'duration': 2, 'demands': [6, 3, 4]}, {'task': 'T3', 'start': 4, 'end': 5, 'duration': 1, 'demands': [9, 3, 2]}, {'task': 'T4', 'start': 1, 'end': 2, 'duration': 1, 'demands': [9, 2, 3]}, {'task': 'T5', 'start': 5, 'end': 6, 'duration': 1, 'demands': [6, 2, 3]}, {'task': 'T6', 'start': 5, 'end': 6, 'duration': 1, 'demands': [9, 3, 5]}, {'task': 'T7', 'start': 5, 'end': 7, 'duration': 2, 'demands': [2, 10, 2]}, {'task': 'T8', 'start': 2, 'end': 4, 'duration': 2, 'demands': [3, 2, 3]}, {'task': 'T9', 'start': 6, 'end': 8, 'duration': 2, 'demands': [3, 3, 3]}, {'task': 'T10', 'start': 7, 'end': 9, 'duration': 2, 'demands': [4, 4, 5]}, {'task': 'T11', 'start': 7, 'end': 8, 'duration': 1, 'demands': [2, 2, 2]}, {'task': 'T12', 'start': 9, 'end': 11, 'duration': 2, 'demands': [2, 5, 4]}, {'task': 'T13', 'start': 11, 'end': 12, 'duration': 1, 'demands': [3, 3, 6]}, {'task': 'T14', 'start': 0, 'end': 1, 'duration': 1, 'demands': [3, 2, 4]}, {'task': 'T15', 'start': 12, 'end': 14, 'duration': 2, 'demands': [3, 7, 5]}, {'task': 'T16', 'start': 12, 'end': 14, 'duration': 2, 'demands': [2, 4, 3]}, {'task': 'T17', 'start': 14, 'end': 15, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| We'll schedule 19 cooking and plating steps across 3 resource types with available quantities . |
| |
| | resource_id | capacity | |
| |---|---| |
| | 1 | 12 | |
| | 2 | 13 | |
| | 3 | 11 | |
| |
| | step_id | step_duration_minutes | resource_demand_vector | dependent_steps | |
| |---|---|---|---| |
| | T1 | 1 | 0, 0, 0 | T2, T3, T4 | |
| | T2 | 3 | 2, 5, 1 | T5, T7 | |
| | T3 | 1 | 10, 4, 2 | T6, T8 | |
| | T4 | 1 | 3, 2, 1 | T6, T7 | |
| | T5 | 3 | 3, 1, 7 | T10 | |
| | T6 | 6 | 9, 6, 4 | T9, T10 | |
| | T7 | 6 | 5, 7, 3 | T9 | |
| | T8 | 4 | 2, 3, 3 | T9, T10 | |
| | T9 | 1 | 2, 2, 5 | T11 | |
| | T10 | 3 | 3, 2, 2 | T11, T12 | |
| | T11 | 3 | 1, 5, 8 | T14 | |
| | T12 | 11 | 8, 8, 7 | T13 | |
| | T13 | 1 | 6, 1, 2 | none | |
| | T14 | 7 | 7, 3, 5 | T16 | |
| | T15 | 2 | 2, 2, 2 | T17 | |
| | T16 | 9 | 2, 2, 1 | T17, T18, T12 | |
| | T17 | 7 | 0, 1, 6 | T19 | |
| | T18 | 8 | 3, 3, 3 | T19 | |
| | T19 | 1 | 0, 0, 0 | none | |
| |
| We'll respect the listed and precedence constraints and aim to have the final dish ready as soon as possible. |
|
|
| Also, when you hand me the actual schedule, please put it in this simple JSON shape so it's easy for everyone (and any tools) to read: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of that as a little form: ""solution"" is the list of all the tasks; each entry says which task it is and the time it starts and finishes (so you can see who's cooking what when). It's just a sketch of the shape I need here, not the real answer itself. |
| |
| Please also make sure to use the exact task identifiers from the instance β 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β.""","{'nr_tasks': 19, 'nr_resources': 3, 'capacities': [12, 13, 11], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 3, 'demands': [2, 5, 1], 'successors': [4, 6]}, {'duration': 1, 'demands': [10, 4, 2], 'successors': [5, 7]}, {'duration': 1, 'demands': [3, 2, 1], 'successors': [5, 6]}, {'duration': 3, 'demands': [3, 1, 7], 'successors': [9]}, {'duration': 6, 'demands': [9, 6, 4], 'successors': [8, 9]}, {'duration': 6, 'demands': [5, 7, 3], 'successors': [8]}, {'duration': 4, 'demands': [2, 3, 3], 'successors': [8, 9]}, {'duration': 1, 'demands': [2, 2, 5], 'successors': [10]}, {'duration': 3, 'demands': [3, 2, 2], 'successors': [10, 11]}, {'duration': 3, 'demands': [1, 5, 8], 'successors': [13]}, {'duration': 11, 'demands': [8, 8, 7], 'successors': [12]}, {'duration': 1, 'demands': [6, 1, 2], 'successors': []}, {'duration': 7, 'demands': [7, 3, 5], 'successors': [15]}, {'duration': 2, 'demands': [2, 2, 2], 'successors': [16]}, {'duration': 9, 'demands': [2, 2, 1], 'successors': [16, 17, 11]}, {'duration': 7, 'demands': [0, 1, 6], 'successors': [18]}, {'duration': 8, 'demands': [3, 3, 3], 'successors': [18]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 4, 'duration': 3, 'demands': [2, 5, 1]}, {'task': 2, 'start': 2, 'end': 3, 'duration': 1, 'demands': [10, 4, 2]}, {'task': 3, 'start': 1, 'end': 2, 'duration': 1, 'demands': [3, 2, 1]}, {'task': 4, 'start': 8, 'end': 11, 'duration': 3, 'demands': [3, 1, 7]}, {'task': 5, 'start': 3, 'end': 9, 'duration': 6, 'demands': [9, 6, 4]}, {'task': 6, 'start': 9, 'end': 15, 'duration': 6, 'demands': [5, 7, 3]}, {'task': 7, 'start': 4, 'end': 8, 'duration': 4, 'demands': [2, 3, 3]}, {'task': 8, 'start': 15, 'end': 16, 'duration': 1, 'demands': [2, 2, 5]}, {'task': 9, 'start': 11, 'end': 14, 'duration': 3, 'demands': [3, 2, 2]}, {'task': 10, 'start': 16, 'end': 19, 'duration': 3, 'demands': [1, 5, 8]}, {'task': 11, 'start': 35, 'end': 46, 'duration': 11, 'demands': [8, 8, 7]}, {'task': 12, 'start': 46, 'end': 47, 'duration': 1, 'demands': [6, 1, 2]}, {'task': 13, 'start': 19, 'end': 26, 'duration': 7, 'demands': [7, 3, 5]}, {'task': 14, 'start': 0, 'end': 2, 'duration': 2, 'demands': [2, 2, 2]}, {'task': 15, 'start': 26, 'end': 35, 'duration': 9, 'demands': [2, 2, 1]}, {'task': 16, 'start': 46, 'end': 53, 'duration': 7, 'demands': [0, 1, 6]}, {'task': 17, 'start': 35, 'end': 43, 'duration': 8, 'demands': [3, 3, 3]}, {'task': 18, 'start': 53, 'end': 54, 'duration': 1, 'demands': [0, 0, 0]}]",54.0,"{'problem_type': 'RCPSP', 'nr_tasks': 19, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 12}, {'resource_id': 2, 'capacity': 13}, {'resource_id': 3, 'capacity': 11}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 3, 'demands': [2, 5, 1], 'successors': ['T5', 'T7']}, {'task_id': 'T3', 'duration': 1, 'demands': [10, 4, 2], 'successors': ['T6', 'T8']}, {'task_id': 'T4', 'duration': 1, 'demands': [3, 2, 1], 'successors': ['T6', 'T7']}, {'task_id': 'T5', 'duration': 3, 'demands': [3, 1, 7], 'successors': ['T10']}, {'task_id': 'T6', 'duration': 6, 'demands': [9, 6, 4], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 6, 'demands': [5, 7, 3], 'successors': ['T9']}, {'task_id': 'T8', 'duration': 4, 'demands': [2, 3, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 1, 'demands': [2, 2, 5], 'successors': ['T11']}, {'task_id': 'T10', 'duration': 3, 'demands': [3, 2, 2], 'successors': ['T11', 'T12']}, {'task_id': 'T11', 'duration': 3, 'demands': [1, 5, 8], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 11, 'demands': [8, 8, 7], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 1, 'demands': [6, 1, 2], 'successors': []}, {'task_id': 'T14', 'duration': 7, 'demands': [7, 3, 5], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 2, 'demands': [2, 2, 2], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 9, 'demands': [2, 2, 1], 'successors': ['T17', 'T18', 'T12']}, {'task_id': 'T17', 'duration': 7, 'demands': [0, 1, 6], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 8, 'demands': [3, 3, 3], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 4, 'duration': 3, 'demands': [2, 5, 1]}, {'task': 'T3', 'start': 2, 'end': 3, 'duration': 1, 'demands': [10, 4, 2]}, {'task': 'T4', 'start': 1, 'end': 2, 'duration': 1, 'demands': [3, 2, 1]}, {'task': 'T5', 'start': 8, 'end': 11, 'duration': 3, 'demands': [3, 1, 7]}, {'task': 'T6', 'start': 3, 'end': 9, 'duration': 6, 'demands': [9, 6, 4]}, {'task': 'T7', 'start': 9, 'end': 15, 'duration': 6, 'demands': [5, 7, 3]}, {'task': 'T8', 'start': 4, 'end': 8, 'duration': 4, 'demands': [2, 3, 3]}, {'task': 'T9', 'start': 15, 'end': 16, 'duration': 1, 'demands': [2, 2, 5]}, {'task': 'T10', 'start': 11, 'end': 14, 'duration': 3, 'demands': [3, 2, 2]}, {'task': 'T11', 'start': 16, 'end': 19, 'duration': 3, 'demands': [1, 5, 8]}, {'task': 'T12', 'start': 35, 'end': 46, 'duration': 11, 'demands': [8, 8, 7]}, {'task': 'T13', 'start': 46, 'end': 47, 'duration': 1, 'demands': [6, 1, 2]}, {'task': 'T14', 'start': 19, 'end': 26, 'duration': 7, 'demands': [7, 3, 5]}, {'task': 'T15', 'start': 0, 'end': 2, 'duration': 2, 'demands': [2, 2, 2]}, {'task': 'T16', 'start': 26, 'end': 35, 'duration': 9, 'demands': [2, 2, 1]}, {'task': 'T17', 'start': 46, 'end': 53, 'duration': 7, 'demands': [0, 1, 6]}, {'task': 'T18', 'start': 35, 'end': 43, 'duration': 8, 'demands': [3, 3, 3]}, {'task': 'T19', 'start': 53, 'end': 54, 'duration': 1, 'demands': [0, 0, 0]}]",20,markdown_table,1 |
| RCPSP,RCPSP,"Weβve got a day full of moves to coordinate: a roster of loading tasks and hauls, each with a set duration, and a few that have to wait for earlier tasks to be completed. The choice is about the start time for each task so no more trucks or crews are used at the same moment than are available, nothing is skipped or duplicated, and every dependency is respected. A better plan is simply the one that gets the final unload done earliest β measure success by the moment the last task ends. The exact tasks, durations, and resource numbers appear below. |
| |
| { |
| ""total_jobs"": 18, |
| ""resource_types_count"": 3, |
| ""resources"": [ |
| ""A"", |
| ""B"", |
| ""C"" |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": ""A"", |
| ""capacity"": 13 |
| }, |
| { |
| ""resource_id"": ""B"", |
| ""capacity"": 20 |
| }, |
| { |
| ""resource_id"": ""C"", |
| ""capacity"": 18 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""job_id"": ""T1"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_job_ids"": [ |
| ""T2"", |
| ""T3"", |
| ""T4"" |
| ] |
| }, |
| { |
| ""job_id"": ""T2"", |
| ""job_duration"": 9, |
| ""resource_demands"": [ |
| 3, |
| 6, |
| 1 |
| ], |
| ""successor_job_ids"": [ |
| ""T5"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""job_id"": ""T3"", |
| ""job_duration"": 10, |
| ""resource_demands"": [ |
| 10, |
| 3, |
| 2 |
| ], |
| ""successor_job_ids"": [ |
| ""T5"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""job_id"": ""T4"", |
| ""job_duration"": 4, |
| ""resource_demands"": [ |
| 6, |
| 3, |
| 2 |
| ], |
| ""successor_job_ids"": [ |
| ""T6"", |
| ""T7"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""job_id"": ""T5"", |
| ""job_duration"": 6, |
| ""resource_demands"": [ |
| 3, |
| 1, |
| 2 |
| ], |
| ""successor_job_ids"": [ |
| ""T9"" |
| ] |
| }, |
| { |
| ""job_id"": ""T6"", |
| ""job_duration"": 1, |
| ""resource_demands"": [ |
| 7, |
| 7, |
| 8 |
| ], |
| ""successor_job_ids"": [ |
| ""T10"" |
| ] |
| }, |
| { |
| ""job_id"": ""T7"", |
| ""job_duration"": 6, |
| ""resource_demands"": [ |
| 3, |
| 6, |
| 4 |
| ], |
| ""successor_job_ids"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""job_id"": ""T8"", |
| ""job_duration"": 2, |
| ""resource_demands"": [ |
| 2, |
| 5, |
| 6 |
| ], |
| ""successor_job_ids"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""job_id"": ""T9"", |
| ""job_duration"": 6, |
| ""resource_demands"": [ |
| 2, |
| 3, |
| 3 |
| ], |
| ""successor_job_ids"": [ |
| ""T11"" |
| ] |
| }, |
| { |
| ""job_id"": ""T10"", |
| ""job_duration"": 4, |
| ""resource_demands"": [ |
| 2, |
| 2, |
| 3 |
| ], |
| ""successor_job_ids"": [ |
| ""T11"" |
| ] |
| }, |
| { |
| ""job_id"": ""T11"", |
| ""job_duration"": 3, |
| ""resource_demands"": [ |
| 2, |
| 4, |
| 5 |
| ], |
| ""successor_job_ids"": [ |
| ""T14"" |
| ] |
| }, |
| { |
| ""job_id"": ""T12"", |
| ""job_duration"": 3, |
| ""resource_demands"": [ |
| 1, |
| 5, |
| 6 |
| ], |
| ""successor_job_ids"": [ |
| ""T13"" |
| ] |
| }, |
| { |
| ""job_id"": ""T13"", |
| ""job_duration"": 3, |
| ""resource_demands"": [ |
| 4, |
| 7, |
| 4 |
| ], |
| ""successor_job_ids"": [ |
| ""T16"" |
| ] |
| }, |
| { |
| ""job_id"": ""T14"", |
| ""job_duration"": 6, |
| ""resource_demands"": [ |
| 7, |
| 5, |
| 3 |
| ], |
| ""successor_job_ids"": [ |
| ""T15"", |
| ""T17"" |
| ] |
| }, |
| { |
| ""job_id"": ""T15"", |
| ""job_duration"": 4, |
| ""resource_demands"": [ |
| 1, |
| 9, |
| 2 |
| ], |
| ""successor_job_ids"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""job_id"": ""T16"", |
| ""job_duration"": 10, |
| ""resource_demands"": [ |
| 2, |
| 2, |
| 2 |
| ], |
| ""successor_job_ids"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""job_id"": ""T17"", |
| ""job_duration"": 5, |
| ""resource_demands"": [ |
| 1, |
| 0, |
| 6 |
| ], |
| ""successor_job_ids"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""job_id"": ""T18"", |
| ""job_duration"": 2, |
| ""resource_demands"": [ |
| 0, |
| 2, |
| 4 |
| ], |
| ""successor_job_ids"": [] |
| } |
| ] |
| } |
| |
| To turn that plan into a machine-friendly reply, just drop your schedule into this simple JSON shape β nothing fancy, just a list of tasks with start and end times. Example sketch: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of each object in ""solution"" as one row on a packing slip: ""task"" is the task identifier, ""start"" is when it begins, and ""end"" is when it finishes. Keep it casual β it's just a quick way for me to read your plan. |
|
|
| This JSON block is only a template showing the expected shape, not the actual schedule. Please use the exact identifiers from the instance input β do not rename tasks 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β.""","{'nr_tasks': 18, 'nr_resources': 3, 'capacities': [13, 20, 18], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 9, 'demands': [3, 6, 1], 'successors': [4, 7]}, {'duration': 10, 'demands': [10, 3, 2], 'successors': [4, 7]}, {'duration': 4, 'demands': [6, 3, 2], 'successors': [5, 6, 7]}, {'duration': 6, 'demands': [3, 1, 2], 'successors': [8]}, {'duration': 1, 'demands': [7, 7, 8], 'successors': [9]}, {'duration': 6, 'demands': [3, 6, 4], 'successors': [8, 9]}, {'duration': 2, 'demands': [2, 5, 6], 'successors': [8, 9]}, {'duration': 6, 'demands': [2, 3, 3], 'successors': [10]}, {'duration': 4, 'demands': [2, 2, 3], 'successors': [10]}, {'duration': 3, 'demands': [2, 4, 5], 'successors': [13]}, {'duration': 3, 'demands': [1, 5, 6], 'successors': [12]}, {'duration': 3, 'demands': [4, 7, 4], 'successors': [15]}, {'duration': 6, 'demands': [7, 5, 3], 'successors': [14, 16]}, {'duration': 4, 'demands': [1, 9, 2], 'successors': [17]}, {'duration': 10, 'demands': [2, 2, 2], 'successors': [17]}, {'duration': 5, 'demands': [1, 0, 6], 'successors': [17]}, {'duration': 2, 'demands': [0, 2, 4], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 3, 'end': 12, 'duration': 9, 'demands': [3, 6, 1]}, {'task': 2, 'start': 1, 'end': 11, 'duration': 10, 'demands': [10, 3, 2]}, {'task': 3, 'start': 11, 'end': 15, 'duration': 4, 'demands': [6, 3, 2]}, {'task': 4, 'start': 12, 'end': 18, 'duration': 6, 'demands': [3, 1, 2]}, {'task': 5, 'start': 18, 'end': 19, 'duration': 1, 'demands': [7, 7, 8]}, {'task': 6, 'start': 15, 'end': 21, 'duration': 6, 'demands': [3, 6, 4]}, {'task': 7, 'start': 15, 'end': 17, 'duration': 2, 'demands': [2, 5, 6]}, {'task': 8, 'start': 21, 'end': 27, 'duration': 6, 'demands': [2, 3, 3]}, {'task': 9, 'start': 21, 'end': 25, 'duration': 4, 'demands': [2, 2, 3]}, {'task': 10, 'start': 27, 'end': 30, 'duration': 3, 'demands': [2, 4, 5]}, {'task': 11, 'start': 0, 'end': 3, 'duration': 3, 'demands': [1, 5, 6]}, {'task': 12, 'start': 11, 'end': 14, 'duration': 3, 'demands': [4, 7, 4]}, {'task': 13, 'start': 30, 'end': 36, 'duration': 6, 'demands': [7, 5, 3]}, {'task': 14, 'start': 36, 'end': 40, 'duration': 4, 'demands': [1, 9, 2]}, {'task': 15, 'start': 14, 'end': 24, 'duration': 10, 'demands': [2, 2, 2]}, {'task': 16, 'start': 36, 'end': 41, 'duration': 5, 'demands': [1, 0, 6]}, {'task': 17, 'start': 41, 'end': 43, 'duration': 2, 'demands': [0, 2, 4]}]",43.0,"{'problem_type': 'RCPSP', 'nr_tasks': 18, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 13}, {'resource_id': 'B', 'capacity': 20}, {'resource_id': 'C', 'capacity': 18}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 9, 'demands': [3, 6, 1], 'successors': ['T5', 'T8']}, {'task_id': 'T3', 'duration': 10, 'demands': [10, 3, 2], 'successors': ['T5', 'T8']}, {'task_id': 'T4', 'duration': 4, 'demands': [6, 3, 2], 'successors': ['T6', 'T7', 'T8']}, {'task_id': 'T5', 'duration': 6, 'demands': [3, 1, 2], 'successors': ['T9']}, {'task_id': 'T6', 'duration': 1, 'demands': [7, 7, 8], 'successors': ['T10']}, {'task_id': 'T7', 'duration': 6, 'demands': [3, 6, 4], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 2, 'demands': [2, 5, 6], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 6, 'demands': [2, 3, 3], 'successors': ['T11']}, {'task_id': 'T10', 'duration': 4, 'demands': [2, 2, 3], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 3, 'demands': [2, 4, 5], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 3, 'demands': [1, 5, 6], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 3, 'demands': [4, 7, 4], 'successors': ['T16']}, {'task_id': 'T14', 'duration': 6, 'demands': [7, 5, 3], 'successors': ['T15', 'T17']}, {'task_id': 'T15', 'duration': 4, 'demands': [1, 9, 2], 'successors': ['T18']}, {'task_id': 'T16', 'duration': 10, 'demands': [2, 2, 2], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 5, 'demands': [1, 0, 6], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 2, 'demands': [0, 2, 4], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 3, 'end': 12, 'duration': 9, 'demands': [3, 6, 1]}, {'task': 'T3', 'start': 1, 'end': 11, 'duration': 10, 'demands': [10, 3, 2]}, {'task': 'T4', 'start': 11, 'end': 15, 'duration': 4, 'demands': [6, 3, 2]}, {'task': 'T5', 'start': 12, 'end': 18, 'duration': 6, 'demands': [3, 1, 2]}, {'task': 'T6', 'start': 18, 'end': 19, 'duration': 1, 'demands': [7, 7, 8]}, {'task': 'T7', 'start': 15, 'end': 21, 'duration': 6, 'demands': [3, 6, 4]}, {'task': 'T8', 'start': 15, 'end': 17, 'duration': 2, 'demands': [2, 5, 6]}, {'task': 'T9', 'start': 21, 'end': 27, 'duration': 6, 'demands': [2, 3, 3]}, {'task': 'T10', 'start': 21, 'end': 25, 'duration': 4, 'demands': [2, 2, 3]}, {'task': 'T11', 'start': 27, 'end': 30, 'duration': 3, 'demands': [2, 4, 5]}, {'task': 'T12', 'start': 0, 'end': 3, 'duration': 3, 'demands': [1, 5, 6]}, {'task': 'T13', 'start': 11, 'end': 14, 'duration': 3, 'demands': [4, 7, 4]}, {'task': 'T14', 'start': 30, 'end': 36, 'duration': 6, 'demands': [7, 5, 3]}, {'task': 'T15', 'start': 36, 'end': 40, 'duration': 4, 'demands': [1, 9, 2]}, {'task': 'T16', 'start': 14, 'end': 24, 'duration': 10, 'demands': [2, 2, 2]}, {'task': 'T17', 'start': 36, 'end': 41, 'duration': 5, 'demands': [1, 0, 6]}, {'task': 'T18', 'start': 41, 'end': 43, 'duration': 2, 'demands': [0, 2, 4]}] |
| RCPSP,RCPSP, |
|
|
| # total_editorial_tasks=17 |
| # resource_types_count=3 |
| # resources=0, 1, 2 |
| resource_id,capacity |
| 0,15 |
| 1,14 |
| 2,12 |
| task_identifier,task_duration,resource_demands,successor_task_ids |
| T1,1,""2, 7, 2"",""T5, T6, T7"" |
| T2,7,""5, 6, 2"",""T4, T5, T9"" |
| T3,13,""10, 1, 2"",""T4, T5"" |
| T4,11,""2, 1, 7"",""T10, T11, T13"" |
| T5,3,""4, 8, 5"",""T8, T9"" |
| T6,5,""3, 8, 1"",""T8, T9"" |
| T7,2,""4, 6, 7"",""T9, T10"" |
| T8,8,""2, 4, 2"",""T12"" |
| T9,1,""5, 4, 2"",""none"" |
| T10,1,""2, 3, 2"",""T12"" |
| T11,6,""5, 2, 2"",""T12, T17"" |
| T12,3,""1, 4, 6"",""none"" |
| T13,7,""1, 4, 12"",""T15, T1"" |
| T14,9,""2, 9, 2"",""T16"" |
| T15,2,""5, 3, 2"",""T17, T11"" |
| T16,7,""0, 1, 2"",""T1"" |
| T17,4,""3, 2, 1"",""none"" |
|
|
| Also, when you send back the schedule, please keep it in a simple JSON shape like this β just so whoever's reading it can pick out each task and its times quickly: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This is just a small sketch of the shape I expect: ""solution"" is a list of entries, each entry is one task with its identifier under ""task"" and the chosen start and end times under ""start"" and ""end"". Think of it like filling out a little form for each job β which one it is, when it begins, and when it finishes. The JSON here is only the format example, not the actual schedule. |
| |
| Please use the exact identifiers from the instance input β don't rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'nr_tasks': 17, 'nr_resources': 3, 'capacities': [15, 14, 12], 'tasks': [{'duration': 1, 'demands': [2, 7, 2], 'successors': [4, 5, 6]}, {'duration': 7, 'demands': [5, 6, 2], 'successors': [3, 4, 8]}, {'duration': 13, 'demands': [10, 1, 2], 'successors': [3, 4]}, {'duration': 11, 'demands': [2, 1, 7], 'successors': [9, 10, 12]}, {'duration': 3, 'demands': [4, 8, 5], 'successors': [7, 8]}, {'duration': 5, 'demands': [3, 8, 1], 'successors': [7, 8]}, {'duration': 2, 'demands': [4, 6, 7], 'successors': [8, 9]}, {'duration': 8, 'demands': [2, 4, 2], 'successors': [11]}, {'duration': 1, 'demands': [5, 4, 2], 'successors': []}, {'duration': 1, 'demands': [2, 3, 2], 'successors': [11]}, {'duration': 6, 'demands': [5, 2, 2], 'successors': [11, 16]}, {'duration': 3, 'demands': [1, 4, 6], 'successors': []}, {'duration': 7, 'demands': [1, 4, 12], 'successors': [14, 0]}, {'duration': 9, 'demands': [2, 9, 2], 'successors': [15]}, {'duration': 2, 'demands': [5, 3, 2], 'successors': [16, 10]}, {'duration': 7, 'demands': [0, 1, 2], 'successors': [0]}, {'duration': 4, 'demands': [3, 2, 1], 'successors': []}]}","[{'task': 0, 'start': 31, 'end': 32, 'duration': 1, 'demands': [2, 7, 2]}, {'task': 1, 'start': 0, 'end': 7, 'duration': 7, 'demands': [5, 6, 2]}, {'task': 2, 'start': 0, 'end': 13, 'duration': 13, 'demands': [10, 1, 2]}, {'task': 3, 'start': 13, 'end': 24, 'duration': 11, 'demands': [2, 1, 7]}, {'task': 4, 'start': 37, 'end': 40, 'duration': 3, 'demands': [4, 8, 5]}, {'task': 5, 'start': 32, 'end': 37, 'duration': 5, 'demands': [3, 8, 1]}, {'task': 6, 'start': 39, 'end': 41, 'duration': 2, 'demands': [4, 6, 7]}, {'task': 7, 'start': 40, 'end': 48, 'duration': 8, 'demands': [2, 4, 2]}, {'task': 8, 'start': 41, 'end': 42, 'duration': 1, 'demands': [5, 4, 2]}, {'task': 9, 'start': 41, 'end': 42, 'duration': 1, 'demands': [2, 3, 2]}, {'task': 10, 'start': 33, 'end': 39, 'duration': 6, 'demands': [5, 2, 2]}, {'task': 11, 'start': 48, 'end': 51, 'duration': 3, 'demands': [1, 4, 6]}, {'task': 12, 'start': 24, 'end': 31, 'duration': 7, 'demands': [1, 4, 12]}, {'task': 13, 'start': 7, 'end': 16, 'duration': 9, 'demands': [2, 9, 2]}, {'task': 14, 'start': 31, 'end': 33, 'duration': 2, 'demands': [5, 3, 2]}, {'task': 15, 'start': 16, 'end': 23, 'duration': 7, 'demands': [0, 1, 2]}, {'task': 16, 'start': 40, 'end': 44, 'duration': 4, 'demands': [3, 2, 1]}]",51.0,"{'problem_type': 'RCPSP', 'nr_tasks': 17, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 15}, {'resource_id': 1, 'capacity': 14}, {'resource_id': 2, 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [2, 7, 2], 'successors': ['T5', 'T6', 'T7']}, {'task_id': 'T2', 'duration': 7, 'demands': [5, 6, 2], 'successors': ['T4', 'T5', 'T9']}, {'task_id': 'T3', 'duration': 13, 'demands': [10, 1, 2], 'successors': ['T4', 'T5']}, {'task_id': 'T4', 'duration': 11, 'demands': [2, 1, 7], 'successors': ['T10', 'T11', 'T13']}, {'task_id': 'T5', 'duration': 3, 'demands': [4, 8, 5], 'successors': ['T8', 'T9']}, {'task_id': 'T6', 'duration': 5, 'demands': [3, 8, 1], 'successors': ['T8', 'T9']}, {'task_id': 'T7', 'duration': 2, 'demands': [4, 6, 7], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 8, 'demands': [2, 4, 2], 'successors': ['T12']}, {'task_id': 'T9', 'duration': 1, 'demands': [5, 4, 2], 'successors': []}, {'task_id': 'T10', 'duration': 1, 'demands': [2, 3, 2], 'successors': ['T12']}, {'task_id': 'T11', 'duration': 6, 'demands': [5, 2, 2], 'successors': ['T12', 'T17']}, {'task_id': 'T12', 'duration': 3, 'demands': [1, 4, 6], 'successors': []}, {'task_id': 'T13', 'duration': 7, 'demands': [1, 4, 12], 'successors': ['T15', 'T1']}, {'task_id': 'T14', 'duration': 9, 'demands': [2, 9, 2], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 2, 'demands': [5, 3, 2], 'successors': ['T17', 'T11']}, {'task_id': 'T16', 'duration': 7, 'demands': [0, 1, 2], 'successors': ['T1']}, {'task_id': 'T17', 'duration': 4, 'demands': [3, 2, 1], 'successors': []}]}","[{'task': 'T1', 'start': 31, 'end': 32, 'duration': 1, 'demands': [2, 7, 2]}, {'task': 'T2', 'start': 0, 'end': 7, 'duration': 7, 'demands': [5, 6, 2]}, {'task': 'T3', 'start': 0, 'end': 13, 'duration': 13, 'demands': [10, 1, 2]}, {'task': 'T4', 'start': 13, 'end': 24, 'duration': 11, 'demands': [2, 1, 7]}, {'task': 'T5', 'start': 37, 'end': 40, 'duration': 3, 'demands': [4, 8, 5]}, {'task': 'T6', 'start': 32, 'end': 37, 'duration': 5, 'demands': [3, 8, 1]}, {'task': 'T7', 'start': 39, 'end': 41, 'duration': 2, 'demands': [4, 6, 7]}, {'task': 'T8', 'start': 40, 'end': 48, 'duration': 8, 'demands': [2, 4, 2]}, {'task': 'T9', 'start': 41, 'end': 42, 'duration': 1, 'demands': [5, 4, 2]}, {'task': 'T10', 'start': 41, 'end': 42, 'duration': 1, 'demands': [2, 3, 2]}, {'task': 'T11', 'start': 33, 'end': 39, 'duration': 6, 'demands': [5, 2, 2]}, {'task': 'T12', 'start': 48, 'end': 51, 'duration': 3, 'demands': [1, 4, 6]}, {'task': 'T13', 'start': 24, 'end': 31, 'duration': 7, 'demands': [1, 4, 12]}, {'task': 'T14', 'start': 7, 'end': 16, 'duration': 9, 'demands': [2, 9, 2]}, {'task': 'T15', 'start': 31, 'end': 33, 'duration': 2, 'demands': [5, 3, 2]}, {'task': 'T16', 'start': 16, 'end': 23, 'duration': 7, 'demands': [0, 1, 2]}, {'task': 'T17', 'start': 40, 'end': 44, 'duration': 4, 'demands': [3, 2, 1]}] |
| RCPSP,RCPSP, |
|
|
| Here are 16 fittings with their details: there are 3 resource types and the studio capacities are . |
|
|
| | resource_id | capacity | |
| |---|---| |
| | 1 | 10 | |
| | 2 | 13 | |
| | 3 | 11 | |
|
|
| | fitting_id | fitting_duration | resource_demands | dependent_fittings | |
| |---|---|---|---| |
| | T1 | 1 | 6, 2, 1 | T3, T4, T11 | |
| | T2 | 9 | 7, 2, 3 | T6, T7, T3 | |
| | T3 | 3 | 10, 4, 5 | T6 | |
| | T4 | 2 | 2, 6, 4 | T7, T8 | |
| | T5 | 2 | 1, 5, 5 | T6, T8, T1 | |
| | T6 | 3 | 5, 3, 1 | T9, T10, T16 | |
| | T7 | 2 | 2, 2, 6 | none | |
| | T8 | 4 | 7, 1, 3 | none | |
| | T9 | 3 | 2, 6, 7 | none | |
| | T10 | 1 | 6, 8, 3 | T12, T13 | |
| | T11 | 1 | 5, 9, 7 | T15, T9 | |
| | T12 | 4 | 3, 2, 5 | T14 | |
| | T13 | 2 | 6, 5, 5 | T14 | |
| | T14 | 2 | 2, 10, 3 | T16, T15 | |
| | T15 | 8 | 3, 3, 2 | T16 | |
| | T16 | 3 | 0, 1, 3 | T4 | |
|
|
| I'm keeping within the limits and aiming to finish all 16 fittings as early as possible. |
| |
| I'll drop the final schedule back in a simple JSON layout so it's easy to paste into whatever you're using β something like this: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This just sketches the shape Iβll use: ""solution"" is an array of the scheduled fittings, and each item gives the task identifier plus its numeric start and end times. Think of each object as a little form for one fitting: which job it is, when it starts, and when it finishes. That JSON is just the expected shape β Iβll fill in the actual task IDs and numbers for the real schedule. |
|
|
| Please make sure to use the exact task 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β.""","{'nr_tasks': 16, 'nr_resources': 3, 'capacities': [10, 13, 11], 'tasks': [{'duration': 1, 'demands': [6, 2, 1], 'successors': [2, 3, 10]}, {'duration': 9, 'demands': [7, 2, 3], 'successors': [5, 6, 2]}, {'duration': 3, 'demands': [10, 4, 5], 'successors': [5]}, {'duration': 2, 'demands': [2, 6, 4], 'successors': [6, 7]}, {'duration': 2, 'demands': [1, 5, 5], 'successors': [5, 7, 0]}, {'duration': 3, 'demands': [5, 3, 1], 'successors': [8, 9, 15]}, {'duration': 2, 'demands': [2, 2, 6], 'successors': []}, {'duration': 4, 'demands': [7, 1, 3], 'successors': []}, {'duration': 3, 'demands': [2, 6, 7], 'successors': []}, {'duration': 1, 'demands': [6, 8, 3], 'successors': [11, 12]}, {'duration': 1, 'demands': [5, 9, 7], 'successors': [14, 8]}, {'duration': 4, 'demands': [3, 2, 5], 'successors': [13]}, {'duration': 2, 'demands': [6, 5, 5], 'successors': [13]}, {'duration': 2, 'demands': [2, 10, 3], 'successors': [15, 14]}, {'duration': 8, 'demands': [3, 3, 2], 'successors': [15]}, {'duration': 3, 'demands': [0, 1, 3], 'successors': [3]}]}","[{'task': 0, 'start': 9, 'end': 10, 'duration': 1, 'demands': [6, 2, 1]}, {'task': 1, 'start': 0, 'end': 9, 'duration': 9, 'demands': [7, 2, 3]}, {'task': 2, 'start': 10, 'end': 13, 'duration': 3, 'demands': [10, 4, 5]}, {'task': 3, 'start': 34, 'end': 36, 'duration': 2, 'demands': [2, 6, 4]}, {'task': 4, 'start': 0, 'end': 2, 'duration': 2, 'demands': [1, 5, 5]}, {'task': 5, 'start': 13, 'end': 16, 'duration': 3, 'demands': [5, 3, 1]}, {'task': 6, 'start': 36, 'end': 38, 'duration': 2, 'demands': [2, 2, 6]}, {'task': 7, 'start': 36, 'end': 40, 'duration': 4, 'demands': [7, 1, 3]}, {'task': 8, 'start': 23, 'end': 26, 'duration': 3, 'demands': [2, 6, 7]}, {'task': 9, 'start': 16, 'end': 17, 'duration': 1, 'demands': [6, 8, 3]}, {'task': 10, 'start': 13, 'end': 14, 'duration': 1, 'demands': [5, 9, 7]}, {'task': 11, 'start': 17, 'end': 21, 'duration': 4, 'demands': [3, 2, 5]}, {'task': 12, 'start': 17, 'end': 19, 'duration': 2, 'demands': [6, 5, 5]}, {'task': 13, 'start': 21, 'end': 23, 'duration': 2, 'demands': [2, 10, 3]}, {'task': 14, 'start': 23, 'end': 31, 'duration': 8, 'demands': [3, 3, 2]}, {'task': 15, 'start': 31, 'end': 34, 'duration': 3, 'demands': [0, 1, 3]}]",40.0,"{'problem_type': 'RCPSP', 'nr_tasks': 16, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 10}, {'resource_id': 2, 'capacity': 13}, {'resource_id': 3, 'capacity': 11}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [6, 2, 1], 'successors': ['T3', 'T4', 'T11']}, {'task_id': 'T2', 'duration': 9, 'demands': [7, 2, 3], 'successors': ['T6', 'T7', 'T3']}, {'task_id': 'T3', 'duration': 3, 'demands': [10, 4, 5], 'successors': ['T6']}, {'task_id': 'T4', 'duration': 2, 'demands': [2, 6, 4], 'successors': ['T7', 'T8']}, {'task_id': 'T5', 'duration': 2, 'demands': [1, 5, 5], 'successors': ['T6', 'T8', 'T1']}, {'task_id': 'T6', 'duration': 3, 'demands': [5, 3, 1], 'successors': ['T9', 'T10', 'T16']}, {'task_id': 'T7', 'duration': 2, 'demands': [2, 2, 6], 'successors': []}, {'task_id': 'T8', 'duration': 4, 'demands': [7, 1, 3], 'successors': []}, {'task_id': 'T9', 'duration': 3, 'demands': [2, 6, 7], 'successors': []}, {'task_id': 'T10', 'duration': 1, 'demands': [6, 8, 3], 'successors': ['T12', 'T13']}, {'task_id': 'T11', 'duration': 1, 'demands': [5, 9, 7], 'successors': ['T15', 'T9']}, {'task_id': 'T12', 'duration': 4, 'demands': [3, 2, 5], 'successors': ['T14']}, {'task_id': 'T13', 'duration': 2, 'demands': [6, 5, 5], 'successors': ['T14']}, {'task_id': 'T14', 'duration': 2, 'demands': [2, 10, 3], 'successors': ['T16', 'T15']}, {'task_id': 'T15', 'duration': 8, 'demands': [3, 3, 2], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 3, 'demands': [0, 1, 3], 'successors': ['T4']}]}","[{'task': 'T1', 'start': 9, 'end': 10, 'duration': 1, 'demands': [6, 2, 1]}, {'task': 'T2', 'start': 0, 'end': 9, 'duration': 9, 'demands': [7, 2, 3]}, {'task': 'T3', 'start': 10, 'end': 13, 'duration': 3, 'demands': [10, 4, 5]}, {'task': 'T4', 'start': 34, 'end': 36, 'duration': 2, 'demands': [2, 6, 4]}, {'task': 'T5', 'start': 0, 'end': 2, 'duration': 2, 'demands': [1, 5, 5]}, {'task': 'T6', 'start': 13, 'end': 16, 'duration': 3, 'demands': [5, 3, 1]}, {'task': 'T7', 'start': 36, 'end': 38, 'duration': 2, 'demands': [2, 2, 6]}, {'task': 'T8', 'start': 36, 'end': 40, 'duration': 4, 'demands': [7, 1, 3]}, {'task': 'T9', 'start': 23, 'end': 26, 'duration': 3, 'demands': [2, 6, 7]}, {'task': 'T10', 'start': 16, 'end': 17, 'duration': 1, 'demands': [6, 8, 3]}, {'task': 'T11', 'start': 13, 'end': 14, 'duration': 1, 'demands': [5, 9, 7]}, {'task': 'T12', 'start': 17, 'end': 21, 'duration': 4, 'demands': [3, 2, 5]}, {'task': 'T13', 'start': 17, 'end': 19, 'duration': 2, 'demands': [6, 5, 5]}, {'task': 'T14', 'start': 21, 'end': 23, 'duration': 2, 'demands': [2, 10, 3]}, {'task': 'T15', 'start': 23, 'end': 31, 'duration': 8, 'demands': [3, 3, 2]}, {'task': 'T16', 'start': 31, 'end': 34, 'duration': 3, 'demands': [0, 1, 3]}] |
| RCPSP,RCPSP, |
|
|
| Iβll list the 19 segment preps that follow, the 3 limited resource types, and the available capacities for them: . |
| Segment T1: I plan 10 time units of prep, it occupies 6, 9, 2 resources while cooking, and it must finish before these successors can start: T4, T7. |
| Segment T2: I plan 2 time units of prep, it occupies 9, 5, 2 resources while cooking, and it must finish before these successors can start: T4, T5, T6. |
| Segment T3: I plan 7 time units of prep, it occupies 8, 2, 1 resources while cooking, and it must finish before these successors can start: T5, T7. |
| Segment T4: I plan 3 time units of prep, it occupies 3, 2, 3 resources while cooking, and it must finish before these successors can start: T8, T9. |
| Segment T5: I plan 12 time units of prep, it occupies 5, 7, 6 resources while cooking, and it must finish before these successors can start: T10, T11. |
| Segment T6: I plan 10 time units of prep, it occupies 5, 4, 2 resources while cooking, and it must finish before these successors can start: T8, T9. |
| Segment T7: I plan 1 time units of prep, it occupies 1, 2, 7 resources while cooking, and it must finish before these successors can start: T9, T11. |
| Segment T8: I plan 4 time units of prep, it occupies 3, 4, 1 resources while cooking, and it must finish before these successors can start: T13, T14. |
| Segment T9: I plan 5 time units of prep, it occupies 2, 4, 5 resources while cooking, and it must finish before these successors can start: T12. |
| Segment T10: I plan 5 time units of prep, it occupies 5, 4, 3 resources while cooking, and it must finish before these successors can start: T13. |
| Segment T11: I plan 3 time units of prep, it occupies 5, 2, 6 resources while cooking, and it must finish before these successors can start: T14. |
| Segment T12: I plan 5 time units of prep, it occupies 1, 4, 4 resources while cooking, and it must finish before these successors can start: T16, T17. |
| Segment T13: I plan 3 time units of prep, it occupies 3, 4, 3 resources while cooking, and it must finish before these successors can start: none. |
| Segment T14: I plan 5 time units of prep, it occupies 3, 5, 7 resources while cooking, and it must finish before these successors can start: T16. |
| Segment T15: I plan 5 time units of prep, it occupies 6, 5, 4 resources while cooking, and it must finish before these successors can start: none. |
| Segment T16: I plan 1 time units of prep, it occupies 2, 3, 4 resources while cooking, and it must finish before these successors can start: none. |
| Segment T17: I plan 5 time units of prep, it occupies 3, 5, 10 resources while cooking, and it must finish before these successors can start: T18. |
| Segment T18: I plan 11 time units of prep, it occupies 2, 11, 4 resources while cooking, and it must finish before these successors can start: T19. |
| Segment T19: I plan 2 time units of prep, it occupies 0, 1, 3 resources while cooking, and it must finish before these successors can start: none. |
| Iβll use these particulars to assign a single start time to each prep so ovens and chefs arenβt overloaded and the whole menu finishes as early as possible. |
|
|
| If you're going to hand the plan back to me, a simple JSON shape works great β nothing fancy, just a list of which segment starts when and when it finishes. Something like this: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of that as a little form: ""solution"" is the list of scheduled preps, each item names the task (the segment), the time it starts, and the time it ends. Super informal: list every segment once with its start and end times. This block is just the sketch of the shape I expect, not the actual schedule β you'll fill in the real task IDs and times. |
|
|
| Please use the exact identifiers from the instance input β don't rename them or invent new labels. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'nr_tasks': 19, 'nr_resources': 3, 'capacities': [13, 12, 15], 'tasks': [{'duration': 10, 'demands': [6, 9, 2], 'successors': [3, 6]}, {'duration': 2, 'demands': [9, 5, 2], 'successors': [3, 4, 5]}, {'duration': 7, 'demands': [8, 2, 1], 'successors': [4, 6]}, {'duration': 3, 'demands': [3, 2, 3], 'successors': [7, 8]}, {'duration': 12, 'demands': [5, 7, 6], 'successors': [9, 10]}, {'duration': 10, 'demands': [5, 4, 2], 'successors': [7, 8]}, {'duration': 1, 'demands': [1, 2, 7], 'successors': [8, 10]}, {'duration': 4, 'demands': [3, 4, 1], 'successors': [12, 13]}, {'duration': 5, 'demands': [2, 4, 5], 'successors': [11]}, {'duration': 5, 'demands': [5, 4, 3], 'successors': [12]}, {'duration': 3, 'demands': [5, 2, 6], 'successors': [13]}, {'duration': 5, 'demands': [1, 4, 4], 'successors': [15, 16]}, {'duration': 3, 'demands': [3, 4, 3], 'successors': []}, {'duration': 5, 'demands': [3, 5, 7], 'successors': [15]}, {'duration': 5, 'demands': [6, 5, 4], 'successors': []}, {'duration': 1, 'demands': [2, 3, 4], 'successors': []}, {'duration': 5, 'demands': [3, 5, 10], 'successors': [17]}, {'duration': 11, 'demands': [2, 11, 4], 'successors': [18]}, {'duration': 2, 'demands': [0, 1, 3], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 10, 'duration': 10, 'demands': [6, 9, 2]}, {'task': 1, 'start': 10, 'end': 12, 'duration': 2, 'demands': [9, 5, 2]}, {'task': 2, 'start': 12, 'end': 19, 'duration': 7, 'demands': [8, 2, 1]}, {'task': 3, 'start': 12, 'end': 15, 'duration': 3, 'demands': [3, 2, 3]}, {'task': 4, 'start': 19, 'end': 31, 'duration': 12, 'demands': [5, 7, 6]}, {'task': 5, 'start': 15, 'end': 25, 'duration': 10, 'demands': [5, 4, 2]}, {'task': 6, 'start': 25, 'end': 26, 'duration': 1, 'demands': [1, 2, 7]}, {'task': 7, 'start': 34, 'end': 38, 'duration': 4, 'demands': [3, 4, 1]}, {'task': 8, 'start': 26, 'end': 31, 'duration': 5, 'demands': [2, 4, 5]}, {'task': 9, 'start': 31, 'end': 36, 'duration': 5, 'demands': [5, 4, 3]}, {'task': 10, 'start': 31, 'end': 34, 'duration': 3, 'demands': [5, 2, 6]}, {'task': 11, 'start': 31, 'end': 36, 'duration': 5, 'demands': [1, 4, 4]}, {'task': 12, 'start': 38, 'end': 41, 'duration': 3, 'demands': [3, 4, 3]}, {'task': 13, 'start': 52, 'end': 57, 'duration': 5, 'demands': [3, 5, 7]}, {'task': 14, 'start': 53, 'end': 58, 'duration': 5, 'demands': [6, 5, 4]}, {'task': 15, 'start': 57, 'end': 58, 'duration': 1, 'demands': [2, 3, 4]}, {'task': 16, 'start': 36, 'end': 41, 'duration': 5, 'demands': [3, 5, 10]}, {'task': 17, 'start': 41, 'end': 52, 'duration': 11, 'demands': [2, 11, 4]}, {'task': 18, 'start': 52, 'end': 54, 'duration': 2, 'demands': [0, 1, 3]}]",58.0,"{'problem_type': 'RCPSP', 'nr_tasks': 19, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 13}, {'resource_id': 2, 'capacity': 12}, {'resource_id': 3, 'capacity': 15}], 'task_records': [{'task_id': 'T1', 'duration': 10, 'demands': [6, 9, 2], 'successors': ['T4', 'T7']}, {'task_id': 'T2', 'duration': 2, 'demands': [9, 5, 2], 'successors': ['T4', 'T5', 'T6']}, {'task_id': 'T3', 'duration': 7, 'demands': [8, 2, 1], 'successors': ['T5', 'T7']}, {'task_id': 'T4', 'duration': 3, 'demands': [3, 2, 3], 'successors': ['T8', 'T9']}, {'task_id': 'T5', 'duration': 12, 'demands': [5, 7, 6], 'successors': ['T10', 'T11']}, {'task_id': 'T6', 'duration': 10, 'demands': [5, 4, 2], 'successors': ['T8', 'T9']}, {'task_id': 'T7', 'duration': 1, 'demands': [1, 2, 7], 'successors': ['T9', 'T11']}, {'task_id': 'T8', 'duration': 4, 'demands': [3, 4, 1], 'successors': ['T13', 'T14']}, {'task_id': 'T9', 'duration': 5, 'demands': [2, 4, 5], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 5, 'demands': [5, 4, 3], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 3, 'demands': [5, 2, 6], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 5, 'demands': [1, 4, 4], 'successors': ['T16', 'T17']}, {'task_id': 'T13', 'duration': 3, 'demands': [3, 4, 3], 'successors': []}, {'task_id': 'T14', 'duration': 5, 'demands': [3, 5, 7], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 5, 'demands': [6, 5, 4], 'successors': []}, {'task_id': 'T16', 'duration': 1, 'demands': [2, 3, 4], 'successors': []}, {'task_id': 'T17', 'duration': 5, 'demands': [3, 5, 10], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 11, 'demands': [2, 11, 4], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 2, 'demands': [0, 1, 3], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 10, 'duration': 10, 'demands': [6, 9, 2]}, {'task': 'T2', 'start': 10, 'end': 12, 'duration': 2, 'demands': [9, 5, 2]}, {'task': 'T3', 'start': 12, 'end': 19, 'duration': 7, 'demands': [8, 2, 1]}, {'task': 'T4', 'start': 12, 'end': 15, 'duration': 3, 'demands': [3, 2, 3]}, {'task': 'T5', 'start': 19, 'end': 31, 'duration': 12, 'demands': [5, 7, 6]}, {'task': 'T6', 'start': 15, 'end': 25, 'duration': 10, 'demands': [5, 4, 2]}, {'task': 'T7', 'start': 25, 'end': 26, 'duration': 1, 'demands': [1, 2, 7]}, {'task': 'T8', 'start': 34, 'end': 38, 'duration': 4, 'demands': [3, 4, 1]}, {'task': 'T9', 'start': 26, 'end': 31, 'duration': 5, 'demands': [2, 4, 5]}, {'task': 'T10', 'start': 31, 'end': 36, 'duration': 5, 'demands': [5, 4, 3]}, {'task': 'T11', 'start': 31, 'end': 34, 'duration': 3, 'demands': [5, 2, 6]}, {'task': 'T12', 'start': 31, 'end': 36, 'duration': 5, 'demands': [1, 4, 4]}, {'task': 'T13', 'start': 38, 'end': 41, 'duration': 3, 'demands': [3, 4, 3]}, {'task': 'T14', 'start': 52, 'end': 57, 'duration': 5, 'demands': [3, 5, 7]}, {'task': 'T15', 'start': 53, 'end': 58, 'duration': 5, 'demands': [6, 5, 4]}, {'task': 'T16', 'start': 57, 'end': 58, 'duration': 1, 'demands': [2, 3, 4]}, {'task': 'T17', 'start': 36, 'end': 41, 'duration': 5, 'demands': [3, 5, 10]}, {'task': 'T18', 'start': 41, 'end': 52, 'duration': 11, 'demands': [2, 11, 4]}, {'task': 'T19', 'start': 52, 'end': 54, 'duration': 2, 'demands': [0, 1, 3]}]",24,nl,1 |
| RCPSP,RCPSP,"Many mornings thereβs more work than benches or hands, so the shop manager has to decide when each diagnostic and repair starts: each step takes a fixed amount of time, ties up limited benches and technicians while it runs, and some fixes canβt start until earlier checks are done and parts are available. The better the plan, the sooner the last appliance is done β to judge that, look at when every job finishes and the latest of those times is the total completion time. Practical constraints are simple: donβt skip or duplicate tasks, never use more benches or technicians than exist at the same time, and always respect the needed order of tasks. The detailed list of tasks and resource limits is below. |
| |
| There are 18 jobs to assign, using 3 resource types with capacities . |
| |
| | resource_id | capacity | |
| |---|---| |
| | 0 | 13 | |
| | 1 | 8 | |
| | 2 | 12 | |
| |
| | job_id | job_duration | resource_demands | following_jobs | |
| |---|---|---|---| |
| | T1 | 1 | 0, 0, 0 | T2, T3, T4 | |
| | T2 | 6 | 5, 3, 4 | T5, T6 | |
| | T3 | 4 | 4, 5, 6 | T5, T8 | |
| | T4 | 14 | 8, 3, 2 | T6, T7, T9 | |
| | T5 | 11 | 6, 1, 3 | T9, T10 | |
| | T6 | 8 | 4, 3, 2 | T11, T12 | |
| | T7 | 2 | 4, 7, 3 | T9, T10 | |
| | T8 | 3 | 4, 3, 2 | T9, T10 | |
| | T9 | 2 | 3, 3, 2 | T13 | |
| | T10 | 4 | 2, 1, 4 | none | |
| | T11 | 6 | 3, 4, 1 | T13 | |
| | T12 | 2 | 6, 2, 6 | T13, T7 | |
| | T13 | 2 | 2, 7, 7 | none | |
| | T14 | 13 | 5, 1, 2 | T16, T7 | |
| | T15 | 10 | 7, 4, 6 | T16 | |
| | T16 | 7 | 1, 5, 8 | T18 | |
| | T17 | 2 | 1, 8, 4 | T18 | |
| | T18 | 1 | 0, 0, 0 | none | |
| |
| The shop manager should schedule them to minimise the time when the last job finishes while respecting resource capacities and the given precedences. |
| |
| When you hand me a schedule, just follow this simple JSON shape so everything's clear and machine-friendly: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of that as a little form: ""solution"" is the list of planned steps, each entry names the task and the time it starts and finishes. It's just a sketch of the shape I expect β not the actual schedule yet. |
| |
| Please make sure to use the exact identifiers from the instance input β don't rename tasks 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β.""","{'nr_tasks': 18, 'nr_resources': 3, 'capacities': [13, 8, 12], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 6, 'demands': [5, 3, 4], 'successors': [4, 5]}, {'duration': 4, 'demands': [4, 5, 6], 'successors': [4, 7]}, {'duration': 14, 'demands': [8, 3, 2], 'successors': [5, 6, 8]}, {'duration': 11, 'demands': [6, 1, 3], 'successors': [8, 9]}, {'duration': 8, 'demands': [4, 3, 2], 'successors': [10, 11]}, {'duration': 2, 'demands': [4, 7, 3], 'successors': [8, 9]}, {'duration': 3, 'demands': [4, 3, 2], 'successors': [8, 9]}, {'duration': 2, 'demands': [3, 3, 2], 'successors': [12]}, {'duration': 4, 'demands': [2, 1, 4], 'successors': []}, {'duration': 6, 'demands': [3, 4, 1], 'successors': [12]}, {'duration': 2, 'demands': [6, 2, 6], 'successors': [12, 6]}, {'duration': 2, 'demands': [2, 7, 7], 'successors': []}, {'duration': 13, 'demands': [5, 1, 2], 'successors': [15, 6]}, {'duration': 10, 'demands': [7, 4, 6], 'successors': [15]}, {'duration': 7, 'demands': [1, 5, 8], 'successors': [17]}, {'duration': 2, 'demands': [1, 8, 4], 'successors': [17]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 15, 'end': 21, 'duration': 6, 'demands': [5, 3, 4]}, {'task': 2, 'start': 28, 'end': 32, 'duration': 4, 'demands': [4, 5, 6]}, {'task': 3, 'start': 12, 'end': 26, 'duration': 14, 'demands': [8, 3, 2]}, {'task': 4, 'start': 32, 'end': 43, 'duration': 11, 'demands': [6, 1, 3]}, {'task': 5, 'start': 26, 'end': 34, 'duration': 8, 'demands': [4, 3, 2]}, {'task': 6, 'start': 36, 'end': 38, 'duration': 2, 'demands': [4, 7, 3]}, {'task': 7, 'start': 38, 'end': 41, 'duration': 3, 'demands': [4, 3, 2]}, {'task': 8, 'start': 43, 'end': 45, 'duration': 2, 'demands': [3, 3, 2]}, {'task': 9, 'start': 43, 'end': 47, 'duration': 4, 'demands': [2, 1, 4]}, {'task': 10, 'start': 38, 'end': 44, 'duration': 6, 'demands': [3, 4, 1]}, {'task': 11, 'start': 34, 'end': 36, 'duration': 2, 'demands': [6, 2, 6]}, {'task': 12, 'start': 45, 'end': 47, 'duration': 2, 'demands': [2, 7, 7]}, {'task': 13, 'start': 2, 'end': 15, 'duration': 13, 'demands': [5, 1, 2]}, {'task': 14, 'start': 2, 'end': 12, 'duration': 10, 'demands': [7, 4, 6]}, {'task': 15, 'start': 21, 'end': 28, 'duration': 7, 'demands': [1, 5, 8]}, {'task': 16, 'start': 0, 'end': 2, 'duration': 2, 'demands': [1, 8, 4]}, {'task': 17, 'start': 30, 'end': 31, 'duration': 1, 'demands': [0, 0, 0]}]",47.0,"{'problem_type': 'RCPSP', 'nr_tasks': 18, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 13}, {'resource_id': 1, 'capacity': 8}, {'resource_id': 2, 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 6, 'demands': [5, 3, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T3', 'duration': 4, 'demands': [4, 5, 6], 'successors': ['T5', 'T8']}, {'task_id': 'T4', 'duration': 14, 'demands': [8, 3, 2], 'successors': ['T6', 'T7', 'T9']}, {'task_id': 'T5', 'duration': 11, 'demands': [6, 1, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 8, 'demands': [4, 3, 2], 'successors': ['T11', 'T12']}, {'task_id': 'T7', 'duration': 2, 'demands': [4, 7, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 3, 'demands': [4, 3, 2], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 2, 'demands': [3, 3, 2], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 4, 'demands': [2, 1, 4], 'successors': []}, {'task_id': 'T11', 'duration': 6, 'demands': [3, 4, 1], 'successors': ['T13']}, {'task_id': 'T12', 'duration': 2, 'demands': [6, 2, 6], 'successors': ['T13', 'T7']}, {'task_id': 'T13', 'duration': 2, 'demands': [2, 7, 7], 'successors': []}, {'task_id': 'T14', 'duration': 13, 'demands': [5, 1, 2], 'successors': ['T16', 'T7']}, {'task_id': 'T15', 'duration': 10, 'demands': [7, 4, 6], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 7, 'demands': [1, 5, 8], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 2, 'demands': [1, 8, 4], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 15, 'end': 21, 'duration': 6, 'demands': [5, 3, 4]}, {'task': 'T3', 'start': 28, 'end': 32, 'duration': 4, 'demands': [4, 5, 6]}, {'task': 'T4', 'start': 12, 'end': 26, 'duration': 14, 'demands': [8, 3, 2]}, {'task': 'T5', 'start': 32, 'end': 43, 'duration': 11, 'demands': [6, 1, 3]}, {'task': 'T6', 'start': 26, 'end': 34, 'duration': 8, 'demands': [4, 3, 2]}, {'task': 'T7', 'start': 36, 'end': 38, 'duration': 2, 'demands': [4, 7, 3]}, {'task': 'T8', 'start': 38, 'end': 41, 'duration': 3, 'demands': [4, 3, 2]}, {'task': 'T9', 'start': 43, 'end': 45, 'duration': 2, 'demands': [3, 3, 2]}, {'task': 'T10', 'start': 43, 'end': 47, 'duration': 4, 'demands': [2, 1, 4]}, {'task': 'T11', 'start': 38, 'end': 44, 'duration': 6, 'demands': [3, 4, 1]}, {'task': 'T12', 'start': 34, 'end': 36, 'duration': 2, 'demands': [6, 2, 6]}, {'task': 'T13', 'start': 45, 'end': 47, 'duration': 2, 'demands': [2, 7, 7]}, {'task': 'T14', 'start': 2, 'end': 15, 'duration': 13, 'demands': [5, 1, 2]}, {'task': 'T15', 'start': 2, 'end': 12, 'duration': 10, 'demands': [7, 4, 6]}, {'task': 'T16', 'start': 21, 'end': 28, 'duration': 7, 'demands': [1, 5, 8]}, {'task': 'T17', 'start': 0, 'end': 2, 'duration': 2, 'demands': [1, 8, 4]}, {'task': 'T18', 'start': 30, 'end': 31, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| # total_number_of_jobs=20 |
| # number_of_resource_types=3 |
| # resources=0, 1, 2 |
| resource_id,capacity |
| 0,10 |
| 1,10 |
| 2,14 |
| job_identifier,job_duration,resource_demands,immediate_successor_jobs |
| T1,1,""0, 0, 0"",""T2, T3, T4"" |
| T2,4,""4, 5, 4"",""T5, T6"" |
| T3,3,""7, 4, 2"",""T5"" |
| T4,7,""8, 2, 2"",""T6, T7"" |
| T5,11,""6, 1, 5"",""T9, T10"" |
| T6,13,""8, 10, 8"",""T11, T12"" |
| T7,4,""5, 6, 3"",""T9, T10"" |
| T8,2,""3, 6, 7"",""T9, T10"" |
| T9,2,""2, 3, 4"",""T13"" |
| T10,3,""3, 2, 3"",""none"" |
| T11,2,""2, 3, 3"",""T13"" |
| T12,1,""8, 1, 7"",""T13, T14"" |
| T13,2,""2, 5, 2"",""T15"" |
| T14,1,""1, 10, 5"",""T16"" |
| T15,2,""3, 3, 7"",""T19"" |
| T16,8,""4, 2, 4"",""T18"" |
| T17,10,""8, 2, 2"",""T18"" |
| T18,4,""3, 3, 4"",""T20"" |
| T19,3,""2, 6, 2"",""T20"" |
| T20,1,""0, 0, 0"",""none"" |
|
|
| When you send the schedule back, just put it in this little JSON shape so it's easy to read and load: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of that like a simple form: ""solution"" is a list of all the jobs you're scheduling, and each entry names the task and the start and end times you picked for it. Super informal β it's just a sketch of the shape I need, not the real schedule. |
| |
| Please make sure to use the exact identifiers from the instance input β don't rename tasks 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β.","{'nr_tasks': 20, 'nr_resources': 3, 'capacities': [10, 10, 14], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 4, 'demands': [4, 5, 4], 'successors': [4, 5]}, {'duration': 3, 'demands': [7, 4, 2], 'successors': [4]}, {'duration': 7, 'demands': [8, 2, 2], 'successors': [5, 6]}, {'duration': 11, 'demands': [6, 1, 5], 'successors': [8, 9]}, {'duration': 13, 'demands': [8, 10, 8], 'successors': [10, 11]}, {'duration': 4, 'demands': [5, 6, 3], 'successors': [8, 9]}, {'duration': 2, 'demands': [3, 6, 7], 'successors': [8, 9]}, {'duration': 2, 'demands': [2, 3, 4], 'successors': [12]}, {'duration': 3, 'demands': [3, 2, 3], 'successors': []}, {'duration': 2, 'demands': [2, 3, 3], 'successors': [12]}, {'duration': 1, 'demands': [8, 1, 7], 'successors': [12, 13]}, {'duration': 2, 'demands': [2, 5, 2], 'successors': [14]}, {'duration': 1, 'demands': [1, 10, 5], 'successors': [15]}, {'duration': 2, 'demands': [3, 3, 7], 'successors': [18]}, {'duration': 8, 'demands': [4, 2, 4], 'successors': [17]}, {'duration': 10, 'demands': [8, 2, 2], 'successors': [17]}, {'duration': 4, 'demands': [3, 3, 4], 'successors': [19]}, {'duration': 3, 'demands': [2, 6, 2], 'successors': [19]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 5, 'duration': 4, 'demands': [4, 5, 4]}, {'task': 2, 'start': 16, 'end': 19, 'duration': 3, 'demands': [7, 4, 2]}, {'task': 3, 'start': 5, 'end': 12, 'duration': 7, 'demands': [8, 2, 2]}, {'task': 4, 'start': 34, 'end': 45, 'duration': 11, 'demands': [6, 1, 5]}, {'task': 5, 'start': 19, 'end': 32, 'duration': 13, 'demands': [8, 10, 8]}, {'task': 6, 'start': 12, 'end': 16, 'duration': 4, 'demands': [5, 6, 3]}, {'task': 7, 'start': 16, 'end': 18, 'duration': 2, 'demands': [3, 6, 7]}, {'task': 8, 'start': 45, 'end': 47, 'duration': 2, 'demands': [2, 3, 4]}, {'task': 9, 'start': 55, 'end': 58, 'duration': 3, 'demands': [3, 2, 3]}, {'task': 10, 'start': 34, 'end': 36, 'duration': 2, 'demands': [2, 3, 3]}, {'task': 11, 'start': 32, 'end': 33, 'duration': 1, 'demands': [8, 1, 7]}, {'task': 12, 'start': 47, 'end': 49, 'duration': 2, 'demands': [2, 5, 2]}, {'task': 13, 'start': 33, 'end': 34, 'duration': 1, 'demands': [1, 10, 5]}, {'task': 14, 'start': 55, 'end': 57, 'duration': 2, 'demands': [3, 3, 7]}, {'task': 15, 'start': 36, 'end': 44, 'duration': 8, 'demands': [4, 2, 4]}, {'task': 16, 'start': 45, 'end': 55, 'duration': 10, 'demands': [8, 2, 2]}, {'task': 17, 'start': 55, 'end': 59, 'duration': 4, 'demands': [3, 3, 4]}, {'task': 18, 'start': 58, 'end': 61, 'duration': 3, 'demands': [2, 6, 2]}, {'task': 19, 'start': 61, 'end': 62, 'duration': 1, 'demands': [0, 0, 0]}]",62.0,"{'problem_type': 'RCPSP', 'nr_tasks': 20, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 10}, {'resource_id': 1, 'capacity': 10}, {'resource_id': 2, 'capacity': 14}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 4, 'demands': [4, 5, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T3', 'duration': 3, 'demands': [7, 4, 2], 'successors': ['T5']}, {'task_id': 'T4', 'duration': 7, 'demands': [8, 2, 2], 'successors': ['T6', 'T7']}, {'task_id': 'T5', 'duration': 11, 'demands': [6, 1, 5], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 13, 'demands': [8, 10, 8], 'successors': ['T11', 'T12']}, {'task_id': 'T7', 'duration': 4, 'demands': [5, 6, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 2, 'demands': [3, 6, 7], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 2, 'demands': [2, 3, 4], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 3, 'demands': [3, 2, 3], 'successors': []}, {'task_id': 'T11', 'duration': 2, 'demands': [2, 3, 3], 'successors': ['T13']}, {'task_id': 'T12', 'duration': 1, 'demands': [8, 1, 7], 'successors': ['T13', 'T14']}, {'task_id': 'T13', 'duration': 2, 'demands': [2, 5, 2], 'successors': ['T15']}, {'task_id': 'T14', 'duration': 1, 'demands': [1, 10, 5], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 2, 'demands': [3, 3, 7], 'successors': ['T19']}, {'task_id': 'T16', 'duration': 8, 'demands': [4, 2, 4], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 10, 'demands': [8, 2, 2], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 4, 'demands': [3, 3, 4], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 3, 'demands': [2, 6, 2], 'successors': ['T20']}, {'task_id': 'T20', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 5, 'duration': 4, 'demands': [4, 5, 4]}, {'task': 'T3', 'start': 16, 'end': 19, 'duration': 3, 'demands': [7, 4, 2]}, {'task': 'T4', 'start': 5, 'end': 12, 'duration': 7, 'demands': [8, 2, 2]}, {'task': 'T5', 'start': 34, 'end': 45, 'duration': 11, 'demands': [6, 1, 5]}, {'task': 'T6', 'start': 19, 'end': 32, 'duration': 13, 'demands': [8, 10, 8]}, {'task': 'T7', 'start': 12, 'end': 16, 'duration': 4, 'demands': [5, 6, 3]}, {'task': 'T8', 'start': 16, 'end': 18, 'duration': 2, 'demands': [3, 6, 7]}, {'task': 'T9', 'start': 45, 'end': 47, 'duration': 2, 'demands': [2, 3, 4]}, {'task': 'T10', 'start': 55, 'end': 58, 'duration': 3, 'demands': [3, 2, 3]}, {'task': 'T11', 'start': 34, 'end': 36, 'duration': 2, 'demands': [2, 3, 3]}, {'task': 'T12', 'start': 32, 'end': 33, 'duration': 1, 'demands': [8, 1, 7]}, {'task': 'T13', 'start': 47, 'end': 49, 'duration': 2, 'demands': [2, 5, 2]}, {'task': 'T14', 'start': 33, 'end': 34, 'duration': 1, 'demands': [1, 10, 5]}, {'task': 'T15', 'start': 55, 'end': 57, 'duration': 2, 'demands': [3, 3, 7]}, {'task': 'T16', 'start': 36, 'end': 44, 'duration': 8, 'demands': [4, 2, 4]}, {'task': 'T17', 'start': 45, 'end': 55, 'duration': 10, 'demands': [8, 2, 2]}, {'task': 'T18', 'start': 55, 'end': 59, 'duration': 4, 'demands': [3, 3, 4]}, {'task': 'T19', 'start': 58, 'end': 61, 'duration': 3, 'demands': [2, 6, 2]}, {'task': 'T20', 'start': 61, 'end': 62, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| The specific rehearsals and resource limits are listed below: there are 16 rehearsal blocks, 3 resource types, and the resource capacities are . |
|
|
| | resource_id | capacity | |
| |---|---| |
| | 1 | 13 | |
| | 2 | 12 | |
| | 3 | 8 | |
|
|
| | block_id | block_duration_minutes | resource_demands_vector | successor_block_ids | |
| |---|---|---|---| |
| | T1 | 3 | 8, 1, 3 | T3, T4 | |
| | T2 | 5 | 4, 1, 6 | T6, T7 | |
| | T3 | 2 | 4, 6, 5 | T6, T4, T9, T12 | |
| | T4 | 4 | 4, 8, 4 | T7, T8 | |
| | T5 | 4 | 3, 6, 6 | T6, T8, T4, T12 | |
| | T6 | 2 | 5, 1, 4 | T9, T10 | |
| | T7 | 2 | 5, 3, 2 | none | |
| | T8 | 2 | 6, 1, 8 | none | |
| | T9 | 4 | 2, 7, 3 | T11, T4 | |
| | T10 | 1 | 7, 10, 3 | T12, T13, T16 | |
| | T11 | 1 | 6, 9, 2 | T15, T16 | |
| | T12 | 3 | 2, 4, 4 | T14, T11 | |
| | T13 | 3 | 9, 2, 3 | T14 | |
| | T14 | 3 | 2, 12, 2 | T16, T4 | |
| | T15 | 6 | 4, 2, 1 | T16 | |
| | T16 | 5 | 0, 2, 4 | T4 | |
|
|
| We will judge lineups by the latest block end and prefer the lineup with the earlier latest end. |
|
|
| Also, when you send your lineup back, please stick to a simple JSON shape so it's easy to read and check. Something like this is what I expect: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This is just a sketch of the shape: ""solution"" is a list of rehearsal blocks, and each block entry names the block under ""task"" and the chosen ""start"" and ""end"" times for it. Keep it casual β start and end are just the times on the rehearsal clock (use the same units the instance uses). |
| |
| The JSON above is only the expected shape, not the actual answer. 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β, or a capital letter followed by digits like βA1β or βX7β.""","{'nr_tasks': 16, 'nr_resources': 3, 'capacities': [13, 12, 8], 'tasks': [{'duration': 3, 'demands': [8, 1, 3], 'successors': [2, 3]}, {'duration': 5, 'demands': [4, 1, 6], 'successors': [5, 6]}, {'duration': 2, 'demands': [4, 6, 5], 'successors': [5, 3, 8, 11]}, {'duration': 4, 'demands': [4, 8, 4], 'successors': [6, 7]}, {'duration': 4, 'demands': [3, 6, 6], 'successors': [5, 7, 3, 11]}, {'duration': 2, 'demands': [5, 1, 4], 'successors': [8, 9]}, {'duration': 2, 'demands': [5, 3, 2], 'successors': []}, {'duration': 2, 'demands': [6, 1, 8], 'successors': []}, {'duration': 4, 'demands': [2, 7, 3], 'successors': [10, 3]}, {'duration': 1, 'demands': [7, 10, 3], 'successors': [11, 12, 15]}, {'duration': 1, 'demands': [6, 9, 2], 'successors': [14, 15]}, {'duration': 3, 'demands': [2, 4, 4], 'successors': [13, 10]}, {'duration': 3, 'demands': [9, 2, 3], 'successors': [13]}, {'duration': 3, 'demands': [2, 12, 2], 'successors': [15, 3]}, {'duration': 6, 'demands': [4, 2, 1], 'successors': [15]}, {'duration': 5, 'demands': [0, 2, 4], 'successors': [3]}]}","[{'task': 0, 'start': 0, 'end': 3, 'duration': 3, 'demands': [8, 1, 3]}, {'task': 1, 'start': 3, 'end': 8, 'duration': 5, 'demands': [4, 1, 6]}, {'task': 2, 'start': 12, 'end': 14, 'duration': 2, 'demands': [4, 6, 5]}, {'task': 3, 'start': 36, 'end': 40, 'duration': 4, 'demands': [4, 8, 4]}, {'task': 4, 'start': 8, 'end': 12, 'duration': 4, 'demands': [3, 6, 6]}, {'task': 5, 'start': 14, 'end': 16, 'duration': 2, 'demands': [5, 1, 4]}, {'task': 6, 'start': 40, 'end': 42, 'duration': 2, 'demands': [5, 3, 2]}, {'task': 7, 'start': 42, 'end': 44, 'duration': 2, 'demands': [6, 1, 8]}, {'task': 8, 'start': 17, 'end': 21, 'duration': 4, 'demands': [2, 7, 3]}, {'task': 9, 'start': 16, 'end': 17, 'duration': 1, 'demands': [7, 10, 3]}, {'task': 10, 'start': 21, 'end': 22, 'duration': 1, 'demands': [6, 9, 2]}, {'task': 11, 'start': 17, 'end': 20, 'duration': 3, 'demands': [2, 4, 4]}, {'task': 12, 'start': 22, 'end': 25, 'duration': 3, 'demands': [9, 2, 3]}, {'task': 13, 'start': 28, 'end': 31, 'duration': 3, 'demands': [2, 12, 2]}, {'task': 14, 'start': 22, 'end': 28, 'duration': 6, 'demands': [4, 2, 1]}, {'task': 15, 'start': 31, 'end': 36, 'duration': 5, 'demands': [0, 2, 4]}]",44.0,"{'problem_type': 'RCPSP', 'nr_tasks': 16, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 13}, {'resource_id': 2, 'capacity': 12}, {'resource_id': 3, 'capacity': 8}], 'task_records': [{'task_id': 'T1', 'duration': 3, 'demands': [8, 1, 3], 'successors': ['T3', 'T4']}, {'task_id': 'T2', 'duration': 5, 'demands': [4, 1, 6], 'successors': ['T6', 'T7']}, {'task_id': 'T3', 'duration': 2, 'demands': [4, 6, 5], 'successors': ['T6', 'T4', 'T9', 'T12']}, {'task_id': 'T4', 'duration': 4, 'demands': [4, 8, 4], 'successors': ['T7', 'T8']}, {'task_id': 'T5', 'duration': 4, 'demands': [3, 6, 6], 'successors': ['T6', 'T8', 'T4', 'T12']}, {'task_id': 'T6', 'duration': 2, 'demands': [5, 1, 4], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 2, 'demands': [5, 3, 2], 'successors': []}, {'task_id': 'T8', 'duration': 2, 'demands': [6, 1, 8], 'successors': []}, {'task_id': 'T9', 'duration': 4, 'demands': [2, 7, 3], 'successors': ['T11', 'T4']}, {'task_id': 'T10', 'duration': 1, 'demands': [7, 10, 3], 'successors': ['T12', 'T13', 'T16']}, {'task_id': 'T11', 'duration': 1, 'demands': [6, 9, 2], 'successors': ['T15', 'T16']}, {'task_id': 'T12', 'duration': 3, 'demands': [2, 4, 4], 'successors': ['T14', 'T11']}, {'task_id': 'T13', 'duration': 3, 'demands': [9, 2, 3], 'successors': ['T14']}, {'task_id': 'T14', 'duration': 3, 'demands': [2, 12, 2], 'successors': ['T16', 'T4']}, {'task_id': 'T15', 'duration': 6, 'demands': [4, 2, 1], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 5, 'demands': [0, 2, 4], 'successors': ['T4']}]}","[{'task': 'T1', 'start': 0, 'end': 3, 'duration': 3, 'demands': [8, 1, 3]}, {'task': 'T2', 'start': 3, 'end': 8, 'duration': 5, 'demands': [4, 1, 6]}, {'task': 'T3', 'start': 12, 'end': 14, 'duration': 2, 'demands': [4, 6, 5]}, {'task': 'T4', 'start': 36, 'end': 40, 'duration': 4, 'demands': [4, 8, 4]}, {'task': 'T5', 'start': 8, 'end': 12, 'duration': 4, 'demands': [3, 6, 6]}, {'task': 'T6', 'start': 14, 'end': 16, 'duration': 2, 'demands': [5, 1, 4]}, {'task': 'T7', 'start': 40, 'end': 42, 'duration': 2, 'demands': [5, 3, 2]}, {'task': 'T8', 'start': 42, 'end': 44, 'duration': 2, 'demands': [6, 1, 8]}, {'task': 'T9', 'start': 17, 'end': 21, 'duration': 4, 'demands': [2, 7, 3]}, {'task': 'T10', 'start': 16, 'end': 17, 'duration': 1, 'demands': [7, 10, 3]}, {'task': 'T11', 'start': 21, 'end': 22, 'duration': 1, 'demands': [6, 9, 2]}, {'task': 'T12', 'start': 17, 'end': 20, 'duration': 3, 'demands': [2, 4, 4]}, {'task': 'T13', 'start': 22, 'end': 25, 'duration': 3, 'demands': [9, 2, 3]}, {'task': 'T14', 'start': 28, 'end': 31, 'duration': 3, 'demands': [2, 12, 2]}, {'task': 'T15', 'start': 22, 'end': 28, 'duration': 6, 'demands': [4, 2, 1]}, {'task': 'T16', 'start': 31, 'end': 36, 'duration': 5, 'demands': [0, 2, 4]}]",27,markdown_table,1 |
| RCPSP,RCPSP,"Someone has to coordinate the roadworks so traffic can flow again: each repair takes a fixed block of time, consumes some crew hours and a machine while itβs underway, and a few jobs canβt begin until others are done. The job is to pick start times for each activity so the final reopening happens at the earliest possible moment β compare plans by the time the last task finishes, and earlier wins. At no point can the total crews or machines in use exceed whatβs on the books, and every repair must be carried out once (no skipping or double-booking). The specific instance details are shown below. |
| |
| There are 19 repairs to schedule, 3 resource types to track, and resource capacities are . |
| Repair T1 takes 1 time units, requires 0, 0, 0 while active, and must finish before T2, T3 can start. |
| Repair T2 takes 4 time units, requires 5, 8, 3 while active, and must finish before T4, T5, T6 can start. |
| Repair T3 takes 7 time units, requires 9, 1, 4 while active, and must finish before T6, T10 can start. |
| Repair T4 takes 3 time units, requires 9, 10, 8 while active, and must finish before T7 can start. |
| Repair T5 takes 1 time units, requires 2, 3, 4 while active, and must finish before T7, T9 can start. |
| Repair T6 takes 8 time units, requires 2, 7, 6 while active, and must finish before T7 can start. |
| Repair T7 takes 6 time units, requires 2, 2, 1 while active, and must finish before none can start. |
| Repair T8 takes 11 time units, requires 7, 6, 6 while active, and must finish before T9, T11 can start. |
| Repair T9 takes 4 time units, requires 6, 6, 4 while active, and must finish before T14 can start. |
| Repair T10 takes 1 time units, requires 3, 2, 2 while active, and must finish before T13, T7 can start. |
| Repair T11 takes 1 time units, requires 10, 2, 5 while active, and must finish before T15 can start. |
| Repair T12 takes 3 time units, requires 2, 6, 5 while active, and must finish before T13, T16, T19 can start. |
| Repair T13 takes 2 time units, requires 1, 6, 3 while active, and must finish before T17 can start. |
| Repair T14 takes 11 time units, requires 4, 2, 2 while active, and must finish before T17 can start. |
| Repair T15 takes 4 time units, requires 2, 0, 2 while active, and must finish before T17 can start. |
| Repair T16 takes 2 time units, requires 3, 1, 2 while active, and must finish before T18, T8, T4 can start. |
| Repair T17 takes 1 time units, requires 0, 1, 5 while active, and must finish before T19 can start. |
| Repair T18 takes 8 time units, requires 2, 1, 3 while active, and must finish before T19, T10 can start. |
| Repair T19 takes 1 time units, requires 0, 0, 0 while active, and must finish before none can start. |
| Choose start times so the final reopening is as early as possible while never exceeding the capacities . |
| |
| Also, when you hand back a plan, please use a simple JSON layout so it's easy to double-check automatically. Something like this is what I expect to see: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This little sketch means: ""solution"" is a list of scheduled activities; each item shows which task it is (task), when it begins (start) and when it finishes (end). Think of it like filling out a short form for every repair β one line per job with its start and end times. The JSON above is just the expected shape, not the actual schedule. |
|
|
| Please be sure to use the exact task 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β.""","{'nr_tasks': 19, 'nr_resources': 3, 'capacities': [11, 12, 12], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2]}, {'duration': 4, 'demands': [5, 8, 3], 'successors': [3, 4, 5]}, {'duration': 7, 'demands': [9, 1, 4], 'successors': [5, 9]}, {'duration': 3, 'demands': [9, 10, 8], 'successors': [6]}, {'duration': 1, 'demands': [2, 3, 4], 'successors': [6, 8]}, {'duration': 8, 'demands': [2, 7, 6], 'successors': [6]}, {'duration': 6, 'demands': [2, 2, 1], 'successors': []}, {'duration': 11, 'demands': [7, 6, 6], 'successors': [8, 10]}, {'duration': 4, 'demands': [6, 6, 4], 'successors': [13]}, {'duration': 1, 'demands': [3, 2, 2], 'successors': [12, 6]}, {'duration': 1, 'demands': [10, 2, 5], 'successors': [14]}, {'duration': 3, 'demands': [2, 6, 5], 'successors': [12, 15, 18]}, {'duration': 2, 'demands': [1, 6, 3], 'successors': [16]}, {'duration': 11, 'demands': [4, 2, 2], 'successors': [16]}, {'duration': 4, 'demands': [2, 0, 2], 'successors': [16]}, {'duration': 2, 'demands': [3, 1, 2], 'successors': [17, 7, 3]}, {'duration': 1, 'demands': [0, 1, 5], 'successors': [18]}, {'duration': 8, 'demands': [2, 1, 3], 'successors': [18, 9]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 8, 'end': 12, 'duration': 4, 'demands': [5, 8, 3]}, {'task': 2, 'start': 1, 'end': 8, 'duration': 7, 'demands': [9, 1, 4]}, {'task': 3, 'start': 27, 'end': 30, 'duration': 3, 'demands': [9, 10, 8]}, {'task': 4, 'start': 18, 'end': 19, 'duration': 1, 'demands': [2, 3, 4]}, {'task': 5, 'start': 31, 'end': 39, 'duration': 8, 'demands': [2, 7, 6]}, {'task': 6, 'start': 39, 'end': 45, 'duration': 6, 'demands': [2, 2, 1]}, {'task': 7, 'start': 12, 'end': 23, 'duration': 11, 'demands': [7, 6, 6]}, {'task': 8, 'start': 23, 'end': 27, 'duration': 4, 'demands': [6, 6, 4]}, {'task': 9, 'start': 19, 'end': 20, 'duration': 1, 'demands': [3, 2, 2]}, {'task': 10, 'start': 30, 'end': 31, 'duration': 1, 'demands': [10, 2, 5]}, {'task': 11, 'start': 0, 'end': 3, 'duration': 3, 'demands': [2, 6, 5]}, {'task': 12, 'start': 20, 'end': 22, 'duration': 2, 'demands': [1, 6, 3]}, {'task': 13, 'start': 31, 'end': 42, 'duration': 11, 'demands': [4, 2, 2]}, {'task': 14, 'start': 31, 'end': 35, 'duration': 4, 'demands': [2, 0, 2]}, {'task': 15, 'start': 8, 'end': 10, 'duration': 2, 'demands': [3, 1, 2]}, {'task': 16, 'start': 42, 'end': 43, 'duration': 1, 'demands': [0, 1, 5]}, {'task': 17, 'start': 10, 'end': 18, 'duration': 8, 'demands': [2, 1, 3]}, {'task': 18, 'start': 43, 'end': 44, 'duration': 1, 'demands': [0, 0, 0]}]",45.0,"{'problem_type': 'RCPSP', 'nr_tasks': 19, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 11}, {'resource_id': 'B', 'capacity': 12}, {'resource_id': 'C', 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3']}, {'task_id': 'T2', 'duration': 4, 'demands': [5, 8, 3], 'successors': ['T4', 'T5', 'T6']}, {'task_id': 'T3', 'duration': 7, 'demands': [9, 1, 4], 'successors': ['T6', 'T10']}, {'task_id': 'T4', 'duration': 3, 'demands': [9, 10, 8], 'successors': ['T7']}, {'task_id': 'T5', 'duration': 1, 'demands': [2, 3, 4], 'successors': ['T7', 'T9']}, {'task_id': 'T6', 'duration': 8, 'demands': [2, 7, 6], 'successors': ['T7']}, {'task_id': 'T7', 'duration': 6, 'demands': [2, 2, 1], 'successors': []}, {'task_id': 'T8', 'duration': 11, 'demands': [7, 6, 6], 'successors': ['T9', 'T11']}, {'task_id': 'T9', 'duration': 4, 'demands': [6, 6, 4], 'successors': ['T14']}, {'task_id': 'T10', 'duration': 1, 'demands': [3, 2, 2], 'successors': ['T13', 'T7']}, {'task_id': 'T11', 'duration': 1, 'demands': [10, 2, 5], 'successors': ['T15']}, {'task_id': 'T12', 'duration': 3, 'demands': [2, 6, 5], 'successors': ['T13', 'T16', 'T19']}, {'task_id': 'T13', 'duration': 2, 'demands': [1, 6, 3], 'successors': ['T17']}, {'task_id': 'T14', 'duration': 11, 'demands': [4, 2, 2], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 4, 'demands': [2, 0, 2], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 2, 'demands': [3, 1, 2], 'successors': ['T18', 'T8', 'T4']}, {'task_id': 'T17', 'duration': 1, 'demands': [0, 1, 5], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 8, 'demands': [2, 1, 3], 'successors': ['T19', 'T10']}, {'task_id': 'T19', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 8, 'end': 12, 'duration': 4, 'demands': [5, 8, 3]}, {'task': 'T3', 'start': 1, 'end': 8, 'duration': 7, 'demands': [9, 1, 4]}, {'task': 'T4', 'start': 27, 'end': 30, 'duration': 3, 'demands': [9, 10, 8]}, {'task': 'T5', 'start': 18, 'end': 19, 'duration': 1, 'demands': [2, 3, 4]}, {'task': 'T6', 'start': 31, 'end': 39, 'duration': 8, 'demands': [2, 7, 6]}, {'task': 'T7', 'start': 39, 'end': 45, 'duration': 6, 'demands': [2, 2, 1]}, {'task': 'T8', 'start': 12, 'end': 23, 'duration': 11, 'demands': [7, 6, 6]}, {'task': 'T9', 'start': 23, 'end': 27, 'duration': 4, 'demands': [6, 6, 4]}, {'task': 'T10', 'start': 19, 'end': 20, 'duration': 1, 'demands': [3, 2, 2]}, {'task': 'T11', 'start': 30, 'end': 31, 'duration': 1, 'demands': [10, 2, 5]}, {'task': 'T12', 'start': 0, 'end': 3, 'duration': 3, 'demands': [2, 6, 5]}, {'task': 'T13', 'start': 20, 'end': 22, 'duration': 2, 'demands': [1, 6, 3]}, {'task': 'T14', 'start': 31, 'end': 42, 'duration': 11, 'demands': [4, 2, 2]}, {'task': 'T15', 'start': 31, 'end': 35, 'duration': 4, 'demands': [2, 0, 2]}, {'task': 'T16', 'start': 8, 'end': 10, 'duration': 2, 'demands': [3, 1, 2]}, {'task': 'T17', 'start': 42, 'end': 43, 'duration': 1, 'demands': [0, 1, 5]}, {'task': 'T18', 'start': 10, 'end': 18, 'duration': 8, 'demands': [2, 1, 3]}, {'task': 'T19', 'start': 43, 'end': 44, 'duration': 1, 'demands': [0, 0, 0]}]",28,nl,names |
| RCPSP,RCPSP,"Weβre prepping the shop for opening: thereβs a bunch of fixed-length jobs β unloading pallets, unpacking products, setting up displays β and each one ties up forklifts and staff while it runs. Some steps have to wait for others (you canβt set up a display until the items are unpacked), so the decision is when to start each job so nothing overlaps the available forklifts or people and nothing gets skipped or done twice. A better plan gets everything done sooner, measured by the moment the final job wraps up. The specific tasks and capacities are listed below. |
| |
| Weβve got 16 distinct restocking and display jobs using 3 resource types, and the resource capacities are . |
| |
| | resource_id | capacity | |
| |---|---| |
| | 1 | 10 | |
| | 2 | 11 | |
| | 3 | 12 | |
| |
| | task_identifier | duration_minutes | resource_demands | immediate_successors | |
| |---|---|---|---| |
| | T1 | 2 | 5, 7, 3 | T5, T6 | |
| | T2 | 7 | 5, 4, 2 | T4, T5 | |
| | T3 | 6 | 5, 3, 2 | T5, T6, T7 | |
| | T4 | 1 | 2, 1, 8 | T8, T9 | |
| | T5 | 1 | 6, 8, 3 | T8, T9 | |
| | T6 | 12 | 5, 9, 1 | T8, T10, T15 | |
| | T7 | 8 | 2, 7, 7 | T10, T11 | |
| | T8 | 3 | 5, 3, 3 | T12, T14, T10 | |
| | T9 | 2 | 6, 3, 4 | T13 | |
| | T10 | 1 | 5, 6, 4 | T13 | |
| | T11 | 7 | 6, 1, 3 | T12 | |
| | T12 | 4 | 2, 5, 7 | T15 | |
| | T13 | 3 | 1, 2, 4 | T15, T11, T16 | |
| | T14 | 3 | 3, 4, 3 | T12 | |
| | T15 | 3 | 4, 2, 2 | T16 | |
| | T16 | 6 | 4, 5, 12 | none | |
| |
| Weβll pick start times so we never exceed those capacities and finish everything as early as possible. |
| |
| Just so we're on the same page, when you send the schedule back, a relaxed JSON layout like this is perfect β a list called ""solution"" where each item names the task and its start and end times. |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This is just a sketch of the shape I expect, not the actual schedule. In plain terms: ""solution"" holds a bunch of task entries; each entry's ""task"" is the task identifier, ""start"" is when that job begins, and ""end"" is when it finishes (in the same time units used in the instance). Keep it simple β like filling out a form for each job. |
| |
| Please use the exact task 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β.","{'nr_tasks': 16, 'nr_resources': 3, 'capacities': [10, 11, 12], 'tasks': [{'duration': 2, 'demands': [5, 7, 3], 'successors': [4, 5]}, {'duration': 7, 'demands': [5, 4, 2], 'successors': [3, 4]}, {'duration': 6, 'demands': [5, 3, 2], 'successors': [4, 5, 6]}, {'duration': 1, 'demands': [2, 1, 8], 'successors': [7, 8]}, {'duration': 1, 'demands': [6, 8, 3], 'successors': [7, 8]}, {'duration': 12, 'demands': [5, 9, 1], 'successors': [7, 9, 14]}, {'duration': 8, 'demands': [2, 7, 7], 'successors': [9, 10]}, {'duration': 3, 'demands': [5, 3, 3], 'successors': [11, 13, 9]}, {'duration': 2, 'demands': [6, 3, 4], 'successors': [12]}, {'duration': 1, 'demands': [5, 6, 4], 'successors': [12]}, {'duration': 7, 'demands': [6, 1, 3], 'successors': [11]}, {'duration': 4, 'demands': [2, 5, 7], 'successors': [14]}, {'duration': 3, 'demands': [1, 2, 4], 'successors': [14, 10, 15]}, {'duration': 3, 'demands': [3, 4, 3], 'successors': [11]}, {'duration': 3, 'demands': [4, 2, 2], 'successors': [15]}, {'duration': 6, 'demands': [4, 5, 12], 'successors': []}]}","[{'task': 0, 'start': 6, 'end': 8, 'duration': 2, 'demands': [5, 7, 3]}, {'task': 1, 'start': 0, 'end': 7, 'duration': 7, 'demands': [5, 4, 2]}, {'task': 2, 'start': 0, 'end': 6, 'duration': 6, 'demands': [5, 3, 2]}, {'task': 3, 'start': 7, 'end': 8, 'duration': 1, 'demands': [2, 1, 8]}, {'task': 4, 'start': 20, 'end': 21, 'duration': 1, 'demands': [6, 8, 3]}, {'task': 5, 'start': 8, 'end': 20, 'duration': 12, 'demands': [5, 9, 1]}, {'task': 6, 'start': 21, 'end': 29, 'duration': 8, 'demands': [2, 7, 7]}, {'task': 7, 'start': 21, 'end': 24, 'duration': 3, 'demands': [5, 3, 3]}, {'task': 8, 'start': 24, 'end': 26, 'duration': 2, 'demands': [6, 3, 4]}, {'task': 9, 'start': 29, 'end': 30, 'duration': 1, 'demands': [5, 6, 4]}, {'task': 10, 'start': 33, 'end': 40, 'duration': 7, 'demands': [6, 1, 3]}, {'task': 11, 'start': 40, 'end': 44, 'duration': 4, 'demands': [2, 5, 7]}, {'task': 12, 'start': 30, 'end': 33, 'duration': 3, 'demands': [1, 2, 4]}, {'task': 13, 'start': 26, 'end': 29, 'duration': 3, 'demands': [3, 4, 3]}, {'task': 14, 'start': 44, 'end': 47, 'duration': 3, 'demands': [4, 2, 2]}, {'task': 15, 'start': 47, 'end': 53, 'duration': 6, 'demands': [4, 5, 12]}]",53.0,"{'problem_type': 'RCPSP', 'nr_tasks': 16, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 10}, {'resource_id': 2, 'capacity': 11}, {'resource_id': 3, 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 2, 'demands': [5, 7, 3], 'successors': ['T5', 'T6']}, {'task_id': 'T2', 'duration': 7, 'demands': [5, 4, 2], 'successors': ['T4', 'T5']}, {'task_id': 'T3', 'duration': 6, 'demands': [5, 3, 2], 'successors': ['T5', 'T6', 'T7']}, {'task_id': 'T4', 'duration': 1, 'demands': [2, 1, 8], 'successors': ['T8', 'T9']}, {'task_id': 'T5', 'duration': 1, 'demands': [6, 8, 3], 'successors': ['T8', 'T9']}, {'task_id': 'T6', 'duration': 12, 'demands': [5, 9, 1], 'successors': ['T8', 'T10', 'T15']}, {'task_id': 'T7', 'duration': 8, 'demands': [2, 7, 7], 'successors': ['T10', 'T11']}, {'task_id': 'T8', 'duration': 3, 'demands': [5, 3, 3], 'successors': ['T12', 'T14', 'T10']}, {'task_id': 'T9', 'duration': 2, 'demands': [6, 3, 4], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 1, 'demands': [5, 6, 4], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 7, 'demands': [6, 1, 3], 'successors': ['T12']}, {'task_id': 'T12', 'duration': 4, 'demands': [2, 5, 7], 'successors': ['T15']}, {'task_id': 'T13', 'duration': 3, 'demands': [1, 2, 4], 'successors': ['T15', 'T11', 'T16']}, {'task_id': 'T14', 'duration': 3, 'demands': [3, 4, 3], 'successors': ['T12']}, {'task_id': 'T15', 'duration': 3, 'demands': [4, 2, 2], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 6, 'demands': [4, 5, 12], 'successors': []}]}","[{'task': 'T1', 'start': 6, 'end': 8, 'duration': 2, 'demands': [5, 7, 3]}, {'task': 'T2', 'start': 0, 'end': 7, 'duration': 7, 'demands': [5, 4, 2]}, {'task': 'T3', 'start': 0, 'end': 6, 'duration': 6, 'demands': [5, 3, 2]}, {'task': 'T4', 'start': 7, 'end': 8, 'duration': 1, 'demands': [2, 1, 8]}, {'task': 'T5', 'start': 20, 'end': 21, 'duration': 1, 'demands': [6, 8, 3]}, {'task': 'T6', 'start': 8, 'end': 20, 'duration': 12, 'demands': [5, 9, 1]}, {'task': 'T7', 'start': 21, 'end': 29, 'duration': 8, 'demands': [2, 7, 7]}, {'task': 'T8', 'start': 21, 'end': 24, 'duration': 3, 'demands': [5, 3, 3]}, {'task': 'T9', 'start': 24, 'end': 26, 'duration': 2, 'demands': [6, 3, 4]}, {'task': 'T10', 'start': 29, 'end': 30, 'duration': 1, 'demands': [5, 6, 4]}, {'task': 'T11', 'start': 33, 'end': 40, 'duration': 7, 'demands': [6, 1, 3]}, {'task': 'T12', 'start': 40, 'end': 44, 'duration': 4, 'demands': [2, 5, 7]}, {'task': 'T13', 'start': 30, 'end': 33, 'duration': 3, 'demands': [1, 2, 4]}, {'task': 'T14', 'start': 26, 'end': 29, 'duration': 3, 'demands': [3, 4, 3]}, {'task': 'T15', 'start': 44, 'end': 47, 'duration': 3, 'demands': [4, 2, 2]}, {'task': 'T16', 'start': 47, 'end': 53, 'duration': 6, 'demands': [4, 5, 12]}]",29,markdown_table,1 |
| RCPSP,RCPSP,"Many teams are waiting for a schedule: every procedure on the list takes a known amount of time and uses up certain staff and an operating room while itβs happening, and some procedures must wait until others finish. The core decision is to choose start times for all procedures so that the whole set finishes as fast as possible β you tell which schedule is better by checking the time the last procedure ends, and smaller is better. Real-world limits apply: no procedure is dropped or duplicated, precedence pairs must be respected, and at any moment the number of rooms and staff in use canβt exceed capacity. The full data for this instance is shown below. |
| |
| This instance has 16 procedures, 3 resource types, and resource capacities . |
| Procedure T1 runs for 1 time units, uses resources 0, 0, 0 while active, and its direct successors are T2, T3, T4, T9. |
| Procedure T2 runs for 2 time units, uses resources 2, 3, 3 while active, and its direct successors are T5, T6, T7, T8. |
| Procedure T3 runs for 1 time units, uses resources 6, 7, 4 while active, and its direct successors are T5, T6, T7, T8. |
| Procedure T4 runs for 11 time units, uses resources 6, 1, 3 while active, and its direct successors are T5, T6, T7, T8, T10. |
| Procedure T5 runs for 2 time units, uses resources 6, 1, 5 while active, and its direct successors are none. |
| Procedure T6 runs for 6 time units, uses resources 5, 9, 5 while active, and its direct successors are none. |
| Procedure T7 runs for 3 time units, uses resources 6, 3, 3 while active, and its direct successors are none. |
| Procedure T8 runs for 3 time units, uses resources 3, 7, 4 while active, and its direct successors are none. |
| Procedure T9 runs for 4 time units, uses resources 4, 5, 7 while active, and its direct successors are T12. |
| Procedure T10 runs for 2 time units, uses resources 2, 10, 4 while active, and its direct successors are T13. |
| Procedure T11 runs for 1 time units, uses resources 2, 7, 3 while active, and its direct successors are T14, T5. |
| Procedure T12 runs for 9 time units, uses resources 2, 4, 3 while active, and its direct successors are T16. |
| Procedure T13 runs for 5 time units, uses resources 6, 3, 3 while active, and its direct successors are T15, T11. |
| Procedure T14 runs for 5 time units, uses resources 3, 5, 11 while active, and its direct successors are T16, T9. |
| Procedure T15 runs for 1 time units, uses resources 2, 5, 2 while active, and its direct successors are T16, T12. |
| Procedure T16 runs for 1 time units, uses resources 0, 0, 0 while active, and its direct successors are T2. |
| You must assign start times for all procedures so precedence relations and resource capacities are respected, minimizing the makespan (time the last procedure ends). |
| |
| Oh, and when you send the schedule back, please put it in this simple JSON shape so it's easy to read and check: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of it like a little form: ""solution"" is the list of procedures, each item shows which procedure (""task"") and the time it starts and finishes (""start"" and ""end""). Keep the times in the same units the instance uses. This JSON is just a sketch of the shape I expect β you'll fill in the actual task identifiers and numbers. |
| |
| Please use the identifiers exactly as they appear in 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β.""","{'nr_tasks': 16, 'nr_resources': 3, 'capacities': [8, 11, 11], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3, 8]}, {'duration': 2, 'demands': [2, 3, 3], 'successors': [4, 5, 6, 7]}, {'duration': 1, 'demands': [6, 7, 4], 'successors': [4, 5, 6, 7]}, {'duration': 11, 'demands': [6, 1, 3], 'successors': [4, 5, 6, 7, 9]}, {'duration': 2, 'demands': [6, 1, 5], 'successors': []}, {'duration': 6, 'demands': [5, 9, 5], 'successors': []}, {'duration': 3, 'demands': [6, 3, 3], 'successors': []}, {'duration': 3, 'demands': [3, 7, 4], 'successors': []}, {'duration': 4, 'demands': [4, 5, 7], 'successors': [11]}, {'duration': 2, 'demands': [2, 10, 4], 'successors': [12]}, {'duration': 1, 'demands': [2, 7, 3], 'successors': [13, 4]}, {'duration': 9, 'demands': [2, 4, 3], 'successors': [15]}, {'duration': 5, 'demands': [6, 3, 3], 'successors': [14, 10]}, {'duration': 5, 'demands': [3, 5, 11], 'successors': [15, 8]}, {'duration': 1, 'demands': [2, 5, 2], 'successors': [15, 11]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': [1]}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 39, 'end': 41, 'duration': 2, 'demands': [2, 3, 3]}, {'task': 2, 'start': 29, 'end': 30, 'duration': 1, 'demands': [6, 7, 4]}, {'task': 3, 'start': 1, 'end': 12, 'duration': 11, 'demands': [6, 1, 3]}, {'task': 4, 'start': 53, 'end': 55, 'duration': 2, 'demands': [6, 1, 5]}, {'task': 5, 'start': 41, 'end': 47, 'duration': 6, 'demands': [5, 9, 5]}, {'task': 6, 'start': 47, 'end': 50, 'duration': 3, 'demands': [6, 3, 3]}, {'task': 7, 'start': 50, 'end': 53, 'duration': 3, 'demands': [3, 7, 4]}, {'task': 8, 'start': 25, 'end': 29, 'duration': 4, 'demands': [4, 5, 7]}, {'task': 9, 'start': 12, 'end': 14, 'duration': 2, 'demands': [2, 10, 4]}, {'task': 10, 'start': 19, 'end': 20, 'duration': 1, 'demands': [2, 7, 3]}, {'task': 11, 'start': 29, 'end': 38, 'duration': 9, 'demands': [2, 4, 3]}, {'task': 12, 'start': 14, 'end': 19, 'duration': 5, 'demands': [6, 3, 3]}, {'task': 13, 'start': 20, 'end': 25, 'duration': 5, 'demands': [3, 5, 11]}, {'task': 14, 'start': 25, 'end': 26, 'duration': 1, 'demands': [2, 5, 2]}, {'task': 15, 'start': 38, 'end': 39, 'duration': 1, 'demands': [0, 0, 0]}]",55.0,"{'problem_type': 'RCPSP', 'nr_tasks': 16, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 8}, {'resource_id': 2, 'capacity': 11}, {'resource_id': 3, 'capacity': 11}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4', 'T9']}, {'task_id': 'T2', 'duration': 2, 'demands': [2, 3, 3], 'successors': ['T5', 'T6', 'T7', 'T8']}, {'task_id': 'T3', 'duration': 1, 'demands': [6, 7, 4], 'successors': ['T5', 'T6', 'T7', 'T8']}, {'task_id': 'T4', 'duration': 11, 'demands': [6, 1, 3], 'successors': ['T5', 'T6', 'T7', 'T8', 'T10']}, {'task_id': 'T5', 'duration': 2, 'demands': [6, 1, 5], 'successors': []}, {'task_id': 'T6', 'duration': 6, 'demands': [5, 9, 5], 'successors': []}, {'task_id': 'T7', 'duration': 3, 'demands': [6, 3, 3], 'successors': []}, {'task_id': 'T8', 'duration': 3, 'demands': [3, 7, 4], 'successors': []}, {'task_id': 'T9', 'duration': 4, 'demands': [4, 5, 7], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 2, 'demands': [2, 10, 4], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 1, 'demands': [2, 7, 3], 'successors': ['T14', 'T5']}, {'task_id': 'T12', 'duration': 9, 'demands': [2, 4, 3], 'successors': ['T16']}, {'task_id': 'T13', 'duration': 5, 'demands': [6, 3, 3], 'successors': ['T15', 'T11']}, {'task_id': 'T14', 'duration': 5, 'demands': [3, 5, 11], 'successors': ['T16', 'T9']}, {'task_id': 'T15', 'duration': 1, 'demands': [2, 5, 2], 'successors': ['T16', 'T12']}, {'task_id': 'T16', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2']}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 39, 'end': 41, 'duration': 2, 'demands': [2, 3, 3]}, {'task': 'T3', 'start': 29, 'end': 30, 'duration': 1, 'demands': [6, 7, 4]}, {'task': 'T4', 'start': 1, 'end': 12, 'duration': 11, 'demands': [6, 1, 3]}, {'task': 'T5', 'start': 53, 'end': 55, 'duration': 2, 'demands': [6, 1, 5]}, {'task': 'T6', 'start': 41, 'end': 47, 'duration': 6, 'demands': [5, 9, 5]}, {'task': 'T7', 'start': 47, 'end': 50, 'duration': 3, 'demands': [6, 3, 3]}, {'task': 'T8', 'start': 50, 'end': 53, 'duration': 3, 'demands': [3, 7, 4]}, {'task': 'T9', 'start': 25, 'end': 29, 'duration': 4, 'demands': [4, 5, 7]}, {'task': 'T10', 'start': 12, 'end': 14, 'duration': 2, 'demands': [2, 10, 4]}, {'task': 'T11', 'start': 19, 'end': 20, 'duration': 1, 'demands': [2, 7, 3]}, {'task': 'T12', 'start': 29, 'end': 38, 'duration': 9, 'demands': [2, 4, 3]}, {'task': 'T13', 'start': 14, 'end': 19, 'duration': 5, 'demands': [6, 3, 3]}, {'task': 'T14', 'start': 20, 'end': 25, 'duration': 5, 'demands': [3, 5, 11]}, {'task': 'T15', 'start': 25, 'end': 26, 'duration': 1, 'demands': [2, 5, 2]}, {'task': 'T16', 'start': 38, 'end': 39, 'duration': 1, 'demands': [0, 0, 0]}]",30,nl,1 |
| RCPSP,RCPSP,"Recently the ops crew sketched a release pipeline: a bunch of ordered tasks, each with a fixed duration and a need for some combination of compute and people while active. Some tasks are blocked until predecessors finish. The task now is to set start times for all tasks so the release completes at the earliest possible moment β in other words, minimize the time when the final task finishes. Schedules that make that finishing moment sooner are preferable, provided every dependency is respected, no task is left out or run twice, and resource caps for machines and staff arenβt exceeded. The exact tasks and resource numbers are shown below. |
| |
| { |
| ""total_tasks"": 18, |
| ""total_resource_types"": 1, |
| ""resources"": [ |
| ""A"" |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": ""A"", |
| ""capacity"": 10 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""task_identifier"": ""T1"", |
| ""task_duration"": 1, |
| ""resource_demands"": [ |
| 0 |
| ], |
| ""successor_task_ids"": [ |
| ""T2"", |
| ""T3"", |
| ""T4"", |
| ""T5"", |
| ""T6"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T2"", |
| ""task_duration"": 2, |
| ""resource_demands"": [ |
| 8 |
| ], |
| ""successor_task_ids"": [ |
| ""T17"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T3"", |
| ""task_duration"": 3, |
| ""resource_demands"": [ |
| 1 |
| ], |
| ""successor_task_ids"": [ |
| ""T7"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T4"", |
| ""task_duration"": 9, |
| ""resource_demands"": [ |
| 4 |
| ], |
| ""successor_task_ids"": [ |
| ""T9"", |
| ""T13"", |
| ""T14"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T5"", |
| ""task_duration"": 3, |
| ""resource_demands"": [ |
| 10 |
| ], |
| ""successor_task_ids"": [ |
| ""T10"", |
| ""T12"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T6"", |
| ""task_duration"": 6, |
| ""resource_demands"": [ |
| 1 |
| ], |
| ""successor_task_ids"": [ |
| ""T11"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T7"", |
| ""task_duration"": 4, |
| ""resource_demands"": [ |
| 1 |
| ], |
| ""successor_task_ids"": [ |
| ""T17"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T8"", |
| ""task_duration"": 1, |
| ""resource_demands"": [ |
| 0 |
| ], |
| ""successor_task_ids"": [ |
| ""T9"", |
| ""T13"", |
| ""T14"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T9"", |
| ""task_duration"": 2, |
| ""resource_demands"": [ |
| 1 |
| ], |
| ""successor_task_ids"": [ |
| ""T10"", |
| ""T12"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T10"", |
| ""task_duration"": 3, |
| ""resource_demands"": [ |
| 4 |
| ], |
| ""successor_task_ids"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T11"", |
| ""task_duration"": 13, |
| ""resource_demands"": [ |
| 5 |
| ], |
| ""successor_task_ids"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T12"", |
| ""task_duration"": 2, |
| ""resource_demands"": [ |
| 2 |
| ], |
| ""successor_task_ids"": [ |
| ""T15"", |
| ""T16"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T13"", |
| ""task_duration"": 5, |
| ""resource_demands"": [ |
| 4 |
| ], |
| ""successor_task_ids"": [ |
| ""T15"", |
| ""T16"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T14"", |
| ""task_duration"": 1, |
| ""resource_demands"": [ |
| 2 |
| ], |
| ""successor_task_ids"": [ |
| ""T17"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T15"", |
| ""task_duration"": 1, |
| ""resource_demands"": [ |
| 0 |
| ], |
| ""successor_task_ids"": [ |
| ""T17"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T16"", |
| ""task_duration"": 5, |
| ""resource_demands"": [ |
| 3 |
| ], |
| ""successor_task_ids"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T17"", |
| ""task_duration"": 14, |
| ""resource_demands"": [ |
| 2 |
| ], |
| ""successor_task_ids"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""task_identifier"": ""T18"", |
| ""task_duration"": 1, |
| ""resource_demands"": [ |
| 0 |
| ], |
| ""successor_task_ids"": [] |
| } |
| ] |
| } |
| |
| Also, when you hand me the schedule, please use this simple JSON shape so it's easy to read and plug into whatever checks we run next: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This just means ""solution"" is a list of task entries; each entry has the task identifier and the numeric start and end times for that task (same time units as in the instance). It's just a template β replace the placeholders with the actual values for every task. |
| |
| Please use the exact task 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β. |
|
|
| Also be sure every task from the instance appears exactly once in the solution (no duplicates, none missing).","{'nr_tasks': 18, 'nr_resources': 1, 'capacities': [10], 'tasks': [{'duration': 1, 'demands': [0], 'successors': [1, 2, 3, 4, 5]}, {'duration': 2, 'demands': [8], 'successors': [16]}, {'duration': 3, 'demands': [1], 'successors': [6, 7]}, {'duration': 9, 'demands': [4], 'successors': [8, 12, 13]}, {'duration': 3, 'demands': [10], 'successors': [9, 11]}, {'duration': 6, 'demands': [1], 'successors': [10]}, {'duration': 4, 'demands': [1], 'successors': [16]}, {'duration': 1, 'demands': [0], 'successors': [8, 12, 13]}, {'duration': 2, 'demands': [1], 'successors': [9, 11]}, {'duration': 3, 'demands': [4], 'successors': [17]}, {'duration': 13, 'demands': [5], 'successors': [17]}, {'duration': 2, 'demands': [2], 'successors': [14, 15]}, {'duration': 5, 'demands': [4], 'successors': [14, 15]}, {'duration': 1, 'demands': [2], 'successors': [16]}, {'duration': 1, 'demands': [0], 'successors': [16]}, {'duration': 5, 'demands': [3], 'successors': [17]}, {'duration': 14, 'demands': [2], 'successors': [17]}, {'duration': 1, 'demands': [0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0]}, {'task': 1, 'start': 18, 'end': 20, 'duration': 2, 'demands': [8]}, {'task': 2, 'start': 1, 'end': 4, 'duration': 3, 'demands': [1]}, {'task': 3, 'start': 1, 'end': 10, 'duration': 9, 'demands': [4]}, {'task': 4, 'start': 10, 'end': 13, 'duration': 3, 'demands': [10]}, {'task': 5, 'start': 1, 'end': 7, 'duration': 6, 'demands': [1]}, {'task': 6, 'start': 4, 'end': 8, 'duration': 4, 'demands': [1]}, {'task': 7, 'start': 9, 'end': 10, 'duration': 1, 'demands': [0]}, {'task': 8, 'start': 13, 'end': 15, 'duration': 2, 'demands': [1]}, {'task': 9, 'start': 15, 'end': 18, 'duration': 3, 'demands': [4]}, {'task': 10, 'start': 20, 'end': 33, 'duration': 13, 'demands': [5]}, {'task': 11, 'start': 15, 'end': 17, 'duration': 2, 'demands': [2]}, {'task': 12, 'start': 13, 'end': 18, 'duration': 5, 'demands': [4]}, {'task': 13, 'start': 13, 'end': 14, 'duration': 1, 'demands': [2]}, {'task': 14, 'start': 18, 'end': 19, 'duration': 1, 'demands': [0]}, {'task': 15, 'start': 20, 'end': 25, 'duration': 5, 'demands': [3]}, {'task': 16, 'start': 20, 'end': 34, 'duration': 14, 'demands': [2]}, {'task': 17, 'start': 34, 'end': 35, 'duration': 1, 'demands': [0]}]",35.0,"{'problem_type': 'RCPSP', 'nr_tasks': 18, 'nr_resources': 1, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18'], 'resources': ['A'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 10}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0], 'successors': ['T2', 'T3', 'T4', 'T5', 'T6']}, {'task_id': 'T2', 'duration': 2, 'demands': [8], 'successors': ['T17']}, {'task_id': 'T3', 'duration': 3, 'demands': [1], 'successors': ['T7', 'T8']}, {'task_id': 'T4', 'duration': 9, 'demands': [4], 'successors': ['T9', 'T13', 'T14']}, {'task_id': 'T5', 'duration': 3, 'demands': [10], 'successors': ['T10', 'T12']}, {'task_id': 'T6', 'duration': 6, 'demands': [1], 'successors': ['T11']}, {'task_id': 'T7', 'duration': 4, 'demands': [1], 'successors': ['T17']}, {'task_id': 'T8', 'duration': 1, 'demands': [0], 'successors': ['T9', 'T13', 'T14']}, {'task_id': 'T9', 'duration': 2, 'demands': [1], 'successors': ['T10', 'T12']}, {'task_id': 'T10', 'duration': 3, 'demands': [4], 'successors': ['T18']}, {'task_id': 'T11', 'duration': 13, 'demands': [5], 'successors': ['T18']}, {'task_id': 'T12', 'duration': 2, 'demands': [2], 'successors': ['T15', 'T16']}, {'task_id': 'T13', 'duration': 5, 'demands': [4], 'successors': ['T15', 'T16']}, {'task_id': 'T14', 'duration': 1, 'demands': [2], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 1, 'demands': [0], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 5, 'demands': [3], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 14, 'demands': [2], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 1, 'demands': [0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0]}, {'task': 'T2', 'start': 18, 'end': 20, 'duration': 2, 'demands': [8]}, {'task': 'T3', 'start': 1, 'end': 4, 'duration': 3, 'demands': [1]}, {'task': 'T4', 'start': 1, 'end': 10, 'duration': 9, 'demands': [4]}, {'task': 'T5', 'start': 10, 'end': 13, 'duration': 3, 'demands': [10]}, {'task': 'T6', 'start': 1, 'end': 7, 'duration': 6, 'demands': [1]}, {'task': 'T7', 'start': 4, 'end': 8, 'duration': 4, 'demands': [1]}, {'task': 'T8', 'start': 9, 'end': 10, 'duration': 1, 'demands': [0]}, {'task': 'T9', 'start': 13, 'end': 15, 'duration': 2, 'demands': [1]}, {'task': 'T10', 'start': 15, 'end': 18, 'duration': 3, 'demands': [4]}, {'task': 'T11', 'start': 20, 'end': 33, 'duration': 13, 'demands': [5]}, {'task': 'T12', 'start': 15, 'end': 17, 'duration': 2, 'demands': [2]}, {'task': 'T13', 'start': 13, 'end': 18, 'duration': 5, 'demands': [4]}, {'task': 'T14', 'start': 13, 'end': 14, 'duration': 1, 'demands': [2]}, {'task': 'T15', 'start': 18, 'end': 19, 'duration': 1, 'demands': [0]}, {'task': 'T16', 'start': 20, 'end': 25, 'duration': 5, 'demands': [3]}, {'task': 'T17', 'start': 20, 'end': 34, 'duration': 14, 'demands': [2]}, {'task': 'T18', 'start': 34, 'end': 35, 'duration': 1, 'demands': [0]}] |
| RCPSP,RCPSP, |
|
|
| Below we list the 20 prep tasks, the 3 resource types, and the available units for each resource . |
| Prep T1 runs for 1 time units, requires 0, 0, 0 while running, and must finish before T3, T4 start. |
| Prep T2 runs for 3 time units, requires 3, 6, 2 while running, and must finish before T5, T6 start. |
| Prep T3 runs for 2 time units, requires 6, 7, 3 while running, and must finish before T5, T6 start. |
| Prep T4 runs for 1 time units, requires 6, 4, 2 while running, and must finish before T7, T8 start. |
| Prep T5 runs for 3 time units, requires 4, 1, 7 while running, and must finish before T11, T12 start. |
| Prep T6 runs for 9 time units, requires 3, 8, 4 while running, and must finish before T10 start. |
| Prep T7 runs for 3 time units, requires 2, 3, 4 while running, and must finish before T9 start. |
| Prep T8 runs for 9 time units, requires 4, 6, 8 while running, and must finish before T10, T11 start. |
| Prep T9 runs for 4 time units, requires 4, 4, 2 while running, and must finish before T13, T14 start. |
| Prep T10 runs for 6 time units, requires 5, 3, 3 while running, and must finish before T13 start. |
| Prep T11 runs for 1 time units, requires 3, 5, 4 while running, and must finish before none start. |
| Prep T12 runs for 2 time units, requires 5, 1, 4 while running, and must finish before T13 start. |
| Prep T13 runs for 1 time units, requires 1, 5, 7 while running, and must finish before T15, T17 start. |
| Prep T14 runs for 8 time units, requires 2, 9, 4 while running, and must finish before T15 start. |
| Prep T15 runs for 3 time units, requires 2, 3, 7 while running, and must finish before T18 start. |
| Prep T16 runs for 2 time units, requires 4, 2, 4 while running, and must finish before T18 start. |
| Prep T17 runs for 14 time units, requires 7, 3, 3 while running, and must finish before T18, T19 start. |
| Prep T18 runs for 2 time units, requires 2, 7, 11 while running, and must finish before T20 start. |
| Prep T19 runs for 1 time units, requires 1, 9, 4 while running, and must finish before T20 start. |
| Prep T20 runs for 1 time units, requires 0, 0, 0 while running, and must finish before none start. |
| We'll schedule the 20 preps respecting the resource limits so the last prep finishes as early as possible. |
| |
| Also, when you send the schedule back, please use this simple JSON layout so it's easy to parse β nothing fancy, just that shape. |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This little sketch shows the shape I expect: ""solution"" is a list of the scheduled preps; each entry names the task and the time it starts and finishes. Think of ""task"" as the task label from the instance, and ""start""/""end"" as the time (in the same units used in the instance) when that prep runs. It's just an example of the shape, not the actual schedule. |
| |
| 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β."" |
|
|
| Replace the placeholders with those real ids and numeric start/end times when you submit the actual schedule.","{'nr_tasks': 20, 'nr_resources': 3, 'capacities': [10, 13, 12], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [2, 3]}, {'duration': 3, 'demands': [3, 6, 2], 'successors': [4, 5]}, {'duration': 2, 'demands': [6, 7, 3], 'successors': [4, 5]}, {'duration': 1, 'demands': [6, 4, 2], 'successors': [6, 7]}, {'duration': 3, 'demands': [4, 1, 7], 'successors': [10, 11]}, {'duration': 9, 'demands': [3, 8, 4], 'successors': [9]}, {'duration': 3, 'demands': [2, 3, 4], 'successors': [8]}, {'duration': 9, 'demands': [4, 6, 8], 'successors': [9, 10]}, {'duration': 4, 'demands': [4, 4, 2], 'successors': [12, 13]}, {'duration': 6, 'demands': [5, 3, 3], 'successors': [12]}, {'duration': 1, 'demands': [3, 5, 4], 'successors': []}, {'duration': 2, 'demands': [5, 1, 4], 'successors': [12]}, {'duration': 1, 'demands': [1, 5, 7], 'successors': [14, 16]}, {'duration': 8, 'demands': [2, 9, 4], 'successors': [14]}, {'duration': 3, 'demands': [2, 3, 7], 'successors': [17]}, {'duration': 2, 'demands': [4, 2, 4], 'successors': [17]}, {'duration': 14, 'demands': [7, 3, 3], 'successors': [17, 18]}, {'duration': 2, 'demands': [2, 7, 11], 'successors': [19]}, {'duration': 1, 'demands': [1, 9, 4], 'successors': [19]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 0, 'end': 3, 'duration': 3, 'demands': [3, 6, 2]}, {'task': 2, 'start': 3, 'end': 5, 'duration': 2, 'demands': [6, 7, 3]}, {'task': 3, 'start': 1, 'end': 2, 'duration': 1, 'demands': [6, 4, 2]}, {'task': 4, 'start': 12, 'end': 15, 'duration': 3, 'demands': [4, 1, 7]}, {'task': 5, 'start': 11, 'end': 20, 'duration': 9, 'demands': [3, 8, 4]}, {'task': 6, 'start': 5, 'end': 8, 'duration': 3, 'demands': [2, 3, 4]}, {'task': 7, 'start': 2, 'end': 11, 'duration': 9, 'demands': [4, 6, 8]}, {'task': 8, 'start': 8, 'end': 12, 'duration': 4, 'demands': [4, 4, 2]}, {'task': 9, 'start': 20, 'end': 26, 'duration': 6, 'demands': [5, 3, 3]}, {'task': 10, 'start': 19, 'end': 20, 'duration': 1, 'demands': [3, 5, 4]}, {'task': 11, 'start': 15, 'end': 17, 'duration': 2, 'demands': [5, 1, 4]}, {'task': 12, 'start': 26, 'end': 27, 'duration': 1, 'demands': [1, 5, 7]}, {'task': 13, 'start': 27, 'end': 35, 'duration': 8, 'demands': [2, 9, 4]}, {'task': 14, 'start': 35, 'end': 38, 'duration': 3, 'demands': [2, 3, 7]}, {'task': 15, 'start': 17, 'end': 19, 'duration': 2, 'demands': [4, 2, 4]}, {'task': 16, 'start': 27, 'end': 41, 'duration': 14, 'demands': [7, 3, 3]}, {'task': 17, 'start': 41, 'end': 43, 'duration': 2, 'demands': [2, 7, 11]}, {'task': 18, 'start': 43, 'end': 44, 'duration': 1, 'demands': [1, 9, 4]}, {'task': 19, 'start': 44, 'end': 45, 'duration': 1, 'demands': [0, 0, 0]}]",45.0,"{'problem_type': 'RCPSP', 'nr_tasks': 20, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 10}, {'resource_id': 2, 'capacity': 13}, {'resource_id': 3, 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T3', 'T4']}, {'task_id': 'T2', 'duration': 3, 'demands': [3, 6, 2], 'successors': ['T5', 'T6']}, {'task_id': 'T3', 'duration': 2, 'demands': [6, 7, 3], 'successors': ['T5', 'T6']}, {'task_id': 'T4', 'duration': 1, 'demands': [6, 4, 2], 'successors': ['T7', 'T8']}, {'task_id': 'T5', 'duration': 3, 'demands': [4, 1, 7], 'successors': ['T11', 'T12']}, {'task_id': 'T6', 'duration': 9, 'demands': [3, 8, 4], 'successors': ['T10']}, {'task_id': 'T7', 'duration': 3, 'demands': [2, 3, 4], 'successors': ['T9']}, {'task_id': 'T8', 'duration': 9, 'demands': [4, 6, 8], 'successors': ['T10', 'T11']}, {'task_id': 'T9', 'duration': 4, 'demands': [4, 4, 2], 'successors': ['T13', 'T14']}, {'task_id': 'T10', 'duration': 6, 'demands': [5, 3, 3], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 1, 'demands': [3, 5, 4], 'successors': []}, {'task_id': 'T12', 'duration': 2, 'demands': [5, 1, 4], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 1, 'demands': [1, 5, 7], 'successors': ['T15', 'T17']}, {'task_id': 'T14', 'duration': 8, 'demands': [2, 9, 4], 'successors': ['T15']}, {'task_id': 'T15', 'duration': 3, 'demands': [2, 3, 7], 'successors': ['T18']}, {'task_id': 'T16', 'duration': 2, 'demands': [4, 2, 4], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 14, 'demands': [7, 3, 3], 'successors': ['T18', 'T19']}, {'task_id': 'T18', 'duration': 2, 'demands': [2, 7, 11], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 1, 'demands': [1, 9, 4], 'successors': ['T20']}, {'task_id': 'T20', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 0, 'end': 3, 'duration': 3, 'demands': [3, 6, 2]}, {'task': 'T3', 'start': 3, 'end': 5, 'duration': 2, 'demands': [6, 7, 3]}, {'task': 'T4', 'start': 1, 'end': 2, 'duration': 1, 'demands': [6, 4, 2]}, {'task': 'T5', 'start': 12, 'end': 15, 'duration': 3, 'demands': [4, 1, 7]}, {'task': 'T6', 'start': 11, 'end': 20, 'duration': 9, 'demands': [3, 8, 4]}, {'task': 'T7', 'start': 5, 'end': 8, 'duration': 3, 'demands': [2, 3, 4]}, {'task': 'T8', 'start': 2, 'end': 11, 'duration': 9, 'demands': [4, 6, 8]}, {'task': 'T9', 'start': 8, 'end': 12, 'duration': 4, 'demands': [4, 4, 2]}, {'task': 'T10', 'start': 20, 'end': 26, 'duration': 6, 'demands': [5, 3, 3]}, {'task': 'T11', 'start': 19, 'end': 20, 'duration': 1, 'demands': [3, 5, 4]}, {'task': 'T12', 'start': 15, 'end': 17, 'duration': 2, 'demands': [5, 1, 4]}, {'task': 'T13', 'start': 26, 'end': 27, 'duration': 1, 'demands': [1, 5, 7]}, {'task': 'T14', 'start': 27, 'end': 35, 'duration': 8, 'demands': [2, 9, 4]}, {'task': 'T15', 'start': 35, 'end': 38, 'duration': 3, 'demands': [2, 3, 7]}, {'task': 'T16', 'start': 17, 'end': 19, 'duration': 2, 'demands': [4, 2, 4]}, {'task': 'T17', 'start': 27, 'end': 41, 'duration': 14, 'demands': [7, 3, 3]}, {'task': 'T18', 'start': 41, 'end': 43, 'duration': 2, 'demands': [2, 7, 11]}, {'task': 'T19', 'start': 43, 'end': 44, 'duration': 1, 'demands': [1, 9, 4]}, {'task': 'T20', 'start': 44, 'end': 45, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| Below are the 20 ground activities, the 1 resource types, and their capacities . |
|
|
| | resource_id | capacity | |
| |---|---| |
| | 0 | 9 | |
|
|
| | activity_id | activity_duration | resource_demands | successor_activity_ids | |
| |---|---|---|---| |
| | T1 | 1 | 0 | T2, T3, T4, T5, T6 | |
| | T2 | 1 | 5 | T17 | |
| | T3 | 4 | 2 | T7, T8 | |
| | T4 | 6 | 2 | T9, T13, T14 | |
| | T5 | 5 | 9 | T10, T12 | |
| | T6 | 5 | 1 | T11 | |
| | T7 | 6 | 1 | T17 | |
| | T8 | 1 | 0 | T9, T13, T14 | |
| | T9 | 5 | 2 | T12 | |
| | T10 | 6 | 3 | none | |
| | T11 | 7 | 6 | T18 | |
| | T12 | 2 | 1 | T15 | |
| | T13 | 10 | 7 | T15, T16 | |
| | T14 | 2 | 3 | T17 | |
| | T15 | 1 | 0 | none | |
| | T16 | 5 | 2 | T18 | |
| | T17 | 12 | 4 | T18 | |
| | T18 | 1 | 0 | none | |
| | T19 | 5 | 1 | none | |
| | T20 | 10 | 3 | none | |
|
|
| Iβll use these details to assign start times so no equipment or staff is overbooked and the plane can push back as soon as possible. |
|
|
| When you send the schedule back, just use this simple JSON layout so it's easy to parse and check. |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This just means: ""solution"" is a list of scheduled activities; each item names the task, when it starts and when it finishes. Think of it like filling out a little form for every ground task β task is the task's id, start and end are the times (same time units as the instance). This snippet is only a sketch of the shape I need, not the actual completed schedule. |
|
|
| Please use the exact task 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β.","{'nr_tasks': 20, 'nr_resources': 1, 'capacities': [9], 'tasks': [{'duration': 1, 'demands': [0], 'successors': [1, 2, 3, 4, 5]}, {'duration': 1, 'demands': [5], 'successors': [16]}, {'duration': 4, 'demands': [2], 'successors': [6, 7]}, {'duration': 6, 'demands': [2], 'successors': [8, 12, 13]}, {'duration': 5, 'demands': [9], 'successors': [9, 11]}, {'duration': 5, 'demands': [1], 'successors': [10]}, {'duration': 6, 'demands': [1], 'successors': [16]}, {'duration': 1, 'demands': [0], 'successors': [8, 12, 13]}, {'duration': 5, 'demands': [2], 'successors': [11]}, {'duration': 6, 'demands': [3], 'successors': []}, {'duration': 7, 'demands': [6], 'successors': [17]}, {'duration': 2, 'demands': [1], 'successors': [14]}, {'duration': 10, 'demands': [7], 'successors': [14, 15]}, {'duration': 2, 'demands': [3], 'successors': [16]}, {'duration': 1, 'demands': [0], 'successors': []}, {'duration': 5, 'demands': [2], 'successors': [17]}, {'duration': 12, 'demands': [4], 'successors': [17]}, {'duration': 1, 'demands': [0], 'successors': []}, {'duration': 5, 'demands': [1], 'successors': []}, {'duration': 10, 'demands': [3], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0]}, {'task': 1, 'start': 5, 'end': 6, 'duration': 1, 'demands': [5]}, {'task': 2, 'start': 1, 'end': 5, 'duration': 4, 'demands': [2]}, {'task': 3, 'start': 1, 'end': 7, 'duration': 6, 'demands': [2]}, {'task': 4, 'start': 17, 'end': 22, 'duration': 5, 'demands': [9]}, {'task': 5, 'start': 1, 'end': 6, 'duration': 5, 'demands': [1]}, {'task': 6, 'start': 5, 'end': 11, 'duration': 6, 'demands': [1]}, {'task': 7, 'start': 6, 'end': 7, 'duration': 1, 'demands': [0]}, {'task': 8, 'start': 11, 'end': 16, 'duration': 5, 'demands': [2]}, {'task': 9, 'start': 36, 'end': 42, 'duration': 6, 'demands': [3]}, {'task': 10, 'start': 22, 'end': 29, 'duration': 7, 'demands': [6]}, {'task': 11, 'start': 22, 'end': 24, 'duration': 2, 'demands': [1]}, {'task': 12, 'start': 7, 'end': 17, 'duration': 10, 'demands': [7]}, {'task': 13, 'start': 24, 'end': 26, 'duration': 2, 'demands': [3]}, {'task': 14, 'start': 24, 'end': 25, 'duration': 1, 'demands': [0]}, {'task': 15, 'start': 29, 'end': 34, 'duration': 5, 'demands': [2]}, {'task': 16, 'start': 29, 'end': 41, 'duration': 12, 'demands': [4]}, {'task': 17, 'start': 41, 'end': 42, 'duration': 1, 'demands': [0]}, {'task': 18, 'start': 0, 'end': 5, 'duration': 5, 'demands': [1]}, {'task': 19, 'start': 26, 'end': 36, 'duration': 10, 'demands': [3]}]",42.0,"{'problem_type': 'RCPSP', 'nr_tasks': 20, 'nr_resources': 1, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20'], 'resources': [0], 'resource_capacities': [{'resource_id': 0, 'capacity': 9}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0], 'successors': ['T2', 'T3', 'T4', 'T5', 'T6']}, {'task_id': 'T2', 'duration': 1, 'demands': [5], 'successors': ['T17']}, {'task_id': 'T3', 'duration': 4, 'demands': [2], 'successors': ['T7', 'T8']}, {'task_id': 'T4', 'duration': 6, 'demands': [2], 'successors': ['T9', 'T13', 'T14']}, {'task_id': 'T5', 'duration': 5, 'demands': [9], 'successors': ['T10', 'T12']}, {'task_id': 'T6', 'duration': 5, 'demands': [1], 'successors': ['T11']}, {'task_id': 'T7', 'duration': 6, 'demands': [1], 'successors': ['T17']}, {'task_id': 'T8', 'duration': 1, 'demands': [0], 'successors': ['T9', 'T13', 'T14']}, {'task_id': 'T9', 'duration': 5, 'demands': [2], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 6, 'demands': [3], 'successors': []}, {'task_id': 'T11', 'duration': 7, 'demands': [6], 'successors': ['T18']}, {'task_id': 'T12', 'duration': 2, 'demands': [1], 'successors': ['T15']}, {'task_id': 'T13', 'duration': 10, 'demands': [7], 'successors': ['T15', 'T16']}, {'task_id': 'T14', 'duration': 2, 'demands': [3], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 1, 'demands': [0], 'successors': []}, {'task_id': 'T16', 'duration': 5, 'demands': [2], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 12, 'demands': [4], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 1, 'demands': [0], 'successors': []}, {'task_id': 'T19', 'duration': 5, 'demands': [1], 'successors': []}, {'task_id': 'T20', 'duration': 10, 'demands': [3], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0]}, {'task': 'T2', 'start': 5, 'end': 6, 'duration': 1, 'demands': [5]}, {'task': 'T3', 'start': 1, 'end': 5, 'duration': 4, 'demands': [2]}, {'task': 'T4', 'start': 1, 'end': 7, 'duration': 6, 'demands': [2]}, {'task': 'T5', 'start': 17, 'end': 22, 'duration': 5, 'demands': [9]}, {'task': 'T6', 'start': 1, 'end': 6, 'duration': 5, 'demands': [1]}, {'task': 'T7', 'start': 5, 'end': 11, 'duration': 6, 'demands': [1]}, {'task': 'T8', 'start': 6, 'end': 7, 'duration': 1, 'demands': [0]}, {'task': 'T9', 'start': 11, 'end': 16, 'duration': 5, 'demands': [2]}, {'task': 'T10', 'start': 36, 'end': 42, 'duration': 6, 'demands': [3]}, {'task': 'T11', 'start': 22, 'end': 29, 'duration': 7, 'demands': [6]}, {'task': 'T12', 'start': 22, 'end': 24, 'duration': 2, 'demands': [1]}, {'task': 'T13', 'start': 7, 'end': 17, 'duration': 10, 'demands': [7]}, {'task': 'T14', 'start': 24, 'end': 26, 'duration': 2, 'demands': [3]}, {'task': 'T15', 'start': 24, 'end': 25, 'duration': 1, 'demands': [0]}, {'task': 'T16', 'start': 29, 'end': 34, 'duration': 5, 'demands': [2]}, {'task': 'T17', 'start': 29, 'end': 41, 'duration': 12, 'demands': [4]}, {'task': 'T18', 'start': 41, 'end': 42, 'duration': 1, 'demands': [0]}, {'task': 'T19', 'start': 0, 'end': 5, 'duration': 5, 'demands': [1]}, {'task': 'T20', 'start': 26, 'end': 36, 'duration': 10, 'demands': [3]}] |
| RCPSP,RCPSP, |
|
|
| { |
| ""total_production_steps"": 21, |
| ""num_resource_types"": 3, |
| ""resources"": [ |
| ""A"", |
| ""B"", |
| ""C"" |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": ""A"", |
| ""capacity"": 11 |
| }, |
| { |
| ""resource_id"": ""B"", |
| ""capacity"": 11 |
| }, |
| { |
| ""resource_id"": ""C"", |
| ""capacity"": 9 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""step_id"": ""T1"", |
| ""step_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_steps"": [ |
| ""T2"", |
| ""T3"", |
| ""T4"" |
| ] |
| }, |
| { |
| ""step_id"": ""T2"", |
| ""step_duration"": 5, |
| ""resource_demands"": [ |
| 6, |
| 9, |
| 3 |
| ], |
| ""successor_steps"": [ |
| ""T5"" |
| ] |
| }, |
| { |
| ""step_id"": ""T3"", |
| ""step_duration"": 4, |
| ""resource_demands"": [ |
| 9, |
| 3, |
| 5 |
| ], |
| ""successor_steps"": [ |
| ""T5"", |
| ""T7"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""step_id"": ""T4"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 8, |
| 2, |
| 3 |
| ], |
| ""successor_steps"": [ |
| ""T5"", |
| ""T6"" |
| ] |
| }, |
| { |
| ""step_id"": ""T5"", |
| ""step_duration"": 9, |
| ""resource_demands"": [ |
| 6, |
| 1, |
| 4 |
| ], |
| ""successor_steps"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""step_id"": ""T6"", |
| ""step_duration"": 3, |
| ""resource_demands"": [ |
| 7, |
| 8, |
| 8 |
| ], |
| ""successor_steps"": [ |
| ""T9"" |
| ] |
| }, |
| { |
| ""step_id"": ""T7"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 2, |
| 4, |
| 2 |
| ], |
| ""successor_steps"": [ |
| ""T10"" |
| ] |
| }, |
| { |
| ""step_id"": ""T8"", |
| ""step_duration"": 6, |
| ""resource_demands"": [ |
| 3, |
| 2, |
| 8 |
| ], |
| ""successor_steps"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""step_id"": ""T9"", |
| ""step_duration"": 3, |
| ""resource_demands"": [ |
| 3, |
| 3, |
| 4 |
| ], |
| ""successor_steps"": [] |
| }, |
| { |
| ""step_id"": ""T10"", |
| ""step_duration"": 5, |
| ""resource_demands"": [ |
| 4, |
| 4, |
| 2 |
| ], |
| ""successor_steps"": [ |
| ""T11"" |
| ] |
| }, |
| { |
| ""step_id"": ""T11"", |
| ""step_duration"": 3, |
| ""resource_demands"": [ |
| 1, |
| 4, |
| 4 |
| ], |
| ""successor_steps"": [] |
| }, |
| { |
| ""step_id"": ""T12"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 3, |
| 4, |
| 8 |
| ], |
| ""successor_steps"": [ |
| ""T15"", |
| ""T16"" |
| ] |
| }, |
| { |
| ""step_id"": ""T13"", |
| ""step_duration"": 1, |
| ""resource_demands"": [ |
| 5, |
| 2, |
| 3 |
| ], |
| ""successor_steps"": [ |
| ""T15"" |
| ] |
| }, |
| { |
| ""step_id"": ""T14"", |
| ""step_duration"": 4, |
| ""resource_demands"": [ |
| 4, |
| 4, |
| 4 |
| ], |
| ""successor_steps"": [ |
| ""T15"" |
| ] |
| }, |
| { |
| ""step_id"": ""T15"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 1, |
| 8, |
| 2 |
| ], |
| ""successor_steps"": [ |
| ""T20"" |
| ] |
| }, |
| { |
| ""step_id"": ""T16"", |
| ""step_duration"": 5, |
| ""resource_demands"": [ |
| 4, |
| 2, |
| 1 |
| ], |
| ""successor_steps"": [] |
| }, |
| { |
| ""step_id"": ""T17"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 2, |
| 0, |
| 6 |
| ], |
| ""successor_steps"": [ |
| ""T19"" |
| ] |
| }, |
| { |
| ""step_id"": ""T18"", |
| ""step_duration"": 1, |
| ""resource_demands"": [ |
| 1, |
| 2, |
| 1 |
| ], |
| ""successor_steps"": [ |
| ""T20"" |
| ] |
| }, |
| { |
| ""step_id"": ""T19"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 0, |
| 1, |
| 5 |
| ], |
| ""successor_steps"": [ |
| ""T21"" |
| ] |
| }, |
| { |
| ""step_id"": ""T20"", |
| ""step_duration"": 4, |
| ""resource_demands"": [ |
| 1, |
| 1, |
| 2 |
| ], |
| ""successor_steps"": [ |
| ""T21"" |
| ] |
| }, |
| { |
| ""step_id"": ""T21"", |
| ""step_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_steps"": [] |
| } |
| ] |
| } |
|
|
| When you send back the schedule, just use a tiny JSON snippet so it's easy to parseβnothing fancy, just the shape below. |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of that like a short form: ""solution"" holds a list of the steps, and each step says which task it is and when it starts and finishes. Keep it simple β task is the task identifier, start is the start time, and end is the end time. This block is just a sketch of the expected shape, not the actual schedule. |
| |
| Please use the exact identifiers from the instance input β do not rename them or invent new ones. Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [11, 11, 9], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 5, 'demands': [6, 9, 3], 'successors': [4]}, {'duration': 4, 'demands': [9, 3, 5], 'successors': [4, 6, 7]}, {'duration': 2, 'demands': [8, 2, 3], 'successors': [4, 5]}, {'duration': 9, 'demands': [6, 1, 4], 'successors': [8, 9]}, {'duration': 3, 'demands': [7, 8, 8], 'successors': [8]}, {'duration': 2, 'demands': [2, 4, 2], 'successors': [9]}, {'duration': 6, 'demands': [3, 2, 8], 'successors': [8, 9]}, {'duration': 3, 'demands': [3, 3, 4], 'successors': []}, {'duration': 5, 'demands': [4, 4, 2], 'successors': [10]}, {'duration': 3, 'demands': [1, 4, 4], 'successors': []}, {'duration': 2, 'demands': [3, 4, 8], 'successors': [14, 15]}, {'duration': 1, 'demands': [5, 2, 3], 'successors': [14]}, {'duration': 4, 'demands': [4, 4, 4], 'successors': [14]}, {'duration': 2, 'demands': [1, 8, 2], 'successors': [19]}, {'duration': 5, 'demands': [4, 2, 1], 'successors': []}, {'duration': 2, 'demands': [2, 0, 6], 'successors': [18]}, {'duration': 1, 'demands': [1, 2, 1], 'successors': [19]}, {'duration': 2, 'demands': [0, 1, 5], 'successors': [20]}, {'duration': 4, 'demands': [1, 1, 2], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 14, 'end': 19, 'duration': 5, 'demands': [6, 9, 3]}, {'task': 2, 'start': 2, 'end': 6, 'duration': 4, 'demands': [9, 3, 5]}, {'task': 3, 'start': 12, 'end': 14, 'duration': 2, 'demands': [8, 2, 3]}, {'task': 4, 'start': 22, 'end': 31, 'duration': 9, 'demands': [6, 1, 4]}, {'task': 5, 'start': 19, 'end': 22, 'duration': 3, 'demands': [7, 8, 8]}, {'task': 6, 'start': 22, 'end': 24, 'duration': 2, 'demands': [2, 4, 2]}, {'task': 7, 'start': 6, 'end': 12, 'duration': 6, 'demands': [3, 2, 8]}, {'task': 8, 'start': 35, 'end': 38, 'duration': 3, 'demands': [3, 3, 4]}, {'task': 9, 'start': 31, 'end': 36, 'duration': 5, 'demands': [4, 4, 2]}, {'task': 10, 'start': 36, 'end': 39, 'duration': 3, 'demands': [1, 4, 4]}, {'task': 11, 'start': 0, 'end': 2, 'duration': 2, 'demands': [3, 4, 8]}, {'task': 12, 'start': 14, 'end': 15, 'duration': 1, 'demands': [5, 2, 3]}, {'task': 13, 'start': 24, 'end': 28, 'duration': 4, 'demands': [4, 4, 4]}, {'task': 14, 'start': 28, 'end': 30, 'duration': 2, 'demands': [1, 8, 2]}, {'task': 15, 'start': 34, 'end': 39, 'duration': 5, 'demands': [4, 2, 1]}, {'task': 16, 'start': 12, 'end': 14, 'duration': 2, 'demands': [2, 0, 6]}, {'task': 17, 'start': 1, 'end': 2, 'duration': 1, 'demands': [1, 2, 1]}, {'task': 18, 'start': 33, 'end': 35, 'duration': 2, 'demands': [0, 1, 5]}, {'task': 19, 'start': 30, 'end': 34, 'duration': 4, 'demands': [1, 1, 2]}, {'task': 20, 'start': 35, 'end': 36, 'duration': 1, 'demands': [0, 0, 0]}]",39.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 11}, {'resource_id': 'B', 'capacity': 11}, {'resource_id': 'C', 'capacity': 9}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 5, 'demands': [6, 9, 3], 'successors': ['T5']}, {'task_id': 'T3', 'duration': 4, 'demands': [9, 3, 5], 'successors': ['T5', 'T7', 'T8']}, {'task_id': 'T4', 'duration': 2, 'demands': [8, 2, 3], 'successors': ['T5', 'T6']}, {'task_id': 'T5', 'duration': 9, 'demands': [6, 1, 4], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 3, 'demands': [7, 8, 8], 'successors': ['T9']}, {'task_id': 'T7', 'duration': 2, 'demands': [2, 4, 2], 'successors': ['T10']}, {'task_id': 'T8', 'duration': 6, 'demands': [3, 2, 8], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 3, 'demands': [3, 3, 4], 'successors': []}, {'task_id': 'T10', 'duration': 5, 'demands': [4, 4, 2], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 3, 'demands': [1, 4, 4], 'successors': []}, {'task_id': 'T12', 'duration': 2, 'demands': [3, 4, 8], 'successors': ['T15', 'T16']}, {'task_id': 'T13', 'duration': 1, 'demands': [5, 2, 3], 'successors': ['T15']}, {'task_id': 'T14', 'duration': 4, 'demands': [4, 4, 4], 'successors': ['T15']}, {'task_id': 'T15', 'duration': 2, 'demands': [1, 8, 2], 'successors': ['T20']}, {'task_id': 'T16', 'duration': 5, 'demands': [4, 2, 1], 'successors': []}, {'task_id': 'T17', 'duration': 2, 'demands': [2, 0, 6], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 1, 'demands': [1, 2, 1], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 2, 'demands': [0, 1, 5], 'successors': ['T21']}, {'task_id': 'T20', 'duration': 4, 'demands': [1, 1, 2], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 14, 'end': 19, 'duration': 5, 'demands': [6, 9, 3]}, {'task': 'T3', 'start': 2, 'end': 6, 'duration': 4, 'demands': [9, 3, 5]}, {'task': 'T4', 'start': 12, 'end': 14, 'duration': 2, 'demands': [8, 2, 3]}, {'task': 'T5', 'start': 22, 'end': 31, 'duration': 9, 'demands': [6, 1, 4]}, {'task': 'T6', 'start': 19, 'end': 22, 'duration': 3, 'demands': [7, 8, 8]}, {'task': 'T7', 'start': 22, 'end': 24, 'duration': 2, 'demands': [2, 4, 2]}, {'task': 'T8', 'start': 6, 'end': 12, 'duration': 6, 'demands': [3, 2, 8]}, {'task': 'T9', 'start': 35, 'end': 38, 'duration': 3, 'demands': [3, 3, 4]}, {'task': 'T10', 'start': 31, 'end': 36, 'duration': 5, 'demands': [4, 4, 2]}, {'task': 'T11', 'start': 36, 'end': 39, 'duration': 3, 'demands': [1, 4, 4]}, {'task': 'T12', 'start': 0, 'end': 2, 'duration': 2, 'demands': [3, 4, 8]}, {'task': 'T13', 'start': 14, 'end': 15, 'duration': 1, 'demands': [5, 2, 3]}, {'task': 'T14', 'start': 24, 'end': 28, 'duration': 4, 'demands': [4, 4, 4]}, {'task': 'T15', 'start': 28, 'end': 30, 'duration': 2, 'demands': [1, 8, 2]}, {'task': 'T16', 'start': 34, 'end': 39, 'duration': 5, 'demands': [4, 2, 1]}, {'task': 'T17', 'start': 12, 'end': 14, 'duration': 2, 'demands': [2, 0, 6]}, {'task': 'T18', 'start': 1, 'end': 2, 'duration': 1, 'demands': [1, 2, 1]}, {'task': 'T19', 'start': 33, 'end': 35, 'duration': 2, 'demands': [0, 1, 5]}, {'task': 'T20', 'start': 30, 'end': 34, 'duration': 4, 'demands': [1, 1, 2]}, {'task': 'T21', 'start': 35, 'end': 36, 'duration': 1, 'demands': [0, 0, 0]}]",34,json,names |
| RCPSP,RCPSP,"We have a little production to plan: several shoots and follow-up edits that must be slotted into a tight timetable. The decision to make is when each shoot and edit should start so the campaign finishes at the earliest possible moment β that finishing moment is just the end time of the last activity, so the goal is to make that end time as small as possible. Each item has a fixed runtime, eats up studio time or an editor while itβs happening, and some jobs can only begin after others finish. All activities must be included exactly once and resources canβt be overbooked. The exact durations, resource availability and task orderings are listed below. |
| |
| There are 16 activities, 3 resource types, and resource capacities . |
| |
| | resource_id | capacity | |
| |---|---| |
| | A | 14 | |
| | B | 11 | |
| | C | 13 | |
| |
| | activity_id | duration_time_units | resource_demand_vector | immediate_successor_ids | |
| |---|---|---|---| |
| | T1 | 10 | 3, 2, 4 | T2, T3, T5 | |
| | T2 | 5 | 4, 1, 5 | T6, T7 | |
| | T3 | 1 | 7, 9, 3 | T7, T8, T15, T14, T2 | |
| | T4 | 5 | 6, 7, 3 | T7, T8, T16 | |
| | T5 | 3 | 3, 7, 5 | T7, T8 | |
| | T6 | 4 | 2, 3, 2 | T9, T10, T11, T8 | |
| | T7 | 4 | 4, 4, 4 | none | |
| | T8 | 4 | 2, 2, 3 | T9 | |
| | T9 | 3 | 1, 6, 6 | T13 | |
| | T10 | 2 | 4, 6, 4 | T12, T14, T7 | |
| | T11 | 1 | 1, 4, 8 | T12, T8 | |
| | T12 | 14 | 5, 8, 2 | T15 | |
| | T13 | 2 | 4, 3, 4 | none | |
| | T14 | 1 | 9, 6, 5 | T15 | |
| | T15 | 2 | 2, 4, 2 | T16 | |
| | T16 | 2 | 0, 1, 3 | T9 | |
| |
| Include every activity exactly once so we can assign start times and minimize the campaign's finish time. |
|
|
| Also, when you send the schedule back, please use this simple JSON shape so everything lines up with the rest of the workflow: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of it like a little form: ""solution"" holds a list of all the activities, and each activity entry just names the task and gives its start and end times. Keep the task identifier exactly as it appears in the instance, and use the same time units the instance uses (so the numbers line up with the durations you were given). This JSON is just a sketch of the shape I need, not the actual scheduled times. |
|
|
| Please make sure all task identifiers are used exactly as they appear in the instance input β do not rename them or invent new labels. |
| - for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'nr_tasks': 16, 'nr_resources': 3, 'capacities': [14, 11, 13], 'tasks': [{'duration': 10, 'demands': [3, 2, 4], 'successors': [1, 2, 4]}, {'duration': 5, 'demands': [4, 1, 5], 'successors': [5, 6]}, {'duration': 1, 'demands': [7, 9, 3], 'successors': [6, 7, 14, 13, 1]}, {'duration': 5, 'demands': [6, 7, 3], 'successors': [6, 7, 15]}, {'duration': 3, 'demands': [3, 7, 5], 'successors': [6, 7]}, {'duration': 4, 'demands': [2, 3, 2], 'successors': [8, 9, 10, 7]}, {'duration': 4, 'demands': [4, 4, 4], 'successors': []}, {'duration': 4, 'demands': [2, 2, 3], 'successors': [8]}, {'duration': 3, 'demands': [1, 6, 6], 'successors': [12]}, {'duration': 2, 'demands': [4, 6, 4], 'successors': [11, 13, 6]}, {'duration': 1, 'demands': [1, 4, 8], 'successors': [11, 7]}, {'duration': 14, 'demands': [5, 8, 2], 'successors': [14]}, {'duration': 2, 'demands': [4, 3, 4], 'successors': []}, {'duration': 1, 'demands': [9, 6, 5], 'successors': [14]}, {'duration': 2, 'demands': [2, 4, 2], 'successors': [15]}, {'duration': 2, 'demands': [0, 1, 3], 'successors': [8]}]}","[{'task': 0, 'start': 0, 'end': 10, 'duration': 10, 'demands': [3, 2, 4]}, {'task': 1, 'start': 11, 'end': 16, 'duration': 5, 'demands': [4, 1, 5]}, {'task': 2, 'start': 10, 'end': 11, 'duration': 1, 'demands': [7, 9, 3]}, {'task': 3, 'start': 0, 'end': 5, 'duration': 5, 'demands': [6, 7, 3]}, {'task': 4, 'start': 11, 'end': 14, 'duration': 3, 'demands': [3, 7, 5]}, {'task': 5, 'start': 16, 'end': 20, 'duration': 4, 'demands': [2, 3, 2]}, {'task': 6, 'start': 36, 'end': 40, 'duration': 4, 'demands': [4, 4, 4]}, {'task': 7, 'start': 21, 'end': 25, 'duration': 4, 'demands': [2, 2, 3]}, {'task': 8, 'start': 41, 'end': 44, 'duration': 3, 'demands': [1, 6, 6]}, {'task': 9, 'start': 20, 'end': 22, 'duration': 2, 'demands': [4, 6, 4]}, {'task': 10, 'start': 20, 'end': 21, 'duration': 1, 'demands': [1, 4, 8]}, {'task': 11, 'start': 22, 'end': 36, 'duration': 14, 'demands': [5, 8, 2]}, {'task': 12, 'start': 44, 'end': 46, 'duration': 2, 'demands': [4, 3, 4]}, {'task': 13, 'start': 36, 'end': 37, 'duration': 1, 'demands': [9, 6, 5]}, {'task': 14, 'start': 37, 'end': 39, 'duration': 2, 'demands': [2, 4, 2]}, {'task': 15, 'start': 39, 'end': 41, 'duration': 2, 'demands': [0, 1, 3]}]",46.0,"{'problem_type': 'RCPSP', 'nr_tasks': 16, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 14}, {'resource_id': 'B', 'capacity': 11}, {'resource_id': 'C', 'capacity': 13}], 'task_records': [{'task_id': 'T1', 'duration': 10, 'demands': [3, 2, 4], 'successors': ['T2', 'T3', 'T5']}, {'task_id': 'T2', 'duration': 5, 'demands': [4, 1, 5], 'successors': ['T6', 'T7']}, {'task_id': 'T3', 'duration': 1, 'demands': [7, 9, 3], 'successors': ['T7', 'T8', 'T15', 'T14', 'T2']}, {'task_id': 'T4', 'duration': 5, 'demands': [6, 7, 3], 'successors': ['T7', 'T8', 'T16']}, {'task_id': 'T5', 'duration': 3, 'demands': [3, 7, 5], 'successors': ['T7', 'T8']}, {'task_id': 'T6', 'duration': 4, 'demands': [2, 3, 2], 'successors': ['T9', 'T10', 'T11', 'T8']}, {'task_id': 'T7', 'duration': 4, 'demands': [4, 4, 4], 'successors': []}, {'task_id': 'T8', 'duration': 4, 'demands': [2, 2, 3], 'successors': ['T9']}, {'task_id': 'T9', 'duration': 3, 'demands': [1, 6, 6], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 2, 'demands': [4, 6, 4], 'successors': ['T12', 'T14', 'T7']}, {'task_id': 'T11', 'duration': 1, 'demands': [1, 4, 8], 'successors': ['T12', 'T8']}, {'task_id': 'T12', 'duration': 14, 'demands': [5, 8, 2], 'successors': ['T15']}, {'task_id': 'T13', 'duration': 2, 'demands': [4, 3, 4], 'successors': []}, {'task_id': 'T14', 'duration': 1, 'demands': [9, 6, 5], 'successors': ['T15']}, {'task_id': 'T15', 'duration': 2, 'demands': [2, 4, 2], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 2, 'demands': [0, 1, 3], 'successors': ['T9']}]}","[{'task': 'T1', 'start': 0, 'end': 10, 'duration': 10, 'demands': [3, 2, 4]}, {'task': 'T2', 'start': 11, 'end': 16, 'duration': 5, 'demands': [4, 1, 5]}, {'task': 'T3', 'start': 10, 'end': 11, 'duration': 1, 'demands': [7, 9, 3]}, {'task': 'T4', 'start': 0, 'end': 5, 'duration': 5, 'demands': [6, 7, 3]}, {'task': 'T5', 'start': 11, 'end': 14, 'duration': 3, 'demands': [3, 7, 5]}, {'task': 'T6', 'start': 16, 'end': 20, 'duration': 4, 'demands': [2, 3, 2]}, {'task': 'T7', 'start': 36, 'end': 40, 'duration': 4, 'demands': [4, 4, 4]}, {'task': 'T8', 'start': 21, 'end': 25, 'duration': 4, 'demands': [2, 2, 3]}, {'task': 'T9', 'start': 41, 'end': 44, 'duration': 3, 'demands': [1, 6, 6]}, {'task': 'T10', 'start': 20, 'end': 22, 'duration': 2, 'demands': [4, 6, 4]}, {'task': 'T11', 'start': 20, 'end': 21, 'duration': 1, 'demands': [1, 4, 8]}, {'task': 'T12', 'start': 22, 'end': 36, 'duration': 14, 'demands': [5, 8, 2]}, {'task': 'T13', 'start': 44, 'end': 46, 'duration': 2, 'demands': [4, 3, 4]}, {'task': 'T14', 'start': 36, 'end': 37, 'duration': 1, 'demands': [9, 6, 5]}, {'task': 'T15', 'start': 37, 'end': 39, 'duration': 2, 'demands': [2, 4, 2]}, {'task': 'T16', 'start': 39, 'end': 41, 'duration': 2, 'demands': [0, 1, 3]}] |
| RCPSP,RCPSP, |
|
|
| Here they are: 17 setups, 3 resource types, capacities . |
| Setup T1 runs 1 minutes, ties up 0, 0, 0 while active, and must finish before T2, T3, T4 can start. |
| Setup T2 runs 9 minutes, ties up 4, 7, 1 while active, and must finish before T5, T6 can start. |
| Setup T3 runs 3 minutes, ties up 6, 7, 2 while active, and must finish before T5, T6 can start. |
| Setup T4 runs 2 minutes, ties up 4, 3, 3 while active, and must finish before T5, T6, T7, T8 can start. |
| Setup T5 runs 2 minutes, ties up 3, 1, 3 while active, and must finish before T9, T10 can start. |
| Setup T6 runs 8 minutes, ties up 7, 4, 3 while active, and must finish before T9, T5 can start. |
| Setup T7 runs 1 minutes, ties up 2, 7, 2 while active, and must finish before T9, T11 can start. |
| Setup T8 runs 5 minutes, ties up 1, 7, 8 while active, and must finish before T10, T11 can start. |
| Setup T9 runs 6 minutes, ties up 5, 4, 1 while active, and must finish before T12, T13 can start. |
| Setup T10 runs 2 minutes, ties up 2, 3, 5 while active, and must finish before none can start. |
| Setup T11 runs 3 minutes, ties up 4, 5, 3 while active, and must finish before T12 can start. |
| Setup T12 runs 4 minutes, ties up 2, 8, 5 while active, and must finish before T14 can start. |
| Setup T13 runs 1 minutes, ties up 2, 3, 3 while active, and must finish before T14 can start. |
| Setup T14 runs 10 minutes, ties up 7, 8, 2 while active, and must finish before T16 can start. |
| Setup T15 runs 4 minutes, ties up 5, 1, 3 while active, and must finish before T16 can start. |
| Setup T16 runs 2 minutes, ties up 3, 2, 7 while active, and must finish before T17 can start. |
| Setup T17 runs 1 minutes, ties up 0, 0, 0 while active, and must finish before none can start. |
| Keep those capacities and must-follow relations in mind as you pick start minutes so the last finish is as early as possible. |
|
|
| When you send the schedule back, please use a small JSON sketch like this so it's easy to read and check: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This just shows a list called ""solution"" where each entry names a setup (the task), and the minute it starts and the minute it finishes. Super simple β think of ""task"" as the setup identifier from the briefing, and ""start"" / ""end"" as whole-minute times. |
| |
| This is only the shape I expect, not the actual schedule β fill in one object per setup from the instance. |
| |
| Please use the exact identifiers from the instance input β do not rename them or invent new labels. |
| - for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'nr_tasks': 17, 'nr_resources': 3, 'capacities': [11, 14, 9], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 9, 'demands': [4, 7, 1], 'successors': [4, 5]}, {'duration': 3, 'demands': [6, 7, 2], 'successors': [4, 5]}, {'duration': 2, 'demands': [4, 3, 3], 'successors': [4, 5, 6, 7]}, {'duration': 2, 'demands': [3, 1, 3], 'successors': [8, 9]}, {'duration': 8, 'demands': [7, 4, 3], 'successors': [8, 4]}, {'duration': 1, 'demands': [2, 7, 2], 'successors': [8, 10]}, {'duration': 5, 'demands': [1, 7, 8], 'successors': [9, 10]}, {'duration': 6, 'demands': [5, 4, 1], 'successors': [11, 12]}, {'duration': 2, 'demands': [2, 3, 5], 'successors': []}, {'duration': 3, 'demands': [4, 5, 3], 'successors': [11]}, {'duration': 4, 'demands': [2, 8, 5], 'successors': [13]}, {'duration': 1, 'demands': [2, 3, 3], 'successors': [13]}, {'duration': 10, 'demands': [7, 8, 2], 'successors': [15]}, {'duration': 4, 'demands': [5, 1, 3], 'successors': [15]}, {'duration': 2, 'demands': [3, 2, 7], 'successors': [16]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 10, 'duration': 9, 'demands': [4, 7, 1]}, {'task': 2, 'start': 1, 'end': 4, 'duration': 3, 'demands': [6, 7, 2]}, {'task': 3, 'start': 4, 'end': 6, 'duration': 2, 'demands': [4, 3, 3]}, {'task': 4, 'start': 19, 'end': 21, 'duration': 2, 'demands': [3, 1, 3]}, {'task': 5, 'start': 11, 'end': 19, 'duration': 8, 'demands': [7, 4, 3]}, {'task': 6, 'start': 11, 'end': 12, 'duration': 1, 'demands': [2, 7, 2]}, {'task': 7, 'start': 6, 'end': 11, 'duration': 5, 'demands': [1, 7, 8]}, {'task': 8, 'start': 21, 'end': 27, 'duration': 6, 'demands': [5, 4, 1]}, {'task': 9, 'start': 21, 'end': 23, 'duration': 2, 'demands': [2, 3, 5]}, {'task': 10, 'start': 12, 'end': 15, 'duration': 3, 'demands': [4, 5, 3]}, {'task': 11, 'start': 27, 'end': 31, 'duration': 4, 'demands': [2, 8, 5]}, {'task': 12, 'start': 27, 'end': 28, 'duration': 1, 'demands': [2, 3, 3]}, {'task': 13, 'start': 31, 'end': 41, 'duration': 10, 'demands': [7, 8, 2]}, {'task': 14, 'start': 23, 'end': 27, 'duration': 4, 'demands': [5, 1, 3]}, {'task': 15, 'start': 41, 'end': 43, 'duration': 2, 'demands': [3, 2, 7]}, {'task': 16, 'start': 43, 'end': 44, 'duration': 1, 'demands': [0, 0, 0]}]",44.0,"{'problem_type': 'RCPSP', 'nr_tasks': 17, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 11}, {'resource_id': 2, 'capacity': 14}, {'resource_id': 3, 'capacity': 9}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 9, 'demands': [4, 7, 1], 'successors': ['T5', 'T6']}, {'task_id': 'T3', 'duration': 3, 'demands': [6, 7, 2], 'successors': ['T5', 'T6']}, {'task_id': 'T4', 'duration': 2, 'demands': [4, 3, 3], 'successors': ['T5', 'T6', 'T7', 'T8']}, {'task_id': 'T5', 'duration': 2, 'demands': [3, 1, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 8, 'demands': [7, 4, 3], 'successors': ['T9', 'T5']}, {'task_id': 'T7', 'duration': 1, 'demands': [2, 7, 2], 'successors': ['T9', 'T11']}, {'task_id': 'T8', 'duration': 5, 'demands': [1, 7, 8], 'successors': ['T10', 'T11']}, {'task_id': 'T9', 'duration': 6, 'demands': [5, 4, 1], 'successors': ['T12', 'T13']}, {'task_id': 'T10', 'duration': 2, 'demands': [2, 3, 5], 'successors': []}, {'task_id': 'T11', 'duration': 3, 'demands': [4, 5, 3], 'successors': ['T12']}, {'task_id': 'T12', 'duration': 4, 'demands': [2, 8, 5], 'successors': ['T14']}, {'task_id': 'T13', 'duration': 1, 'demands': [2, 3, 3], 'successors': ['T14']}, {'task_id': 'T14', 'duration': 10, 'demands': [7, 8, 2], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 4, 'demands': [5, 1, 3], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 2, 'demands': [3, 2, 7], 'successors': ['T17']}, {'task_id': 'T17', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 10, 'duration': 9, 'demands': [4, 7, 1]}, {'task': 'T3', 'start': 1, 'end': 4, 'duration': 3, 'demands': [6, 7, 2]}, {'task': 'T4', 'start': 4, 'end': 6, 'duration': 2, 'demands': [4, 3, 3]}, {'task': 'T5', 'start': 19, 'end': 21, 'duration': 2, 'demands': [3, 1, 3]}, {'task': 'T6', 'start': 11, 'end': 19, 'duration': 8, 'demands': [7, 4, 3]}, {'task': 'T7', 'start': 11, 'end': 12, 'duration': 1, 'demands': [2, 7, 2]}, {'task': 'T8', 'start': 6, 'end': 11, 'duration': 5, 'demands': [1, 7, 8]}, {'task': 'T9', 'start': 21, 'end': 27, 'duration': 6, 'demands': [5, 4, 1]}, {'task': 'T10', 'start': 21, 'end': 23, 'duration': 2, 'demands': [2, 3, 5]}, {'task': 'T11', 'start': 12, 'end': 15, 'duration': 3, 'demands': [4, 5, 3]}, {'task': 'T12', 'start': 27, 'end': 31, 'duration': 4, 'demands': [2, 8, 5]}, {'task': 'T13', 'start': 27, 'end': 28, 'duration': 1, 'demands': [2, 3, 3]}, {'task': 'T14', 'start': 31, 'end': 41, 'duration': 10, 'demands': [7, 8, 2]}, {'task': 'T15', 'start': 23, 'end': 27, 'duration': 4, 'demands': [5, 1, 3]}, {'task': 'T16', 'start': 41, 'end': 43, 'duration': 2, 'demands': [3, 2, 7]}, {'task': 'T17', 'start': 43, 'end': 44, 'duration': 1, 'demands': [0, 0, 0]}]",36,nl,1 |
| RCPSP,RCPSP,"Someone on site is juggling the schedule for excavation, foundation, framing, roofing, plumbing, and finishing and has to decide when each should start. Each work item takes a set amount of time and needs a fixed number of hands (and sometimes a crane) while itβs underway. Excavation must be completed before foundation begins, and framing waits on the foundation. Every task must happen exactly once for its full duration, and at no time can the total workers or cranes in use exceed the crew available. The measure of success is straightforward: the earlier the last job finishes, the better β find each jobβs finish by adding its duration to its start time, and the project finish is the latest of those. The concrete details are shown below. |
| |
| Someone on site faces 16 tasks, must track 3 resource types, and has resource capacities . |
| Someone on site notes that task 'T1' runs for 6 units, consumes 2, 4, 3 while active, and must finish before T5, T6, T7 can start. |
| Someone on site notes that task 'T2' runs for 3 units, consumes 4, 6, 3 while active, and must finish before T4, T5, T16 can start. |
| Someone on site notes that task 'T3' runs for 11 units, consumes 9, 2, 2 while active, and must finish before T4, T5 can start. |
| Someone on site notes that task 'T4' runs for 6 units, consumes 8, 1, 7 while active, and must finish before T9, T10 can start. |
| Someone on site notes that task 'T5' runs for 3 units, consumes 8, 9, 4 while active, and must finish before T8, T9 can start. |
| Someone on site notes that task 'T6' runs for 2 units, consumes 2, 4, 2 while active, and must finish before T9, T10 can start. |
| Someone on site notes that task 'T7' runs for 1 units, consumes 4, 4, 8 while active, and must finish before T8, T10 can start. |
| Someone on site notes that task 'T8' runs for 2 units, consumes 4, 3, 4 while active, and must finish before T11, T12 can start. |
| Someone on site notes that task 'T9' runs for 4 units, consumes 6, 1, 7 while active, and must finish before T13 can start. |
| Someone on site notes that task 'T10' runs for 2 units, consumes 4, 3, 2 while active, and must finish before T11, T15 can start. |
| Someone on site notes that task 'T11' runs for 4 units, consumes 2, 4, 5 while active, and must finish before T15 can start. |
| Someone on site notes that task 'T12' runs for 7 units, consumes 3, 3, 4 while active, and must finish before T15 can start. |
| Someone on site notes that task 'T13' runs for 3 units, consumes 2, 10, 3 while active, and must finish before T14, T8 can start. |
| Someone on site notes that task 'T14' runs for 2 units, consumes 6, 6, 8 while active, and must finish before T16 can start. |
| Someone on site notes that task 'T15' runs for 1 units, consumes 2, 2, 3 while active, and must finish before none can start. |
| Someone on site notes that task 'T16' runs for 2 units, consumes 2, 9, 4 while active, and must finish before none can start. |
| Someone on site should schedule each task so the overall project finish is as early as possible. |
| |
| If you'd like to give me the schedule in a tidy, machine-friendly way, just follow this JSON shape β nothing fancy, just a list of tasks with their start and end times: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This sketch means: put each work item in the ""solution"" array, use the task identifier exactly as it appears in the instance, and record the numeric start time and the numeric end time (end = start + duration). It's just the expected shape β not the real answer β so fill in the actual task IDs and times when you submit the schedule. |
| |
| Please don't rename or invent task IDs β use the identifiers from the instance exactly as given. |
| - for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'nr_tasks': 16, 'nr_resources': 3, 'capacities': [15, 10, 8], 'tasks': [{'duration': 6, 'demands': [2, 4, 3], 'successors': [4, 5, 6]}, {'duration': 3, 'demands': [4, 6, 3], 'successors': [3, 4, 15]}, {'duration': 11, 'demands': [9, 2, 2], 'successors': [3, 4]}, {'duration': 6, 'demands': [8, 1, 7], 'successors': [8, 9]}, {'duration': 3, 'demands': [8, 9, 4], 'successors': [7, 8]}, {'duration': 2, 'demands': [2, 4, 2], 'successors': [8, 9]}, {'duration': 1, 'demands': [4, 4, 8], 'successors': [7, 9]}, {'duration': 2, 'demands': [4, 3, 4], 'successors': [10, 11]}, {'duration': 4, 'demands': [6, 1, 7], 'successors': [12]}, {'duration': 2, 'demands': [4, 3, 2], 'successors': [10, 14]}, {'duration': 4, 'demands': [2, 4, 5], 'successors': [14]}, {'duration': 7, 'demands': [3, 3, 4], 'successors': [14]}, {'duration': 3, 'demands': [2, 10, 3], 'successors': [13, 7]}, {'duration': 2, 'demands': [6, 6, 8], 'successors': [15]}, {'duration': 1, 'demands': [2, 2, 3], 'successors': []}, {'duration': 2, 'demands': [2, 9, 4], 'successors': []}]}","[{'task': 0, 'start': 3, 'end': 9, 'duration': 6, 'demands': [2, 4, 3]}, {'task': 1, 'start': 0, 'end': 3, 'duration': 3, 'demands': [4, 6, 3]}, {'task': 2, 'start': 0, 'end': 11, 'duration': 11, 'demands': [9, 2, 2]}, {'task': 3, 'start': 11, 'end': 17, 'duration': 6, 'demands': [8, 1, 7]}, {'task': 4, 'start': 17, 'end': 20, 'duration': 3, 'demands': [8, 9, 4]}, {'task': 5, 'start': 9, 'end': 11, 'duration': 2, 'demands': [2, 4, 2]}, {'task': 6, 'start': 27, 'end': 28, 'duration': 1, 'demands': [4, 4, 8]}, {'task': 7, 'start': 28, 'end': 30, 'duration': 2, 'demands': [4, 3, 4]}, {'task': 8, 'start': 20, 'end': 24, 'duration': 4, 'demands': [6, 1, 7]}, {'task': 9, 'start': 28, 'end': 30, 'duration': 2, 'demands': [4, 3, 2]}, {'task': 10, 'start': 37, 'end': 41, 'duration': 4, 'demands': [2, 4, 5]}, {'task': 11, 'start': 30, 'end': 37, 'duration': 7, 'demands': [3, 3, 4]}, {'task': 12, 'start': 24, 'end': 27, 'duration': 3, 'demands': [2, 10, 3]}, {'task': 13, 'start': 41, 'end': 43, 'duration': 2, 'demands': [6, 6, 8]}, {'task': 14, 'start': 45, 'end': 46, 'duration': 1, 'demands': [2, 2, 3]}, {'task': 15, 'start': 43, 'end': 45, 'duration': 2, 'demands': [2, 9, 4]}]",46.0,"{'problem_type': 'RCPSP', 'nr_tasks': 16, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 15}, {'resource_id': 2, 'capacity': 10}, {'resource_id': 3, 'capacity': 8}], 'task_records': [{'task_id': 'T1', 'duration': 6, 'demands': [2, 4, 3], 'successors': ['T5', 'T6', 'T7']}, {'task_id': 'T2', 'duration': 3, 'demands': [4, 6, 3], 'successors': ['T4', 'T5', 'T16']}, {'task_id': 'T3', 'duration': 11, 'demands': [9, 2, 2], 'successors': ['T4', 'T5']}, {'task_id': 'T4', 'duration': 6, 'demands': [8, 1, 7], 'successors': ['T9', 'T10']}, {'task_id': 'T5', 'duration': 3, 'demands': [8, 9, 4], 'successors': ['T8', 'T9']}, {'task_id': 'T6', 'duration': 2, 'demands': [2, 4, 2], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 1, 'demands': [4, 4, 8], 'successors': ['T8', 'T10']}, {'task_id': 'T8', 'duration': 2, 'demands': [4, 3, 4], 'successors': ['T11', 'T12']}, {'task_id': 'T9', 'duration': 4, 'demands': [6, 1, 7], 'successors': ['T13']}, {'task_id': 'T10', 'duration': 2, 'demands': [4, 3, 2], 'successors': ['T11', 'T15']}, {'task_id': 'T11', 'duration': 4, 'demands': [2, 4, 5], 'successors': ['T15']}, {'task_id': 'T12', 'duration': 7, 'demands': [3, 3, 4], 'successors': ['T15']}, {'task_id': 'T13', 'duration': 3, 'demands': [2, 10, 3], 'successors': ['T14', 'T8']}, {'task_id': 'T14', 'duration': 2, 'demands': [6, 6, 8], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 1, 'demands': [2, 2, 3], 'successors': []}, {'task_id': 'T16', 'duration': 2, 'demands': [2, 9, 4], 'successors': []}]}","[{'task': 'T1', 'start': 3, 'end': 9, 'duration': 6, 'demands': [2, 4, 3]}, {'task': 'T2', 'start': 0, 'end': 3, 'duration': 3, 'demands': [4, 6, 3]}, {'task': 'T3', 'start': 0, 'end': 11, 'duration': 11, 'demands': [9, 2, 2]}, {'task': 'T4', 'start': 11, 'end': 17, 'duration': 6, 'demands': [8, 1, 7]}, {'task': 'T5', 'start': 17, 'end': 20, 'duration': 3, 'demands': [8, 9, 4]}, {'task': 'T6', 'start': 9, 'end': 11, 'duration': 2, 'demands': [2, 4, 2]}, {'task': 'T7', 'start': 27, 'end': 28, 'duration': 1, 'demands': [4, 4, 8]}, {'task': 'T8', 'start': 28, 'end': 30, 'duration': 2, 'demands': [4, 3, 4]}, {'task': 'T9', 'start': 20, 'end': 24, 'duration': 4, 'demands': [6, 1, 7]}, {'task': 'T10', 'start': 28, 'end': 30, 'duration': 2, 'demands': [4, 3, 2]}, {'task': 'T11', 'start': 37, 'end': 41, 'duration': 4, 'demands': [2, 4, 5]}, {'task': 'T12', 'start': 30, 'end': 37, 'duration': 7, 'demands': [3, 3, 4]}, {'task': 'T13', 'start': 24, 'end': 27, 'duration': 3, 'demands': [2, 10, 3]}, {'task': 'T14', 'start': 41, 'end': 43, 'duration': 2, 'demands': [6, 6, 8]}, {'task': 'T15', 'start': 45, 'end': 46, 'duration': 1, 'demands': [2, 2, 3]}, {'task': 'T16', 'start': 43, 'end': 45, 'duration': 2, 'demands': [2, 9, 4]}] |
| RCPSP,RCPSP, |
|
|
| { |
| ""total_steps"": 18, |
| ""num_resource_types"": 3, |
| ""resources"": [ |
| 1, |
| 2, |
| 3 |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": 1, |
| ""capacity"": 14 |
| }, |
| { |
| ""resource_id"": 2, |
| ""capacity"": 10 |
| }, |
| { |
| ""resource_id"": 3, |
| ""capacity"": 8 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""step_id"": ""T1"", |
| ""step_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_steps"": [ |
| ""T2"", |
| ""T3"", |
| ""T4"" |
| ] |
| }, |
| { |
| ""step_id"": ""T2"", |
| ""step_duration"": 7, |
| ""resource_demands"": [ |
| 3, |
| 3, |
| 3 |
| ], |
| ""successor_steps"": [ |
| ""T5"", |
| ""T6"" |
| ] |
| }, |
| { |
| ""step_id"": ""T3"", |
| ""step_duration"": 4, |
| ""resource_demands"": [ |
| 5, |
| 3, |
| 4 |
| ], |
| ""successor_steps"": [ |
| ""T5"", |
| ""T6"" |
| ] |
| }, |
| { |
| ""step_id"": ""T4"", |
| ""step_duration"": 1, |
| ""resource_demands"": [ |
| 4, |
| 3, |
| 1 |
| ], |
| ""successor_steps"": [ |
| ""T5"", |
| ""T6"", |
| ""T7"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""step_id"": ""T5"", |
| ""step_duration"": 1, |
| ""resource_demands"": [ |
| 3, |
| 1, |
| 4 |
| ], |
| ""successor_steps"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""step_id"": ""T6"", |
| ""step_duration"": 7, |
| ""resource_demands"": [ |
| 7, |
| 10, |
| 4 |
| ], |
| ""successor_steps"": [ |
| ""T9"" |
| ] |
| }, |
| { |
| ""step_id"": ""T7"", |
| ""step_duration"": 4, |
| ""resource_demands"": [ |
| 3, |
| 7, |
| 3 |
| ], |
| ""successor_steps"": [ |
| ""T9"", |
| ""T11"" |
| ] |
| }, |
| { |
| ""step_id"": ""T8"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 2, |
| 8, |
| 6 |
| ], |
| ""successor_steps"": [ |
| ""T10"", |
| ""T11"" |
| ] |
| }, |
| { |
| ""step_id"": ""T9"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 4, |
| 1, |
| 3 |
| ], |
| ""successor_steps"": [ |
| ""T12"", |
| ""T13"" |
| ] |
| }, |
| { |
| ""step_id"": ""T10"", |
| ""step_duration"": 3, |
| ""resource_demands"": [ |
| 4, |
| 1, |
| 3 |
| ], |
| ""successor_steps"": [] |
| }, |
| { |
| ""step_id"": ""T11"", |
| ""step_duration"": 5, |
| ""resource_demands"": [ |
| 4, |
| 5, |
| 3 |
| ], |
| ""successor_steps"": [ |
| ""T12"" |
| ] |
| }, |
| { |
| ""step_id"": ""T12"", |
| ""step_duration"": 1, |
| ""resource_demands"": [ |
| 1, |
| 6, |
| 4 |
| ], |
| ""successor_steps"": [ |
| ""T14"" |
| ] |
| }, |
| { |
| ""step_id"": ""T13"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 3, |
| 1, |
| 2 |
| ], |
| ""successor_steps"": [ |
| ""T14"" |
| ] |
| }, |
| { |
| ""step_id"": ""T14"", |
| ""step_duration"": 10, |
| ""resource_demands"": [ |
| 3, |
| 9, |
| 8 |
| ], |
| ""successor_steps"": [ |
| ""T16"", |
| ""T17"" |
| ] |
| }, |
| { |
| ""step_id"": ""T15"", |
| ""step_duration"": 5, |
| ""resource_demands"": [ |
| 4, |
| 2, |
| 5 |
| ], |
| ""successor_steps"": [ |
| ""T16"" |
| ] |
| }, |
| { |
| ""step_id"": ""T16"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 2, |
| 5, |
| 6 |
| ], |
| ""successor_steps"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""step_id"": ""T17"", |
| ""step_duration"": 2, |
| ""resource_demands"": [ |
| 1, |
| 4, |
| 1 |
| ], |
| ""successor_steps"": [ |
| ""T18"" |
| ] |
| }, |
| { |
| ""step_id"": ""T18"", |
| ""step_duration"": 1, |
| ""resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_steps"": [] |
| } |
| ] |
| } |
|
|
| Also, to keep things tidy when you send the plan back, please follow this JSON layout so I can read it easily: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This is just a tiny sketch of the shape I need: each object in the ""solution"" array is one action in the baking process, with ""task"" holding the task identifier, ""start"" the time it begins, and ""end"" the time it finishes. Think of it like a little form: one line per task, with when it starts and when it ends. |
|
|
| One more thing β the JSON above is only the expected format, not the actual schedule. And please use the exact task identifiers from the instance input, with 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"".","{'nr_tasks': 18, 'nr_resources': 3, 'capacities': [14, 10, 8], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 7, 'demands': [3, 3, 3], 'successors': [4, 5]}, {'duration': 4, 'demands': [5, 3, 4], 'successors': [4, 5]}, {'duration': 1, 'demands': [4, 3, 1], 'successors': [4, 5, 6, 7]}, {'duration': 1, 'demands': [3, 1, 4], 'successors': [8, 9]}, {'duration': 7, 'demands': [7, 10, 4], 'successors': [8]}, {'duration': 4, 'demands': [3, 7, 3], 'successors': [8, 10]}, {'duration': 2, 'demands': [2, 8, 6], 'successors': [9, 10]}, {'duration': 2, 'demands': [4, 1, 3], 'successors': [11, 12]}, {'duration': 3, 'demands': [4, 1, 3], 'successors': []}, {'duration': 5, 'demands': [4, 5, 3], 'successors': [11]}, {'duration': 1, 'demands': [1, 6, 4], 'successors': [13]}, {'duration': 2, 'demands': [3, 1, 2], 'successors': [13]}, {'duration': 10, 'demands': [3, 9, 8], 'successors': [15, 16]}, {'duration': 5, 'demands': [4, 2, 5], 'successors': [15]}, {'duration': 2, 'demands': [2, 5, 6], 'successors': [17]}, {'duration': 2, 'demands': [1, 4, 1], 'successors': [17]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 8, 'duration': 7, 'demands': [3, 3, 3]}, {'task': 2, 'start': 1, 'end': 5, 'duration': 4, 'demands': [5, 3, 4]}, {'task': 3, 'start': 1, 'end': 2, 'duration': 1, 'demands': [4, 3, 1]}, {'task': 4, 'start': 8, 'end': 9, 'duration': 1, 'demands': [3, 1, 4]}, {'task': 5, 'start': 9, 'end': 16, 'duration': 7, 'demands': [7, 10, 4]}, {'task': 6, 'start': 5, 'end': 9, 'duration': 4, 'demands': [3, 7, 3]}, {'task': 7, 'start': 16, 'end': 18, 'duration': 2, 'demands': [2, 8, 6]}, {'task': 8, 'start': 18, 'end': 20, 'duration': 2, 'demands': [4, 1, 3]}, {'task': 9, 'start': 23, 'end': 26, 'duration': 3, 'demands': [4, 1, 3]}, {'task': 10, 'start': 20, 'end': 25, 'duration': 5, 'demands': [4, 5, 3]}, {'task': 11, 'start': 25, 'end': 26, 'duration': 1, 'demands': [1, 6, 4]}, {'task': 12, 'start': 23, 'end': 25, 'duration': 2, 'demands': [3, 1, 2]}, {'task': 13, 'start': 26, 'end': 36, 'duration': 10, 'demands': [3, 9, 8]}, {'task': 14, 'start': 18, 'end': 23, 'duration': 5, 'demands': [4, 2, 5]}, {'task': 15, 'start': 36, 'end': 38, 'duration': 2, 'demands': [2, 5, 6]}, {'task': 16, 'start': 36, 'end': 38, 'duration': 2, 'demands': [1, 4, 1]}, {'task': 17, 'start': 38, 'end': 39, 'duration': 1, 'demands': [0, 0, 0]}]",39.0,"{'problem_type': 'RCPSP', 'nr_tasks': 18, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 14}, {'resource_id': 2, 'capacity': 10}, {'resource_id': 3, 'capacity': 8}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 7, 'demands': [3, 3, 3], 'successors': ['T5', 'T6']}, {'task_id': 'T3', 'duration': 4, 'demands': [5, 3, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T4', 'duration': 1, 'demands': [4, 3, 1], 'successors': ['T5', 'T6', 'T7', 'T8']}, {'task_id': 'T5', 'duration': 1, 'demands': [3, 1, 4], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 7, 'demands': [7, 10, 4], 'successors': ['T9']}, {'task_id': 'T7', 'duration': 4, 'demands': [3, 7, 3], 'successors': ['T9', 'T11']}, {'task_id': 'T8', 'duration': 2, 'demands': [2, 8, 6], 'successors': ['T10', 'T11']}, {'task_id': 'T9', 'duration': 2, 'demands': [4, 1, 3], 'successors': ['T12', 'T13']}, {'task_id': 'T10', 'duration': 3, 'demands': [4, 1, 3], 'successors': []}, {'task_id': 'T11', 'duration': 5, 'demands': [4, 5, 3], 'successors': ['T12']}, {'task_id': 'T12', 'duration': 1, 'demands': [1, 6, 4], 'successors': ['T14']}, {'task_id': 'T13', 'duration': 2, 'demands': [3, 1, 2], 'successors': ['T14']}, {'task_id': 'T14', 'duration': 10, 'demands': [3, 9, 8], 'successors': ['T16', 'T17']}, {'task_id': 'T15', 'duration': 5, 'demands': [4, 2, 5], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 2, 'demands': [2, 5, 6], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 2, 'demands': [1, 4, 1], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 8, 'duration': 7, 'demands': [3, 3, 3]}, {'task': 'T3', 'start': 1, 'end': 5, 'duration': 4, 'demands': [5, 3, 4]}, {'task': 'T4', 'start': 1, 'end': 2, 'duration': 1, 'demands': [4, 3, 1]}, {'task': 'T5', 'start': 8, 'end': 9, 'duration': 1, 'demands': [3, 1, 4]}, {'task': 'T6', 'start': 9, 'end': 16, 'duration': 7, 'demands': [7, 10, 4]}, {'task': 'T7', 'start': 5, 'end': 9, 'duration': 4, 'demands': [3, 7, 3]}, {'task': 'T8', 'start': 16, 'end': 18, 'duration': 2, 'demands': [2, 8, 6]}, {'task': 'T9', 'start': 18, 'end': 20, 'duration': 2, 'demands': [4, 1, 3]}, {'task': 'T10', 'start': 23, 'end': 26, 'duration': 3, 'demands': [4, 1, 3]}, {'task': 'T11', 'start': 20, 'end': 25, 'duration': 5, 'demands': [4, 5, 3]}, {'task': 'T12', 'start': 25, 'end': 26, 'duration': 1, 'demands': [1, 6, 4]}, {'task': 'T13', 'start': 23, 'end': 25, 'duration': 2, 'demands': [3, 1, 2]}, {'task': 'T14', 'start': 26, 'end': 36, 'duration': 10, 'demands': [3, 9, 8]}, {'task': 'T15', 'start': 18, 'end': 23, 'duration': 5, 'demands': [4, 2, 5]}, {'task': 'T16', 'start': 36, 'end': 38, 'duration': 2, 'demands': [2, 5, 6]}, {'task': 'T17', 'start': 36, 'end': 38, 'duration': 2, 'demands': [1, 4, 1]}, {'task': 'T18', 'start': 38, 'end': 39, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| Details: 21 tasks, 3 resource types, daily capacities . |
| T1 runs for 1 days, consumes 0, 0, 0 team-hours per day while active, and must finish before T2, T3, T4 start. |
| T2 runs for 1 days, consumes 2, 8, 4 team-hours per day while active, and must finish before T5, T7 start. |
| T3 runs for 1 days, consumes 5, 6, 2 team-hours per day while active, and must finish before T6, T8 start. |
| T4 runs for 2 days, consumes 7, 2, 3 team-hours per day while active, and must finish before T6, T7 start. |
| T5 runs for 4 days, consumes 5, 1, 7 team-hours per day while active, and must finish before T10 start. |
| T6 runs for 6 days, consumes 4, 9, 7 team-hours per day while active, and must finish before T9, T10 start. |
| T7 runs for 9 days, consumes 4, 8, 1 team-hours per day while active, and must finish before T9 start. |
| T8 runs for 6 days, consumes 3, 8, 5 team-hours per day while active, and must finish before T9, T10 start. |
| T9 runs for 2 days, consumes 2, 4, 6 team-hours per day while active, and must finish before T11 start. |
| T10 runs for 4 days, consumes 5, 2, 4 team-hours per day while active, and must finish before T11, T12 start. |
| T11 runs for 4 days, consumes 2, 2, 4 team-hours per day while active, and must finish before T14 start. |
| T12 runs for 3 days, consumes 5, 9, 6 team-hours per day while active, and must finish before T13 start. |
| T13 runs for 1 days, consumes 4, 3, 4 team-hours per day while active, and must finish before T15 start. |
| T14 runs for 5 days, consumes 9, 5, 4 team-hours per day while active, and must finish before T17 start. |
| T15 runs for 1 days, consumes 1, 11, 4 team-hours per day while active, and must finish before T19 start. |
| T16 runs for 2 days, consumes 6, 2, 2 team-hours per day while active, and must finish before T19 start. |
| T17 runs for 5 days, consumes 1, 0, 5 team-hours per day while active, and must finish before T19 start. |
| T18 runs for 3 days, consumes 1, 3, 1 team-hours per day while active, and must finish before T19 start. |
| T19 runs for 10 days, consumes 0, 2, 4 team-hours per day while active, and must finish before none start. |
| T20 runs for 3 days, consumes 2, 3, 2 team-hours per day while active, and must finish before T21 start. |
| T21 runs for 1 days, consumes 0, 0, 0 team-hours per day while active, and must finish before none start. |
| The objective is to minimize the deployment finish time while respecting the daily capacities . |
|
|
| Also, when you send back the schedule, please use a simple JSON layout like this so it's easy to parse: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This is just a quick sketch of the shape I expect: ""solution"" is a list of task entries; each entry names the task (the exact task identifier from the instance), and gives the start and end times for that task. Think of it like filling out a little form for each job: which job, when it starts, and when it finishes. The block above is only the expected format β not the actual schedule. |
| |
| Please make sure to use the exact identifiers from the instance input β don't rename tasks 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β.""","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [15, 11, 10], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 1, 'demands': [2, 8, 4], 'successors': [4, 6]}, {'duration': 1, 'demands': [5, 6, 2], 'successors': [5, 7]}, {'duration': 2, 'demands': [7, 2, 3], 'successors': [5, 6]}, {'duration': 4, 'demands': [5, 1, 7], 'successors': [9]}, {'duration': 6, 'demands': [4, 9, 7], 'successors': [8, 9]}, {'duration': 9, 'demands': [4, 8, 1], 'successors': [8]}, {'duration': 6, 'demands': [3, 8, 5], 'successors': [8, 9]}, {'duration': 2, 'demands': [2, 4, 6], 'successors': [10]}, {'duration': 4, 'demands': [5, 2, 4], 'successors': [10, 11]}, {'duration': 4, 'demands': [2, 2, 4], 'successors': [13]}, {'duration': 3, 'demands': [5, 9, 6], 'successors': [12]}, {'duration': 1, 'demands': [4, 3, 4], 'successors': [14]}, {'duration': 5, 'demands': [9, 5, 4], 'successors': [16]}, {'duration': 1, 'demands': [1, 11, 4], 'successors': [18]}, {'duration': 2, 'demands': [6, 2, 2], 'successors': [18]}, {'duration': 5, 'demands': [1, 0, 5], 'successors': [18]}, {'duration': 3, 'demands': [1, 3, 1], 'successors': [18]}, {'duration': 10, 'demands': [0, 2, 4], 'successors': []}, {'duration': 3, 'demands': [2, 3, 2], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 14, 'end': 15, 'duration': 1, 'demands': [2, 8, 4]}, {'task': 2, 'start': 1, 'end': 2, 'duration': 1, 'demands': [5, 6, 2]}, {'task': 3, 'start': 3, 'end': 5, 'duration': 2, 'demands': [7, 2, 3]}, {'task': 4, 'start': 15, 'end': 19, 'duration': 4, 'demands': [5, 1, 7]}, {'task': 5, 'start': 8, 'end': 14, 'duration': 6, 'demands': [4, 9, 7]}, {'task': 6, 'start': 15, 'end': 24, 'duration': 9, 'demands': [4, 8, 1]}, {'task': 7, 'start': 2, 'end': 8, 'duration': 6, 'demands': [3, 8, 5]}, {'task': 8, 'start': 24, 'end': 26, 'duration': 2, 'demands': [2, 4, 6]}, {'task': 9, 'start': 19, 'end': 23, 'duration': 4, 'demands': [5, 2, 4]}, {'task': 10, 'start': 26, 'end': 30, 'duration': 4, 'demands': [2, 2, 4]}, {'task': 11, 'start': 26, 'end': 29, 'duration': 3, 'demands': [5, 9, 6]}, {'task': 12, 'start': 29, 'end': 30, 'duration': 1, 'demands': [4, 3, 4]}, {'task': 13, 'start': 30, 'end': 35, 'duration': 5, 'demands': [9, 5, 4]}, {'task': 14, 'start': 35, 'end': 36, 'duration': 1, 'demands': [1, 11, 4]}, {'task': 15, 'start': 0, 'end': 2, 'duration': 2, 'demands': [6, 2, 2]}, {'task': 16, 'start': 35, 'end': 40, 'duration': 5, 'demands': [1, 0, 5]}, {'task': 17, 'start': 0, 'end': 3, 'duration': 3, 'demands': [1, 3, 1]}, {'task': 18, 'start': 40, 'end': 50, 'duration': 10, 'demands': [0, 2, 4]}, {'task': 19, 'start': 5, 'end': 8, 'duration': 3, 'demands': [2, 3, 2]}, {'task': 20, 'start': 48, 'end': 49, 'duration': 1, 'demands': [0, 0, 0]}]",50.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 15}, {'resource_id': 'B', 'capacity': 11}, {'resource_id': 'C', 'capacity': 10}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 1, 'demands': [2, 8, 4], 'successors': ['T5', 'T7']}, {'task_id': 'T3', 'duration': 1, 'demands': [5, 6, 2], 'successors': ['T6', 'T8']}, {'task_id': 'T4', 'duration': 2, 'demands': [7, 2, 3], 'successors': ['T6', 'T7']}, {'task_id': 'T5', 'duration': 4, 'demands': [5, 1, 7], 'successors': ['T10']}, {'task_id': 'T6', 'duration': 6, 'demands': [4, 9, 7], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 9, 'demands': [4, 8, 1], 'successors': ['T9']}, {'task_id': 'T8', 'duration': 6, 'demands': [3, 8, 5], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 2, 'demands': [2, 4, 6], 'successors': ['T11']}, {'task_id': 'T10', 'duration': 4, 'demands': [5, 2, 4], 'successors': ['T11', 'T12']}, {'task_id': 'T11', 'duration': 4, 'demands': [2, 2, 4], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 3, 'demands': [5, 9, 6], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 1, 'demands': [4, 3, 4], 'successors': ['T15']}, {'task_id': 'T14', 'duration': 5, 'demands': [9, 5, 4], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 1, 'demands': [1, 11, 4], 'successors': ['T19']}, {'task_id': 'T16', 'duration': 2, 'demands': [6, 2, 2], 'successors': ['T19']}, {'task_id': 'T17', 'duration': 5, 'demands': [1, 0, 5], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 3, 'demands': [1, 3, 1], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 10, 'demands': [0, 2, 4], 'successors': []}, {'task_id': 'T20', 'duration': 3, 'demands': [2, 3, 2], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 14, 'end': 15, 'duration': 1, 'demands': [2, 8, 4]}, {'task': 'T3', 'start': 1, 'end': 2, 'duration': 1, 'demands': [5, 6, 2]}, {'task': 'T4', 'start': 3, 'end': 5, 'duration': 2, 'demands': [7, 2, 3]}, {'task': 'T5', 'start': 15, 'end': 19, 'duration': 4, 'demands': [5, 1, 7]}, {'task': 'T6', 'start': 8, 'end': 14, 'duration': 6, 'demands': [4, 9, 7]}, {'task': 'T7', 'start': 15, 'end': 24, 'duration': 9, 'demands': [4, 8, 1]}, {'task': 'T8', 'start': 2, 'end': 8, 'duration': 6, 'demands': [3, 8, 5]}, {'task': 'T9', 'start': 24, 'end': 26, 'duration': 2, 'demands': [2, 4, 6]}, {'task': 'T10', 'start': 19, 'end': 23, 'duration': 4, 'demands': [5, 2, 4]}, {'task': 'T11', 'start': 26, 'end': 30, 'duration': 4, 'demands': [2, 2, 4]}, {'task': 'T12', 'start': 26, 'end': 29, 'duration': 3, 'demands': [5, 9, 6]}, {'task': 'T13', 'start': 29, 'end': 30, 'duration': 1, 'demands': [4, 3, 4]}, {'task': 'T14', 'start': 30, 'end': 35, 'duration': 5, 'demands': [9, 5, 4]}, {'task': 'T15', 'start': 35, 'end': 36, 'duration': 1, 'demands': [1, 11, 4]}, {'task': 'T16', 'start': 0, 'end': 2, 'duration': 2, 'demands': [6, 2, 2]}, {'task': 'T17', 'start': 35, 'end': 40, 'duration': 5, 'demands': [1, 0, 5]}, {'task': 'T18', 'start': 0, 'end': 3, 'duration': 3, 'demands': [1, 3, 1]}, {'task': 'T19', 'start': 40, 'end': 50, 'duration': 10, 'demands': [0, 2, 4]}, {'task': 'T20', 'start': 5, 'end': 8, 'duration': 3, 'demands': [2, 3, 2]}, {'task': 'T21', 'start': 48, 'end': 49, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| It lists 17 sequential stages, 3 resource types, and resource capacities . |
|
|
| | resource_id | capacity | |
| |---|---| |
| | 1 | 7 | |
| | 2 | 10 | |
| | 3 | 7 | |
|
|
| | stage_id | stage_duration | resource_demand_vector | successor_stages | |
| |---|---|---|---| |
| | T1 | 1 | 0, 0, 0 | T2, T3 | |
| | T2 | 2 | 2, 2, 2 | T4, T5, T6 | |
| | T3 | 3 | 2, 7, 2 | T8, T11 | |
| | T4 | 8 | 2, 1, 3 | T10, T3 | |
| | T5 | 3 | 7, 2, 2 | T6, T7, T12, T11 | |
| | T6 | 5 | 2, 0, 2 | T11, T14 | |
| | T7 | 3 | 2, 2, 1 | none | |
| | T8 | 4 | 3, 2, 1 | T9 | |
| | T9 | 5 | 1, 3, 2 | T13, T6 | |
| | T10 | 2 | 5, 2, 5 | T11, T8 | |
| | T11 | 3 | 6, 2, 0 | T12, T7 | |
| | T12 | 3 | 7, 4, 1 | T13, T17 | |
| | T13 | 1 | 0, 0, 0 | none | |
| | T14 | 1 | 1, 3, 2 | T17 | |
| | T15 | 7 | 2, 3, 2 | T8 | |
| | T16 | 3 | 0, 0, 0 | T10 | |
| | T17 | 4 | 2, 1, 3 | none | |
|
|
| Respect those 17 stages and the 3 capacities so the solver can minimize the final sign-off time. |
|
|
| Oh, and when you send the schedule back, please use this simple JSON shape so I can read it easily: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| This is just the form I expect: ""solution"" holds a list of the steps, and each step object has a task identifier plus its start and end times (use the same time units as in the instance). Think of it like a little form youβre filling out β one line per step showing when it begins and when it finishes. |
|
|
| This JSON is only a sketch of the expected shape, not the actual answer. The real schedule should list every task from the instance with concrete start and end numbers. |
|
|
| Also, a quick reminder: 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β.","{'nr_tasks': 17, 'nr_resources': 3, 'capacities': [7, 10, 7], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2]}, {'duration': 2, 'demands': [2, 2, 2], 'successors': [3, 4, 5]}, {'duration': 3, 'demands': [2, 7, 2], 'successors': [7, 10]}, {'duration': 8, 'demands': [2, 1, 3], 'successors': [9, 2]}, {'duration': 3, 'demands': [7, 2, 2], 'successors': [5, 6, 11, 10]}, {'duration': 5, 'demands': [2, 0, 2], 'successors': [10, 13]}, {'duration': 3, 'demands': [2, 2, 1], 'successors': []}, {'duration': 4, 'demands': [3, 2, 1], 'successors': [8]}, {'duration': 5, 'demands': [1, 3, 2], 'successors': [12, 5]}, {'duration': 2, 'demands': [5, 2, 5], 'successors': [10, 7]}, {'duration': 3, 'demands': [6, 2, 0], 'successors': [11, 6]}, {'duration': 3, 'demands': [7, 4, 1], 'successors': [12, 16]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}, {'duration': 1, 'demands': [1, 3, 2], 'successors': [16]}, {'duration': 7, 'demands': [2, 3, 2], 'successors': [7]}, {'duration': 3, 'demands': [0, 0, 0], 'successors': [9]}, {'duration': 4, 'demands': [2, 1, 3], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 3, 'duration': 2, 'demands': [2, 2, 2]}, {'task': 2, 'start': 11, 'end': 14, 'duration': 3, 'demands': [2, 7, 2]}, {'task': 3, 'start': 3, 'end': 11, 'duration': 8, 'demands': [2, 1, 3]}, {'task': 4, 'start': 23, 'end': 26, 'duration': 3, 'demands': [7, 2, 2]}, {'task': 5, 'start': 26, 'end': 31, 'duration': 5, 'demands': [2, 0, 2]}, {'task': 6, 'start': 37, 'end': 40, 'duration': 3, 'demands': [2, 2, 1]}, {'task': 7, 'start': 14, 'end': 18, 'duration': 4, 'demands': [3, 2, 1]}, {'task': 8, 'start': 18, 'end': 23, 'duration': 5, 'demands': [1, 3, 2]}, {'task': 9, 'start': 11, 'end': 13, 'duration': 2, 'demands': [5, 2, 5]}, {'task': 10, 'start': 31, 'end': 34, 'duration': 3, 'demands': [6, 2, 0]}, {'task': 11, 'start': 34, 'end': 37, 'duration': 3, 'demands': [7, 4, 1]}, {'task': 12, 'start': 37, 'end': 38, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 13, 'start': 31, 'end': 32, 'duration': 1, 'demands': [1, 3, 2]}, {'task': 14, 'start': 0, 'end': 7, 'duration': 7, 'demands': [2, 3, 2]}, {'task': 15, 'start': 0, 'end': 3, 'duration': 3, 'demands': [0, 0, 0]}, {'task': 16, 'start': 37, 'end': 41, 'duration': 4, 'demands': [2, 1, 3]}]",41.0,"{'problem_type': 'RCPSP', 'nr_tasks': 17, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 7}, {'resource_id': 2, 'capacity': 10}, {'resource_id': 3, 'capacity': 7}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3']}, {'task_id': 'T2', 'duration': 2, 'demands': [2, 2, 2], 'successors': ['T4', 'T5', 'T6']}, {'task_id': 'T3', 'duration': 3, 'demands': [2, 7, 2], 'successors': ['T8', 'T11']}, {'task_id': 'T4', 'duration': 8, 'demands': [2, 1, 3], 'successors': ['T10', 'T3']}, {'task_id': 'T5', 'duration': 3, 'demands': [7, 2, 2], 'successors': ['T6', 'T7', 'T12', 'T11']}, {'task_id': 'T6', 'duration': 5, 'demands': [2, 0, 2], 'successors': ['T11', 'T14']}, {'task_id': 'T7', 'duration': 3, 'demands': [2, 2, 1], 'successors': []}, {'task_id': 'T8', 'duration': 4, 'demands': [3, 2, 1], 'successors': ['T9']}, {'task_id': 'T9', 'duration': 5, 'demands': [1, 3, 2], 'successors': ['T13', 'T6']}, {'task_id': 'T10', 'duration': 2, 'demands': [5, 2, 5], 'successors': ['T11', 'T8']}, {'task_id': 'T11', 'duration': 3, 'demands': [6, 2, 0], 'successors': ['T12', 'T7']}, {'task_id': 'T12', 'duration': 3, 'demands': [7, 4, 1], 'successors': ['T13', 'T17']}, {'task_id': 'T13', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}, {'task_id': 'T14', 'duration': 1, 'demands': [1, 3, 2], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 7, 'demands': [2, 3, 2], 'successors': ['T8']}, {'task_id': 'T16', 'duration': 3, 'demands': [0, 0, 0], 'successors': ['T10']}, {'task_id': 'T17', 'duration': 4, 'demands': [2, 1, 3], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 3, 'duration': 2, 'demands': [2, 2, 2]}, {'task': 'T3', 'start': 11, 'end': 14, 'duration': 3, 'demands': [2, 7, 2]}, {'task': 'T4', 'start': 3, 'end': 11, 'duration': 8, 'demands': [2, 1, 3]}, {'task': 'T5', 'start': 23, 'end': 26, 'duration': 3, 'demands': [7, 2, 2]}, {'task': 'T6', 'start': 26, 'end': 31, 'duration': 5, 'demands': [2, 0, 2]}, {'task': 'T7', 'start': 37, 'end': 40, 'duration': 3, 'demands': [2, 2, 1]}, {'task': 'T8', 'start': 14, 'end': 18, 'duration': 4, 'demands': [3, 2, 1]}, {'task': 'T9', 'start': 18, 'end': 23, 'duration': 5, 'demands': [1, 3, 2]}, {'task': 'T10', 'start': 11, 'end': 13, 'duration': 2, 'demands': [5, 2, 5]}, {'task': 'T11', 'start': 31, 'end': 34, 'duration': 3, 'demands': [6, 2, 0]}, {'task': 'T12', 'start': 34, 'end': 37, 'duration': 3, 'demands': [7, 4, 1]}, {'task': 'T13', 'start': 37, 'end': 38, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T14', 'start': 31, 'end': 32, 'duration': 1, 'demands': [1, 3, 2]}, {'task': 'T15', 'start': 0, 'end': 7, 'duration': 7, 'demands': [2, 3, 2]}, {'task': 'T16', 'start': 0, 'end': 3, 'duration': 3, 'demands': [0, 0, 0]}, {'task': 'T17', 'start': 37, 'end': 41, 'duration': 4, 'demands': [2, 1, 3]}] |
| RCPSP,RCPSP, |
|
|
| # num_production_steps=18 |
| # num_resource_types=3 |
| # resources=0, 1, 2 |
| resource_id,capacity |
| 0,10 |
| 1,12 |
| 2,9 |
| step_id,step_duration,resource_demands,successor_steps |
| T1,1,""0, 0, 0"",""T2, T3, T4"" |
| T2,4,""2, 4, 1"",""T5, T7"" |
| T3,2,""6, 4, 4"",""T6, T8"" |
| T4,1,""8, 3, 4"",""T6, T7"" |
| T5,3,""8, 1, 2"",""T10"" |
| T6,8,""6, 5, 6"",""T9, T10"" |
| T7,8,""5, 6, 3"",""T9"" |
| T8,5,""4, 5, 3"",""T9, T10, T15"" |
| T9,1,""2, 2, 3"",""T11"" |
| T10,2,""2, 2, 3"",""T11, T12"" |
| T11,3,""1, 3, 4"",""T14"" |
| T12,6,""7, 6, 5"",""T13"" |
| T13,1,""5, 4, 5"",""none"" |
| T14,4,""8, 2, 4"",""T16, T18"" |
| T15,1,""5, 2, 1"",""T17"" |
| T16,6,""3, 4, 2"",""T17"" |
| T17,9,""0, 1, 5"",""T18"" |
| T18,1,""0, 0, 0"",""none"" |
|
|
| Also, when you send the schedule back, it helps to follow a tiny JSON layout so it's easy to read β something casual and predictable like this: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This just shows the shape I expect: ""solution"" is a list of task entries, each entry records which task it is and the start and end times for that task. Think of it as a simple form: one line per step, with when it begins and when it wraps up. It's just a sketch of the expected shape, not the actual schedule. |
|
|
| Please make sure every task identifier you use matches exactly what's in the instance input β do not rename identifiers 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β.","{'nr_tasks': 18, 'nr_resources': 3, 'capacities': [10, 12, 9], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 4, 'demands': [2, 4, 1], 'successors': [4, 6]}, {'duration': 2, 'demands': [6, 4, 4], 'successors': [5, 7]}, {'duration': 1, 'demands': [8, 3, 4], 'successors': [5, 6]}, {'duration': 3, 'demands': [8, 1, 2], 'successors': [9]}, {'duration': 8, 'demands': [6, 5, 6], 'successors': [8, 9]}, {'duration': 8, 'demands': [5, 6, 3], 'successors': [8]}, {'duration': 5, 'demands': [4, 5, 3], 'successors': [8, 9, 14]}, {'duration': 1, 'demands': [2, 2, 3], 'successors': [10]}, {'duration': 2, 'demands': [2, 2, 3], 'successors': [10, 11]}, {'duration': 3, 'demands': [1, 3, 4], 'successors': [13]}, {'duration': 6, 'demands': [7, 6, 5], 'successors': [12]}, {'duration': 1, 'demands': [5, 4, 5], 'successors': []}, {'duration': 4, 'demands': [8, 2, 4], 'successors': [15, 17]}, {'duration': 1, 'demands': [5, 2, 1], 'successors': [16]}, {'duration': 6, 'demands': [3, 4, 2], 'successors': [16]}, {'duration': 9, 'demands': [0, 1, 5], 'successors': [17]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 5, 'duration': 4, 'demands': [2, 4, 1]}, {'task': 2, 'start': 1, 'end': 3, 'duration': 2, 'demands': [6, 4, 4]}, {'task': 3, 'start': 3, 'end': 4, 'duration': 1, 'demands': [8, 3, 4]}, {'task': 4, 'start': 12, 'end': 15, 'duration': 3, 'demands': [8, 1, 2]}, {'task': 5, 'start': 4, 'end': 12, 'duration': 8, 'demands': [6, 5, 6]}, {'task': 6, 'start': 15, 'end': 23, 'duration': 8, 'demands': [5, 6, 3]}, {'task': 7, 'start': 5, 'end': 10, 'duration': 5, 'demands': [4, 5, 3]}, {'task': 8, 'start': 23, 'end': 24, 'duration': 1, 'demands': [2, 2, 3]}, {'task': 9, 'start': 15, 'end': 17, 'duration': 2, 'demands': [2, 2, 3]}, {'task': 10, 'start': 24, 'end': 27, 'duration': 3, 'demands': [1, 3, 4]}, {'task': 11, 'start': 31, 'end': 37, 'duration': 6, 'demands': [7, 6, 5]}, {'task': 12, 'start': 46, 'end': 47, 'duration': 1, 'demands': [5, 4, 5]}, {'task': 13, 'start': 27, 'end': 31, 'duration': 4, 'demands': [8, 2, 4]}, {'task': 14, 'start': 17, 'end': 18, 'duration': 1, 'demands': [5, 2, 1]}, {'task': 15, 'start': 31, 'end': 37, 'duration': 6, 'demands': [3, 4, 2]}, {'task': 16, 'start': 37, 'end': 46, 'duration': 9, 'demands': [0, 1, 5]}, {'task': 17, 'start': 46, 'end': 47, 'duration': 1, 'demands': [0, 0, 0]}]",47.0,"{'problem_type': 'RCPSP', 'nr_tasks': 18, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 10}, {'resource_id': 1, 'capacity': 12}, {'resource_id': 2, 'capacity': 9}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 4, 'demands': [2, 4, 1], 'successors': ['T5', 'T7']}, {'task_id': 'T3', 'duration': 2, 'demands': [6, 4, 4], 'successors': ['T6', 'T8']}, {'task_id': 'T4', 'duration': 1, 'demands': [8, 3, 4], 'successors': ['T6', 'T7']}, {'task_id': 'T5', 'duration': 3, 'demands': [8, 1, 2], 'successors': ['T10']}, {'task_id': 'T6', 'duration': 8, 'demands': [6, 5, 6], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 8, 'demands': [5, 6, 3], 'successors': ['T9']}, {'task_id': 'T8', 'duration': 5, 'demands': [4, 5, 3], 'successors': ['T9', 'T10', 'T15']}, {'task_id': 'T9', 'duration': 1, 'demands': [2, 2, 3], 'successors': ['T11']}, {'task_id': 'T10', 'duration': 2, 'demands': [2, 2, 3], 'successors': ['T11', 'T12']}, {'task_id': 'T11', 'duration': 3, 'demands': [1, 3, 4], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 6, 'demands': [7, 6, 5], 'successors': ['T13']}, {'task_id': 'T13', 'duration': 1, 'demands': [5, 4, 5], 'successors': []}, {'task_id': 'T14', 'duration': 4, 'demands': [8, 2, 4], 'successors': ['T16', 'T18']}, {'task_id': 'T15', 'duration': 1, 'demands': [5, 2, 1], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 6, 'demands': [3, 4, 2], 'successors': ['T17']}, {'task_id': 'T17', 'duration': 9, 'demands': [0, 1, 5], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 5, 'duration': 4, 'demands': [2, 4, 1]}, {'task': 'T3', 'start': 1, 'end': 3, 'duration': 2, 'demands': [6, 4, 4]}, {'task': 'T4', 'start': 3, 'end': 4, 'duration': 1, 'demands': [8, 3, 4]}, {'task': 'T5', 'start': 12, 'end': 15, 'duration': 3, 'demands': [8, 1, 2]}, {'task': 'T6', 'start': 4, 'end': 12, 'duration': 8, 'demands': [6, 5, 6]}, {'task': 'T7', 'start': 15, 'end': 23, 'duration': 8, 'demands': [5, 6, 3]}, {'task': 'T8', 'start': 5, 'end': 10, 'duration': 5, 'demands': [4, 5, 3]}, {'task': 'T9', 'start': 23, 'end': 24, 'duration': 1, 'demands': [2, 2, 3]}, {'task': 'T10', 'start': 15, 'end': 17, 'duration': 2, 'demands': [2, 2, 3]}, {'task': 'T11', 'start': 24, 'end': 27, 'duration': 3, 'demands': [1, 3, 4]}, {'task': 'T12', 'start': 31, 'end': 37, 'duration': 6, 'demands': [7, 6, 5]}, {'task': 'T13', 'start': 46, 'end': 47, 'duration': 1, 'demands': [5, 4, 5]}, {'task': 'T14', 'start': 27, 'end': 31, 'duration': 4, 'demands': [8, 2, 4]}, {'task': 'T15', 'start': 17, 'end': 18, 'duration': 1, 'demands': [5, 2, 1]}, {'task': 'T16', 'start': 31, 'end': 37, 'duration': 6, 'demands': [3, 4, 2]}, {'task': 'T17', 'start': 37, 'end': 46, 'duration': 9, 'demands': [0, 1, 5]}, {'task': 'T18', 'start': 46, 'end': 47, 'duration': 1, 'demands': [0, 0, 0]}]",41,csv,0 |
| RCPSP,RCPSP,"At the gallery thereβs a little choreography to plan: hang the pieces, tweak the lights, attach labels, let the curator do an inspection, then do the opening run-through. Each of those steps takes a known amount of time and consumes a certain number of installers and lighting rigs while it runs, and some steps canβt start until others finish. The plannerβs job is to pick start times for each step so each one happens once, the available people and equipment arenβt overused at any moment, and the whole setup completes as early as possible β judged by the clock time when the final step finishes. The specifics β durations, available installers/rigs, and who depends on whom β are listed below. |
| |
| Here are the 21 steps, the 3 resource types tracked, and the resource capacities . |
| |
| | resource_id | capacity | |
| |---|---| |
| | 0 | 11 | |
| | 1 | 14 | |
| | 2 | 14 | |
| |
| | step_id | step_duration | resource_demands | following_steps | |
| |---|---|---|---| |
| | T1 | 1 | 0, 0, 0 | T2, T4 | |
| | T2 | 2 | 2, 6, 3 | T5, T8 | |
| | T3 | 6 | 7, 5, 5 | T6, T7 | |
| | T4 | 4 | 6, 4, 3 | T5, T7 | |
| | T5 | 1 | 3, 2, 2 | T9 | |
| | T6 | 7 | 4, 6, 6 | T9, T10 | |
| | T7 | 5 | 2, 4, 2 | T11 | |
| | T8 | 8 | 1, 3, 6 | T10, T11 | |
| | T9 | 4 | 4, 1, 3 | T12 | |
| | T10 | 2 | 5, 2, 6 | T13 | |
| | T11 | 9 | 2, 4, 3 | T13, T14, T15 | |
| | T12 | 4 | 2, 7, 5 | T16 | |
| | T13 | 1 | 4, 4, 1 | T18 | |
| | T14 | 3 | 3, 9, 6 | T16 | |
| | T15 | 4 | 1, 4, 5 | T16, T17 | |
| | T16 | 7 | 4, 7, 4 | T19 | |
| | T17 | 1 | 3, 2, 2 | none | |
| | T18 | 4 | 7, 6, 5 | none | |
| | T19 | 2 | 1, 8, 11 | T21 | |
| | T20 | 11 | 1, 8, 3 | T21 | |
| | T21 | 1 | 0, 0, 0 | none | |
| |
| Schedule start times so each of the 21 steps happens once, the capacities are never exceeded, and the whole setup finishes as early as possible. |
| |
| When youβre ready to hand me the schedule, a simple JSON layout like the one below is perfect β itβs just a tiny form that says which task starts and when it ends. |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of that as a little checklist: ""solution"" is the list of steps (each step is an object), ""task"" is the task identifier from the instance, and ""start"" and ""end"" are when that step begins and finishes (using the same time units as the instance). This block is only a sketch of the shape Iβm expecting, not your actual answer. |
| |
| 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"", or a capital letter followed by digits like ""A1"" or ""X7"".","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [11, 14, 14], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 3]}, {'duration': 2, 'demands': [2, 6, 3], 'successors': [4, 7]}, {'duration': 6, 'demands': [7, 5, 5], 'successors': [5, 6]}, {'duration': 4, 'demands': [6, 4, 3], 'successors': [4, 6]}, {'duration': 1, 'demands': [3, 2, 2], 'successors': [8]}, {'duration': 7, 'demands': [4, 6, 6], 'successors': [8, 9]}, {'duration': 5, 'demands': [2, 4, 2], 'successors': [10]}, {'duration': 8, 'demands': [1, 3, 6], 'successors': [9, 10]}, {'duration': 4, 'demands': [4, 1, 3], 'successors': [11]}, {'duration': 2, 'demands': [5, 2, 6], 'successors': [12]}, {'duration': 9, 'demands': [2, 4, 3], 'successors': [12, 13, 14]}, {'duration': 4, 'demands': [2, 7, 5], 'successors': [15]}, {'duration': 1, 'demands': [4, 4, 1], 'successors': [17]}, {'duration': 3, 'demands': [3, 9, 6], 'successors': [15]}, {'duration': 4, 'demands': [1, 4, 5], 'successors': [15, 16]}, {'duration': 7, 'demands': [4, 7, 4], 'successors': [18]}, {'duration': 1, 'demands': [3, 2, 2], 'successors': []}, {'duration': 4, 'demands': [7, 6, 5], 'successors': []}, {'duration': 2, 'demands': [1, 8, 11], 'successors': [20]}, {'duration': 11, 'demands': [1, 8, 3], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 6, 'end': 8, 'duration': 2, 'demands': [2, 6, 3]}, {'task': 2, 'start': 0, 'end': 6, 'duration': 6, 'demands': [7, 5, 5]}, {'task': 3, 'start': 8, 'end': 12, 'duration': 4, 'demands': [6, 4, 3]}, {'task': 4, 'start': 17, 'end': 18, 'duration': 1, 'demands': [3, 2, 2]}, {'task': 5, 'start': 12, 'end': 19, 'duration': 7, 'demands': [4, 6, 6]}, {'task': 6, 'start': 12, 'end': 17, 'duration': 5, 'demands': [2, 4, 2]}, {'task': 7, 'start': 11, 'end': 19, 'duration': 8, 'demands': [1, 3, 6]}, {'task': 8, 'start': 19, 'end': 23, 'duration': 4, 'demands': [4, 1, 3]}, {'task': 9, 'start': 19, 'end': 21, 'duration': 2, 'demands': [5, 2, 6]}, {'task': 10, 'start': 19, 'end': 28, 'duration': 9, 'demands': [2, 4, 3]}, {'task': 11, 'start': 23, 'end': 27, 'duration': 4, 'demands': [2, 7, 5]}, {'task': 12, 'start': 31, 'end': 32, 'duration': 1, 'demands': [4, 4, 1]}, {'task': 13, 'start': 28, 'end': 31, 'duration': 3, 'demands': [3, 9, 6]}, {'task': 14, 'start': 28, 'end': 32, 'duration': 4, 'demands': [1, 4, 5]}, {'task': 15, 'start': 32, 'end': 39, 'duration': 7, 'demands': [4, 7, 4]}, {'task': 16, 'start': 36, 'end': 37, 'duration': 1, 'demands': [3, 2, 2]}, {'task': 17, 'start': 32, 'end': 36, 'duration': 4, 'demands': [7, 6, 5]}, {'task': 18, 'start': 39, 'end': 41, 'duration': 2, 'demands': [1, 8, 11]}, {'task': 19, 'start': 0, 'end': 11, 'duration': 11, 'demands': [1, 8, 3]}, {'task': 20, 'start': 41, 'end': 42, 'duration': 1, 'demands': [0, 0, 0]}]",42.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': [0, 1, 2], 'resource_capacities': [{'resource_id': 0, 'capacity': 11}, {'resource_id': 1, 'capacity': 14}, {'resource_id': 2, 'capacity': 14}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T4']}, {'task_id': 'T2', 'duration': 2, 'demands': [2, 6, 3], 'successors': ['T5', 'T8']}, {'task_id': 'T3', 'duration': 6, 'demands': [7, 5, 5], 'successors': ['T6', 'T7']}, {'task_id': 'T4', 'duration': 4, 'demands': [6, 4, 3], 'successors': ['T5', 'T7']}, {'task_id': 'T5', 'duration': 1, 'demands': [3, 2, 2], 'successors': ['T9']}, {'task_id': 'T6', 'duration': 7, 'demands': [4, 6, 6], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 5, 'demands': [2, 4, 2], 'successors': ['T11']}, {'task_id': 'T8', 'duration': 8, 'demands': [1, 3, 6], 'successors': ['T10', 'T11']}, {'task_id': 'T9', 'duration': 4, 'demands': [4, 1, 3], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 2, 'demands': [5, 2, 6], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 9, 'demands': [2, 4, 3], 'successors': ['T13', 'T14', 'T15']}, {'task_id': 'T12', 'duration': 4, 'demands': [2, 7, 5], 'successors': ['T16']}, {'task_id': 'T13', 'duration': 1, 'demands': [4, 4, 1], 'successors': ['T18']}, {'task_id': 'T14', 'duration': 3, 'demands': [3, 9, 6], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 4, 'demands': [1, 4, 5], 'successors': ['T16', 'T17']}, {'task_id': 'T16', 'duration': 7, 'demands': [4, 7, 4], 'successors': ['T19']}, {'task_id': 'T17', 'duration': 1, 'demands': [3, 2, 2], 'successors': []}, {'task_id': 'T18', 'duration': 4, 'demands': [7, 6, 5], 'successors': []}, {'task_id': 'T19', 'duration': 2, 'demands': [1, 8, 11], 'successors': ['T21']}, {'task_id': 'T20', 'duration': 11, 'demands': [1, 8, 3], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 6, 'end': 8, 'duration': 2, 'demands': [2, 6, 3]}, {'task': 'T3', 'start': 0, 'end': 6, 'duration': 6, 'demands': [7, 5, 5]}, {'task': 'T4', 'start': 8, 'end': 12, 'duration': 4, 'demands': [6, 4, 3]}, {'task': 'T5', 'start': 17, 'end': 18, 'duration': 1, 'demands': [3, 2, 2]}, {'task': 'T6', 'start': 12, 'end': 19, 'duration': 7, 'demands': [4, 6, 6]}, {'task': 'T7', 'start': 12, 'end': 17, 'duration': 5, 'demands': [2, 4, 2]}, {'task': 'T8', 'start': 11, 'end': 19, 'duration': 8, 'demands': [1, 3, 6]}, {'task': 'T9', 'start': 19, 'end': 23, 'duration': 4, 'demands': [4, 1, 3]}, {'task': 'T10', 'start': 19, 'end': 21, 'duration': 2, 'demands': [5, 2, 6]}, {'task': 'T11', 'start': 19, 'end': 28, 'duration': 9, 'demands': [2, 4, 3]}, {'task': 'T12', 'start': 23, 'end': 27, 'duration': 4, 'demands': [2, 7, 5]}, {'task': 'T13', 'start': 31, 'end': 32, 'duration': 1, 'demands': [4, 4, 1]}, {'task': 'T14', 'start': 28, 'end': 31, 'duration': 3, 'demands': [3, 9, 6]}, {'task': 'T15', 'start': 28, 'end': 32, 'duration': 4, 'demands': [1, 4, 5]}, {'task': 'T16', 'start': 32, 'end': 39, 'duration': 7, 'demands': [4, 7, 4]}, {'task': 'T17', 'start': 36, 'end': 37, 'duration': 1, 'demands': [3, 2, 2]}, {'task': 'T18', 'start': 32, 'end': 36, 'duration': 4, 'demands': [7, 6, 5]}, {'task': 'T19', 'start': 39, 'end': 41, 'duration': 2, 'demands': [1, 8, 11]}, {'task': 'T20', 'start': 0, 'end': 11, 'duration': 11, 'demands': [1, 8, 3]}, {'task': 'T21', 'start': 41, 'end': 42, 'duration': 1, 'demands': [0, 0, 0]}]",42,markdown_table,0 |
| RCPSP,RCPSP,"Many people on the team are involved in a pipeline: scanning, metadata entry, quality checks, and finally releasing the digitized items. Every step takes a fixed time and needs a few scanners or catalogers while itβs happening, and some steps canβt start until others are finished. The decision is about when each step should begin so resources never exceed their limits, no task is skipped or duplicated, and the projectβs over as soon as possible β that βoverβ moment is simply when the final task finishes (look at all end times and pick the latest). The specific timings and capacities are listed below. |
| |
| There are 21 distinct pipeline steps, 3 resource types, and the available capacities for the whole project are . |
| Step T1 runs for 1, consumes 0, 0, 0 while active, and must finish before these downstream steps start: T2, T3, T4. |
| Step T2 runs for 2, consumes 5, 9, 2 while active, and must finish before these downstream steps start: T5, T6. |
| Step T3 runs for 1, consumes 5, 7, 4 while active, and must finish before these downstream steps start: T5, T6. |
| Step T4 runs for 8, consumes 7, 3, 3 while active, and must finish before these downstream steps start: T6, T7, T8. |
| Step T5 runs for 1, consumes 6, 1, 5 while active, and must finish before these downstream steps start: T9, T11. |
| Step T6 runs for 8, consumes 8, 6, 3 while active, and must finish before these downstream steps start: T9, T11. |
| Step T7 runs for 2, consumes 2, 8, 1 while active, and must finish before these downstream steps start: T9. |
| Step T8 runs for 2, consumes 1, 5, 5 while active, and must finish before these downstream steps start: T10, T11. |
| Step T9 runs for 17, consumes 4, 1, 4 while active, and must finish before these downstream steps start: T12. |
| Step T10 runs for 9, consumes 6, 3, 2 while active, and must finish before these downstream steps start: T13, T15. |
| Step T11 runs for 1, consumes 2, 2, 2 while active, and must finish before these downstream steps start: T14. |
| Step T12 runs for 2, consumes 1, 4, 5 while active, and must finish before these downstream steps start: T18. |
| Step T13 runs for 3, consumes 1, 2, 2 while active, and must finish before these downstream steps start: none. |
| Step T14 runs for 3, consumes 7, 3, 4 while active, and must finish before these downstream steps start: T17. |
| Step T15 runs for 3, consumes 1, 4, 3 while active, and must finish before these downstream steps start: T16. |
| Step T16 runs for 4, consumes 6, 5, 3 while active, and must finish before these downstream steps start: T19, T20. |
| Step T17 runs for 3, consumes 3, 3, 5 while active, and must finish before these downstream steps start: T19. |
| Step T18 runs for 12, consumes 7, 2, 4 while active, and must finish before these downstream steps start: T19. |
| Step T19 runs for 8, consumes 4, 6, 5 while active, and must finish before these downstream steps start: T21. |
| Step T20 runs for 3, consumes 2, 10, 4 while active, and must finish before these downstream steps start: T21. |
| Step T21 runs for 1, consumes 0, 0, 0 while active, and must finish before these downstream steps start: none. |
| Start times must be chosen so resources never exceed and the project completes when the latest final step finishes. |
| |
| Also, when you send the schedule back, it's easiest if you stick to a tiny JSON shape like this: |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of that as a simple form: ""solution"" holds a list of the steps, each entry names which task it is and the start and end times you picked. It's just an example of the shape I expect, not the actual schedule. |
| |
| 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"".","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [12, 11, 10], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 2, 'demands': [5, 9, 2], 'successors': [4, 5]}, {'duration': 1, 'demands': [5, 7, 4], 'successors': [4, 5]}, {'duration': 8, 'demands': [7, 3, 3], 'successors': [5, 6, 7]}, {'duration': 1, 'demands': [6, 1, 5], 'successors': [8, 10]}, {'duration': 8, 'demands': [8, 6, 3], 'successors': [8, 10]}, {'duration': 2, 'demands': [2, 8, 1], 'successors': [8]}, {'duration': 2, 'demands': [1, 5, 5], 'successors': [9, 10]}, {'duration': 17, 'demands': [4, 1, 4], 'successors': [11]}, {'duration': 9, 'demands': [6, 3, 2], 'successors': [12, 14]}, {'duration': 1, 'demands': [2, 2, 2], 'successors': [13]}, {'duration': 2, 'demands': [1, 4, 5], 'successors': [17]}, {'duration': 3, 'demands': [1, 2, 2], 'successors': []}, {'duration': 3, 'demands': [7, 3, 4], 'successors': [16]}, {'duration': 3, 'demands': [1, 4, 3], 'successors': [15]}, {'duration': 4, 'demands': [6, 5, 3], 'successors': [18, 19]}, {'duration': 3, 'demands': [3, 3, 5], 'successors': [18]}, {'duration': 12, 'demands': [7, 2, 4], 'successors': [18]}, {'duration': 8, 'demands': [4, 6, 5], 'successors': [20]}, {'duration': 3, 'demands': [2, 10, 4], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 9, 'end': 11, 'duration': 2, 'demands': [5, 9, 2]}, {'task': 2, 'start': 1, 'end': 2, 'duration': 1, 'demands': [5, 7, 4]}, {'task': 3, 'start': 1, 'end': 9, 'duration': 8, 'demands': [7, 3, 3]}, {'task': 4, 'start': 21, 'end': 22, 'duration': 1, 'demands': [6, 1, 5]}, {'task': 5, 'start': 11, 'end': 19, 'duration': 8, 'demands': [8, 6, 3]}, {'task': 6, 'start': 19, 'end': 21, 'duration': 2, 'demands': [2, 8, 1]}, {'task': 7, 'start': 11, 'end': 13, 'duration': 2, 'demands': [1, 5, 5]}, {'task': 8, 'start': 22, 'end': 39, 'duration': 17, 'demands': [4, 1, 4]}, {'task': 9, 'start': 19, 'end': 28, 'duration': 9, 'demands': [6, 3, 2]}, {'task': 10, 'start': 22, 'end': 23, 'duration': 1, 'demands': [2, 2, 2]}, {'task': 11, 'start': 39, 'end': 41, 'duration': 2, 'demands': [1, 4, 5]}, {'task': 12, 'start': 28, 'end': 31, 'duration': 3, 'demands': [1, 2, 2]}, {'task': 13, 'start': 38, 'end': 41, 'duration': 3, 'demands': [7, 3, 4]}, {'task': 14, 'start': 28, 'end': 31, 'duration': 3, 'demands': [1, 4, 3]}, {'task': 15, 'start': 31, 'end': 35, 'duration': 4, 'demands': [6, 5, 3]}, {'task': 16, 'start': 41, 'end': 44, 'duration': 3, 'demands': [3, 3, 5]}, {'task': 17, 'start': 41, 'end': 53, 'duration': 12, 'demands': [7, 2, 4]}, {'task': 18, 'start': 53, 'end': 61, 'duration': 8, 'demands': [4, 6, 5]}, {'task': 19, 'start': 35, 'end': 38, 'duration': 3, 'demands': [2, 10, 4]}, {'task': 20, 'start': 61, 'end': 62, 'duration': 1, 'demands': [0, 0, 0]}]",62.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 12}, {'resource_id': 2, 'capacity': 11}, {'resource_id': 3, 'capacity': 10}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 2, 'demands': [5, 9, 2], 'successors': ['T5', 'T6']}, {'task_id': 'T3', 'duration': 1, 'demands': [5, 7, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T4', 'duration': 8, 'demands': [7, 3, 3], 'successors': ['T6', 'T7', 'T8']}, {'task_id': 'T5', 'duration': 1, 'demands': [6, 1, 5], 'successors': ['T9', 'T11']}, {'task_id': 'T6', 'duration': 8, 'demands': [8, 6, 3], 'successors': ['T9', 'T11']}, {'task_id': 'T7', 'duration': 2, 'demands': [2, 8, 1], 'successors': ['T9']}, {'task_id': 'T8', 'duration': 2, 'demands': [1, 5, 5], 'successors': ['T10', 'T11']}, {'task_id': 'T9', 'duration': 17, 'demands': [4, 1, 4], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 9, 'demands': [6, 3, 2], 'successors': ['T13', 'T15']}, {'task_id': 'T11', 'duration': 1, 'demands': [2, 2, 2], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 2, 'demands': [1, 4, 5], 'successors': ['T18']}, {'task_id': 'T13', 'duration': 3, 'demands': [1, 2, 2], 'successors': []}, {'task_id': 'T14', 'duration': 3, 'demands': [7, 3, 4], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 3, 'demands': [1, 4, 3], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 4, 'demands': [6, 5, 3], 'successors': ['T19', 'T20']}, {'task_id': 'T17', 'duration': 3, 'demands': [3, 3, 5], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 12, 'demands': [7, 2, 4], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 8, 'demands': [4, 6, 5], 'successors': ['T21']}, {'task_id': 'T20', 'duration': 3, 'demands': [2, 10, 4], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 9, 'end': 11, 'duration': 2, 'demands': [5, 9, 2]}, {'task': 'T3', 'start': 1, 'end': 2, 'duration': 1, 'demands': [5, 7, 4]}, {'task': 'T4', 'start': 1, 'end': 9, 'duration': 8, 'demands': [7, 3, 3]}, {'task': 'T5', 'start': 21, 'end': 22, 'duration': 1, 'demands': [6, 1, 5]}, {'task': 'T6', 'start': 11, 'end': 19, 'duration': 8, 'demands': [8, 6, 3]}, {'task': 'T7', 'start': 19, 'end': 21, 'duration': 2, 'demands': [2, 8, 1]}, {'task': 'T8', 'start': 11, 'end': 13, 'duration': 2, 'demands': [1, 5, 5]}, {'task': 'T9', 'start': 22, 'end': 39, 'duration': 17, 'demands': [4, 1, 4]}, {'task': 'T10', 'start': 19, 'end': 28, 'duration': 9, 'demands': [6, 3, 2]}, {'task': 'T11', 'start': 22, 'end': 23, 'duration': 1, 'demands': [2, 2, 2]}, {'task': 'T12', 'start': 39, 'end': 41, 'duration': 2, 'demands': [1, 4, 5]}, {'task': 'T13', 'start': 28, 'end': 31, 'duration': 3, 'demands': [1, 2, 2]}, {'task': 'T14', 'start': 38, 'end': 41, 'duration': 3, 'demands': [7, 3, 4]}, {'task': 'T15', 'start': 28, 'end': 31, 'duration': 3, 'demands': [1, 4, 3]}, {'task': 'T16', 'start': 31, 'end': 35, 'duration': 4, 'demands': [6, 5, 3]}, {'task': 'T17', 'start': 41, 'end': 44, 'duration': 3, 'demands': [3, 3, 5]}, {'task': 'T18', 'start': 41, 'end': 53, 'duration': 12, 'demands': [7, 2, 4]}, {'task': 'T19', 'start': 53, 'end': 61, 'duration': 8, 'demands': [4, 6, 5]}, {'task': 'T20', 'start': 35, 'end': 38, 'duration': 3, 'demands': [2, 10, 4]}, {'task': 'T21', 'start': 61, 'end': 62, 'duration': 1, 'demands': [0, 0, 0]}]",43,nl,1 |
| RCPSP,RCPSP,"Weβre looking at a typical maintenance cycle: first a safety walk-through, then ordering parts, followed by replacing worn components, calibrating the gear, and a final verification pass. Each activity lasts a set amount of time and needs inspectors and a limited number of specialized tools while itβs happening, and some activities have to wait for others to finish. The plan is to set the start time for each activity so every item is done once (no skipping or doubling up), we never overbook inspectors or tools at the same time, and the entire cycle completes as early as possible β the finish time being when the last task ends. The exact task times, resource limits, and required order are listed below. |
| |
| We have 21 activities, 3 resource types, and resource capacities . |
| We perform T1 for 1 time units, it requires 0, 0, 0 while running, and it must finish before T2, T3, T4, T16, T17 can start. |
| We perform T2 for 3 time units, it requires 3, 3, 9 while running, and it must finish before T5 can start. |
| We perform T3 for 4 time units, it requires 2, 6, 0 while running, and it must finish before T6, T7, T8 can start. |
| We perform T4 for 3 time units, it requires 2, 3, 2 while running, and it must finish before T9, T10 can start. |
| We perform T5 for 6 time units, it requires 5, 2, 2 while running, and it must finish before none can start. |
| We perform T6 for 1 time units, it requires 5, 2, 8 while running, and it must finish before T11 can start. |
| We perform T7 for 2 time units, it requires 5, 0, 2 while running, and it must finish before T13 can start. |
| We perform T8 for 4 time units, it requires 5, 5, 6 while running, and it must finish before T14, T15 can start. |
| We perform T9 for 5 time units, it requires 3, 9, 4 while running, and it must finish before T21 can start. |
| We perform T10 for 1 time units, it requires 3, 7, 0 while running, and it must finish before T14, T15 can start. |
| We perform T11 for 1 time units, it requires 2, 4, 1 while running, and it must finish before T18 can start. |
| We perform T12 for 10 time units, it requires 10, 2, 3 while running, and it must finish before none can start. |
| We perform T13 for 2 time units, it requires 9, 9, 2 while running, and it must finish before T21 can start. |
| We perform T14 for 5 time units, it requires 7, 2, 4 while running, and it must finish before T21 can start. |
| We perform T15 for 5 time units, it requires 0, 6, 8 while running, and it must finish before T20 can start. |
| We perform T16 for 1 time units, it requires 0, 0, 0 while running, and it must finish before T18 can start. |
| We perform T17 for 1 time units, it requires 0, 0, 0 while running, and it must finish before T20 can start. |
| We perform T18 for 6 time units, it requires 1, 4, 0 while running, and it must finish before none can start. |
| We perform T19 for 3 time units, it requires 6, 3, 3 while running, and it must finish before none can start. |
| We perform T20 for 1 time units, it requires 2, 1, 2 while running, and it must finish before T21 can start. |
| We perform T21 for 1 time units, it requires 0, 0, 0 while running, and it must finish before none can start. |
| We will set start times so all 21 activities are done once and the cycle finishes as early as possible without exceeding the listed capacities . |
| |
| You can just hand the schedule back in a tiny JSON snippet like this β one ""solution"" array with an entry per activity: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This shows the shape I expect: each object in the solution list is one activity, ""task"" is that activity's identifier, ""start"" is when it begins, and ""end"" is when it finishes. Think of it like a simple to-do list with start/end times β nothing fancy. This is just a sketch of the expected format, not the actual schedule. |
|
|
| 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β.","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [11, 14, 9], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3, 15, 16]}, {'duration': 3, 'demands': [3, 3, 9], 'successors': [4]}, {'duration': 4, 'demands': [2, 6, 0], 'successors': [5, 6, 7]}, {'duration': 3, 'demands': [2, 3, 2], 'successors': [8, 9]}, {'duration': 6, 'demands': [5, 2, 2], 'successors': []}, {'duration': 1, 'demands': [5, 2, 8], 'successors': [10]}, {'duration': 2, 'demands': [5, 0, 2], 'successors': [12]}, {'duration': 4, 'demands': [5, 5, 6], 'successors': [13, 14]}, {'duration': 5, 'demands': [3, 9, 4], 'successors': [20]}, {'duration': 1, 'demands': [3, 7, 0], 'successors': [13, 14]}, {'duration': 1, 'demands': [2, 4, 1], 'successors': [17]}, {'duration': 10, 'demands': [10, 2, 3], 'successors': []}, {'duration': 2, 'demands': [9, 9, 2], 'successors': [20]}, {'duration': 5, 'demands': [7, 2, 4], 'successors': [20]}, {'duration': 5, 'demands': [0, 6, 8], 'successors': [19]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': [17]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': [19]}, {'duration': 6, 'demands': [1, 4, 0], 'successors': []}, {'duration': 3, 'demands': [6, 3, 3], 'successors': []}, {'duration': 1, 'demands': [2, 1, 2], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 4, 'duration': 3, 'demands': [3, 3, 9]}, {'task': 2, 'start': 1, 'end': 5, 'duration': 4, 'demands': [2, 6, 0]}, {'task': 3, 'start': 4, 'end': 7, 'duration': 3, 'demands': [2, 3, 2]}, {'task': 4, 'start': 4, 'end': 10, 'duration': 6, 'demands': [5, 2, 2]}, {'task': 5, 'start': 13, 'end': 14, 'duration': 1, 'demands': [5, 2, 8]}, {'task': 6, 'start': 11, 'end': 13, 'duration': 2, 'demands': [5, 0, 2]}, {'task': 7, 'start': 7, 'end': 11, 'duration': 4, 'demands': [5, 5, 6]}, {'task': 8, 'start': 21, 'end': 26, 'duration': 5, 'demands': [3, 9, 4]}, {'task': 9, 'start': 13, 'end': 14, 'duration': 1, 'demands': [3, 7, 0]}, {'task': 10, 'start': 14, 'end': 15, 'duration': 1, 'demands': [2, 4, 1]}, {'task': 11, 'start': 26, 'end': 36, 'duration': 10, 'demands': [10, 2, 3]}, {'task': 12, 'start': 19, 'end': 21, 'duration': 2, 'demands': [9, 9, 2]}, {'task': 13, 'start': 21, 'end': 26, 'duration': 5, 'demands': [7, 2, 4]}, {'task': 14, 'start': 14, 'end': 19, 'duration': 5, 'demands': [0, 6, 8]}, {'task': 15, 'start': 6, 'end': 7, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 16, 'start': 13, 'end': 14, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 17, 'start': 26, 'end': 32, 'duration': 6, 'demands': [1, 4, 0]}, {'task': 18, 'start': 10, 'end': 13, 'duration': 3, 'demands': [6, 3, 3]}, {'task': 19, 'start': 19, 'end': 20, 'duration': 1, 'demands': [2, 1, 2]}, {'task': 20, 'start': 26, 'end': 27, 'duration': 1, 'demands': [0, 0, 0]}]",36.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 11}, {'resource_id': 2, 'capacity': 14}, {'resource_id': 3, 'capacity': 9}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4', 'T16', 'T17']}, {'task_id': 'T2', 'duration': 3, 'demands': [3, 3, 9], 'successors': ['T5']}, {'task_id': 'T3', 'duration': 4, 'demands': [2, 6, 0], 'successors': ['T6', 'T7', 'T8']}, {'task_id': 'T4', 'duration': 3, 'demands': [2, 3, 2], 'successors': ['T9', 'T10']}, {'task_id': 'T5', 'duration': 6, 'demands': [5, 2, 2], 'successors': []}, {'task_id': 'T6', 'duration': 1, 'demands': [5, 2, 8], 'successors': ['T11']}, {'task_id': 'T7', 'duration': 2, 'demands': [5, 0, 2], 'successors': ['T13']}, {'task_id': 'T8', 'duration': 4, 'demands': [5, 5, 6], 'successors': ['T14', 'T15']}, {'task_id': 'T9', 'duration': 5, 'demands': [3, 9, 4], 'successors': ['T21']}, {'task_id': 'T10', 'duration': 1, 'demands': [3, 7, 0], 'successors': ['T14', 'T15']}, {'task_id': 'T11', 'duration': 1, 'demands': [2, 4, 1], 'successors': ['T18']}, {'task_id': 'T12', 'duration': 10, 'demands': [10, 2, 3], 'successors': []}, {'task_id': 'T13', 'duration': 2, 'demands': [9, 9, 2], 'successors': ['T21']}, {'task_id': 'T14', 'duration': 5, 'demands': [7, 2, 4], 'successors': ['T21']}, {'task_id': 'T15', 'duration': 5, 'demands': [0, 6, 8], 'successors': ['T20']}, {'task_id': 'T16', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T20']}, {'task_id': 'T18', 'duration': 6, 'demands': [1, 4, 0], 'successors': []}, {'task_id': 'T19', 'duration': 3, 'demands': [6, 3, 3], 'successors': []}, {'task_id': 'T20', 'duration': 1, 'demands': [2, 1, 2], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 4, 'duration': 3, 'demands': [3, 3, 9]}, {'task': 'T3', 'start': 1, 'end': 5, 'duration': 4, 'demands': [2, 6, 0]}, {'task': 'T4', 'start': 4, 'end': 7, 'duration': 3, 'demands': [2, 3, 2]}, {'task': 'T5', 'start': 4, 'end': 10, 'duration': 6, 'demands': [5, 2, 2]}, {'task': 'T6', 'start': 13, 'end': 14, 'duration': 1, 'demands': [5, 2, 8]}, {'task': 'T7', 'start': 11, 'end': 13, 'duration': 2, 'demands': [5, 0, 2]}, {'task': 'T8', 'start': 7, 'end': 11, 'duration': 4, 'demands': [5, 5, 6]}, {'task': 'T9', 'start': 21, 'end': 26, 'duration': 5, 'demands': [3, 9, 4]}, {'task': 'T10', 'start': 13, 'end': 14, 'duration': 1, 'demands': [3, 7, 0]}, {'task': 'T11', 'start': 14, 'end': 15, 'duration': 1, 'demands': [2, 4, 1]}, {'task': 'T12', 'start': 26, 'end': 36, 'duration': 10, 'demands': [10, 2, 3]}, {'task': 'T13', 'start': 19, 'end': 21, 'duration': 2, 'demands': [9, 9, 2]}, {'task': 'T14', 'start': 21, 'end': 26, 'duration': 5, 'demands': [7, 2, 4]}, {'task': 'T15', 'start': 14, 'end': 19, 'duration': 5, 'demands': [0, 6, 8]}, {'task': 'T16', 'start': 6, 'end': 7, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T17', 'start': 13, 'end': 14, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T18', 'start': 26, 'end': 32, 'duration': 6, 'demands': [1, 4, 0]}, {'task': 'T19', 'start': 10, 'end': 13, 'duration': 3, 'demands': [6, 3, 3]}, {'task': 'T20', 'start': 19, 'end': 20, 'duration': 1, 'demands': [2, 1, 2]}, {'task': 'T21', 'start': 26, 'end': 27, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| # total_steps=20 |
| # resource_types=3 |
| # resources=A, B, C |
| resource_id,capacity |
| A,9 |
| B,11 |
| C,12 |
| step_id,step_duration,step_demands,successor_steps |
| T1,1,""0, 0, 0"",""T3, T4"" |
| T2,3,""4, 8, 4"",""T6, T7, T8"" |
| T3,4,""9, 2, 3"",""T5, T6"" |
| T4,3,""6, 3, 3"",""T5, T6"" |
| T5,5,""3, 2, 6"",""T9, T11"" |
| T6,10,""5, 8, 5"",""T9, T11"" |
| T7,5,""6, 6, 4"",""T9, T10"" |
| T8,10,""3, 5, 6"",""T9, T10"" |
| T9,2,""5, 3, 3"",""T12"" |
| T10,3,""2, 2, 4"",""T14"" |
| T11,6,""3, 2, 3"",""T12, T13"" |
| T12,6,""2, 7, 7"",""T16"" |
| T13,7,""5, 9, 7"",""T15"" |
| T14,6,""1, 9, 5"",""T16"" |
| T15,2,""3, 5, 8"",""T18, T19"" |
| T16,1,""3, 3, 3"",""T18"" |
| T17,1,""9, 5, 2"",""T18"" |
| T18,4,""4, 6, 12"",""T20"" |
| T19,6,""2, 11, 1"",""T20"" |
| T20,1,""0, 0, 0"",""none"" |
|
|
| When you send the final schedule back, just use a simple JSON shape like this β easy to read and copy-paste. |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Here ""solution"" is a list of the scheduled steps. Each item says which task (that task id goes in task), and the numeric start and end times for that task. Think of it like filling out a little form for each step: which step, when it starts, when it finishes. This block is just a sketch of the shape I need, not the actual schedule. |
|
|
| 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β, or a capital letter followed by digits like βA1β or βX7β.","{'nr_tasks': 20, 'nr_resources': 3, 'capacities': [9, 11, 12], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [2, 3]}, {'duration': 3, 'demands': [4, 8, 4], 'successors': [5, 6, 7]}, {'duration': 4, 'demands': [9, 2, 3], 'successors': [4, 5]}, {'duration': 3, 'demands': [6, 3, 3], 'successors': [4, 5]}, {'duration': 5, 'demands': [3, 2, 6], 'successors': [8, 10]}, {'duration': 10, 'demands': [5, 8, 5], 'successors': [8, 10]}, {'duration': 5, 'demands': [6, 6, 4], 'successors': [8, 9]}, {'duration': 10, 'demands': [3, 5, 6], 'successors': [8, 9]}, {'duration': 2, 'demands': [5, 3, 3], 'successors': [11]}, {'duration': 3, 'demands': [2, 2, 4], 'successors': [13]}, {'duration': 6, 'demands': [3, 2, 3], 'successors': [11, 12]}, {'duration': 6, 'demands': [2, 7, 7], 'successors': [15]}, {'duration': 7, 'demands': [5, 9, 7], 'successors': [14]}, {'duration': 6, 'demands': [1, 9, 5], 'successors': [15]}, {'duration': 2, 'demands': [3, 5, 8], 'successors': [17, 18]}, {'duration': 1, 'demands': [3, 3, 3], 'successors': [17]}, {'duration': 1, 'demands': [9, 5, 2], 'successors': [17]}, {'duration': 4, 'demands': [4, 6, 12], 'successors': [19]}, {'duration': 6, 'demands': [2, 11, 1], 'successors': [19]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 0, 'end': 3, 'duration': 3, 'demands': [4, 8, 4]}, {'task': 2, 'start': 3, 'end': 7, 'duration': 4, 'demands': [9, 2, 3]}, {'task': 3, 'start': 7, 'end': 10, 'duration': 3, 'demands': [6, 3, 3]}, {'task': 4, 'start': 15, 'end': 20, 'duration': 5, 'demands': [3, 2, 6]}, {'task': 5, 'start': 17, 'end': 27, 'duration': 10, 'demands': [5, 8, 5]}, {'task': 6, 'start': 10, 'end': 15, 'duration': 5, 'demands': [6, 6, 4]}, {'task': 7, 'start': 7, 'end': 17, 'duration': 10, 'demands': [3, 5, 6]}, {'task': 8, 'start': 40, 'end': 42, 'duration': 2, 'demands': [5, 3, 3]}, {'task': 9, 'start': 20, 'end': 23, 'duration': 3, 'demands': [2, 2, 4]}, {'task': 10, 'start': 27, 'end': 33, 'duration': 6, 'demands': [3, 2, 3]}, {'task': 11, 'start': 42, 'end': 48, 'duration': 6, 'demands': [2, 7, 7]}, {'task': 12, 'start': 33, 'end': 40, 'duration': 7, 'demands': [5, 9, 7]}, {'task': 13, 'start': 27, 'end': 33, 'duration': 6, 'demands': [1, 9, 5]}, {'task': 14, 'start': 40, 'end': 42, 'duration': 2, 'demands': [3, 5, 8]}, {'task': 15, 'start': 54, 'end': 55, 'duration': 1, 'demands': [3, 3, 3]}, {'task': 16, 'start': 55, 'end': 56, 'duration': 1, 'demands': [9, 5, 2]}, {'task': 17, 'start': 56, 'end': 60, 'duration': 4, 'demands': [4, 6, 12]}, {'task': 18, 'start': 48, 'end': 54, 'duration': 6, 'demands': [2, 11, 1]}, {'task': 19, 'start': 60, 'end': 61, 'duration': 1, 'demands': [0, 0, 0]}]",61.0,"{'problem_type': 'RCPSP', 'nr_tasks': 20, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 9}, {'resource_id': 'B', 'capacity': 11}, {'resource_id': 'C', 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T3', 'T4']}, {'task_id': 'T2', 'duration': 3, 'demands': [4, 8, 4], 'successors': ['T6', 'T7', 'T8']}, {'task_id': 'T3', 'duration': 4, 'demands': [9, 2, 3], 'successors': ['T5', 'T6']}, {'task_id': 'T4', 'duration': 3, 'demands': [6, 3, 3], 'successors': ['T5', 'T6']}, {'task_id': 'T5', 'duration': 5, 'demands': [3, 2, 6], 'successors': ['T9', 'T11']}, {'task_id': 'T6', 'duration': 10, 'demands': [5, 8, 5], 'successors': ['T9', 'T11']}, {'task_id': 'T7', 'duration': 5, 'demands': [6, 6, 4], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 10, 'demands': [3, 5, 6], 'successors': ['T9', 'T10']}, {'task_id': 'T9', 'duration': 2, 'demands': [5, 3, 3], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 3, 'demands': [2, 2, 4], 'successors': ['T14']}, {'task_id': 'T11', 'duration': 6, 'demands': [3, 2, 3], 'successors': ['T12', 'T13']}, {'task_id': 'T12', 'duration': 6, 'demands': [2, 7, 7], 'successors': ['T16']}, {'task_id': 'T13', 'duration': 7, 'demands': [5, 9, 7], 'successors': ['T15']}, {'task_id': 'T14', 'duration': 6, 'demands': [1, 9, 5], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 2, 'demands': [3, 5, 8], 'successors': ['T18', 'T19']}, {'task_id': 'T16', 'duration': 1, 'demands': [3, 3, 3], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 1, 'demands': [9, 5, 2], 'successors': ['T18']}, {'task_id': 'T18', 'duration': 4, 'demands': [4, 6, 12], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 6, 'demands': [2, 11, 1], 'successors': ['T20']}, {'task_id': 'T20', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 0, 'end': 3, 'duration': 3, 'demands': [4, 8, 4]}, {'task': 'T3', 'start': 3, 'end': 7, 'duration': 4, 'demands': [9, 2, 3]}, {'task': 'T4', 'start': 7, 'end': 10, 'duration': 3, 'demands': [6, 3, 3]}, {'task': 'T5', 'start': 15, 'end': 20, 'duration': 5, 'demands': [3, 2, 6]}, {'task': 'T6', 'start': 17, 'end': 27, 'duration': 10, 'demands': [5, 8, 5]}, {'task': 'T7', 'start': 10, 'end': 15, 'duration': 5, 'demands': [6, 6, 4]}, {'task': 'T8', 'start': 7, 'end': 17, 'duration': 10, 'demands': [3, 5, 6]}, {'task': 'T9', 'start': 40, 'end': 42, 'duration': 2, 'demands': [5, 3, 3]}, {'task': 'T10', 'start': 20, 'end': 23, 'duration': 3, 'demands': [2, 2, 4]}, {'task': 'T11', 'start': 27, 'end': 33, 'duration': 6, 'demands': [3, 2, 3]}, {'task': 'T12', 'start': 42, 'end': 48, 'duration': 6, 'demands': [2, 7, 7]}, {'task': 'T13', 'start': 33, 'end': 40, 'duration': 7, 'demands': [5, 9, 7]}, {'task': 'T14', 'start': 27, 'end': 33, 'duration': 6, 'demands': [1, 9, 5]}, {'task': 'T15', 'start': 40, 'end': 42, 'duration': 2, 'demands': [3, 5, 8]}, {'task': 'T16', 'start': 54, 'end': 55, 'duration': 1, 'demands': [3, 3, 3]}, {'task': 'T17', 'start': 55, 'end': 56, 'duration': 1, 'demands': [9, 5, 2]}, {'task': 'T18', 'start': 56, 'end': 60, 'duration': 4, 'demands': [4, 6, 12]}, {'task': 'T19', 'start': 48, 'end': 54, 'duration': 6, 'demands': [2, 11, 1]}, {'task': 'T20', 'start': 60, 'end': 61, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| Here are those inputs: 17 activities, 3 resource types, capacities . |
|
|
| | resource_id | capacity | |
| |---|---| |
| | 1 | 12 | |
| | 2 | 14 | |
| | 3 | 11 | |
|
|
| | activity_id | activity_duration | resource_demands | successor_activities | |
| |---|---|---|---| |
| | T1 | 7 | 10, 6, 4 | T3, T6, T11 | |
| | T2 | 6 | 5, 2, 2 | T3, T4, T10 | |
| | T3 | 1 | 7, 1, 3 | T7, T10 | |
| | T4 | 4 | 6, 4, 3 | T7, T8 | |
| | T5 | 2 | 3, 10, 3 | T7, T8 | |
| | T6 | 2 | 3, 7, 6 | T9, T10 | |
| | T7 | 4 | 4, 1, 1 | T11, T12 | |
| | T8 | 3 | 2, 4, 6 | T11, T13 | |
| | T9 | 3 | 5, 2, 3 | T12 | |
| | T10 | 4 | 4, 1, 5 | T11 | |
| | T11 | 3 | 2, 6, 5 | T15 | |
| | T12 | 3 | 3, 1, 2 | T14, T11, T15 | |
| | T13 | 1 | 1, 6, 3 | T14, T12 | |
| | T14 | 2 | 4, 3, 8 | T16, T17 | |
| | T15 | 13 | 4, 7, 5 | T16 | |
| | T16 | 1 | 2, 11, 3 | none | |
| | T17 | 4 | 0, 1, 3 | none | |
|
|
| We must schedule all 17 activities without exceeding capacities so the final finishing time is as small as possible. |
|
|
| Oh, and when you send the schedule back, please use this simple JSON shape so it's easy to parse and compare: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This just shows a list of scheduled activities: each entry assigns a task its start time and end time. Think of ""task"" as the exact activity label from the plan, and ""start""/""end"" as the times (in the same units used in the instance) when that activity begins and finishes. The block above is just a sketch of the expected shape β don't treat it as the actual schedule. |
|
|
| Please make sure you use the exact task identifiers given 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β.","{'nr_tasks': 17, 'nr_resources': 3, 'capacities': [12, 14, 11], 'tasks': [{'duration': 7, 'demands': [10, 6, 4], 'successors': [2, 5, 10]}, {'duration': 6, 'demands': [5, 2, 2], 'successors': [2, 3, 9]}, {'duration': 1, 'demands': [7, 1, 3], 'successors': [6, 9]}, {'duration': 4, 'demands': [6, 4, 3], 'successors': [6, 7]}, {'duration': 2, 'demands': [3, 10, 3], 'successors': [6, 7]}, {'duration': 2, 'demands': [3, 7, 6], 'successors': [8, 9]}, {'duration': 4, 'demands': [4, 1, 1], 'successors': [10, 11]}, {'duration': 3, 'demands': [2, 4, 6], 'successors': [10, 12]}, {'duration': 3, 'demands': [5, 2, 3], 'successors': [11]}, {'duration': 4, 'demands': [4, 1, 5], 'successors': [10]}, {'duration': 3, 'demands': [2, 6, 5], 'successors': [14]}, {'duration': 3, 'demands': [3, 1, 2], 'successors': [13, 10, 14]}, {'duration': 1, 'demands': [1, 6, 3], 'successors': [13, 11]}, {'duration': 2, 'demands': [4, 3, 8], 'successors': [15, 16]}, {'duration': 13, 'demands': [4, 7, 5], 'successors': [15]}, {'duration': 1, 'demands': [2, 11, 3], 'successors': []}, {'duration': 4, 'demands': [0, 1, 3], 'successors': []}]}","[{'task': 0, 'start': 6, 'end': 13, 'duration': 7, 'demands': [10, 6, 4]}, {'task': 1, 'start': 0, 'end': 6, 'duration': 6, 'demands': [5, 2, 2]}, {'task': 2, 'start': 17, 'end': 18, 'duration': 1, 'demands': [7, 1, 3]}, {'task': 3, 'start': 13, 'end': 17, 'duration': 4, 'demands': [6, 4, 3]}, {'task': 4, 'start': 0, 'end': 2, 'duration': 2, 'demands': [3, 10, 3]}, {'task': 5, 'start': 13, 'end': 15, 'duration': 2, 'demands': [3, 7, 6]}, {'task': 6, 'start': 18, 'end': 22, 'duration': 4, 'demands': [4, 1, 1]}, {'task': 7, 'start': 18, 'end': 21, 'duration': 3, 'demands': [2, 4, 6]}, {'task': 8, 'start': 15, 'end': 18, 'duration': 3, 'demands': [5, 2, 3]}, {'task': 9, 'start': 21, 'end': 25, 'duration': 4, 'demands': [4, 1, 5]}, {'task': 10, 'start': 25, 'end': 28, 'duration': 3, 'demands': [2, 6, 5]}, {'task': 11, 'start': 22, 'end': 25, 'duration': 3, 'demands': [3, 1, 2]}, {'task': 12, 'start': 21, 'end': 22, 'duration': 1, 'demands': [1, 6, 3]}, {'task': 13, 'start': 28, 'end': 30, 'duration': 2, 'demands': [4, 3, 8]}, {'task': 14, 'start': 30, 'end': 43, 'duration': 13, 'demands': [4, 7, 5]}, {'task': 15, 'start': 43, 'end': 44, 'duration': 1, 'demands': [2, 11, 3]}, {'task': 16, 'start': 30, 'end': 34, 'duration': 4, 'demands': [0, 1, 3]}]",44.0,"{'problem_type': 'RCPSP', 'nr_tasks': 17, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 12}, {'resource_id': 2, 'capacity': 14}, {'resource_id': 3, 'capacity': 11}], 'task_records': [{'task_id': 'T1', 'duration': 7, 'demands': [10, 6, 4], 'successors': ['T3', 'T6', 'T11']}, {'task_id': 'T2', 'duration': 6, 'demands': [5, 2, 2], 'successors': ['T3', 'T4', 'T10']}, {'task_id': 'T3', 'duration': 1, 'demands': [7, 1, 3], 'successors': ['T7', 'T10']}, {'task_id': 'T4', 'duration': 4, 'demands': [6, 4, 3], 'successors': ['T7', 'T8']}, {'task_id': 'T5', 'duration': 2, 'demands': [3, 10, 3], 'successors': ['T7', 'T8']}, {'task_id': 'T6', 'duration': 2, 'demands': [3, 7, 6], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 4, 'demands': [4, 1, 1], 'successors': ['T11', 'T12']}, {'task_id': 'T8', 'duration': 3, 'demands': [2, 4, 6], 'successors': ['T11', 'T13']}, {'task_id': 'T9', 'duration': 3, 'demands': [5, 2, 3], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 4, 'demands': [4, 1, 5], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 3, 'demands': [2, 6, 5], 'successors': ['T15']}, {'task_id': 'T12', 'duration': 3, 'demands': [3, 1, 2], 'successors': ['T14', 'T11', 'T15']}, {'task_id': 'T13', 'duration': 1, 'demands': [1, 6, 3], 'successors': ['T14', 'T12']}, {'task_id': 'T14', 'duration': 2, 'demands': [4, 3, 8], 'successors': ['T16', 'T17']}, {'task_id': 'T15', 'duration': 13, 'demands': [4, 7, 5], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 1, 'demands': [2, 11, 3], 'successors': []}, {'task_id': 'T17', 'duration': 4, 'demands': [0, 1, 3], 'successors': []}]}","[{'task': 'T1', 'start': 6, 'end': 13, 'duration': 7, 'demands': [10, 6, 4]}, {'task': 'T2', 'start': 0, 'end': 6, 'duration': 6, 'demands': [5, 2, 2]}, {'task': 'T3', 'start': 17, 'end': 18, 'duration': 1, 'demands': [7, 1, 3]}, {'task': 'T4', 'start': 13, 'end': 17, 'duration': 4, 'demands': [6, 4, 3]}, {'task': 'T5', 'start': 0, 'end': 2, 'duration': 2, 'demands': [3, 10, 3]}, {'task': 'T6', 'start': 13, 'end': 15, 'duration': 2, 'demands': [3, 7, 6]}, {'task': 'T7', 'start': 18, 'end': 22, 'duration': 4, 'demands': [4, 1, 1]}, {'task': 'T8', 'start': 18, 'end': 21, 'duration': 3, 'demands': [2, 4, 6]}, {'task': 'T9', 'start': 15, 'end': 18, 'duration': 3, 'demands': [5, 2, 3]}, {'task': 'T10', 'start': 21, 'end': 25, 'duration': 4, 'demands': [4, 1, 5]}, {'task': 'T11', 'start': 25, 'end': 28, 'duration': 3, 'demands': [2, 6, 5]}, {'task': 'T12', 'start': 22, 'end': 25, 'duration': 3, 'demands': [3, 1, 2]}, {'task': 'T13', 'start': 21, 'end': 22, 'duration': 1, 'demands': [1, 6, 3]}, {'task': 'T14', 'start': 28, 'end': 30, 'duration': 2, 'demands': [4, 3, 8]}, {'task': 'T15', 'start': 30, 'end': 43, 'duration': 13, 'demands': [4, 7, 5]}, {'task': 'T16', 'start': 43, 'end': 44, 'duration': 1, 'demands': [2, 11, 3]}, {'task': 'T17', 'start': 30, 'end': 34, 'duration': 4, 'demands': [0, 1, 3]}] |
| RCPSP,RCPSP, |
|
|
| # total_test_runs=21 |
| # num_equipment_types=3 |
| # resources=1, 2, 3 |
| resource_id,capacity |
| 1,11 |
| 2,14 |
| 3,12 |
| test_run_id,run_duration_in_time_units,resource_requirements_vector,successor_run_ids |
| T1,1,""0, 0, 0"",""T2, T3, T4"" |
| T2,2,""5, 5, 2"",""T8"" |
| T3,2,""5, 5, 2"",""T8"" |
| T4,6,""4, 3, 4"",""T6, T7"" |
| T5,2,""4, 2, 2"",""T9, T10"" |
| T6,2,""6, 5, 4"",""T9, T10"" |
| T7,4,""2, 10, 3"",""T9, T10"" |
| T8,11,""1, 2, 6"",""T11"" |
| T9,4,""2, 3, 2"",""T15"" |
| T10,5,""4, 4, 6"",""T12"" |
| T11,1,""4, 4, 3"",""T13, T14"" |
| T12,6,""1, 7, 6"",""T16"" |
| T13,5,""3, 2, 1"",""T17"" |
| T14,8,""7, 5, 5"",""T16"" |
| T15,7,""2, 5, 5"",""T16"" |
| T16,3,""5, 8, 8"",""none"" |
| T17,2,""5, 2, 4"",""T19"" |
| T18,6,""8, 6, 6"",""T20"" |
| T19,13,""2, 2, 11"",""T21"" |
| T20,1,""2, 11, 3"",""T21"" |
| T21,1,""0, 0, 0"",""none"" |
|
|
| Quick note on how Iβd like the schedule returned: please use this simple JSON layout for the reply so itβs easy to read and check. |
|
|
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
|
|
| Think of that JSON like a little form: ""solution"" is the list of all the scheduled runs; each entry names the run (""task""), when it begins (""start"") and when it finishes (""end""). Keep it light β this block is just the shape I expect, not the actual schedule. |
|
|
| Please use the exact identifiers from the instance input β donβt rename anything and donβt introduce new labels. |
| - for example: ""Valid identifiers look like plain numbers such as β1β or β23β, single capital letters like βAβ or βBβ, or a capital letter followed by digits like βA1β or βX7β.""","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [11, 14, 12], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 2, 'demands': [5, 5, 2], 'successors': [7]}, {'duration': 2, 'demands': [5, 5, 2], 'successors': [7]}, {'duration': 6, 'demands': [4, 3, 4], 'successors': [5, 6]}, {'duration': 2, 'demands': [4, 2, 2], 'successors': [8, 9]}, {'duration': 2, 'demands': [6, 5, 4], 'successors': [8, 9]}, {'duration': 4, 'demands': [2, 10, 3], 'successors': [8, 9]}, {'duration': 11, 'demands': [1, 2, 6], 'successors': [10]}, {'duration': 4, 'demands': [2, 3, 2], 'successors': [14]}, {'duration': 5, 'demands': [4, 4, 6], 'successors': [11]}, {'duration': 1, 'demands': [4, 4, 3], 'successors': [12, 13]}, {'duration': 6, 'demands': [1, 7, 6], 'successors': [15]}, {'duration': 5, 'demands': [3, 2, 1], 'successors': [16]}, {'duration': 8, 'demands': [7, 5, 5], 'successors': [15]}, {'duration': 7, 'demands': [2, 5, 5], 'successors': [15]}, {'duration': 3, 'demands': [5, 8, 8], 'successors': []}, {'duration': 2, 'demands': [5, 2, 4], 'successors': [18]}, {'duration': 6, 'demands': [8, 6, 6], 'successors': [19]}, {'duration': 13, 'demands': [2, 2, 11], 'successors': [20]}, {'duration': 1, 'demands': [2, 11, 3], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 3, 'end': 5, 'duration': 2, 'demands': [5, 5, 2]}, {'task': 2, 'start': 1, 'end': 3, 'duration': 2, 'demands': [5, 5, 2]}, {'task': 3, 'start': 1, 'end': 7, 'duration': 6, 'demands': [4, 3, 4]}, {'task': 4, 'start': 5, 'end': 7, 'duration': 2, 'demands': [4, 2, 2]}, {'task': 5, 'start': 11, 'end': 13, 'duration': 2, 'demands': [6, 5, 4]}, {'task': 6, 'start': 7, 'end': 11, 'duration': 4, 'demands': [2, 10, 3]}, {'task': 7, 'start': 5, 'end': 16, 'duration': 11, 'demands': [1, 2, 6]}, {'task': 8, 'start': 16, 'end': 20, 'duration': 4, 'demands': [2, 3, 2]}, {'task': 9, 'start': 13, 'end': 18, 'duration': 5, 'demands': [4, 4, 6]}, {'task': 10, 'start': 16, 'end': 17, 'duration': 1, 'demands': [4, 4, 3]}, {'task': 11, 'start': 20, 'end': 26, 'duration': 6, 'demands': [1, 7, 6]}, {'task': 12, 'start': 20, 'end': 25, 'duration': 5, 'demands': [3, 2, 1]}, {'task': 13, 'start': 18, 'end': 26, 'duration': 8, 'demands': [7, 5, 5]}, {'task': 14, 'start': 26, 'end': 33, 'duration': 7, 'demands': [2, 5, 5]}, {'task': 15, 'start': 47, 'end': 50, 'duration': 3, 'demands': [5, 8, 8]}, {'task': 16, 'start': 32, 'end': 34, 'duration': 2, 'demands': [5, 2, 4]}, {'task': 17, 'start': 26, 'end': 32, 'duration': 6, 'demands': [8, 6, 6]}, {'task': 18, 'start': 34, 'end': 47, 'duration': 13, 'demands': [2, 2, 11]}, {'task': 19, 'start': 33, 'end': 34, 'duration': 1, 'demands': [2, 11, 3]}, {'task': 20, 'start': 47, 'end': 48, 'duration': 1, 'demands': [0, 0, 0]}]",50.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 11}, {'resource_id': 2, 'capacity': 14}, {'resource_id': 3, 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 2, 'demands': [5, 5, 2], 'successors': ['T8']}, {'task_id': 'T3', 'duration': 2, 'demands': [5, 5, 2], 'successors': ['T8']}, {'task_id': 'T4', 'duration': 6, 'demands': [4, 3, 4], 'successors': ['T6', 'T7']}, {'task_id': 'T5', 'duration': 2, 'demands': [4, 2, 2], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 2, 'demands': [6, 5, 4], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 4, 'demands': [2, 10, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 11, 'demands': [1, 2, 6], 'successors': ['T11']}, {'task_id': 'T9', 'duration': 4, 'demands': [2, 3, 2], 'successors': ['T15']}, {'task_id': 'T10', 'duration': 5, 'demands': [4, 4, 6], 'successors': ['T12']}, {'task_id': 'T11', 'duration': 1, 'demands': [4, 4, 3], 'successors': ['T13', 'T14']}, {'task_id': 'T12', 'duration': 6, 'demands': [1, 7, 6], 'successors': ['T16']}, {'task_id': 'T13', 'duration': 5, 'demands': [3, 2, 1], 'successors': ['T17']}, {'task_id': 'T14', 'duration': 8, 'demands': [7, 5, 5], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 7, 'demands': [2, 5, 5], 'successors': ['T16']}, {'task_id': 'T16', 'duration': 3, 'demands': [5, 8, 8], 'successors': []}, {'task_id': 'T17', 'duration': 2, 'demands': [5, 2, 4], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 6, 'demands': [8, 6, 6], 'successors': ['T20']}, {'task_id': 'T19', 'duration': 13, 'demands': [2, 2, 11], 'successors': ['T21']}, {'task_id': 'T20', 'duration': 1, 'demands': [2, 11, 3], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 3, 'end': 5, 'duration': 2, 'demands': [5, 5, 2]}, {'task': 'T3', 'start': 1, 'end': 3, 'duration': 2, 'demands': [5, 5, 2]}, {'task': 'T4', 'start': 1, 'end': 7, 'duration': 6, 'demands': [4, 3, 4]}, {'task': 'T5', 'start': 5, 'end': 7, 'duration': 2, 'demands': [4, 2, 2]}, {'task': 'T6', 'start': 11, 'end': 13, 'duration': 2, 'demands': [6, 5, 4]}, {'task': 'T7', 'start': 7, 'end': 11, 'duration': 4, 'demands': [2, 10, 3]}, {'task': 'T8', 'start': 5, 'end': 16, 'duration': 11, 'demands': [1, 2, 6]}, {'task': 'T9', 'start': 16, 'end': 20, 'duration': 4, 'demands': [2, 3, 2]}, {'task': 'T10', 'start': 13, 'end': 18, 'duration': 5, 'demands': [4, 4, 6]}, {'task': 'T11', 'start': 16, 'end': 17, 'duration': 1, 'demands': [4, 4, 3]}, {'task': 'T12', 'start': 20, 'end': 26, 'duration': 6, 'demands': [1, 7, 6]}, {'task': 'T13', 'start': 20, 'end': 25, 'duration': 5, 'demands': [3, 2, 1]}, {'task': 'T14', 'start': 18, 'end': 26, 'duration': 8, 'demands': [7, 5, 5]}, {'task': 'T15', 'start': 26, 'end': 33, 'duration': 7, 'demands': [2, 5, 5]}, {'task': 'T16', 'start': 47, 'end': 50, 'duration': 3, 'demands': [5, 8, 8]}, {'task': 'T17', 'start': 32, 'end': 34, 'duration': 2, 'demands': [5, 2, 4]}, {'task': 'T18', 'start': 26, 'end': 32, 'duration': 6, 'demands': [8, 6, 6]}, {'task': 'T19', 'start': 34, 'end': 47, 'duration': 13, 'demands': [2, 2, 11]}, {'task': 'T20', 'start': 33, 'end': 34, 'duration': 1, 'demands': [2, 11, 3]}, {'task': 'T21', 'start': 47, 'end': 48, 'duration': 1, 'demands': [0, 0, 0]}] |
| RCPSP,RCPSP, |
|
|
| The planner must place 17 workstation tasks across 3 resource types with capacities . |
| Workstation task T1 runs for 1 time units, consumes 0, 0, 0 while running, and must finish before its successors T2, T3, T4 can start. |
| Workstation task T2 runs for 2 time units, consumes 5, 7, 4 while running, and must finish before its successors T6, T7, T8 can start. |
| Workstation task T3 runs for 1 time units, consumes 6, 4, 4 while running, and must finish before its successors T5, T6, T10, T12 can start. |
| Workstation task T4 runs for 1 time units, consumes 10, 3, 4 while running, and must finish before its successors T5, T6 can start. |
| Workstation task T5 runs for 4 time units, consumes 5, 1, 5 while running, and must finish before its successors T9, T10 can start. |
| Workstation task T6 runs for 6 time units, consumes 3, 3, 3 while running, and must finish before its successors T9, T10 can start. |
| Workstation task T7 runs for 4 time units, consumes 5, 3, 3 while running, and must finish before its successors T9, T10 can start. |
| Workstation task T8 runs for 1 time units, consumes 1, 3, 3 while running, and must finish before its successors T9 can start. |
| Workstation task T9 runs for 8 time units, consumes 2, 3, 3 while running, and must finish before its successors none can start. |
| Workstation task T10 runs for 10 time units, consumes 6, 1, 4 while running, and must finish before its successors T11 can start. |
| Workstation task T11 runs for 4 time units, consumes 1, 5, 8 while running, and must finish before its successors T13, T14 can start. |
| Workstation task T12 runs for 2 time units, consumes 5, 9, 7 while running, and must finish before its successors T15 can start. |
| Workstation task T13 runs for 3 time units, consumes 3, 3, 5 while running, and must finish before its successors T15 can start. |
| Workstation task T14 runs for 2 time units, consumes 4, 3, 3 while running, and must finish before its successors T15, T16 can start. |
| Workstation task T15 runs for 3 time units, consumes 1, 5, 9 while running, and must finish before its successors T17 can start. |
| Workstation task T16 runs for 4 time units, consumes 1, 7, 3 while running, and must finish before its successors T17 can start. |
| Workstation task T17 runs for 1 time units, consumes 0, 0, 0 while running, and must finish before its successors none can start. |
| The planner compares plans by the finishing time of the last task. |
|
|
| Also, when you send the schedule back, please use this simple JSON layout so it's easy to parse and double-check. |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| This just shows the shape I need: a ""solution"" is a list of task entries, and each entry is a little timetable row β which task it is, when it starts, and when it finishes. Think of it like filling out a simple form: task, start time, end time. It's only a sketch of the expected shape, not the actual schedule itself. |
|
|
| Please make sure every identifier you use matches exactly what's in the instance input β no renaming, 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β.","{'nr_tasks': 17, 'nr_resources': 3, 'capacities': [14, 11, 12], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 2, 'demands': [5, 7, 4], 'successors': [5, 6, 7]}, {'duration': 1, 'demands': [6, 4, 4], 'successors': [4, 5, 9, 11]}, {'duration': 1, 'demands': [10, 3, 4], 'successors': [4, 5]}, {'duration': 4, 'demands': [5, 1, 5], 'successors': [8, 9]}, {'duration': 6, 'demands': [3, 3, 3], 'successors': [8, 9]}, {'duration': 4, 'demands': [5, 3, 3], 'successors': [8, 9]}, {'duration': 1, 'demands': [1, 3, 3], 'successors': [8]}, {'duration': 8, 'demands': [2, 3, 3], 'successors': []}, {'duration': 10, 'demands': [6, 1, 4], 'successors': [10]}, {'duration': 4, 'demands': [1, 5, 8], 'successors': [12, 13]}, {'duration': 2, 'demands': [5, 9, 7], 'successors': [14]}, {'duration': 3, 'demands': [3, 3, 5], 'successors': [14]}, {'duration': 2, 'demands': [4, 3, 3], 'successors': [14, 15]}, {'duration': 3, 'demands': [1, 5, 9], 'successors': [16]}, {'duration': 4, 'demands': [1, 7, 3], 'successors': [16]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 3, 'duration': 2, 'demands': [5, 7, 4]}, {'task': 2, 'start': 1, 'end': 2, 'duration': 1, 'demands': [6, 4, 4]}, {'task': 3, 'start': 3, 'end': 4, 'duration': 1, 'demands': [10, 3, 4]}, {'task': 4, 'start': 4, 'end': 8, 'duration': 4, 'demands': [5, 1, 5]}, {'task': 5, 'start': 4, 'end': 10, 'duration': 6, 'demands': [3, 3, 3]}, {'task': 6, 'start': 4, 'end': 8, 'duration': 4, 'demands': [5, 3, 3]}, {'task': 7, 'start': 3, 'end': 4, 'duration': 1, 'demands': [1, 3, 3]}, {'task': 8, 'start': 10, 'end': 18, 'duration': 8, 'demands': [2, 3, 3]}, {'task': 9, 'start': 10, 'end': 20, 'duration': 10, 'demands': [6, 1, 4]}, {'task': 10, 'start': 20, 'end': 24, 'duration': 4, 'demands': [1, 5, 8]}, {'task': 11, 'start': 18, 'end': 20, 'duration': 2, 'demands': [5, 9, 7]}, {'task': 12, 'start': 24, 'end': 27, 'duration': 3, 'demands': [3, 3, 5]}, {'task': 13, 'start': 24, 'end': 26, 'duration': 2, 'demands': [4, 3, 3]}, {'task': 14, 'start': 30, 'end': 33, 'duration': 3, 'demands': [1, 5, 9]}, {'task': 15, 'start': 26, 'end': 30, 'duration': 4, 'demands': [1, 7, 3]}, {'task': 16, 'start': 33, 'end': 34, 'duration': 1, 'demands': [0, 0, 0]}]",34.0,"{'problem_type': 'RCPSP', 'nr_tasks': 17, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 14}, {'resource_id': 2, 'capacity': 11}, {'resource_id': 3, 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 2, 'demands': [5, 7, 4], 'successors': ['T6', 'T7', 'T8']}, {'task_id': 'T3', 'duration': 1, 'demands': [6, 4, 4], 'successors': ['T5', 'T6', 'T10', 'T12']}, {'task_id': 'T4', 'duration': 1, 'demands': [10, 3, 4], 'successors': ['T5', 'T6']}, {'task_id': 'T5', 'duration': 4, 'demands': [5, 1, 5], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 6, 'demands': [3, 3, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 4, 'demands': [5, 3, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 1, 'demands': [1, 3, 3], 'successors': ['T9']}, {'task_id': 'T9', 'duration': 8, 'demands': [2, 3, 3], 'successors': []}, {'task_id': 'T10', 'duration': 10, 'demands': [6, 1, 4], 'successors': ['T11']}, {'task_id': 'T11', 'duration': 4, 'demands': [1, 5, 8], 'successors': ['T13', 'T14']}, {'task_id': 'T12', 'duration': 2, 'demands': [5, 9, 7], 'successors': ['T15']}, {'task_id': 'T13', 'duration': 3, 'demands': [3, 3, 5], 'successors': ['T15']}, {'task_id': 'T14', 'duration': 2, 'demands': [4, 3, 3], 'successors': ['T15', 'T16']}, {'task_id': 'T15', 'duration': 3, 'demands': [1, 5, 9], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 4, 'demands': [1, 7, 3], 'successors': ['T17']}, {'task_id': 'T17', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 3, 'duration': 2, 'demands': [5, 7, 4]}, {'task': 'T3', 'start': 1, 'end': 2, 'duration': 1, 'demands': [6, 4, 4]}, {'task': 'T4', 'start': 3, 'end': 4, 'duration': 1, 'demands': [10, 3, 4]}, {'task': 'T5', 'start': 4, 'end': 8, 'duration': 4, 'demands': [5, 1, 5]}, {'task': 'T6', 'start': 4, 'end': 10, 'duration': 6, 'demands': [3, 3, 3]}, {'task': 'T7', 'start': 4, 'end': 8, 'duration': 4, 'demands': [5, 3, 3]}, {'task': 'T8', 'start': 3, 'end': 4, 'duration': 1, 'demands': [1, 3, 3]}, {'task': 'T9', 'start': 10, 'end': 18, 'duration': 8, 'demands': [2, 3, 3]}, {'task': 'T10', 'start': 10, 'end': 20, 'duration': 10, 'demands': [6, 1, 4]}, {'task': 'T11', 'start': 20, 'end': 24, 'duration': 4, 'demands': [1, 5, 8]}, {'task': 'T12', 'start': 18, 'end': 20, 'duration': 2, 'demands': [5, 9, 7]}, {'task': 'T13', 'start': 24, 'end': 27, 'duration': 3, 'demands': [3, 3, 5]}, {'task': 'T14', 'start': 24, 'end': 26, 'duration': 2, 'demands': [4, 3, 3]}, {'task': 'T15', 'start': 30, 'end': 33, 'duration': 3, 'demands': [1, 5, 9]}, {'task': 'T16', 'start': 26, 'end': 30, 'duration': 4, 'demands': [1, 7, 3]}, {'task': 'T17', 'start': 33, 'end': 34, 'duration': 1, 'demands': [0, 0, 0]}]",48,nl,1 |
| RCPSP,RCPSP,"Iβm helping plan a celebration where a handful of setup crews and catering teams all have to get their jobs done in the right order. The planners need to pick a start time for every setup and food task so that things that depend on others donβt start too early, each job runs for its given length and uses the staff and gear assigned to it, and no team or piece of equipment is asked to do more than it has capacity for. The better plan is the one that gets the whole venue ready the fastest β in practice that means looking at when the last job finishes and making that time as early as possible (or, if you prefer, shrinking the time span from the first start to that final finish). Every task has to appear exactly once, canβt be split or duplicated, and the exact list of jobs, durations, staff and equipment available are shown below. |
| |
| There are 19 jobs to schedule, using 3 resource types with capacities . |
| Job T1 lasts 1, requires 0, 0, 0 while it runs, and lists T2, T3, T4 as jobs that may only start after it finishes. |
| Job T2 lasts 5, requires 5, 6, 2 while it runs, and lists T6, T8 as jobs that may only start after it finishes. |
| Job T3 lasts 1, requires 4, 7, 5 while it runs, and lists T5, T8 as jobs that may only start after it finishes. |
| Job T4 lasts 3, requires 8, 2, 1 while it runs, and lists T6, T7 as jobs that may only start after it finishes. |
| Job T5 lasts 5, requires 7, 2, 6 while it runs, and lists T9, T10 as jobs that may only start after it finishes. |
| Job T6 lasts 3, requires 5, 8, 7 while it runs, and lists T9, T10 as jobs that may only start after it finishes. |
| Job T7 lasts 5, requires 6, 7, 3 while it runs, and lists T9, T10 as jobs that may only start after it finishes. |
| Job T8 lasts 9, requires 2, 3, 6 while it runs, and lists T9 as jobs that may only start after it finishes. |
| Job T9 lasts 5, requires 4, 3, 4 while it runs, and lists T12 as jobs that may only start after it finishes. |
| Job T10 lasts 12, requires 4, 4, 7 while it runs, and lists T12 as jobs that may only start after it finishes. |
| Job T11 lasts 1, requires 4, 2, 3 while it runs, and lists T13 as jobs that may only start after it finishes. |
| Job T12 lasts 3, requires 1, 7, 7 while it runs, and lists T14 as jobs that may only start after it finishes. |
| Job T13 lasts 12, requires 4, 5, 7 while it runs, and lists T14, T16 as jobs that may only start after it finishes. |
| Job T14 lasts 4, requires 4, 6, 8 while it runs, and lists T17 as jobs that may only start after it finishes. |
| Job T15 lasts 1, requires 2, 1, 5 while it runs, and lists T17 as jobs that may only start after it finishes. |
| Job T16 lasts 4, requires 7, 2, 5 while it runs, and lists T18 as jobs that may only start after it finishes. |
| Job T17 lasts 9, requires 4, 5, 5 while it runs, and lists T19 as jobs that may only start after it finishes. |
| Job T18 lasts 1, requires 1, 9, 3 while it runs, and lists T19 as jobs that may only start after it finishes. |
| Job T19 lasts 1, requires 0, 0, 0 while it runs, and lists none as jobs that may only start after it finishes. |
| Each job must appear exactly once; weβll use these lines to build the fastest feasible plan. |
| |
| You can just send the schedule back in a tiny JSON shape like this β nothing fancy, just a list of tasks with their start and end times: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of it like a little table: each object in the ""solution"" list is one job, ""task"" is the task identifier from the instance, and ""start"" and ""end"" are the times when that job begins and finishes. This is only a sketch of the expected shape β not the actual schedule β so donβt fill it in here unless youβre ready to submit the real timings. |
| |
| Please use the exact task 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β.""","{'nr_tasks': 19, 'nr_resources': 3, 'capacities': [11, 10, 12], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 5, 'demands': [5, 6, 2], 'successors': [5, 7]}, {'duration': 1, 'demands': [4, 7, 5], 'successors': [4, 7]}, {'duration': 3, 'demands': [8, 2, 1], 'successors': [5, 6]}, {'duration': 5, 'demands': [7, 2, 6], 'successors': [8, 9]}, {'duration': 3, 'demands': [5, 8, 7], 'successors': [8, 9]}, {'duration': 5, 'demands': [6, 7, 3], 'successors': [8, 9]}, {'duration': 9, 'demands': [2, 3, 6], 'successors': [8]}, {'duration': 5, 'demands': [4, 3, 4], 'successors': [11]}, {'duration': 12, 'demands': [4, 4, 7], 'successors': [11]}, {'duration': 1, 'demands': [4, 2, 3], 'successors': [12]}, {'duration': 3, 'demands': [1, 7, 7], 'successors': [13]}, {'duration': 12, 'demands': [4, 5, 7], 'successors': [13, 15]}, {'duration': 4, 'demands': [4, 6, 8], 'successors': [16]}, {'duration': 1, 'demands': [2, 1, 5], 'successors': [16]}, {'duration': 4, 'demands': [7, 2, 5], 'successors': [17]}, {'duration': 9, 'demands': [4, 5, 5], 'successors': [18]}, {'duration': 1, 'demands': [1, 9, 3], 'successors': [18]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 6, 'duration': 5, 'demands': [5, 6, 2]}, {'task': 2, 'start': 6, 'end': 7, 'duration': 1, 'demands': [4, 7, 5]}, {'task': 3, 'start': 7, 'end': 10, 'duration': 3, 'demands': [8, 2, 1]}, {'task': 4, 'start': 15, 'end': 20, 'duration': 5, 'demands': [7, 2, 6]}, {'task': 5, 'start': 20, 'end': 23, 'duration': 3, 'demands': [5, 8, 7]}, {'task': 6, 'start': 10, 'end': 15, 'duration': 5, 'demands': [6, 7, 3]}, {'task': 7, 'start': 7, 'end': 16, 'duration': 9, 'demands': [2, 3, 6]}, {'task': 8, 'start': 23, 'end': 28, 'duration': 5, 'demands': [4, 3, 4]}, {'task': 9, 'start': 23, 'end': 35, 'duration': 12, 'demands': [4, 4, 7]}, {'task': 10, 'start': 0, 'end': 1, 'duration': 1, 'demands': [4, 2, 3]}, {'task': 11, 'start': 35, 'end': 38, 'duration': 3, 'demands': [1, 7, 7]}, {'task': 12, 'start': 38, 'end': 50, 'duration': 12, 'demands': [4, 5, 7]}, {'task': 13, 'start': 50, 'end': 54, 'duration': 4, 'demands': [4, 6, 8]}, {'task': 14, 'start': 0, 'end': 1, 'duration': 1, 'demands': [2, 1, 5]}, {'task': 15, 'start': 54, 'end': 58, 'duration': 4, 'demands': [7, 2, 5]}, {'task': 16, 'start': 54, 'end': 63, 'duration': 9, 'demands': [4, 5, 5]}, {'task': 17, 'start': 63, 'end': 64, 'duration': 1, 'demands': [1, 9, 3]}, {'task': 18, 'start': 64, 'end': 65, 'duration': 1, 'demands': [0, 0, 0]}]",65.0,"{'problem_type': 'RCPSP', 'nr_tasks': 19, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19'], 'resources': [1, 2, 3], 'resource_capacities': [{'resource_id': 1, 'capacity': 11}, {'resource_id': 2, 'capacity': 10}, {'resource_id': 3, 'capacity': 12}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 5, 'demands': [5, 6, 2], 'successors': ['T6', 'T8']}, {'task_id': 'T3', 'duration': 1, 'demands': [4, 7, 5], 'successors': ['T5', 'T8']}, {'task_id': 'T4', 'duration': 3, 'demands': [8, 2, 1], 'successors': ['T6', 'T7']}, {'task_id': 'T5', 'duration': 5, 'demands': [7, 2, 6], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 3, 'demands': [5, 8, 7], 'successors': ['T9', 'T10']}, {'task_id': 'T7', 'duration': 5, 'demands': [6, 7, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 9, 'demands': [2, 3, 6], 'successors': ['T9']}, {'task_id': 'T9', 'duration': 5, 'demands': [4, 3, 4], 'successors': ['T12']}, {'task_id': 'T10', 'duration': 12, 'demands': [4, 4, 7], 'successors': ['T12']}, {'task_id': 'T11', 'duration': 1, 'demands': [4, 2, 3], 'successors': ['T13']}, {'task_id': 'T12', 'duration': 3, 'demands': [1, 7, 7], 'successors': ['T14']}, {'task_id': 'T13', 'duration': 12, 'demands': [4, 5, 7], 'successors': ['T14', 'T16']}, {'task_id': 'T14', 'duration': 4, 'demands': [4, 6, 8], 'successors': ['T17']}, {'task_id': 'T15', 'duration': 1, 'demands': [2, 1, 5], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 4, 'demands': [7, 2, 5], 'successors': ['T18']}, {'task_id': 'T17', 'duration': 9, 'demands': [4, 5, 5], 'successors': ['T19']}, {'task_id': 'T18', 'duration': 1, 'demands': [1, 9, 3], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 6, 'duration': 5, 'demands': [5, 6, 2]}, {'task': 'T3', 'start': 6, 'end': 7, 'duration': 1, 'demands': [4, 7, 5]}, {'task': 'T4', 'start': 7, 'end': 10, 'duration': 3, 'demands': [8, 2, 1]}, {'task': 'T5', 'start': 15, 'end': 20, 'duration': 5, 'demands': [7, 2, 6]}, {'task': 'T6', 'start': 20, 'end': 23, 'duration': 3, 'demands': [5, 8, 7]}, {'task': 'T7', 'start': 10, 'end': 15, 'duration': 5, 'demands': [6, 7, 3]}, {'task': 'T8', 'start': 7, 'end': 16, 'duration': 9, 'demands': [2, 3, 6]}, {'task': 'T9', 'start': 23, 'end': 28, 'duration': 5, 'demands': [4, 3, 4]}, {'task': 'T10', 'start': 23, 'end': 35, 'duration': 12, 'demands': [4, 4, 7]}, {'task': 'T11', 'start': 0, 'end': 1, 'duration': 1, 'demands': [4, 2, 3]}, {'task': 'T12', 'start': 35, 'end': 38, 'duration': 3, 'demands': [1, 7, 7]}, {'task': 'T13', 'start': 38, 'end': 50, 'duration': 12, 'demands': [4, 5, 7]}, {'task': 'T14', 'start': 50, 'end': 54, 'duration': 4, 'demands': [4, 6, 8]}, {'task': 'T15', 'start': 0, 'end': 1, 'duration': 1, 'demands': [2, 1, 5]}, {'task': 'T16', 'start': 54, 'end': 58, 'duration': 4, 'demands': [7, 2, 5]}, {'task': 'T17', 'start': 54, 'end': 63, 'duration': 9, 'demands': [4, 5, 5]}, {'task': 'T18', 'start': 63, 'end': 64, 'duration': 1, 'demands': [1, 9, 3]}, {'task': 'T19', 'start': 64, 'end': 65, 'duration': 1, 'demands': [0, 0, 0]}]",49,nl,1 |
| RCPSP,RCPSP,"Recently the engineering crew faced a staged rollout where every stage runs for a known stretch of time and consumes some servers and network capacity while active, and certain stages have to wait for earlier ones to finish. The plannerβs job was to pick start moments for each stage so the whole rollout completes as quickly as possible β success is simply the finish time of the final stage, so a smaller finish time is better. Itβs important that every stage appears once and only once, no stage begins before its prerequisites are done, and the combined server and bandwidth usage at any second never exceeds whatβs available. The detailed instance (tasks, times, resources) follows below. |
| |
| { |
| ""nr_stages"": 21, |
| ""nr_resource_types"": 3, |
| ""resources"": [ |
| ""A"", |
| ""B"", |
| ""C"" |
| ], |
| ""resource_capacities"": [ |
| { |
| ""resource_id"": ""A"", |
| ""capacity"": 11 |
| }, |
| { |
| ""resource_id"": ""B"", |
| ""capacity"": 10 |
| }, |
| { |
| ""resource_id"": ""C"", |
| ""capacity"": 13 |
| } |
| ], |
| ""tasks"": [ |
| { |
| ""stage_id"": ""T1"", |
| ""stage_duration"": 1, |
| ""stage_resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_stage_ids"": [ |
| ""T2"", |
| ""T3"", |
| ""T4"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T2"", |
| ""stage_duration"": 15, |
| ""stage_resource_demands"": [ |
| 5, |
| 8, |
| 1 |
| ], |
| ""successor_stage_ids"": [ |
| ""T5"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T3"", |
| ""stage_duration"": 3, |
| ""stage_resource_demands"": [ |
| 4, |
| 7, |
| 2 |
| ], |
| ""successor_stage_ids"": [ |
| ""T5"", |
| ""T6"", |
| ""T7"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T4"", |
| ""stage_duration"": 9, |
| ""stage_resource_demands"": [ |
| 5, |
| 1, |
| 1 |
| ], |
| ""successor_stage_ids"": [ |
| ""T6"", |
| ""T8"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T5"", |
| ""stage_duration"": 4, |
| ""stage_resource_demands"": [ |
| 7, |
| 2, |
| 3 |
| ], |
| ""successor_stage_ids"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T6"", |
| ""stage_duration"": 11, |
| ""stage_resource_demands"": [ |
| 8, |
| 6, |
| 6 |
| ], |
| ""successor_stage_ids"": [ |
| ""T11"", |
| ""T12"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T7"", |
| ""stage_duration"": 4, |
| ""stage_resource_demands"": [ |
| 2, |
| 9, |
| 1 |
| ], |
| ""successor_stage_ids"": [ |
| ""T9"", |
| ""T10"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T8"", |
| ""stage_duration"": 1, |
| ""stage_resource_demands"": [ |
| 2, |
| 4, |
| 4 |
| ], |
| ""successor_stage_ids"": [ |
| ""T10"", |
| ""T12"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T9"", |
| ""stage_duration"": 3, |
| ""stage_resource_demands"": [ |
| 2, |
| 3, |
| 4 |
| ], |
| ""successor_stage_ids"": [ |
| ""T14"", |
| ""T15"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T10"", |
| ""stage_duration"": 5, |
| ""stage_resource_demands"": [ |
| 2, |
| 3, |
| 4 |
| ], |
| ""successor_stage_ids"": [ |
| ""T13"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T11"", |
| ""stage_duration"": 13, |
| ""stage_resource_demands"": [ |
| 3, |
| 4, |
| 3 |
| ], |
| ""successor_stage_ids"": [ |
| ""T14"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T12"", |
| ""stage_duration"": 2, |
| ""stage_resource_demands"": [ |
| 7, |
| 1, |
| 5 |
| ], |
| ""successor_stage_ids"": [ |
| ""T15"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T13"", |
| ""stage_duration"": 3, |
| ""stage_resource_demands"": [ |
| 1, |
| 6, |
| 4 |
| ], |
| ""successor_stage_ids"": [ |
| ""T17"", |
| ""T18"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T14"", |
| ""stage_duration"": 5, |
| ""stage_resource_demands"": [ |
| 1, |
| 3, |
| 4 |
| ], |
| ""successor_stage_ids"": [ |
| ""T16"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T15"", |
| ""stage_duration"": 6, |
| ""stage_resource_demands"": [ |
| 4, |
| 10, |
| 7 |
| ], |
| ""successor_stage_ids"": [ |
| ""T17"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T16"", |
| ""stage_duration"": 5, |
| ""stage_resource_demands"": [ |
| 7, |
| 4, |
| 4 |
| ], |
| ""successor_stage_ids"": [] |
| }, |
| { |
| ""stage_id"": ""T17"", |
| ""stage_duration"": 1, |
| ""stage_resource_demands"": [ |
| 2, |
| 3, |
| 3 |
| ], |
| ""successor_stage_ids"": [] |
| }, |
| { |
| ""stage_id"": ""T18"", |
| ""stage_duration"": 6, |
| ""stage_resource_demands"": [ |
| 4, |
| 4, |
| 8 |
| ], |
| ""successor_stage_ids"": [ |
| ""T19"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T19"", |
| ""stage_duration"": 4, |
| ""stage_resource_demands"": [ |
| 2, |
| 4, |
| 2 |
| ], |
| ""successor_stage_ids"": [ |
| ""T20"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T20"", |
| ""stage_duration"": 1, |
| ""stage_resource_demands"": [ |
| 0, |
| 1, |
| 2 |
| ], |
| ""successor_stage_ids"": [ |
| ""T21"" |
| ] |
| }, |
| { |
| ""stage_id"": ""T21"", |
| ""stage_duration"": 1, |
| ""stage_resource_demands"": [ |
| 0, |
| 0, |
| 0 |
| ], |
| ""successor_stage_ids"": [] |
| } |
| ] |
| } |
| |
| Also, to keep things tidy when you send back the schedule, please follow this simple JSON layout β just a little template to show how I expect the answer to be shaped: |
| |
| { |
| ""solution"": [ |
| { |
| ""task"": <task_id>, |
| ""start"": <start_time>, |
| ""end"": <end_time> |
| } |
| ] |
| } |
| |
| Think of this like a little form: ""solution"" is a list of stages, and each entry says which task it is and when it begins and finishes. Super casual β just fill in each task once with its start and end times from the instance. This block is only a sketch of the shape I want, not the actual schedule. |
| |
| Please be sure to use the exact identifiers as they appear in the instance input β do not rename tasks 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β.","{'nr_tasks': 21, 'nr_resources': 3, 'capacities': [11, 10, 13], 'tasks': [{'duration': 1, 'demands': [0, 0, 0], 'successors': [1, 2, 3]}, {'duration': 15, 'demands': [5, 8, 1], 'successors': [4, 7]}, {'duration': 3, 'demands': [4, 7, 2], 'successors': [4, 5, 6]}, {'duration': 9, 'demands': [5, 1, 1], 'successors': [5, 7]}, {'duration': 4, 'demands': [7, 2, 3], 'successors': [8, 9]}, {'duration': 11, 'demands': [8, 6, 6], 'successors': [10, 11]}, {'duration': 4, 'demands': [2, 9, 1], 'successors': [8, 9]}, {'duration': 1, 'demands': [2, 4, 4], 'successors': [9, 11]}, {'duration': 3, 'demands': [2, 3, 4], 'successors': [13, 14]}, {'duration': 5, 'demands': [2, 3, 4], 'successors': [12]}, {'duration': 13, 'demands': [3, 4, 3], 'successors': [13]}, {'duration': 2, 'demands': [7, 1, 5], 'successors': [14]}, {'duration': 3, 'demands': [1, 6, 4], 'successors': [16, 17]}, {'duration': 5, 'demands': [1, 3, 4], 'successors': [15]}, {'duration': 6, 'demands': [4, 10, 7], 'successors': [16]}, {'duration': 5, 'demands': [7, 4, 4], 'successors': []}, {'duration': 1, 'demands': [2, 3, 3], 'successors': []}, {'duration': 6, 'demands': [4, 4, 8], 'successors': [18]}, {'duration': 4, 'demands': [2, 4, 2], 'successors': [19]}, {'duration': 1, 'demands': [0, 1, 2], 'successors': [20]}, {'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 0, 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 1, 'start': 1, 'end': 16, 'duration': 15, 'demands': [5, 8, 1]}, {'task': 2, 'start': 16, 'end': 19, 'duration': 3, 'demands': [4, 7, 2]}, {'task': 3, 'start': 1, 'end': 10, 'duration': 9, 'demands': [5, 1, 1]}, {'task': 4, 'start': 34, 'end': 38, 'duration': 4, 'demands': [7, 2, 3]}, {'task': 5, 'start': 19, 'end': 30, 'duration': 11, 'demands': [8, 6, 6]}, {'task': 6, 'start': 30, 'end': 34, 'duration': 4, 'demands': [2, 9, 1]}, {'task': 7, 'start': 19, 'end': 20, 'duration': 1, 'demands': [2, 4, 4]}, {'task': 8, 'start': 38, 'end': 41, 'duration': 3, 'demands': [2, 3, 4]}, {'task': 9, 'start': 38, 'end': 43, 'duration': 5, 'demands': [2, 3, 4]}, {'task': 10, 'start': 34, 'end': 47, 'duration': 13, 'demands': [3, 4, 3]}, {'task': 11, 'start': 30, 'end': 32, 'duration': 2, 'demands': [7, 1, 5]}, {'task': 12, 'start': 43, 'end': 46, 'duration': 3, 'demands': [1, 6, 4]}, {'task': 13, 'start': 47, 'end': 52, 'duration': 5, 'demands': [1, 3, 4]}, {'task': 14, 'start': 52, 'end': 58, 'duration': 6, 'demands': [4, 10, 7]}, {'task': 15, 'start': 58, 'end': 63, 'duration': 5, 'demands': [7, 4, 4]}, {'task': 16, 'start': 62, 'end': 63, 'duration': 1, 'demands': [2, 3, 3]}, {'task': 17, 'start': 46, 'end': 52, 'duration': 6, 'demands': [4, 4, 8]}, {'task': 18, 'start': 58, 'end': 62, 'duration': 4, 'demands': [2, 4, 2]}, {'task': 19, 'start': 62, 'end': 63, 'duration': 1, 'demands': [0, 1, 2]}, {'task': 20, 'start': 63, 'end': 64, 'duration': 1, 'demands': [0, 0, 0]}]",64.0,"{'problem_type': 'RCPSP', 'nr_tasks': 21, 'nr_resources': 3, 'tasks': ['T1', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7', 'T8', 'T9', 'T10', 'T11', 'T12', 'T13', 'T14', 'T15', 'T16', 'T17', 'T18', 'T19', 'T20', 'T21'], 'resources': ['A', 'B', 'C'], 'resource_capacities': [{'resource_id': 'A', 'capacity': 11}, {'resource_id': 'B', 'capacity': 10}, {'resource_id': 'C', 'capacity': 13}], 'task_records': [{'task_id': 'T1', 'duration': 1, 'demands': [0, 0, 0], 'successors': ['T2', 'T3', 'T4']}, {'task_id': 'T2', 'duration': 15, 'demands': [5, 8, 1], 'successors': ['T5', 'T8']}, {'task_id': 'T3', 'duration': 3, 'demands': [4, 7, 2], 'successors': ['T5', 'T6', 'T7']}, {'task_id': 'T4', 'duration': 9, 'demands': [5, 1, 1], 'successors': ['T6', 'T8']}, {'task_id': 'T5', 'duration': 4, 'demands': [7, 2, 3], 'successors': ['T9', 'T10']}, {'task_id': 'T6', 'duration': 11, 'demands': [8, 6, 6], 'successors': ['T11', 'T12']}, {'task_id': 'T7', 'duration': 4, 'demands': [2, 9, 1], 'successors': ['T9', 'T10']}, {'task_id': 'T8', 'duration': 1, 'demands': [2, 4, 4], 'successors': ['T10', 'T12']}, {'task_id': 'T9', 'duration': 3, 'demands': [2, 3, 4], 'successors': ['T14', 'T15']}, {'task_id': 'T10', 'duration': 5, 'demands': [2, 3, 4], 'successors': ['T13']}, {'task_id': 'T11', 'duration': 13, 'demands': [3, 4, 3], 'successors': ['T14']}, {'task_id': 'T12', 'duration': 2, 'demands': [7, 1, 5], 'successors': ['T15']}, {'task_id': 'T13', 'duration': 3, 'demands': [1, 6, 4], 'successors': ['T17', 'T18']}, {'task_id': 'T14', 'duration': 5, 'demands': [1, 3, 4], 'successors': ['T16']}, {'task_id': 'T15', 'duration': 6, 'demands': [4, 10, 7], 'successors': ['T17']}, {'task_id': 'T16', 'duration': 5, 'demands': [7, 4, 4], 'successors': []}, {'task_id': 'T17', 'duration': 1, 'demands': [2, 3, 3], 'successors': []}, {'task_id': 'T18', 'duration': 6, 'demands': [4, 4, 8], 'successors': ['T19']}, {'task_id': 'T19', 'duration': 4, 'demands': [2, 4, 2], 'successors': ['T20']}, {'task_id': 'T20', 'duration': 1, 'demands': [0, 1, 2], 'successors': ['T21']}, {'task_id': 'T21', 'duration': 1, 'demands': [0, 0, 0], 'successors': []}]}","[{'task': 'T1', 'start': 0, 'end': 1, 'duration': 1, 'demands': [0, 0, 0]}, {'task': 'T2', 'start': 1, 'end': 16, 'duration': 15, 'demands': [5, 8, 1]}, {'task': 'T3', 'start': 16, 'end': 19, 'duration': 3, 'demands': [4, 7, 2]}, {'task': 'T4', 'start': 1, 'end': 10, 'duration': 9, 'demands': [5, 1, 1]}, {'task': 'T5', 'start': 34, 'end': 38, 'duration': 4, 'demands': [7, 2, 3]}, {'task': 'T6', 'start': 19, 'end': 30, 'duration': 11, 'demands': [8, 6, 6]}, {'task': 'T7', 'start': 30, 'end': 34, 'duration': 4, 'demands': [2, 9, 1]}, {'task': 'T8', 'start': 19, 'end': 20, 'duration': 1, 'demands': [2, 4, 4]}, {'task': 'T9', 'start': 38, 'end': 41, 'duration': 3, 'demands': [2, 3, 4]}, {'task': 'T10', 'start': 38, 'end': 43, 'duration': 5, 'demands': [2, 3, 4]}, {'task': 'T11', 'start': 34, 'end': 47, 'duration': 13, 'demands': [3, 4, 3]}, {'task': 'T12', 'start': 30, 'end': 32, 'duration': 2, 'demands': [7, 1, 5]}, {'task': 'T13', 'start': 43, 'end': 46, 'duration': 3, 'demands': [1, 6, 4]}, {'task': 'T14', 'start': 47, 'end': 52, 'duration': 5, 'demands': [1, 3, 4]}, {'task': 'T15', 'start': 52, 'end': 58, 'duration': 6, 'demands': [4, 10, 7]}, {'task': 'T16', 'start': 58, 'end': 63, 'duration': 5, 'demands': [7, 4, 4]}, {'task': 'T17', 'start': 62, 'end': 63, 'duration': 1, 'demands': [2, 3, 3]}, {'task': 'T18', 'start': 46, 'end': 52, 'duration': 6, 'demands': [4, 4, 8]}, {'task': 'T19', 'start': 58, 'end': 62, 'duration': 4, 'demands': [2, 4, 2]}, {'task': 'T20', 'start': 62, 'end': 63, 'duration': 1, 'demands': [0, 1, 2]}, {'task': 'T21', 'start': 63, 'end': 64, 'duration': 1, 'demands': [0, 0, 0]}]",50,json,names |
| |