Skip to content

feat: add multi-truck freight loading benchmark - #117

Open
Emilycreate2026 wants to merge 2 commits into
Einsia:mainfrom
Emilycreate2026:feat/stacked-freight-campaign-20261012
Open

Emilycreate2026 wants to merge 2 commits into
Einsia:mainfrom
Emilycreate2026:feat/stacked-freight-campaign-20261012

Conversation

@Emilycreate2026

@Emilycreate2026 Emilycreate2026 commented Oct 12, 2026 •

Copy link
Copy Markdown

Summary

Add FreightOperations/StackedFreightCampaign, a multi-truck loading optimization task covering packing feasibility, transportation cost and inventory cost.

The candidate edits scripts/init.py to minimize transportation plus inventory cost, subject to the documented hard constraints. The evaluator regenerates outputs in a fresh, network-disabled candidate sandbox and recomputes feasibility and the raw objective from trusted inputs. Feasible score is the negative raw objective; there is no Oracle-equality or hidden binary quality gate.

Inputs and baseline

The input CSV files describe the items, trucks and loading parameters for the freight campaign. The task specification defines the loading constraints and output format. A C++ baseline generates loading plans from these inputs, and the evaluator checks feasibility and recomputes transportation plus inventory cost.

The submission includes the input files, baseline source, conversion helpers, evaluator and runtime instructions. Baseline outputs are regenerated from inputs on every evaluation; saved solution artifacts are not supplied to the candidate.

Validation

Passed both required commands against upstream bafa7d53162a3b1f128fec396bbde22fe972bf24:

# From this task directory:
python verification/evaluator.py scripts/init.py
# From the repository root with the Frontier Eval driver:
python -m frontier_eval task=unified task.benchmark=FreightOperations/StackedFreightCampaign algorithm=openevolve algorithm.iterations=0 task.runtime.python_path=python3 algorithm.oe.evaluator.timeout=1200

Both runs freshly generated feasible outputs, with identical artifact SHA-256 values and raw objective 2457693.0. Unified evaluation runtime was approximately 8.7 seconds. Structured results are in references/validation.json.

Negative checks confirmed that the candidate cannot read the verifier or modify inputs, and that forged score files without solution outputs are rejected. Baseline validation used a Linux container permitting the upstream bubblewrap namespaces; the task runtime used Python 3.12.11 and NumPy 2.2.6, with a separate framework-driver environment. The 1200-second framework timeout covers the 900-second candidate cap plus verification. No model API calls were made. These checks establish execution and scoring compatibility, not frontier-model difficulty or a complete leaderboard calibration.

@github-actions

Copy link
Copy Markdown

🤖 AI Code Review (gemini-3-flash-preview)

🇬🇧 English Analysis

1. Executive Summary

  • Core Purpose: This PR introduces a new complex engineering optimization benchmark task titled "StackedFreightCampaign" under the FreightOperations category. It is based on the ROADEF 2022 Challenge (Truck Loading), focusing on 3D packing, weight distribution, and logistics scheduling.
  • Modified File Structure & Modifications:
    • benchmarks/FreightOperations/README.md: Created a high-level entry point for the FreightOperations category.
    • benchmarks/FreightOperations/StackedFreightCampaign/README.md: Provided detailed task requirements (Python 3.12, Java 17+, C++20), validation commands, and baseline performance metrics.
    • benchmarks/FreightOperations/StackedFreightCampaign/Task.md: Defined the specific optimization problem, including input/output schemas, constraints (I1-I5, S1-S7, P1-P4), and scoring metrics.
    • benchmarks/FreightOperations/StackedFreightCampaign/environment/RULES.txt: Included the full technical specification of the ROADEF 2022 challenge.
    • benchmarks/FreightOperations/StackedFreightCampaign/environment/RULES.pdf: Binary version of the challenge rules.

2. AI Content Analysis

  • Estimated AI Component: 15%
  • Reasoning & Evidence: The core problem definition and constraints are derived from a real-world historical competition (ROADEF 2022), which is highly domain-specific. However, the README.md and Task.md files exhibit highly structured, boilerplate-heavy formatting typical of AI-assisted documentation generation (e.g., the "Requirements" and "Validation" sections use very standard technical writing templates). The phrasing in Task.md ("Deliver every input item quantity... respect delivery windows...") is concise and professional, likely refined by an LLM.

