Group repository for assignments and project work
Students:
- Roman Voronov (Roman.Voronov@skoltech.ru), Skoltech, 2024
- Artem Voronov (Artem.Voronov@skoltech.ru), Skoltech, 2024
- Lev Ladanov (Lev.Ladanov@skoltech.ru), Skoltech, 2024
This system can be described by the following differential equation:
where
To model the behavior in which the
In this matrix, the main diagonal contains the value
The first and last rows of the matrix
- Tridiagonal (with entries (-2) on the main diagonal, (1) on the first sub and superdiagonals).
- Sparse (mostly zeros).
- Negative definite (all eigenvalues are negative).
- Real eigenvalues.
-
System could be discretized using Euler's method:
$$x_{i+1} = x_i + \Delta t \cdot \dot{x} \Leftrightarrow \ x_{i+1} = x_i + \Delta t \cdot A x_i \Leftrightarrow \ x_{i+1} = (I + \Delta t A) x_i \Leftrightarrow \ x_{i+1} = Bx_i $$ -
The system is stable if
$\forall |\lambda_i^B| < 1$ . -
New eigenvalues are given by:
$\lambda_i^B = 1 + \Delta t \cdot \lambda_i^A$ . -
Since
$\forall \lambda_i^A$ are negative, the system is stable as long as$1 + \Delta t \cdot \lambda_{\text{min}}^A > -1$ . -
Eigenvalues of matrix
$A$ are described by the formula:$\lambda_i^A = -2 + 2\cos{\left(\frac{i\pi}{n + 1}\right)} \Rightarrow \lambda_{\text{min}}^A \geq -4$ . -
Therefore,
$\Delta t \leq \frac{-2}{\lambda_{\text{min}}^A} \Rightarrow \Delta t \leq 0.5$ .
Thus,
Simulation with 
Simulation with 
The estimation of maximum
Now we will consider a second-order system, to control acceleration instead of velocity.
We consider models of the agents in the form of second-order integrators:
and take the control law as:
$u_0 = 0,$ $u_1 = \frac{x_2 + x_0}{2} - x_1 - \alpha \dot{x}_1,$ $u_i = \frac{x_{i+1} + x_{i-1}}{2} - x_i - \alpha \dot{x}_i, \quad i = 1, \dots, n-2,$ $u_{n-2} = \frac{x_{n-1} + x_{n-3}}{2} - x_{n-2} - \alpha \dot{x}_{n-2},$ $u_{n-1} = 0$
We can rearrange equation control law into matrix form:
where:
- matrix
$A$ is taken from week 1, - vector
$x$ is a position vector:$[x_0, x_1, \dots, x_{n-1}]$ , - matrix
$B$ is an identity matrix with zeros on the first and last rows, - vector
$v$ is a velocity vector:$[\dot x_0, \dot x_1, \dots, \dot x_{n-1}]$ .
We can simulate the system using Euler's method by updating the state at each step:
System:
System:
System:
Initial State:
Each agent
where
In Algorithm 1, the control input
- Gradient-Based Control: Encourages agents to maintain a desired distance from their neighbors.
- Velocity Matching (Consensus): Ensures agents align their velocities with their neighbors.
The control law is:
Where:
-
$\mathcal{N}_i$ is the set of neighbors of agent$i$ , -
$\phi_\alpha(z)$ is the action function governing the interaction forces, -
$| \cdot |_\sigma$ is the σ-norm (smooth distance function), -
$n_{ij}$ is the normalized direction vector between agents$i$ and$j$ , -
$a_{ij}(q)$ is the adjacency element defining interaction weights.
In Algorithm 2, an additional navigational feedback term
Where:
-
$q_r$ and$p_r$ are the reference position and velocity of the γ-agent (representing the group objective), -
$c_1, c_2 > 0$ are constants that determine the strength of the feedback.







