Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions benchmarks/FreightOperations/StackedFreightCampaign/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Stacked Freight Campaign

This local Frontier-Engineering package contains a deterministic engineering
workflow, synthetic input fixture, editable solver, and an executable verifier.
The candidate may edit only `scripts/init.py`; input data and verification code
are copied into the benchmark sandbox as read-only files.

## Local checks

```bash
python verification/evaluator.py scripts/init.py
python -m frontier_eval task=unified task.benchmark=FreightOperations/StackedFreightCampaign algorithm.iterations=0
```

The objective is recomputed from the provided synthetic inputs and the official constraint
checker. A score printed by the candidate is never trusted. The input is a synthetic fixture generated for this benchmark. It contains no user records, credentials, or external private data.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 本地 Frontier-Engineering 任务草稿

这是未提交的本地包。输入、约束和评估器可复现,外部公开发布前仍需完成数据授权复核。
14 changes: 14 additions & 0 deletions benchmarks/FreightOperations/StackedFreightCampaign/Task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Multi-truck freight loading

Load all item quantities into compatible stacks and trucks while preserving
delivery windows, route and plant compatibility, stackability, nesting,
orientation, non-overlap, unloading order, vehicle weight and axle limits.
The complete synthetic instance is under `environment/data` and
the full constraints are in `environment/RULES.txt`.

The candidate writes `output_items.csv`, `output_stacks.csv`, and
`output_trucks.csv` under `/app/results` using the exact semicolon-separated
schemas in `instruction.md`. The official Java checker verifies every physical
item, geometric and vehicle constraint and computes transportation plus
inventory cost. The disclosed authoring baseline is 2,457,693; lower is better.
This is a reproducible baseline for calibration, not a claim of global optimum.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM iregistry.baidu-int.com/lihuaiming/fpga-scratch-feasibility@sha256:1141f3063dd1686ab5d75e171c5af8a278769edbcd64e122b5d151b558f38a3f
USER root
RUN rm -rf /app && mkdir -p /app/results
COPY . /app/
WORKDIR /app
Binary file not shown.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Coefficient inventory cost;Coefficient transportation cost;Coefficient cost extra truck;timelimit (sec)
1;1;0,2;3600

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Task.md
README.md
frontier_eval/constraints.txt
scripts/init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
metrics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts/init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Only scripts/init.py may be edited. Do not modify input data or verification code.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
environment
verification
Task.md
README.md
frontier_eval
scripts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python verification/evaluator.py {candidate}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
scripts/init.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
environment/data
verification
Task.md
README.md
frontier_eval
39 changes: 39 additions & 0 deletions benchmarks/FreightOperations/StackedFreightCampaign/instruction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Optimize a complete multi-truck loading plan
Read the complete synthetic instance in /app/data/campaign:
input_items.csv, input_trucks.csv, input_parameters.csv. These are semicolon-separated
CSV files; numeric decimal commas may occur. Do not modify these input files.
The full problem specification is /app/RULES.txt (also RULES.pdf). Read it,
including constraints I1-I5, S1-S7, P1-P4 and all weight/axle restrictions, before coding.
This is the full multi-stage loading problem, not just a 2D packing subproblem.
Deliver every input item quantity by assigning items to compatible stacks and trucks;
respect delivery windows, route/supplier/plant compatibility, stackability and nesting,
orientation, dimensions, nonoverlap, unloading order, vehicle weight and axle loads.
Do not omit items. The the instance is generated for this benchmark and is included solely for reproducible evaluation.

Write three semicolon-separated CSV files under /app/results, with one header row:
output_items.csv:
Item ident;Id truck;Id stack;Item code;X origin;Y origin;Z origin;X extremity;Y extremity;Z extremity
output_stacks.csv:
Id truck;Id stack;Stack code;X origin;Y origin;Z origin;X extremity;Y extremity;Z extremity
output_trucks.csv:
Id truck;Loaded length;Weight of loaded items;Volume of loaded items;EMm;EMr

Include one item row per physical unit (so Item ident repeats for input quantities).
Use unique stack identifiers and consistent truck/stack references. Item code and
Stack code are display labels; they do not replace the input Item ident.
Coordinates/dimensions are integer millimeters. Loaded length is integer millimeters,
weight/axle loads are kg, and volume is cubic meters. Numerical fields can use decimal
points or commas. Compute the truck summaries consistently with the specified formulas.
A planned truck keeps its input identifier P<suffix>. An extra copy uses Q<suffix>_<unique-copy-number>,
referring to the matching P<suffix>. Extra trucks are permitted by the original rules;
their transportation and inventory costs count toward the objective.

The official Java checker 1.11.4 validates the full output. Its constraint errors
are checked by the official verifier. Minimize the total transportation plus inventory cost.
No saved solution CSVs or commercial solver is supplied.


## Continuous source optimization
Improve the supplied reproducible solver. Minimize the sum of objective across the released instances, preserving every hard constraint. The current authoring baseline is 2457693. Continue reducing the raw objective even when reward is 1. This ceiling is provisional authoring bookkeeping, not a calibrated scientific quality standard.

Keep complete source under solution/ and an executable solve.sh that reads /app/data and freshly generates all outputs in /app/results. Build binaries in /tmp. No saved answers, instance-specific answer tables, hardcoded input identifiers, network dependencies, or private data. Use fixed seeds, deterministic work budgets, stable ordering and tie breaking. A candidate is retained only after two fresh legal generations with identical artifact hashes and metrics and a strictly smaller objective. Public helper libraries are in /app/tools when provided. Clean generation budget: 18000 seconds, 1 CPU, 24 GiB memory.
12 changes: 12 additions & 0 deletions benchmarks/FreightOperations/StackedFreightCampaign/metrics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cases": {
"campaign": {
"inventory_cost": 647793.0,
"items": 52264,
"objective": 2457693.0,
"transportation_cost": 1809900.0,
"valid": true
}
},
"valid": true
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This benchmark uses synthetic task data generated for authoring and review. It contains no user records, credentials, or external private data.
Loading
Loading