3. Engineering & Economic Assessment

  • Engineering Reality Check: Production-Grade. This is not a toy example. The task involves multi-dimensional constraints including 3D spatial packing (non-overlap, orientation), mechanical constraints (axle loads, center of gravity), and temporal constraints (delivery windows). It requires a sophisticated solver or heuristic approach to handle the complexity of 260,000+ items and thousands of trucks.
  • Economic Value: High. Logistics optimization is a multi-billion dollar industry. Improving truck filling rates and reducing inventory costs directly impacts the bottom line of supply chain operations. This benchmark provides a rigorous test for LLMs or optimization algorithms in a high-value industrial context.

4. Quality Assurance

  • Verification & Testing:
    • frontier_eval Integration: Yes
    • task_name: FreightOperations/StackedFreightCampaign
    • Execution & Dependencies: The README.md explicitly documents the environment setup (Python 3.12, Java 17, g++, Boost, NumPy 2.2.6) and provides the exact frontier_eval command for execution.
  • Documentation Quality: Excellent. The documentation is comprehensive, covering hardware requirements (16 GiB RAM, 1 CPU), software dependencies, and the scoring mechanism. It clearly distinguishes between "planned" and "extra" trucks and explains the objective function.
  • Organizational Structure: Logical and Scalable. The use of a nested directory structure (benchmarks/Category/Task) allows for easy addition of more logistics-related tasks in the future.

5. Security & Privacy Check

  • Sensitive Files: Clean. No .env, API keys, or IDE-specific configurations were found in the diff.
  • Absolute Paths: None detected. The documentation and task descriptions use relative paths (e.g., environment/data, scripts/init.py).

🇨🇳 中文分析

1. 摘要

  • 核心目的: 此 PR 引入了一个名为 "StackedFreightCampaign" 的复杂工程优化基准任务,归属于 FreightOperations 类别。该任务基于 ROADEF 2022 挑战赛(卡车装载),重点关注 3D 装箱、重量分布和物流调度。
  • 修改的文件结构与变更摘要:
    • benchmarks/FreightOperations/README.md: 创建了 FreightOperations 类别的总入口文档。
    • benchmarks/FreightOperations/StackedFreightCampaign/README.md: 提供了详细的任务需求(Python 3.12, Java 17+, C++20)、验证命令和基准性能指标。
    • benchmarks/FreightOperations/StackedFreightCampaign/Task.md: 定义了具体的优化问题,包括输入/输出架构、约束条件(I1-I5, S1-S7, P1-P4)和评分标准。
    • benchmarks/FreightOperations/StackedFreightCampaign/environment/RULES.txt: 包含了 ROADEF 2022 挑战赛的完整技术规范。
    • benchmarks/FreightOperations/StackedFreightCampaign/environment/RULES.pdf: 挑战规则的二进制版本。

2. AI 成分分析

  • 预估 AI 含量: 15%
  • 判断依据与证据: 核心问题定义和约束条件源自真实的历届竞赛(ROADEF 2022),具有高度的领域特定性。然而,README.md 和 Task.md 文件表现出高度结构化、模板化的格式,这是典型的 AI 辅助文档生成的特征(例如,“Requirements”和“Validation”部分使用了非常标准的规范写作模板)。Task.md 中的措辞(如 "Deliver every input item quantity... respect delivery windows...")简洁专业,很可能经过了 LLM 的润色。

3. 工程与经济评估

  • 工程现实检验: 生产级。 这不是一个玩具示例。该任务涉及多维约束,包括 3D 空间装箱(无重叠、方向性)、力学约束(轴重、重心)和时间约束(交付窗口)。它需要复杂的求解器或启发式算法来处理超过 26 万件物品和数千辆卡车的复杂性。
  • 经济价值: 高。 物流优化是一个价值数千亿美元的行业。提高卡车装载率和降低库存成本直接影响供应链运营的利润。该基准测试为 LLM 或优化算法在高价值工业场景下的表现提供了严格的检验。

