[FEA] Break load windows

未关闭
#2,239 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
json
领域
backend

调研方向

Read the vehicle breaks documentation and trace how fleet_data.vehicle_breaks is parsed and validated in the cuOpt API. The linked PR #2193 is a proposed example to inspect for context. Determine whether breaks can be constrained by capacity dimensions, then confirm the recommended behavior with an API example or guidance in the issue.

由索引模型根据 Issue 内容生成。

描述

feature request

Context

Vehicle breaks in cuOpt currently allow defining:

  • Break window (when the break may occur)
  • Break duration (how long the break lasts)
  • Break location(s) (where the break may occur)

Feature Request

We are using cuOpt to solve vehicle routing problems and have a requirement that vehicle breaks may only occur when the vehicle is empty (i.e. its active load/capacity is 0).

From the current documentation, my understanding is that break feasibility is based on the break's time window and optional locations, but not on the vehicle's current load. As a result, the solver may schedule a break while the vehicle is still carrying cargo.

Would you consider adding support for load-based break constraints? For example, an option to require that a break can only be scheduled when one or more capacity dimensions have a load of zero.

If this is already possible with the current API, or if there is a recommended modeling approach to achieve the same behavior, I would greatly appreciate any guidance.

Pull Request

I added a PR to give an example of how this could be implemented.
https://github.com/NVIDIA/cuopt/pull/2193

An example shape for the API endpoints looks like:

{
  "fleet_data": {
    "capacities": [[10, 10]],
    "vehicle_breaks": [
      {
        "vehicle_id": 0,
        "earliest": 60,
        "latest": 120,
        "duration": 15,
        "locations": [3],
        "load_windows": [[0, 0]]
      }
    ]
  }
}

Thank you!

主要语言
Cuda
星标
1.1k
派生
255
平均合并
1 天 22 小时
30 天内合并 PR
102

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

NVIDIA/cuopt 的其他 Issue

查看 NVIDIA/cuopt 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。