{
  "format": "synforge-benchmark-1.0",
  "name": "资源约束项目调度｜RCPSP扩展",
  "objective": "makespan",
  "validation_defaults": {
    "scheduler_id": "priority",
    "allocator_id": "hungarian"
  },
  "description": "Resource-constrained Project Scheduling\n变量：s(j)：任务开始时间；联盟成员：占用的资源单元\n目标：min Cmax\n约束：勘测→运输→装配的前置约束；任务执行期间独占所选资源；任务人数与能力需求必须满足\n仿真映射：前置图映射到任务依赖，资源映射到平台联盟；含移动和会合时间，是移动资源扩展而非标准RCPSP求解器。\n范围：仿真可行性验证，不构成通用最优性证明。",
  "cases": [
    {
      "id": "serial",
      "document": {
        "schema_version": "1.5",
        "scenario_id": "classic-project-serial-v1",
        "world": {
          "origin": {
            "x": -6,
            "y": -5
          },
          "columns": 12,
          "rows": 10,
          "cell_size": 1
        },
        "platforms": [
          {
            "id": "ugv1",
            "kind": "ugv",
            "start": {
              "x": -4,
              "y": -3
            },
            "speed": 2,
            "capabilities": {
              "processing_rate": 1,
              "survey_rate": 1,
              "transport_rate": 1
            }
          },
          {
            "id": "ugv2",
            "kind": "ugv",
            "start": {
              "x": -4,
              "y": 3
            },
            "speed": 2,
            "capabilities": {
              "processing_rate": 1,
              "survey_rate": 1,
              "transport_rate": 1
            }
          },
          {
            "id": "ugv3",
            "kind": "ugv",
            "start": {
              "x": 4,
              "y": -3
            },
            "speed": 2,
            "capabilities": {
              "processing_rate": 1,
              "survey_rate": 1,
              "transport_rate": 1
            }
          }
        ],
        "tasks": [
          {
            "id": "survey",
            "x": -2,
            "y": -2,
            "requirements": {
              "agents": 1,
              "ugv": 1,
              "uav": 0,
              "capabilities": {
                "processing_rate": 1
              },
              "execution": {
                "duration_seconds": 2,
                "max_execution_seconds": 7
              }
            }
          },
          {
            "id": "delivery",
            "x": 0,
            "y": 2,
            "requirements": {
              "agents": 1,
              "ugv": 1,
              "uav": 0,
              "capabilities": {
                "processing_rate": 1
              },
              "execution": {
                "duration_seconds": 3,
                "max_execution_seconds": 8
              }
            },
            "depends_on": [
              "survey"
            ]
          },
          {
            "id": "assembly",
            "x": 3,
            "y": 0,
            "requirements": {
              "agents": 1,
              "ugv": 1,
              "uav": 0,
              "capabilities": {
                "processing_rate": 1
              },
              "execution": {
                "duration_seconds": 2,
                "max_execution_seconds": 7
              }
            },
            "depends_on": [
              "delivery"
            ]
          }
        ],
        "grid_obstacles": [],
        "circle_obstacles": [],
        "events": [],
        "dt": 0.1,
        "max_steps": 1200,
        "max_duration": 120,
        "arrival_tolerance": 0.1,
        "safety_distance": 0.5
      },
      "modeling": {
        "family": "resource-project-v1",
        "decision_mode": "auto",
        "definition": {
          "name": "资源约束项目调度｜RCPSP扩展",
          "summary": "请替换为成员自己的研究问题说明",
          "simulation_mapping": "请说明数学集合、参数、约束如何映射到平台/任务/世界",
          "limitations": [
            "该数学描述不自动执行，移动、避碰等仿真扩展需单独说明"
          ]
        },
        "mathematical_model": {
          "sets": "J：任务；K：可再生资源种类；E：前置弧；T={0,…,H−1}：离散时间。",
          "parameters": "p_j：整数工时；r_jk：执行时资源需求；R_k：容量；H须容纳可行工期。本例资源为UGV单元。",
          "variables": "x_jt∈{0,1}：任务j在t启动；s_j=Σ_t t x_jt；Cmax：项目工期。",
          "objective": "min Cmax",
          "constraints": [
            "Σ_{t∈T} x_jt = 1，∀j；仅允许t+p_j≤H的启动时刻",
            "Σ_t t x_lt ≥ Σ_t (t+p_j)x_jt，∀(j,l)∈E",
            "Σ_j r_jk Σ_{t: t≤τ<t+p_j} x_jt ≤ R_k，∀k∈K,τ∈T",
            "Cmax ≥ Σ_t (t+p_j)x_jt，∀j∈J"
          ],
          "assumptions": "基础RCPSP为非抢占、可再生资源模型；仿真进一步占用移动/会合期间的平台并考虑几何位置，不能把基础模型工期直接当作仿真最优值。",
          "dynamic_extension": "故障/新任务发生后冻结已执行部分，更新容量、依赖和剩余工时，采用事件触发重调度。"
        },
        "parameters": {
          "resource_ids": [
            "ugv"
          ],
          "resource_capacities": [
            3
          ],
          "task_ids": [
            "survey",
            "delivery",
            "assembly"
          ],
          "processing_times": [
            2,
            3,
            2
          ],
          "resource_demands": [
            [
              1
            ],
            [
              1
            ],
            [
              1
            ]
          ],
          "precedence": [
            [
              "survey",
              "delivery"
            ],
            [
              "delivery",
              "assembly"
            ]
          ]
        },
        "objective_contract": {
          "kind": "makespan",
          "sense": "minimize"
        }
      }
    },
    {
      "id": "resource-heavy",
      "document": {
        "schema_version": "1.5",
        "scenario_id": "classic-project-resource-heavy-v1",
        "world": {
          "origin": {
            "x": -6,
            "y": -5
          },
          "columns": 12,
          "rows": 10,
          "cell_size": 1
        },
        "platforms": [
          {
            "id": "ugv1",
            "kind": "ugv",
            "start": {
              "x": -4,
              "y": -3
            },
            "speed": 2,
            "capabilities": {
              "processing_rate": 1,
              "survey_rate": 1,
              "transport_rate": 1
            }
          },
          {
            "id": "ugv2",
            "kind": "ugv",
            "start": {
              "x": -4,
              "y": 3
            },
            "speed": 2,
            "capabilities": {
              "processing_rate": 1,
              "survey_rate": 1,
              "transport_rate": 1
            }
          },
          {
            "id": "ugv3",
            "kind": "ugv",
            "start": {
              "x": 4,
              "y": -3
            },
            "speed": 2,
            "capabilities": {
              "processing_rate": 1,
              "survey_rate": 1,
              "transport_rate": 1
            }
          }
        ],
        "tasks": [
          {
            "id": "survey",
            "x": -2,
            "y": -2,
            "requirements": {
              "agents": 1,
              "ugv": 1,
              "uav": 0,
              "capabilities": {
                "processing_rate": 1
              },
              "execution": {
                "duration_seconds": 2,
                "max_execution_seconds": 7
              }
            }
          },
          {
            "id": "delivery",
            "x": 0,
            "y": 2,
            "requirements": {
              "agents": 2,
              "ugv": 2,
              "uav": 0,
              "capabilities": {
                "processing_rate": 1
              },
              "execution": {
                "duration_seconds": 3,
                "max_execution_seconds": 8
              }
            },
            "depends_on": [
              "survey"
            ]
          },
          {
            "id": "assembly",
            "x": 3,
            "y": 0,
            "requirements": {
              "agents": 2,
              "ugv": 2,
              "uav": 0,
              "capabilities": {
                "processing_rate": 1
              },
              "execution": {
                "duration_seconds": 2,
                "max_execution_seconds": 7
              }
            },
            "depends_on": [
              "delivery"
            ]
          }
        ],
        "grid_obstacles": [],
        "circle_obstacles": [],
        "events": [],
        "dt": 0.1,
        "max_steps": 1200,
        "max_duration": 120,
        "arrival_tolerance": 0.1,
        "safety_distance": 0.5
      },
      "modeling": {
        "family": "resource-project-v1",
        "decision_mode": "auto",
        "definition": {
          "name": "资源约束项目调度｜RCPSP扩展",
          "summary": "请替换为成员自己的研究问题说明",
          "simulation_mapping": "请说明数学集合、参数、约束如何映射到平台/任务/世界",
          "limitations": [
            "该数学描述不自动执行，移动、避碰等仿真扩展需单独说明"
          ]
        },
        "mathematical_model": {
          "sets": "J：任务；K：可再生资源种类；E：前置弧；T={0,…,H−1}：离散时间。",
          "parameters": "p_j：整数工时；r_jk：执行时资源需求；R_k：容量；H须容纳可行工期。本例资源为UGV单元。",
          "variables": "x_jt∈{0,1}：任务j在t启动；s_j=Σ_t t x_jt；Cmax：项目工期。",
          "objective": "min Cmax",
          "constraints": [
            "Σ_{t∈T} x_jt = 1，∀j；仅允许t+p_j≤H的启动时刻",
            "Σ_t t x_lt ≥ Σ_t (t+p_j)x_jt，∀(j,l)∈E",
            "Σ_j r_jk Σ_{t: t≤τ<t+p_j} x_jt ≤ R_k，∀k∈K,τ∈T",
            "Cmax ≥ Σ_t (t+p_j)x_jt，∀j∈J"
          ],
          "assumptions": "基础RCPSP为非抢占、可再生资源模型；仿真进一步占用移动/会合期间的平台并考虑几何位置，不能把基础模型工期直接当作仿真最优值。",
          "dynamic_extension": "故障/新任务发生后冻结已执行部分，更新容量、依赖和剩余工时，采用事件触发重调度。"
        },
        "parameters": {
          "resource_ids": [
            "ugv"
          ],
          "resource_capacities": [
            3
          ],
          "task_ids": [
            "survey",
            "delivery",
            "assembly"
          ],
          "processing_times": [
            2,
            3,
            2
          ],
          "resource_demands": [
            [
              1
            ],
            [
              2
            ],
            [
              2
            ]
          ],
          "precedence": [
            [
              "survey",
              "delivery"
            ],
            [
              "delivery",
              "assembly"
            ]
          ]
        },
        "objective_contract": {
          "kind": "makespan",
          "sense": "minimize"
        }
      }
    }
  ]
}