4. 质量保证

  • 验证与测试:
    • frontier_eval 集成: 是
    • task_name: FreightOperations/StackedFreightCampaign
    • 运行与依赖: README.md 明确记录了环境配置(Python 3.12, Java 17, g++, Boost, NumPy 2.2.6),并提供了确切的 frontier_eval 运行命令。
  • 文档质量: 优秀。 文档非常全面,涵盖了硬件要求(16 GiB RAM, 1 CPU)、软件依赖和评分机制。它清晰地区分了“计划内”和“额外”卡车,并解释了目标函数。
  • 组织结构: 逻辑清晰且具备可扩展性。 采用嵌套目录结构(benchmarks/Category/Task)便于未来添加更多物流相关的任务。

5. 安全与隐私检查

  • 敏感文件: 未发现异常。 Diff 中未发现 .env、API 密钥或 IDE 特定配置。
  • 绝对路径: 未检测到。 文档和任务描述均使用相对路径(如 environment/data, scripts/init.py)。

@Emilycreate2026

Emilycreate2026 commented Oct 12, 2026 •

Copy link
Copy Markdown
Author

Hello @wrh-human and @ahydchh, thank you for your work on Frontier-Engineering! When you have a chance, could you please take a look at the StackedFreightCampaign task in this PR and let us know whether there are any issues or revisions needed, and whether it would be a good fit for inclusion in the benchmark? I would be happy to make further changes based on your feedback.

Also, is there a tentative timeline for the v2.0 release, and could this submission be considered for that release? I understand the schedule may still be evolving. Thank you for your time and guidance!

@github-actions

Copy link
Copy Markdown

🤖 AI Code Review (gemini-3-flash-preview)

🇬🇧 English Analysis

1. Executive Summary

  • Core Purpose: This PR introduces a new complex engineering optimization benchmark titled "StackedFreightCampaign" under the "FreightOperations" category. It is based on the ROADEF 2022 Challenge, focusing on 3D truck loading, axle weight distribution, and multi-stop route optimization.
  • Modified File Structure & Modifications:
    • benchmarks/FreightOperations/README.md: Created a top-level entry point for the FreightOperations category.
    • benchmarks/FreightOperations/StackedFreightCampaign/README.md: Provided detailed environment requirements (Python 3.12, Java 17, etc.), validation commands, and baseline performance metrics.
    • benchmarks/FreightOperations/StackedFreightCampaign/Task.md: Defined the optimization problem, input/output CSV schemas, constraints (I1-I5, S1-S7, P1-P4), and the scoring mechanism.
    • benchmarks/FreightOperations/StackedFreightCampaign/environment/RULES.txt & .pdf: Included the official, exhaustive rulebook for the ROADEF 2022 challenge.

2. AI Content Analysis

  • Estimated AI Component: 15%
  • Reasoning & Evidence: The core problem description and the RULES.txt are clearly derived from the official ROADEF 2022 documentation, which is human-authored industrial material. However, the README.md and Task.md exhibit a highly structured, "templated" style typical of AI-assisted documentation generation. For instance, the phrasing in Task.md ("Every feasible result receives continuous combined_score = -objective; higher is better") and the specific formatting of the "Requirements" section in the README are very standard for AI-generated technical scaffolding. The mention of NumPy 2.2.6 is slightly suspicious as it is a very recent/specific version, which AI sometimes hallucinates or over-specifies based on recent training data.

3. Engineering & Economic Assessment

  • Engineering Reality Check: High Reality. This is not a "toy example." The ROADEF 2022 challenge is a world-renowned industrial optimization problem. It handles non-trivial edge cases such as 3D nesting heights, axle load calculations using torque formulas (EMm/EMr), and strict loading sequences (LIFO/FIFO constraints). The requirement for bubblewrap and user namespaces for sandboxing indicates a production-grade evaluation environment.
  • Economic Value: High. Logistics optimization (filling rate and inventory cost reduction) directly impacts the bottom line of supply chain operations. For an AI benchmark, it provides a rigorous test of a model's ability to reason over physical constraints and mathematical optimization, which is a high-value skill in industrial AI applications.

