## Abstract

This paper is an application of a special case of distributed optimization problem. It is applied on optimizing the motion of multiple robot systems. The problem is decomposed into L subproblems with L being the number of robot systems. This decomposition reduces the problem to solving a single robot problem. The optimization problem is solved via a distributed algorithm, utilizing subgradient method. A global objective function is set as the sum of individual robot objectives in time and energy. Constraints are divided into two sets, namely, robot-individual constraints and robots’ interactions (collision) constraints. The approach is applied for the case of wheeled mobile robots: we are able to generate in parallel for each robot an optimized control input trajectory and then illustrate it in simulation examples.

### Keywords

- distributed algorithms
- multi-robot systems
- numerical optimal control
- time-energy minimization

## 1. Introduction

Research in multi-robot systems is motivated by several notions; namely, some motivation can be put as [1]:

It is complex for one single robot system to fulfill complex tasks. Instead, more than one system would simplify the solution.

Tasks are generally distributed in nature.

Multiple limited-resource robot systems are more efficient to deal with than a single powerful robot system.

Speed of the task process increases through parallelism in multiple robot systems.

Robustness increases as redundancy is introduced in multiple systems.

Until recently, the number of real-life implementations of multi-robot systems is relatively small. The reason is the complexity associated with the field. Also, the related technologies are relatively new. Emergence of autonomous driving vehicle technology and market can push the boundaries in the field. As technology develops, new venues for application will open for mainstream use rather than only in research and development labs. Due to its promising applicability, autonomous cars and vehicles (or various intelligent transportation systems in general) sit at the forefront [2, 3]. To name a few, benefits include reducing congestions [4], increasing road safety [5], and, of course, self-driving cars [6]. Another application in civil environments is related to safety and security like rescue missions of searching for missing people in areas hard for humans to operate in [7] or searching for dangerous materials or bombs [8] in an evacuated building. Also, another area of application of multi-robot systems is in military area; research was done heavily in the fields of unmanned aerial vehicles (UAVs) and unmanned ground vehicles (UGVs) [9, 10].

Many approaches are developed to tackle the issue of * multiple*robot systems. Under the inspiration of biological systems and the need of technologies, many problems are defined as cooperative motions. Cooperative motion is discussed in [11, 12, 13, 14, 15, 16]. Optimization in both time and energy has been tackled in the literature [17, 18, 19, 20]. There is an opportunity to incorporate concept of time/energy optimization into the paradigm of multi-robot systems.

This paper investigates the solution of a time-energy optimal control problem for multiple mobile robots; namely, the paper is to study the problem as a nonlinear programming (NLP) problem. The main idea of the solution used here is to utilize distributed optimization techniques to solve the overall optimization problem. Solving for optimal time and energy of more than one robot system adds more burden on the problem; robot interaction with each other is added to the problem. This paper will focus more on the distributed aspect of the problem; more details about the numerical optimal control problem formulation can be found in [21]. In [21], the problem of controlling the motion of a single mobile robot is solved using the direct method of numerical optimal control (see [22]); this showed great flexibility in incorporating physical constraints and nonlinear dynamics of the system.

The rest of this section will define the global problem formulation. Discussion about distributed optimization and associated algorithm is presented in Section 2. Section 3 will apply the method on the multi-robot problem. Application to wheeled mobile robots and simulation examples are discussed in Section 4 followed by the conclusion.

### 1.1 Global problem formulation

We can present the discrete time global optimization (numerical optimal control) problem for * L*robots as follows:

with

System behavior is governed by the nonlinear dynamic system in

The above optimization problem can be viewed as having * two*sets of control variables; the first set resembles the discretized system inputs,

with

## 2. Distributed optimization

Here in this section, the concept of distributed optimization is explored. This area tackles optimization problems with * distributed*nature. Consider the following optimization problem:

with * sub*problems. An

*th subproblem is easily put as*i

