物流路線最佳化

AI ↔ AI

批次訂單、計算距離、求解限制條件、分配路線並派遣。

5 個節點 · 5 條連接logistics
agentapisystem
視覺化
訂單批次代理人agent

依地區、優先級與配送時間窗對待處理訂單進行分組。

sequential距離矩陣 API 代理人
距離矩陣 API 代理人api

查詢 Google Maps 或 OSRM,取得所有站點間的兩兩行車時間。

sequential限制條件求解代理人
限制條件求解代理人agent

考量車輛容量、時間窗與駕駛時數限制,求解車輛路徑問題。

sequential路線指派代理人
fallback訂單批次代理人
路線指派代理人agent

根據車型與位置,將最佳化路線指派給可用的司機。

sequential派遣通知
派遣通知api

將路線資料推送至司機行動 app 並更新 TMS 儀表板。

uc-route-optimization.osop.yaml
osop_version: "1.0"
id: "route-optimization"
name:"物流路線最佳化"
description:"批次訂單、計算距離、求解限制條件、分配路線並派遣。"

nodes:
  - id: "order_batch"
    type: "agent"
    subtype: "worker"
    name: "訂單批次代理人"
    description: "依地區、優先級與配送時間窗對待處理訂單進行分組。"

  - id: "distance_matrix"
    type: "api"
    name: "距離矩陣 API 代理人"
    description: "查詢 Google Maps 或 OSRM,取得所有站點間的兩兩行車時間。"
    timeout_sec: 30

  - id: "constraint_solver"
    type: "agent"
    subtype: "llm"
    name: "限制條件求解代理人"
    description: "考量車輛容量、時間窗與駕駛時數限制,求解車輛路徑問題。"

  - id: "route_assign"
    type: "agent"
    subtype: "planner"
    name: "路線指派代理人"
    description: "根據車型與位置,將最佳化路線指派給可用的司機。"

  - id: "dispatch_notify"
    type: "api"
    name: "派遣通知"
    description: "將路線資料推送至司機行動 app 並更新 TMS 儀表板。"

edges:
  - from: "order_batch"
    to: "distance_matrix"
    mode: "sequential"
  - from: "distance_matrix"
    to: "constraint_solver"
    mode: "sequential"
  - from: "constraint_solver"
    to: "route_assign"
    mode: "sequential"
  - from: "route_assign"
    to: "dispatch_notify"
    mode: "sequential"
  - from: "constraint_solver"
    to: "order_batch"
    mode: "fallback"
    label: "Infeasible solution, re-batch with relaxed windows"