task_id large_stringlengths 21 25 | split large_stringclasses 1
value | quay large_stringclasses 2
values | terminal large_stringclasses 2
values | difficulty large_stringclasses 4
values | week int64 2 51 | week_start_utc large_stringdate 2024-01-08 00:00:00 2024-12-16 00:00:00 | num_ships int64 12 90 | num_disruptions int64 2 21 | system_prompt large_stringclasses 3
values | situation large_stringlengths 2.25k 11.4k | optimal_cost int64 0 5.29k | naive_cost int64 81 17.7k | greedy_cost int64 21 10.5k | proven_optimal bool 1
class | optimal_plan large_stringlengths 704 5.46k | naive_plan large_stringlengths 705 5.45k | task large_stringlengths 6.68k 45.5k | prompt_version int64 1 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dock-24B-w03x2-busy-3 | train | 24B | APM Terminals Barcelona | busy | 3 | 2024-01-15T00:00:00Z | 20 | 6 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 3 of 2024
Hour 0 is Monday 15 January 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Sections 3-10 are closed from hour 246 ... | 42 | 123 | 57 | true | [{"ship": 0, "berth_hour": 6, "section": 5, "cranes": 2}, {"ship": 1, "berth_hour": 17, "section": 5, "cranes": 2}, {"ship": 2, "berth_hour": 17, "section": 10, "cranes": 4}, {"ship": 3, "berth_hour": 64, "section": 8, "cranes": 2}, {"ship": 4, "berth_hour": 78, "section": 4, "cranes": 2}, {"ship": 5, "berth_hour": 109... | [{"ship": 0, "berth_hour": 6, "section": 5, "cranes": 1}, {"ship": 1, "berth_hour": 17, "section": 5, "cranes": 1}, {"ship": 2, "berth_hour": 17, "section": 10, "cranes": 2}, {"ship": 3, "berth_hour": 64, "section": 8, "cranes": 1}, {"ship": 4, "berth_hour": 78, "section": 4, "cranes": 1}, {"ship": 5, "berth_hour": 109... | {"task_id":"dock-24B-w03x2-busy-3","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":3,"week_start_utc":"2024-01-15T00:00:00Z","ships":[{"id":0,"name":"PERSEUS","imo":"9371414","length_m":140.38,"sections":4,"arrival":6,"handling":6,"planned_ho... | 1 |
dock-24B-w08x1-busy-0 | train | 24B | APM Terminals Barcelona | busy | 8 | 2024-02-19T00:00:00Z | 12 | 8 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 8 of 2024
Hour 0 is Monday 19 February 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Unscheduled call: ship 11 MELINA (260 ... | 288 | 1,263 | 633 | true | [{"ship": 0, "berth_hour": 35, "section": 8, "cranes": 3}, {"ship": 1, "berth_hour": 29, "section": 4, "cranes": 2}, {"ship": 2, "berth_hour": 38, "section": 2, "cranes": 4}, {"ship": 3, "berth_hour": 77, "section": 8, "cranes": 5}, {"ship": 4, "berth_hour": 102, "section": 14, "cranes": 6}, {"ship": 5, "berth_hour": 8... | [{"ship": 0, "berth_hour": 35, "section": 8, "cranes": 2}, {"ship": 1, "berth_hour": 24, "section": 4, "cranes": 1}, {"ship": 2, "berth_hour": 31, "section": 13, "cranes": 2}, {"ship": 3, "berth_hour": 77, "section": 8, "cranes": 3}, {"ship": 4, "berth_hour": 93, "section": 14, "cranes": 4}, {"ship": 5, "berth_hour": 8... | {"task_id":"dock-24B-w08x1-busy-0","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":8,"week_start_utc":"2024-02-19T00:00:00Z","ships":[{"id":0,"name":"WANDA A","imo":"9415947","length_m":184.01,"sections":5,"arrival":35,"handling":8,"planned_h... | 1 |
dock-24B-w08x1-busy-2 | train | 24B | APM Terminals Barcelona | busy | 8 | 2024-02-19T00:00:00Z | 12 | 9 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 8 of 2024
Hour 0 is Monday 19 February 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Gale warning. From hour 81 to hour 109... | 354 | 1,676 | 1,245 | true | [{"ship": 0, "berth_hour": 17, "section": 8, "cranes": 2}, {"ship": 1, "berth_hour": 29, "section": 4, "cranes": 2}, {"ship": 2, "berth_hour": 40, "section": 8, "cranes": 4}, {"ship": 3, "berth_hour": 58, "section": 8, "cranes": 5}, {"ship": 4, "berth_hour": 111, "section": 14, "cranes": 4}, {"ship": 5, "berth_hour": 1... | [{"ship": 0, "berth_hour": 17, "section": 8, "cranes": 2}, {"ship": 1, "berth_hour": 24, "section": 4, "cranes": 1}, {"ship": 2, "berth_hour": 40, "section": 8, "cranes": 2}, {"ship": 3, "berth_hour": 54, "section": 14, "cranes": 3}, {"ship": 4, "berth_hour": 109, "section": 14, "cranes": 4}, {"ship": 5, "berth_hour": ... | {"task_id":"dock-24B-w08x1-busy-2","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":8,"week_start_utc":"2024-02-19T00:00:00Z","ships":[{"id":0,"name":"WANDA A","imo":"9415947","length_m":184.01,"sections":5,"arrival":17,"handling":8,"planned_h... | 1 |
dock-24B-w08x2-busy-1 | train | 24B | APM Terminals Barcelona | busy | 8 | 2024-02-19T00:00:00Z | 19 | 8 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 8 of 2024
Hour 0 is Monday 19 February 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Gale warning. From hour 46 to hour 67 ... | 676 | 1,260 | 772 | true | [{"ship": 0, "berth_hour": 17, "section": 8, "cranes": 2}, {"ship": 1, "berth_hour": 29, "section": 4, "cranes": 2}, {"ship": 2, "berth_hour": 31, "section": 8, "cranes": 2}, {"ship": 3, "berth_hour": 61, "section": 8, "cranes": 5}, {"ship": 4, "berth_hour": 103, "section": 2, "cranes": 7}, {"ship": 5, "berth_hour": 85... | [{"ship": 0, "berth_hour": 17, "section": 8, "cranes": 2}, {"ship": 1, "berth_hour": 24, "section": 4, "cranes": 1}, {"ship": 2, "berth_hour": 31, "section": 8, "cranes": 2}, {"ship": 3, "berth_hour": 61, "section": 8, "cranes": 3}, {"ship": 4, "berth_hour": 85, "section": 4, "cranes": 4}, {"ship": 5, "berth_hour": 122... | {"task_id":"dock-24B-w08x2-busy-1","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":8,"week_start_utc":"2024-02-19T00:00:00Z","ships":[{"id":0,"name":"WANDA A","imo":"9415947","length_m":184.01,"sections":5,"arrival":17,"handling":8,"planned_h... | 1 |
dock-24B-w08x2-busy-3 | train | 24B | APM Terminals Barcelona | busy | 8 | 2024-02-19T00:00:00Z | 19 | 7 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 8 of 2024
Hour 0 is Monday 19 February 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Sections 14-19 are closed from hour 16... | 60 | 175 | 125 | true | [{"ship": 0, "berth_hour": 17, "section": 8, "cranes": 3}, {"ship": 1, "berth_hour": 24, "section": 4, "cranes": 2}, {"ship": 2, "berth_hour": 31, "section": 8, "cranes": 4}, {"ship": 3, "berth_hour": 54, "section": 8, "cranes": 5}, {"ship": 4, "berth_hour": 85, "section": 14, "cranes": 4}, {"ship": 5, "berth_hour": 85... | [{"ship": 0, "berth_hour": 17, "section": 8, "cranes": 2}, {"ship": 1, "berth_hour": 24, "section": 4, "cranes": 1}, {"ship": 2, "berth_hour": 31, "section": 8, "cranes": 2}, {"ship": 3, "berth_hour": 54, "section": 8, "cranes": 3}, {"ship": 4, "berth_hour": 85, "section": 14, "cranes": 4}, {"ship": 5, "berth_hour": 85... | {"task_id":"dock-24B-w08x2-busy-3","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":8,"week_start_utc":"2024-02-19T00:00:00Z","ships":[{"id":0,"name":"WANDA A","imo":"9415947","length_m":184.01,"sections":5,"arrival":17,"handling":8,"planned_h... | 1 |
dock-24B-w11x1-busy-0 | train | 24B | APM Terminals Barcelona | busy | 11 | 2024-03-11T00:00:00Z | 12 | 7 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 11 of 2024
Hour 0 is Monday 11 March 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Unscheduled call: ship 11 SASKIA A (222 ... | 123 | 562 | 201 | true | [{"ship": 0, "berth_hour": 27, "section": 5, "cranes": 4}, {"ship": 1, "berth_hour": 46, "section": 2, "cranes": 7}, {"ship": 2, "berth_hour": 40, "section": 6, "cranes": 5}, {"ship": 3, "berth_hour": 66, "section": 2, "cranes": 4}, {"ship": 4, "berth_hour": 65, "section": 7, "cranes": 5}, {"ship": 5, "berth_hour": 83,... | [{"ship": 0, "berth_hour": 24, "section": 5, "cranes": 3}, {"ship": 1, "berth_hour": 39, "section": 6, "cranes": 4}, {"ship": 2, "berth_hour": 40, "section": 14, "cranes": 3}, {"ship": 3, "berth_hour": 71, "section": 6, "cranes": 2}, {"ship": 4, "berth_hour": 86, "section": 15, "cranes": 3}, {"ship": 5, "berth_hour": 8... | {"task_id":"dock-24B-w11x1-busy-0","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":11,"week_start_utc":"2024-03-11T00:00:00Z","ships":[{"id":0,"name":"HYUNDAI OAKLAND","imo":"9385013","length_m":293.2,"sections":7,"arrival":24,"handling":15,"... | 1 |
dock-24B-w11x1-busy-1 | train | 24B | APM Terminals Barcelona | busy | 11 | 2024-03-11T00:00:00Z | 12 | 7 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 11 of 2024
Hour 0 is Monday 11 March 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Unscheduled call: ship 11 ZIM IBERIA (26... | 133 | 477 | 164 | true | [{"ship": 0, "berth_hour": 46, "section": 5, "cranes": 5}, {"ship": 1, "berth_hour": 25, "section": 14, "cranes": 4}, {"ship": 2, "berth_hour": 40, "section": 6, "cranes": 5}, {"ship": 3, "berth_hour": 63, "section": 6, "cranes": 4}, {"ship": 4, "berth_hour": 65, "section": 15, "cranes": 5}, {"ship": 5, "berth_hour": 8... | [{"ship": 0, "berth_hour": 42, "section": 5, "cranes": 3}, {"ship": 1, "berth_hour": 25, "section": 14, "cranes": 4}, {"ship": 2, "berth_hour": 58, "section": 6, "cranes": 3}, {"ship": 3, "berth_hour": 62, "section": 12, "cranes": 2}, {"ship": 4, "berth_hour": 59, "section": 17, "cranes": 3}, {"ship": 5, "berth_hour": ... | {"task_id":"dock-24B-w11x1-busy-1","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":11,"week_start_utc":"2024-03-11T00:00:00Z","ships":[{"id":0,"name":"HYUNDAI OAKLAND","imo":"9385013","length_m":293.2,"sections":7,"arrival":42,"handling":15,"... | 1 |
dock-24B-w11x1-busy-2 | train | 24B | APM Terminals Barcelona | busy | 11 | 2024-03-11T00:00:00Z | 12 | 9 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 11 of 2024
Hour 0 is Monday 11 March 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Unscheduled call: ship 11 OOCL EUROPE (3... | 300 | 752 | 515 | true | [{"ship": 0, "berth_hour": 34, "section": 5, "cranes": 5}, {"ship": 1, "berth_hour": 49, "section": 14, "cranes": 7}, {"ship": 2, "berth_hour": 43, "section": 6, "cranes": 5}, {"ship": 3, "berth_hour": 69, "section": 6, "cranes": 4}, {"ship": 4, "berth_hour": 68, "section": 15, "cranes": 5}, {"ship": 5, "berth_hour": 8... | [{"ship": 0, "berth_hour": 34, "section": 9, "cranes": 3}, {"ship": 1, "berth_hour": 49, "section": 14, "cranes": 4}, {"ship": 2, "berth_hour": 45, "section": 3, "cranes": 3}, {"ship": 3, "berth_hour": 55, "section": 6, "cranes": 2}, {"ship": 4, "berth_hour": 77, "section": 8, "cranes": 3}, {"ship": 5, "berth_hour": 83... | {"task_id":"dock-24B-w11x1-busy-2","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":11,"week_start_utc":"2024-03-11T00:00:00Z","ships":[{"id":0,"name":"HYUNDAI OAKLAND","imo":"9385013","length_m":293.2,"sections":7,"arrival":34,"handling":15,"... | 1 |
dock-24B-w11x2-busy-0 | train | 24B | APM Terminals Barcelona | busy | 11 | 2024-03-11T00:00:00Z | 19 | 9 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 11 of 2024
Hour 0 is Monday 11 March 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Gale warning. From hour 53 to hour 83 th... | 1,618 | 3,816 | 2,362 | true | [{"ship": 0, "berth_hour": 24, "section": 5, "cranes": 3}, {"ship": 1, "berth_hour": 25, "section": 14, "cranes": 6}, {"ship": 2, "berth_hour": 47, "section": 12, "cranes": 5}, {"ship": 3, "berth_hour": 54, "section": 12, "cranes": 4}, {"ship": 4, "berth_hour": 65, "section": 15, "cranes": 5}, {"ship": 5, "berth_hour":... | [{"ship": 0, "berth_hour": 24, "section": 5, "cranes": 3}, {"ship": 1, "berth_hour": 25, "section": 14, "cranes": 4}, {"ship": 2, "berth_hour": 83, "section": 12, "cranes": 3}, {"ship": 3, "berth_hour": 84, "section": 18, "cranes": 2}, {"ship": 4, "berth_hour": 93, "section": 12, "cranes": 3}, {"ship": 5, "berth_hour":... | {"task_id":"dock-24B-w11x2-busy-0","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":11,"week_start_utc":"2024-03-11T00:00:00Z","ships":[{"id":0,"name":"HYUNDAI OAKLAND","imo":"9385013","length_m":293.2,"sections":7,"arrival":24,"handling":15,"... | 1 |
dock-24B-w11x2-busy-2 | train | 24B | APM Terminals Barcelona | busy | 11 | 2024-03-11T00:00:00Z | 19 | 9 | You are the berth planner for this quay. The published plan no longer works. Make a new berth plan for every ship in the table: when it berths, where, and how many quay cranes work it.
Rules (a plan that breaks any of them is infeasible):
- A ship berths at or after its arrival hour.
- It gets between its min and max ... | # APM Terminals Barcelona, Port of Barcelona - quay 24B, week 11 of 2024
Hour 0 is Monday 11 March 2024 00:00 UTC. Times are whole hours from then.
The quay is sections 2-22 (about 42 m each). A ship needs its number of consecutive sections for its hours alongside.
## Notices
- Gale warning. From hour 288 to hour 316 ... | 189 | 781 | 380 | true | [{"ship": 0, "berth_hour": 24, "section": 10, "cranes": 5}, {"ship": 1, "berth_hour": 33, "section": 14, "cranes": 7}, {"ship": 2, "berth_hour": 52, "section": 6, "cranes": 5}, {"ship": 3, "berth_hour": 58, "section": 6, "cranes": 4}, {"ship": 4, "berth_hour": 59, "section": 15, "cranes": 5}, {"ship": 5, "berth_hour": ... | [{"ship": 0, "berth_hour": 24, "section": 10, "cranes": 3}, {"ship": 1, "berth_hour": 39, "section": 14, "cranes": 4}, {"ship": 2, "berth_hour": 48, "section": 6, "cranes": 3}, {"ship": 3, "berth_hour": 58, "section": 6, "cranes": 2}, {"ship": 4, "berth_hour": 71, "section": 15, "cranes": 3}, {"ship": 5, "berth_hour": ... | {"task_id":"dock-24B-w11x2-busy-2","split":"train","quay":"24B","terminal":"APM Terminals Barcelona","first_section":2,"last_section":22,"section_m":42.0,"week":11,"week_start_utc":"2024-03-11T00:00:00Z","ships":[{"id":0,"name":"HYUNDAI OAKLAND","imo":"9385013","length_m":293.2,"sections":7,"arrival":24,"handling":15,"... | 1 |
PortSimEnv v1
Re-plan container-ship dockings at the Port of Barcelona. Each task is a real week (or two or three) at one container quay, built from the port's own 2024 records, with disruptions added: late and bunched ships, closed quay sections, crane breakdowns, gales under the port's wind rules, traffic diverted from the other terminal, emergencies and priority cargo. The agent decides when and where each ship docks and with how many cranes, and is graded once, deterministically, against the plan a CP-SAT solver proved optimal.
| Environment (OpenEnv Space, 3D viewer, eval explorer) | FineEnvs/PortSimEnv |
| Article | Simulation RL Environments |
| Bucket (3D twin data, raw eval rollouts) | FineEnvs/PortSimEnv |
| Code | adithya-s-k/FineEnvs: 07-simulation-environments/portsim-v1 |
| Ideas for v2, v3, post-training, data | GitHub Discussions |
Configs
| config | split | rows | what |
|---|---|---|---|
tasks |
train |
1,050 | training tasks |
tasks |
eval |
50 | held-out tasks: whole week groups that never appear in train |
rollouts |
eval |
300 | 6 models x 50 eval tasks: transcript, tool calls, final plan, grade |
calls |
train |
1,784 | the 2024 container calls at quays 36A (BEST) and 24B (APM Terminals) the tasks are built from |
tasks: system_prompt and situation are exactly what the environment sends (the rules, then the opening
message, which is also what get_situation() returns). task is the full task as JSON (ships, closures, disruptions,
rules). optimal_plan / optimal_cost are the CP-SAT reference (proven_optimal says whether optimality was
proven); naive_plan / naive_cost re-plan by pushing ships later. A plan is a JSON list of
{"ship": id, "berth_hour": h, "section": s, "cranes": c}.
rollouts: one row per (model, task) from the eval run dock-eval50: 12 turns and 32k output tokens per turn,
the same three tools. messages is the full transcript, steps the tool calls with each check_plan result,
grade the final grade.
Results on the 50 eval tasks
| model | mean reward | standard | busy | storm | extreme | submitted | valid | optimal |
|---|---|---|---|---|---|---|---|---|
| GPT-6.1 Sol | 0.888 | 1.00 | 0.90 | 0.86 | 0.82 | 50 | 50 | 26 |
| Claude Sonnet 5.5 | 0.782 | 0.92 | 0.80 | 0.68 | 0.77 | 49 | 49 | 10 |
| GLM-5.3-Flash | 0.470 | 0.77 | 0.50 | 0.46 | 0.24 | 36 | 25 | 9 |
| Qwen3.8-2.4T | 0.380 | 0.58 | 0.45 | 0.33 | 0.21 | 34 | 23 | 5 |
| GLM-5.3 | 0.313 | 0.62 | 0.34 | 0.22 | 0.15 | 17 | 16 | 10 |
| Qwen3.8-27B | 0.211 | 0.40 | 0.27 | 0.22 | 0.00 | 16 | 13 | 3 |
Reward
Deterministic, no LLM judge. A plan that breaks any rule scores at most 0.2 (0.2 x the share of ships placed cleanly).
A valid plan's cost (hours each ship leaves after its due time x its size x its priority, plus penalties for late
emergency dockings and moved ships) is compared with the optimum:
gap = (cost - optimum) / (optimum - unavoidable + 100), reward = 0.2 + 0.8 * exp(-gap / 0.5). No submission
scores 0.
Use
import json
from datasets import load_dataset
tasks = load_dataset("FineEnvs/PortSimEnv", "tasks", split="eval")
task = tasks[0]
print(task["system_prompt"], task["situation"], sep="\n\n")
Every task can be played on the environment Space (OpenEnv; MCP tools get_situation, check_plan,
submit_plan). Submitting the reference optimum scores 1.0:
from openenv.core.env_server.mcp_types import CallToolAction
from openenv.core.mcp_client import MCPToolClient
env = MCPToolClient("https://fineenvs-portsimenv.hf.space").sync()
env.reset(task_id=task["task_id"])
step = env.step(CallToolAction(tool_name="submit_plan", arguments={"plan": json.loads(task["optimal_plan"])}))
print(step.reward) # 1.0
Source and licence
Contains data from the Port de Barcelona open data portal (https://opendata.portdebarcelona.cat/), via the 2024 snapshot in alberto-santini/berth-allocation-problems, licensed CC BY-SA 4.0. This dataset is shared under the same licence. Crane fleets, wind rules and handling rates come from the terminals' and the port's published information; disruptions are generated. Work in progress (v1).
- Downloads last month
- -