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

article/2025/10/25 7:04:29

文章链接:Group-Bipartite Consensus in the Networks With Cooperative-Competitive Interactions
仿真图Fig3:
State evolution of the agents.
MATLAB代码

% Group-Bipartite Consensus in the Networks With Cooperative-Competitive Interactions
% Protocol Simulation Results
% author: JCGUY
% date: 2022-04-15
% 一阶  分组  二部  一致性clear;
clc;
%%
%状态初始值如下,十个智能体
X(:,1)= [ 1 -2 3 1.5  4  6  -3.5  -4  5  -1  -3]';
U(:,1) = [0,0,0,0,0,0,0,0,0,0,0]';
%a图的度矩阵D、邻接矩阵H、拉普拉斯矩阵H
A = [ 0 -1  0  0  0  0  0  0  0  0  0;0  0 -1  0  0  0  0  0  0  0  0;1  0  0  0  0  0  0  0  0  0  0;1  0 -1  0  0 -1  0  0  0  0  0;0  1  1  1  0  0  0  0  0  0  0;0  0  0  0  0  0  1  0  0  0  0;0  0  0  0 -1  0  0  0  0  0  0;1  1  0  0  0  0  0  0  1  0  0;0  0  0  0  0  0  0  0  0  0 -1;0  0  0  0  1  0  1 -1  0  0  0;0  0  0  0  0  0  0  0  0  1  0];L = [ 1  1  0  0  0  0  0  0  0  0  0;%  10  1  1  0  0  0  0  0  0  0  0;%  1-1  0  1  0  0  0  0  0  0  0  0;%  1-1  0  1  1  0  1  0  0  0  0  0;%  1+ -1 +1=10 -1 -1 -1  1  0  0  0  0  0  0;%  -1+1+1  =10  0  0  0  0  1 -1  0  0  0  0;%  10  0  0  0  1  0  1  0  0  0  0;%  1-1 -1  0  0  0  0  0  1 -1  0  0;%  1+ -1 +1=10  0  0  0  0  0  0  0  1  0  1;%  10  0  0  0 -1  0 -1  1  0  1  0;%  1+ -1 +1=10  0  0  0  0  0  0  0  0 -1  1];% 1%设置收敛相关参数
tBegin = 0;
tEnd   = 20;
dt     = 0.1;
times  = ( tEnd - tBegin )/dt;
time   = 1;
t(1,1) = 0;
n = 10;
%定义图数据的存储数组% t(:,1) = tBegin; %定义能够记录时间的数组
%%
%开始相关的收敛计算
while (time <= times)%t(1, time) = tBegin + dt * time;%时间数组t(:,time+1) = t(:,time) + dt;U(:, time) =-L*X(:, time);X(:,time+1)= X(:,time)+U(:,time)*dt;time = time+1;
end%%
%绘图 t,Xt(1,:)subplot(1,1,1)
plot(t,X(1,:),'b','linewidth',1.0); hold on % x1
plot(t,X(2,:),'g','linewidth',1.0); hold on % x2
plot(t,X(3,:),'b','linewidth',1.0); hold on % x3
plot(t,X(4,:),'r','linewidth',1.0); hold on % x4
plot(t,X(5,:),'r','linewidth',1.0); hold on % x5
plot(t,X(6,:),'c','linewidth',1.0); hold on % x6
plot(t,X(7,:),'c','linewidth',1.0); hold on % x7
plot(t,X(8,:),'y','linewidth',1.0); hold on % x8
plot(t,X(9,:),'y','linewidth',1.0); hold on % x9
plot(t,X(10,:),'k','linewidth',1.0); hold on % x10
plot(t,X(11,:),'k','linewidth',1.0); hold on % x11
% title('Position Trajectory');
legend("x_1", "x_2", "x_3", "x_4", "x_5", "x_6", "x_7", "x_8", "x_9", "x10", "x11");
xlabel("time (s)");
ylabel("Position");
axis([0 20 -6 6]); % subplot(1,2,2)
% plot(t,U(1,1:55),'linewidth',1.0); hold on % x1
% plot(t,U(2,1:55),'linewidth',1.0); hold on % x2
% plot(t,U(3,1:55),'linewidth',1.0); hold on % x3
% plot(t,U(4,1:55),'linewidth',1.0); hold on % x4
% plot(t,U(5,1:55),'linewidth',1.0); hold on % x5
% title('Position Trajectory');
% legend("u_1", "u_2", "u_3", "u_4", "u_5");
% grid on; box on;  