Observing the global problem in (2), we can see that it is just equivalent to the combination of all the subproblems; it is easy to see that solving for each subproblem (3) * individually*will result in the solution for the whole global problem. Now, however, consider the following problem:

You see clearly that the above problem cannot be trivially separated into some subproblems due to the constraint * complicating*constraint or a

*constraint. In the next subsection, we discuss an optimization method that will help us in solving this kind of problems.*coupling

Decomposition in mathematics is the concept of breaking a mathematical problem into smaller subproblems that can be solved independently while not violating the original problem. Primary works of [23, 24] discuss multiple aspects of optimization in general while exploring specific classes as well; these works are excellent resources for reading and understanding. Viewing the applications of distributed optimization will convey the impression that they, however different, are all mostly very similar theoretically. Terms of * networked*,

*,*distributed

*,*decentralized

*, and the like are becoming all corresponding to somewhat similar problems. Other works related to this area and the area of multi-agent systems can be found in [25, 26, 27, 28, 29].*cooperative

### 2.1 Subgradient method

Before going further, we discuss a method used in solving distributed optimization problem which will help us in solving the problem of this paper. This method is called subgradient methods [30]. These methods are similar to the popular optimization algorithms using gradient descent. However, they are extended to escape function differentiation. The works [31, 32, 33] also explore the method in the perspective of multi-agent systems.

Consider the typical problem:

This typical problem can be solved using any * gradient descent*method. At iteration

with

However, for the subgradient method [33], we will have a * definition*of

with * subgradient*of

The subgradient method is a simple first-order algorithm to minimize a possibly nondifferentiable function. The above definition escapes the requirement of a differentiated objective function. It is defined as finding any vector that makes the optimization algorithm go to * better*value in a first-order optimality sense. Of course, when a gradient

Now observe the following constrained optimization problem:

Let * dual problem*. Let us define the dual function of

The vector * multipliers*associated with each constraint. The dual problem relaxes the constraints of the original

*in (10) and solves for*primal problem

*:*dual function

The dual optimization problem is the pair of two optimization problems, namely, a maximization in

Now, an algorithm for solving the dual problem utilizing subgradient method is discussed. Let us define

The above definition is to clarify the minimum attained at any value of

Now, it is obvious from (14) that at iteration

The projection operator * ascent*update with the “+” sign rather than a descent update as it is a maximization. We can assume an initial

### 2.2 The distributed algorithm

Recall the problem of combination of

As mentioned, the constraints

Put in mind that

then we can apply the * primal-dual*update from (13) and (15) at an iteration

We can see that the above pair of updates can easily be distributed; after the relaxing of the constraints, the primal problem can be separated. The facility of subgradients lets us propose that any iteration

The function * only*the latest values of the other subproblem updates. During the computations of an iteration, computation of

## 3. Distributed algorithm for multi-robot system

### 3.1 Problem formulation

Now, in this section we can apply the previous discussion into the problem of optimizing the motion of multiple robots. Recall the global optimization problem of motion of

You can see that the problem above is just the combination of

The above definition is just to reduce the notation of robot input sequence. If we have, for example, two robot inputs

with objectives

which are subject to the set of individual robot

### 3.2 Distributed algorithm

Returning back to the primal-dual problem pair in Section 2, we can establish the algorithm updates according to the defined updates in (19). At each iteration

The minimizer update * independently*optimizes its whole motion throughout the whole time horizon

*of cooperation/interaction with others introduced by the term*cost

### 3.3 Algorithm convergence

In this brief section, elaboration is put forth about how to practically use the algorithm. The ultimate goal is to optimize primal problem with no collision violation, i.e., reaching optimal dual (maximum) solution. At each global iteration, we only need to * improve*the primal problem values for the updated extra cost of the interaction constraint,

We can also * distribute*the stopping decision to individual robots by observing the change in individual objective values.

With condition (25) on its own, we cannot always be satisfying the collision requirement. So, this condition can be accompanied by a condition on the collision constraint violation. For all robots, elements of the complete constraint vector

Specific values of

## 4. Application to wheeled mobile robots

### 4.1 System description

Figure 1 shows the individual robot system considered here. Robot state includes

### 4.2 Collision avoidance

Here, we will discuss the formulation and the structure of the coupling constraints. The robots can be designed to perform any cooperative strategy in their motion. Here, we only consider the global goal of optimizing the motion of each robot in time and energy while avoiding colliding with each other during the motion. Let us define the coupling constraint vector across the discrete time indexes as

For the * i*th robot, it tries to avoid colliding with the rest of

We define the collision avoidance by constraining motion of other robots to be outside a safety circle region around each

So, we can define each element of the constraint vector as

The radius of the safety region is chosen as * not*necessarily imply

### 4.3 Simulation examples

You can follow the whole distributed algorithm for the time-energy optimization of multi-robot system with collision avoidance in the flowchart in Figure 2. View the flowchart as the process for each individual robot (subproblem). We implement the algorithm in Figure 2. For the primal minimizer update in (24), the nonlinear programming (NLP) function of

** Example 1**. In this example, exploration of the behavior of the algorithm is shown. The problem has the following desired values of initial and final positions and orientations for the three robots:

Here, robot 1 has equal objective weights of 5 on both time and energy, robot 2 has weights of 10 on energy and 1 on time, and robot 3 has 10 on time and 1 on energy. The maximum number of internal NLP iterations (primal update) is set to only 10. The step size is set to

Figure 3 contains the objective (time-energy) value evolution throughout iterations. You can see the stable convergence as the algorithm progresses. Figure 4 shows each of the robots’ safety clearances during the optimized motion. In Figure 5, snapshots of motion of the three robots at different time instants are depicted. This illustrates the collision avoidance attained throughout the optimized motion. Observe also how different are the speeds of each robot because of objective weights; note from Figure 4 that each robot has a different final time for their motion. The algorithm has shown good performance at eliminating collision constraint violations. Figures 4 and 5 show an instant (around t = 12) where robots 1 and 3 violate collision distance with very small value, but no collision occurs. This is because the maximum number of iterations of the algorithm is exhausted. This indicates the possibility for the motion to be optimized even more if collision constraints were relaxed or if more algorithm iterations were allowed. Initialization of the algorithm also plays a role in algorithm evolution.

** Example 2**. This example illustrates more the satisfaction of the objectives. In this example the safety circle radius is put as

After applying our approach, you can see the resulting optimized motions in Figure 6. In Figure 6, errors in x- and y-coordinates and orientation of each robot are shown with respect to time. It is clear that errors of zero are achieved. In Figure 7 for each robot, constraint evaluations, i.e., safety clearance, are displayed for the other two robots throughout time. You can see that robots come close to each other sometimes but without violating the safety distance. This result is attained maybe because of special structure of initial and final positions and orientations. That could have given flexibility for the algorithm.

## 5. Conclusion

The paper investigated the time-energy minimization onto the multi-robot case. A global objective function is formulated as the sum of individual robot objectives in time and energy. Constraints are divided into two sets, namely, robot-individual constraints and robots’ interaction constraints. The problem is decomposed into L subproblems with L being the number of robot systems. The subproblems are coupled with each other by the collision avoidance information. Applying a distributed algorithm solved the problem iteratively. The overall output gives optimized motions for all robots in time and energy while adhering and not colliding with each other. We applied our approach to the case of three wheeled mobile robots: we generated in parallel for each robot an optimized control input trajectory.

An extension to this study is to generate optimized motion trajectories and apply them experimentally. A possible area for experimentation is full-scale autonomous vehicles. Issues related to communication and distributing information during the parallel algorithm will need to be incorporated and investigated. Also, aspects of state estimation and localization of the robot system will come into the place which were not considered in this work. A possible other investigation is to distribute the problem further onto the time variable

## Acknowledgments

The authors would like to thank King Fahd University of Petroleum and Minerals supporting this work.