Flowtime is a standard performance metric in Multi-Agent Path Finding (MAPF) defined as the sum of the finish times for all agents in a coordinated plan. It is mathematically equivalent to the Sum of Costs (SOC), where the cost for each agent is the number of time steps from its start until it reaches its goal. This metric directly measures the total cumulative time the entire fleet spends in motion, making it a critical Key Performance Indicator (KPI) for logistics and warehousing operations where minimizing total agent active time correlates with reduced energy consumption and increased throughput.
Glossary
Flowtime

What is Flowtime?
Flowtime is a core performance metric in Multi-Agent Path Finding (MAPF) used to evaluate the efficiency of a coordinated plan for a fleet of robots or agents.
When optimizing for minimal flowtime, MAPF algorithms aim to find collision-free paths that minimize the collective delay of the fleet, rather than just the completion time of the slowest agent (which is makespan). This often involves sophisticated trade-offs, such as having some agents take slightly longer routes to avoid causing greater delays for others. Flowtime is a fundamental objective in optimal MAPF solvers like Conflict-Based Search (CBS) and Increasing Cost Tree Search (ICTS), and its minimization is essential for the economic efficiency of heterogeneous fleet orchestration in dynamic environments.
Key Characteristics of Flowtime
Flowtime, equivalent to Sum of Costs (SOC), is the primary metric for evaluating the aggregate efficiency of a Multi-Agent Path Finding (MAPF) solution. It quantifies the total system effort by summing the individual completion times for all agents.
Definition & Formula
Flowtime is defined as the sum of the finish times for all agents in a Multi-Agent Path Finding (MAPF) solution. For an agent (a_i) with a path cost (or travel time) of (c_i), the Flowtime (F) is calculated as:
[ F = \sum_{i=1}^{k} c_i ]
where (k) is the total number of agents. This makes it mathematically identical to the Sum of Costs (SOC) metric. It measures the cumulative 'waiting time' of the system, where each agent's clock starts at time zero and stops when it reaches its goal.
Contrast with Makespan
Flowtime and Makespan are the two fundamental MAPF performance metrics, each serving a different optimization goal.
- Flowtime (SOC): Sum of individual agent completion times. Optimizes for total system throughput and aggregate efficiency. Reducing Flowtime often means getting as many agents to their goals as quickly as possible on average.
- Makespan: The time when the last agent finishes. Optimizes for completion time of the overall mission. A solution can have a low Makespan but a high Flowtime if some agents are delayed so that others can finish quickly.
Engineers choose the metric based on the operational objective: minimizing total work (Flowtime) versus minimizing mission duration (Makespan).
Algorithmic Implications
Optimizing for minimal Flowtime directly influences algorithm design and search strategy in MAPF solvers.
- Cost Structure: Algorithms like Conflict-Based Search (CBS) and Multi-Agent A (MAA)** use Flowtime as the primary cost function to minimize during the search in the joint state space.
- Conflict Resolution: When resolving a vertex conflict or edge conflict, the algorithm evaluates which constraint (e.g., forcing agent A to wait vs. agent B) results in the lower overall increase to the total Flowtime.
- Bounded Suboptimality: Some scalable algorithms accept a bounded suboptimal solution (e.g., Flowtime ≤ 1.2 * optimal) to find feasible plans much faster, which is critical for Lifelong MAPF (LMAPF) applications.
Operational Interpretation
In real-world heterogeneous fleet orchestration, a low Flowtime translates to tangible business and operational benefits.
- Total System Delay: Represents the sum of all time agents spend in transit or waiting. Lower Flowtime means less aggregate delay.
- Resource Utilization: Directly correlates with the total productive work done by the fleet. Minimizing Flowtime maximizes the throughput of tasks (e.g., items picked, distance traveled) per unit time.
- Battery & Energy Consumption: In battery-aware scheduling, a lower Flowtime often implies less total distance traveled by the fleet, leading to reduced aggregate energy consumption and more efficient charging cycles.
Related Concepts & Metrics
Flowtime interacts with several other key concepts in multi-agent coordination and performance analysis.
- Sum of Costs (SOC): The direct synonym for Flowtime.
- k-Robust Planning: A strategy that enforces temporal separation between agents to create execution buffers. Increasing robustness (k) typically increases the solution's Flowtime, trading off efficiency for reliability.
- Multi-Value Decision Diagram (MDD): A compact structure encoding all optimal paths for a single agent within a given cost bound. MDDs are used in algorithms like Increasing Cost Tree Search (ICTS) to efficiently explore combinations of agent costs that meet a target Flowtime.
- Load Balancing: In dynamic task allocation, a balanced workload distribution across agents generally contributes to a lower overall Flowtime.
Use Case Example: Warehouse Fulfillment
Consider a warehouse where 10 autonomous mobile robots (AMRs) must retrieve items from shelves and deliver them to packing stations.
- Scenario: Each robot is assigned a unique retrieval task. The orchestration middleware runs a MAPF solver to plan collision-free paths.
- Flowtime Calculation: If the planned paths result in completion times of [30s, 45s, 50s, 25s, 60s, 35s, 40s, 55s, 20s, 30s] for the 10 robots, the Flowtime is 390 seconds.
- Optimization Goal: The operations manager wants to minimize the total time robots spend driving (to reduce wear and energy use) and maximize the number of tasks completed per hour. The planning engine continuously re-optimizes for minimal Flowtime as new tasks arrive (real-time replanning), directly improving the site's key performance indicators (KPIs) like orders per hour.
Flowtime vs. Makespan: A Key Comparison
A comparison of two fundamental metrics used to evaluate solutions in Multi-Agent Path Finding (MAPF), highlighting their distinct optimization goals and implications for system design.
| Metric / Feature | Flowtime (Sum of Costs) | Makespan |
|---|---|---|
Core Definition | The sum of the finish times (or path costs) for all individual agents. | The total elapsed time from the start until the last agent finishes. |
Mathematical Formula | SOC = Σ (finish_time_i - start_time_i) for all agents i | Makespan = max(finish_time_i) for all agents i |
Primary Optimization Goal | Overall system efficiency and total resource consumption. | Minimizing the completion time of the longest-running task. |
Impact on Agent Behavior | Encourages distributing work evenly; agents may take slightly longer, indirect routes if it reduces total system cost. | Encourages parallelization; may prioritize clearing a path for the slowest agent, potentially increasing costs for others. |
Sensitivity to Fleet Size | Typically increases linearly with the number of agents, as it is a sum. | May remain stable or increase sub-linearly if agents can work in parallel. |
Use Case Preference | Warehousing (minimizing total robot travel time/energy), service-oriented fleets. | Manufacturing assembly lines, disaster response (completing a mission phase), time-critical deployments. |
Algorithmic Complexity | Often more computationally intensive to optimize, as it requires fine-grained coordination of all agents' costs. | Can sometimes be simpler to approximate, focusing on the critical path of the slowest agent. |
Relationship to Each Other | A lower makespan does not guarantee a lower flowtime. Optimizing for one can negatively impact the other. | A lower flowtime often, but not always, contributes to a lower makespan. They are distinct objectives. |
Frequently Asked Questions
Flowtime is a core performance metric in Multi-Agent Path Finding (MAPF) used to evaluate the efficiency of a coordinated plan for a fleet of robots or agents. These questions address its definition, calculation, and role in system optimization.
Flowtime is a standard performance metric in Multi-Agent Path Finding (MAPF) defined as the sum of the finish times for all agents in a coordinated plan. It is mathematically equivalent to the Sum of Costs (SOC), where the cost for each agent is the number of time steps (or distance) from its start location to its goal. Formally, for a set of agents ( A ), if agent ( a_i ) reaches its goal at time ( t_i ), then Flowtime = ( \sum_{a_i \in A} t_i ). This metric directly measures the total cumulative time the fleet spends in motion, making its minimization a primary objective for optimizing overall system throughput and efficiency in logistics and warehousing.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Flowtime is a core metric in Multi-Agent Path Finding. These related terms define the algorithmic landscape for optimizing agent coordination and measuring system performance.
Sum of Costs (SOC)
Sum of Costs (SOC) is the foundational performance metric in Multi-Agent Path Finding, defined as the sum of the path costs (typically travel time or number of steps) for all individual agents from their start to their goal. Flowtime is mathematically equivalent to SOC. It is the primary objective for optimal MAPF algorithms like Conflict-Based Search (CBS) and Multi-Agent A* (MAA*), which aim to minimize the total system effort.
Makespan
Makespan is a critical alternative performance metric in MAPF, defined as the total time elapsed from the start of execution until the last agent reaches its goal. Unlike Flowtime (SOC), which sums all agents' times, Makespan focuses on minimizing the overall completion time of the longest task. This metric is paramount in production scheduling and warehouse throughput scenarios where finishing the entire batch of jobs quickly is the priority.
- Key Difference: Minimizing Makespan can lead to different optimal paths than minimizing Flowtime.
Conflict-Based Search (CBS)
Conflict-Based Search (CBS) is a leading optimal algorithm for solving MAPF problems, explicitly designed to minimize the Sum of Costs (Flowtime). It operates on two levels:
- High-level: Searches a constraint tree, where each node contains a set of constraints (e.g., "Agent A cannot be at vertex V at time T") and a solution that respects them.
- Low-level: Performs a single-agent path search (e.g., A* or Space-Time A*) for each agent, incorporating the current constraints. When a vertex conflict or edge conflict is found, CBS branches by adding constraints to resolve it, guaranteeing an optimal solution.
Multi-Agent A* (MAA*)
Multi-Agent A (MAA)** is a centralized, optimal search algorithm that plans directly in the joint state space of all agents. Each state in the search graph represents the combined locations of all agents at a given time. It applies the classic A* algorithm to this exponentially large space, using a heuristic to estimate the remaining total cost (Flowtime). While guaranteed to find the optimal solution, its complexity grows exponentially with the number of agents, making it suitable only for small fleets or as a subroutine in more scalable algorithms like CBS.
Cardinal Conflict
A Cardinal Conflict is the most severe type of conflict in MAPF algorithms like CBS. It occurs between two agents where any feasible resolution inevitably increases the Sum of Costs (Flowtime). For example, if two agents must cross a narrow corridor in opposite directions, one must wait, adding a cost of at least one time step to the system total. Identifying cardinal conflicts allows algorithms to prioritize their resolution, as they represent a hard lower bound on cost increase and are essential for proving optimality.
Bounded Suboptimal Search
Bounded Suboptimal Search refers to a class of MAPF algorithms that sacrifice guaranteed optimality for dramatically improved speed and scalability. These algorithms, such as Enhanced CBS (ECBS), find solutions with a cost (Flowtime) that is provably no worse than w * optimal_cost, where w > 1 is a user-defined suboptimality bound (e.g., 1.5). This approach is essential for real-world heterogeneous fleet orchestration, where finding a good-enough plan quickly is more valuable than waiting for a perfect one.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us