http://chatgpt.dhexx.cn/article/UYo0h4Zv.shtml

相关文章

C#,图论与图算法,二分图(Bipartite Graph)的霍普克罗夫特-卡普(Hopcroft Karp)最大匹配算法与源程序

二分图Bipartite graph 有没有可能通过数学过程找到你的灵魂伴侣&#xff1f;大概让我们一起探索吧&#xff01; 假设有两组人注册了约会服务。在他们注册后&#xff0c;会向他们展示另一组人的图像并给出他们的描述。他们被要求选择他们愿意与之匹配的人。 所有信息都被输入…

[VLDB 2022]Butterfly Counting on Uncertain Bipartite Graphs

总结 非确定二部图上的蝴蝶结构统计&#xff0c;精确算法。在普通的蝴蝶结构统计上&#xff0c;增加了边权重&#xff0c;使得传统算法失效&#xff0c;再在这基础上定义新的统计并优化老方法。 动机 Butterfly的数量直接展示了二部图的密度&#xff0c;是个很重要的属性。相…

二分匹配大总结——Bipartite Graph Matchings[LnJJF]

文章目录 二分匹配——Bipartite Graph Matchings[LnJJF]认识&#xff1a;什么是二分图&#xff1f;理解&#xff1a;现实模型如何与二分图相互转化&#xff1f;如何判断能否转化&#xff1f;能够转化的话&#xff0c;如何转化&#xff1f; 应用&#xff1a;已知一个二分图&…

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

文章链接&#xff1a;Fixed-time bipartite consensus of multi-agent systems with disturbances 仿真图Fig2&#xff1a; MATLAB代码&#xff1a; % Fixed-time bipartite consensus of multi-agent systems with disturbances % author:JCGUY % date:2022-04-20 clear clc…

Bipartite Graph多视图学习聚类文章总结

看了一些anchor graph和bipartite graph 的文章始终不知道他们的区别在哪里。今天总结一下这类文章。 1.能看到最早的这类关于多视图学习的文章 Large-Scale Multi-View Spectral Clustering via Bipartite Graph&#xff08;AAAI-2015&#xff09; 目标&#xff1a;we addre…

Fast spectral clustering learning with hierarchical bipartite graph for large-scale data

Fast spectral clustering learning with hierarchical bipartite graph for large-scale data 基于层次二分图的大规模数据快速谱聚类学习 abstract 传统方法&#xff1a;不适用大规模问题 高斯核函数 提出了一种新的基于层次二分图&#xff08;SCHBG&#xff09;的光谱聚…

Bipartite Graph Based Multi-View Clustering

Bipartite Graph Based Multi-View Clustering 基于二部图的多视图聚类 abstract 对于基于图的多视图聚类&#xff0c;一个关键问题是通过两阶段学习方案捕获共识聚类结构。具体来说&#xff0c;首先学习多个视图的相似性图矩阵&#xff0c;然后将它们融合为统一的高级图矩阵。…

BiNE: Bipartite Network Embedding

** BiNE: Bipartite Network Embedding ** SIGIR 2018 论文链接&#xff1a;https://dl.acm.org/doi/10.1145/3209978.3209987 项目代码&#xff1a;https://github.com/clhchtcjj/BiNE 文章目录 BiNE: Bipartite Network Embedding 摘要1、Introduction2、Related work&a…

【Paper】2020_Event-triggered bipartite consensus over cooperation-competition networks under DoS atta

Hu, A., Park, J.H., Cao, J. et al. Event-triggered bipartite consensus over cooperation-competition networks under DoS attacks. Sci. China Technol. Sci. 64, 157–168 (2021). 文章目录 1 Introduction2 Problem description and preliminaries2.1 Multiagent model…

Bipartite graph/network学习

Bipartite graph/network翻译过来就是&#xff1a;二分图。 维基百科中对二分图的介绍为&#xff1a;二分图是一类图(G,E)&#xff0c;其中G是顶点的集合&#xff0c;E为边的集合&#xff0c;并且G可以分成两个不相交的集合U和V&#xff0c;E中的任意一条边的一个顶点属于集合…

bipartite matching二分图匹配

目录 二分图bipartite的概念 匹配的概念 最大匹配 bipartite matching 这个词最近在看Transformer相关的论文里常见用作loss function,所以特地学习一下&#xff0c;bipartite matching是一个什么操作。个人理解&#xff0c;若有表述错误或不当的问题&#xff0c;还请各位大…

【嵌入式单元测试】C语言单元测试框架搭建

cmocka cmocka交叉编译源码下载 编译准备源码修改指定编译器编译 cmocka使用示例常见问题参考 单元测试框架是一个软件包&#xff0c;它能够让开发者比较方便的表达产品代码需要表现出什么样的行为。单元测试框架提供了一个自动化单元测试的解决方案&#xff0c;让开发者把更多…

三年黑盒测试工程师,带你了解嵌入式测试,金三银四升职加薪秘诀

什么是嵌入式系统? 嵌入式系统是一种“完全嵌入受控器件内部,为特定应用而设计的专用计算机系统”。 嵌入式系统是“用于控制,监视或辅助操作机器和设备的装置”。 嵌入式系统还可以定义为“以应用为中心,以计算机技术为基础,软硬件可裁剪,功能、可靠性、成本、体积、功耗…

嵌入式软件测试的小结

文章内容为本人这三年来在嵌入式软件测试&#xff08;黑盒&#xff09;上的一些积累吧&#xff0c;说起来也挺快的&#xff0c;毕业三年的时间就这样过去了&#xff0c;在两家公司工作过&#xff08;现在这家是第二家&#xff09;&#xff0c;这几年的测试项目基本都是围绕着嵌…

【测试】嵌入式软件测试VS一般软件测试

文章目录 1&#xff09;什么是软件测试&#xff1f;测试的目的&#xff1a;软件测试的特点&#xff1a;软件测试信息流&#xff1a;软件测试的对象&#xff1a; 2&#xff09;嵌入式软件测试2.1 嵌入式软件2.2 嵌入式软件测试嵌入式软件测试的特点&#xff1a; 3&#xff09;嵌…

嵌入式软件自动化测试介绍

什么是嵌入式测试 嵌入式软件测试的概念似乎没那么大众&#xff0c;很多人从字面上理解&#xff0c;可能会以为这是个硬件测试&#xff0c;那么嵌入式测试实际上是什么呢&#xff1f; 根据IEEE&#xff08;国际电机工程师协会&#xff09;的定义&#xff0c;嵌入式系统是“控…

嵌入式软件测试的基本方法

嵌入式系统是以应用为中心&#xff0c;以计算机技术为基础&#xff0c;软件硬件可剪裁&#xff0c;适应应用系统对功能、可靠性、成本、体积及功耗严格要求的专用计算机系统。嵌入式系统的软硬件功能界限模糊&#xff0c;测试比PC系统软件测试要困难得多&#xff0c;嵌入式软件…

嵌入式测试大赛预选赛

刚刚参加了预选赛&#xff0c;对于这种热身赛&#xff0c;是不需要一点编程能力的&#xff0c;只不过需要一些细心 题目下载&#xff1a; 链接&#xff1a;https://pan.baidu.com/s/1Xm2d8UYhrK75fukcXQhEcg 密码&#xff1a;hxzy 这次预选赛是在练习题4的基础上改的&#x…

嵌入式软件测试

如何在目标板上实时测试应用程序为什么嵌入式系统测试困难&#xff1f; 在目标板上测试面临的系列问题&#xff1a; 1、如何下载测试到板子上&#xff0c;然后如何收集测试结果 2、如何累积可重复自动执行的测试 3、如何尽可能减少人工工作 4、如何减少内存不够的问题 这…

全国软件测试大赛嵌入式测试步骤及所需工具

文章目录 前言一、所需工具二、测试步骤1.从慕测平台上下载题目2.搭建测试环境3.测试脚本编写怎么编写 总结 前言 全国软件测试大赛嵌入式测试最全步骤及所需的工具 一、所需工具 若需要测试工具请私信我 二、测试步骤 以2019年的省赛题目为例 1.从慕测平台上下载题目 下…