4. Quality Assurance

  • Verification & Testing:
    • frontier_eval Integration: Yes.
    • task_name: FreightOperations/StackedFreightCampaign
    • Execution & Dependencies: The README.md provides explicit bash commands for both direct evaluation and unified evaluation via frontier_eval. It lists specific system dependencies (g++, Boost, Java 17, Python 3.12).
  • Documentation Quality: Excellent. The documentation is comprehensive. It bridges the gap between the high-level task and the low-level technical requirements. No significant grammatical errors were detected. The inclusion of the original ROADEF PDF/TXT ensures no ambiguity in rules.
  • Organizational Structure: Logical and Scalable. The use of a nested benchmarks/Category/Task structure allows for easy addition of further logistics-related tasks.

5. Security & Privacy Check

  • Sensitive Files: Clean. No .env, API keys, or IDE-specific files were found in the diff.
  • Absolute Paths: None detected. The documentation and task descriptions use relative paths (e.g., environment/data/campaign).

🇨🇳 中文分析

1. 摘要

  • 核心目的: 此 PR 在 "FreightOperations" 类别下引入了一个名为 "StackedFreightCampaign" 的新型复杂工程优化基准测试。该任务基于 ROADEF 2022 挑战赛,重点关注 3D 卡车装载、轴重分布和多站路径优化。
  • 修改的文件结构与变更摘要:
    • benchmarks/FreightOperations/README.md: 创建了 FreightOperations 类别的顶级入口。
    • benchmarks/FreightOperations/StackedFreightCampaign/README.md: 提供了详细的环境要求(Python 3.12, Java 17 等)、验证命令和基准性能指标。
    • benchmarks/FreightOperations/StackedFreightCampaign/Task.md: 定义了优化问题、输入/输出 CSV 架构、约束条件(I1-I5, S1-S7, P1-P4)以及评分机制。
    • benchmarks/FreightOperations/StackedFreightCampaign/environment/RULES.txt & .pdf: 包含了 ROADEF 2022 挑战赛的官方详尽规则手册。

2. AI 成分分析

  • 预估 AI 含量: 15%
  • 判断依据与证据: 核心问题描述和 RULES.txt 显然源自官方 ROADEF 2022 文档,属于人工编写的工业材料。然而,README.md 和 Task.md 表现出高度结构化、模板化的风格,这是 AI 辅助文档生成的典型特征。例如,Task.md 中的表述(“每个可行结果都会获得连续的 combined_score = -objective;越高越好”)以及 README 中“Requirements”部分的特定格式,非常符合 AI 生成的技术脚手架特征。提及 NumPy 2.2.6 略显可疑,因为这是一个非常新或特定的版本,AI 有时会根据最近的训练数据进行幻觉或过度指定。

3. 工程与经济评估

  • 工程现实检验: 高度现实。这绝非“玩具示例”。ROADEF 2022 挑战赛是全球知名的工业优化问题。它处理了非平凡的边缘情况,如 3D 嵌套高度、使用扭矩公式的轴荷计算(EMm/EMr)以及严格的装载顺序(LIFO/FIFO 约束)。对 bubblewrap 和用户命名空间进行沙箱化的要求表明这是一个生产级的评估环境。
  • 经济价值: 高。物流优化(填充率和库存成本降低)直接影响供应链运营的底线。作为 AI 基准测试,它严格测试了模型对物理约束和数学优化的推理能力,这是工业 AI 应用中的高价值技能。

4. 质量保证

  • 验证与测试:
    • frontier_eval 集成: 是
    • task_name: FreightOperations/StackedFreightCampaign
    • 运行与依赖: README.md 提供了直接评估和通过 frontier_eval 进行统一评估的明确 bash 命令。它列出了具体的系统依赖项(g++、Boost、Java 17、Python 3.12)。
  • 文档质量: 优秀。文档非常全面,弥合了高层任务与底层技术要求之间的鸿沟。未检测到明显的语法错误。包含原始 ROADEF PDF/TXT 确保了规则没有歧义。
  • 组织结构: 逻辑清晰且具备可扩展性。采用嵌套的 benchmarks/Category/Task 结构,便于后续添加更多物流相关任务。

5. 安全与隐私检查

  • 敏感文件: 未发现异常。Diff 中未发现 .env、API 密钥或 IDE 特定文件。
  • 绝对路径: 未检测到。文档和任务描述均使用相对路径(例如 environment/data/campaign)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant