文章链接: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;%通信时滞
% 为了防止开始收敛前无状态,扩充收敛前的状态,将数组扩充50个
t = 0;
for i = 1:50Xt(:, i+1) = Xt(:, i);U(:, i+1) = U(:, i);t(:, i+1) = t(:, i)+0.01;
endtBegin = 0;
tEnd   = 2;
dt     = 0.01;
times  = (tEnd - tBegin)/dt;
time   = 1;%% 迭代收敛 计算
while (time <= times)% 时间记录t(1, time+50) = tBegin + dt * time + 49*0.01;% 控制输入分别为U(:,time+50)=-L*(Xt(:,time+50)+Xt(:,time+50-T));% 状态更新为            Xt(:,time+51) = Xt(:,time+50)+U(:,time+50)*dt;time  = time + 1;
end%% 绘图
subplot(1,2,1)
plot(t(1,51:250)-0.5,Xt(1,51:250),'linewidth',1.0); hold on % x1
plot(t(1,51:250)-0.5,Xt(2,51:250),'linewidth',1.0); hold on % x2
plot(t(1,51:250)-0.5,Xt(3,51:250),'linewidth',1.0); hold on % x3
plot(t(1,51:250)-0.5,Xt(4,51:250),'linewidth',1.0); hold on % x4
title('Position Trajectory');
legend("x_1", "x_2", "x_3", "x_4");
grid on; box on;subplot(1,2,2)
plot(t(1,51:250)-0.5,U(1,51:250),'linewidth',1.0); hold on % v1
plot(t(1,51:250)-0.5,U(2,51:250),'linewidth',1.0); hold on % v2
plot(t(1,51:250)-0.5,U(3,51:250),'linewidth',1.0); hold on % v3
plot(t(1,51:250)-0.5,U(4,51:250),'linewidth',1.0); hold on % v4
title('INPUT Trajectory');
legend("U_1", "U_2", "U_3", "U_4");
grid on; box on;

第一次分享论文的仿真代码,文章编辑得还不是很熟练。
这是用MATLAB实现的,文中一共有三个仿真,读懂代码后更改几个小地方即可得到FIG5和FIG6。

【一致性仿真】Multi-Agent Consensus Using Both Current and Outdated States相关推荐

  1. 【一致性仿真】Group-Bipartite Consensus in the Networks With Cooperative-Competitive Interactions

    文章链接:Group-Bipartite Consensus in the Networks With Cooperative-Competitive Interactions 仿真图Fig3: MA ...

  2. 【一致性仿真】Consensus of second-order heterogeneous multi-agent systems with and without input saturation

    文章链接:Consensus of second-order heterogeneous multi-agent systems with and without input saturation - ...

  3. 如何利用AI(ChatGPT、NewBing、PHIND、YouChat)实现多智能体系统一致性仿真的代码编写

    多智能体系统(Multi-Agent System,MAS)已成为人工智能.机器人.自动化等领域的研究热点之一.在MAS中,实现智能体之间的一致性是一个重要问题.为了研究这个问题,如今爆火的AI软件被 ...

  4. 多智能体强化学习Multi agent,多任务强化学习Multi task以及多智能体多任务强化学习Multi agent Multi task概述

    概述 在我之前的工作中,我自己总结了一些多智能体强化学习的算法和通俗的理解. 首先,关于题目中提到的这三个家伙,大家首先想到的就是强化学习的五件套: 状态:s 奖励:r 动作值:Q 状态值:V 策略: ...

  5. 【一致性仿真】Consensus Control of Leader-Following Multi-Agent Systems in Directed Topology With ...

    文章链接:Consensus Control of Leader-Following Multi-Agent Systems in Directed Topology With Heterogeneo ...

  6. 【一致性仿真】Fixed-time bipartite consensus of multi-agent systems with disturbances

    文章链接:Fixed-time bipartite consensus of multi-agent systems with disturbances 仿真图Fig2: MATLAB代码: % Fi ...

  7. professor‘s great paper in multi agent system

    http://people.csail.mit.edu/brooks/papers/AIM-864.pdf

  8. multi agent system university of liverpool professional presentation

    https://cgi.csc.liv.ac.uk/~trp/COMP310.html

  9. 多智能体系统——具有非线性不确定干扰的多智能体系统的固定时间事件触发一致性控制(附论文链接+源码Matlab)

    *[多智能体系统--具有非线性不确定干扰的多智能体系统的固定时间事件触发一致性控制-Fixed-time event-triggered consensus control for multi-age ...

最新文章

  1. T级的备份兄弟们都怎么做
  2. iOS开发UI 篇—CAlayer层的属性
  3. 小数点化分数的过程_分数和小数的互化
  4. hadoop面试题答案
  5. linux libstdc 怎样升级,linux 更新libstdc++.so.6
  6. 临时变量、引用参数和const
  7. opc 多点位一次性读_如何使用Excel通过OPC访问WinCC的实时数据
  8. C#foreach循环的优点
  9. sap不用oracle数据库库,SAP系统安装之Oracle 10g数据库(Win3264)
  10. Visual Studio2022 离线安装包下载
  11. nginx集群部署,实现负载均衡和nfs共享
  12. Linux下卸载anaconda3
  13. 计算机网络知识之交换机、路由器、网关、MAC地址
  14. 富爸爸穷爸爸 (全球最佳财商教育系列)——2019年04月18日15:25:56
  15. iOS开发打字机效果
  16. 本周之后Win11 变成beta通道只能更新22000.176而没办法更新Dev的解决办法 your PC does not meet the hardware system
  17. 4G物联网模块的通讯原理介绍
  18. 单片机外部中断触发方式:电平触发和边沿触发两者说明
  19. 深入浅出JS—18 手把手实现一个Promise类
  20. k8s之炉火纯青之pinpoint链路追踪

热门文章

  1. 文本(文章内容)编辑器(CMS管理)
  2. 杰理之设备配网及使用第三方平台【篇】
  3. 一行代码就能使用PYTHON开发的小游戏
  4. GSM Communication on EBox4300--(3)
  5. 【Java面试】枚举从使用到原理
  6. 计算机键盘可以分为哪几个区,键盘分为哪几个区?分别是什么?
  7. Gaussian Error Linerar Units(GELUS)激活函数详细解读
  8. 东田纳西州立大学计算机排名,东田纳西州立大学世界排名
  9. JS逆向案例文章推荐
  10. 软件工程复试——二、可行性研究