1. Introduction
The automation of agricultural harvesting processes through collaborative heterogeneous robotic systems represents a significant advancement in addressing global challenges such as food security, labor shortages, and sustainable farming practices, particularly for small farms. Small-scale farms, which often prioritize artisanal products or small-scale distillations, face acute labor shortages and cannot afford the specialized machinery used by larger operations. The potential for the automation of small farm harvesting through adaptive collaboration with heterogeneous robotic fleets is considerable. However, the effective deployment of such systems requires solving complex path planning problems that extend beyond traditional optimization challenges.
Agricultural automation presents unique challenges due to several factors. A farm may cultivate multiple crop varieties, each requiring different harvesting techniques or handling, thus necessitating a fleet of heterogeneous robots with specialized capabilities. As a case study, consider a lavender farm where different species require robots of varying sizes and toolsets for optimal harvesting. Additionally, the dynamic nature of the agricultural environment, with seasonal and daily changes in field conditions, necessitates optimizing for efficiency while satisfying diverse robot-specific constraints such as size, payload capacity, and fuel consumption. Each farm has different restrictions and needs, which may require different strategies for collaborative operations. Our research aims to develop algorithms for vehicle routing problems under diverse settings with generalized cases applicable to various domains beyond agriculture, such as warehouse logistics, surveillance, and search and rescue operations [
1,
2,
3,
4,
5,
6,
7,
8].
Recent research has proposed various state-of-the-art techniques for agricultural automation involving multiple heterogeneous robots. For instance, Conesa-Muñoz et al. introduced a simulated annealing-based method for path planning of heterogeneous agricultural vehicles, optimizing criteria such as distance, cost, and time while considering fuel capacity [
9] under the simplified assumptions of uniform field geometry. Furchì et al. developed a route planning strategy for heterogeneous mobile robots in precision agriculture, utilizing a multi-Steiner Traveling Salesman Problem to optimize task assignments and paths while accounting for fuel constraints [
10]. Mukhamediev et al. proposed a genetic-algorithm-based method for coverage path planning of heterogeneous aerial vehicles with fuel constraints, focusing on environments with convex fields without obstacles [
11]. Urvina et al. presented an integrated planning strategy for Skid–Steer Mobile Robots in complex agricultural environments, combining a global planning algorithm with a local path planner based on the Informed Rapidly exploring Random Tree Star [
12]. This method prioritizes harvesting positions based on criteria such as minimum path length and vehicle load capacity while considering motion constraints. Pak et al. evaluated path planning algorithms for smart farms, concluding that the A* algorithm is suitable for minimizing crop damage and demonstrates high localization accuracy, although their study was limited to single-robot scenarios [
13]. Utamima and Reiners addressed Agricultural Route Planning in multifield environments with irregular field shapes, aiming to optimize paths for (semi-)autonomous machines using a Fast Hybrid Algorithm [
14].
Although these approaches offer valuable insights, they are often tailored to specific applications, which can limit their extensibility. This specialization highlights the need for more versatile and adaptable solution frameworks. Our work explicitly integrates robot-specific size constraints at narrow passages into a generalized framework and introduces a novel Large Language Model (LLM)-based heuristic for task allocation and path planning without task-specific training. This research develops and evaluates three distinct heuristic approaches: (1) a primal–dual heuristic derived from the problem’s mathematical formulation; (2) a fast greedy heuristic based on intuitive, iterative improvement; and (3) the LLM-based heuristic that leverages advanced prompt engineering. Our primary objective is to minimize the makespan (total completion time) while adhering to robot-specific size constraints at narrow passages. By developing and comparing these diverse methods, this paper provides a comprehensive analysis of different strategies for tackling complex coordination challenges. This approach not only addresses the immediate needs of agricultural automation but also offers insights with implications for a wide range of applications beyond agriculture.
2. Problem Description and Formulation
We are given a set of heterogeneous robots, each with a unique depot location, speed, physical size, and a set of tasks to be completed. The goal is to design a route for each robot that enables it to complete all tasks. The solution must be optimized for the following objective and adhere to a specific set of constraints. (1) Task coverage: Ensure that at least one robot handles every task. (2) Motion constraints: Each route must satisfy the motion constraints specific to the corresponding robot, accounting for its unique capabilities and limitations. (3) Size constraints: Each route must satisfy the size constraints for each robot, which means the robot is only allowed to travel in passages wider than its width. (4) Minimized job completion time: We aim to find the most efficient route for each robot to complete all tasks while minimizing the maximum operating time among all the robots.
Figure 1 illustrates a sample scenario in a lavender farm, where two robots of different sizes are tasked with harvesting distinct lavender species, navigating passages of varying widths.
The problem assumes that the robots depart from their respective depots and return to the depots after visiting all the assigned tasks. Speed differences are reflected in the travel cost , which represents the travel time for the robot k between locations of tasks i and j, using the average running speed of the robot. To incorporate kinematic feasibility, travel costs are computed by applying nonholonomic motion constraints. Travel costs are assumed to be symmetric between any two tasks. The robots are indexed such that their speeds are non-increasing, meaning their travel costs are non-decreasing, i.e., .
The problem is formulated as a Mixed-Integer Linear Program (MILP), which is NP-hard [
15]. The heuristics described in
Section 3 are derived from the Linear Program (LP) relaxation of this model. Given
m robots and
n tasks, the sets, parameters, and variables used in the formulation are defined as follows:
| a set of robots |
| a set of depots |
| a set of tasks |
| a set of vertices for |
| a set of edges that connect all vertices in |
| the minimum width of passages where vertices i and j are located |
| the width of |
M | a sufficiently large constant (e.g., ) |
| the travel cost of the edge from vertex i to j for |
| the subset of the edges of with one end in S and the other end in |
| the decision variable that represents whether edge is used for the tour of |
| |
| the decision variable that represents the assignment of tasks in T |
| |
q | a continuous variable representing the maximum travel cost (makespan) |
The MILP formulation is presented below. Note that for the LP relaxation used by our heuristic, the binary constraints on
and
are relaxed to be non-negative.
For any
,
is defined for
. For the first robot, for any
, at least two edges must be selected from
for its tour if there exists at least one task in
S that is not connected to any of the depots in the set
; that is
, if
. This condition can be expressed as
. Similarly, for any robot
, for any
, at least two edges must be chosen from
for the tour of robot
if
S contains at least one task assigned to that robot. This constraint can be written as
. Finally, for the last robot
, the corresponding constraint is
.
Figure 2 provides an illustrative example of how the
variable functions within the assignment structure.
Constraints (
1) and (
6) work together to minimize the makespan
q, a standard technique to linearize a min–max objective. Constraints (
2)–(
4) are connectivity constraints that serve two critical functions: (1) they ensure the set of tasks assigned to all robots forms a complete partition of the total task set
T, and (2) they act as subtour elimination constraints, ensuring each robot follows a single continuous tour. Constraint (
5) is the explicit size constraint. Using the Big
M method, it ensures that if a path
is used by
, then the condition
must hold. Consequently, nodes that are connected by passages narrower than
are excluded from the feasible set of routes for robot
, preventing infeasible task assignments. Constraint (
7) defines the domains for the decision variables.
5. Conclusions
This paper addressed the complex challenge of coordinating heterogeneous robotic systems in agriculture by developing and comparing three distinct heuristic approaches: a primal–dual algorithm, a specialized greedy heuristic, and a novel method using an LLM with zero-shot prompt engineering.
Our computational results demonstrated that for the specific problem of minimizing makespan under size constraints, the greedy heuristic provided the most optimal and computationally efficient solutions at the current scale, as it is specifically designed for the current problem formulation. Its performance advantage arises from a simple initial assignment combined with iterative redistribution, though more complex problems may require improved initial routing to achieve efficiency. In contrast, the LLM-based heuristic represents a significant advancement in flexibility and adaptability. Without task-specific fine-tuning, it produces high-quality, feasible solutions and can be relatively easily modified to accommodate new, complex tasks that incorporate robot-specific capabilities or adapt to dynamic environmental changes by adjusting the natural language prompt. While its average performance was slightly lower and its runtime was higher than the greedy heuristic, its ability to handle complex and evolving problem definitions makes it particularly valuable in scenarios requiring adaptability. This achievement showcases the potential of LLMs to function as generalized problem-solvers in robotics. This is critical for real-world agricultural environments where operational requirements can change daily. The ability to generate valid solutions from a high-level description dramatically lowers the barrier for developing and deploying robotic coordination strategies.
Future work will focus on two primary directions. First, we aim to enhance the LLM-based approach by exploring more advanced techniques, such as chain-of-thought prompting or allowing the model to interact with external code libraries and optimization tools, which could improve its performance and reliability. Second, we will focus on bridging the gap in the real-world deployment of heterogeneous robots by extending the problem formulation to incorporate practical operational constraints and environmental uncertainties—such as heterogeneous robot capabilities, battery and payload limits, dynamic obstacles, terrain variations, and task dependencies. Validating these advanced algorithms through physical experiments on a robotic fleet will be a crucial next step toward deploying autonomous systems in dynamic agricultural environments.