文章链接:Multi-Agent Consensus Using Both Current and Outdated States
仿真图FIG4:
代码
% Multi-Agent Consensus Using Both Current and Outdated States
% Author: JCGUY
% date:2021-12-9
% 加入过时信息
% fig4
clear
clc
%% 初始化参数值
Xt(:,1) = [4 2 0 -2]';
U(:,1) = [0,0,0,0]';
%矩阵
L = [1.8 -0.6 -0.6 -0.6;
-0.6 1.8 -0.6 -0.6;
-0.6 -0.6 1.8 -0.6;
-0.6 -0.6 -0.6 1.8];
% 时滞
T = 0.12;
% 更改时滞格式,matlab 数组索引必须为正整数或逻辑值
T = 12;%通信时滞
%