Simulation of multi-target minimum coverage circle based on bearing information
收藏资源简介:
Software:MATLAB R2018b;File description:GetConvhull.m:The main function of GetConvhull.m is to calculate the convex hull formed by the two-dimensional plane point set ;GetMDP.m:The main function of GetMDP.m is to calculate the minimum distance from a point to the convex hull of the targets, that is, to calculate the prj (a, Q) in the paper ;GetMCP.m:The main function of GetMCP.m is to calculate the center and radius of the minimum circle composed of a two-dimensional plane point set ;mincircle1.slx:The Simulink simulation file of MATLAB corresponds to the research part of a single agent in the paper ;mincircle2.slx:The Simulink simulation file of MATLAB corresponds to the research part of multiple agents in this paper.Runmincircle.m:Perform the file of simulation mincircle1.slx, and run this file directly to obtain the simulation diagram of a single agent in the paper ;Multimincircle.m:Perform the file of simulation mincircle2.slx, and run this file directly to obtain the simulation diagram of multiple agents in the paper;Operation guide:①、Put the above files in a folder ;②、Open MATLAB and select the path where the above folder is located ;③、Open the executable file Runmincircle.m, click the green button in the editor above the software ;④、Similarly, if you want to run the simulation files of multiple agents, run Multimincircle.m.
软件:MATLAB R2018b;文件说明:GetConvhull.m:该文件的主要功能为计算二维平面点集所构成的凸包(convex hull);GetMDP.m:该文件的主要功能为计算单点到目标凸包的最小距离,即对应论文中的prj(a, Q);GetMCP.m:该文件的主要功能为计算二维平面点集所构成的最小外接圆(minimum circle)的圆心与半径;mincircle1.slx:MATLAB Simulink仿真文件,对应论文中单智能体(single agent)的研究部分;mincircle2.slx:MATLAB Simulink仿真文件,对应论文中多智能体的研究部分;Runmincircle.m:用于运行mincircle1.slx的脚本文件,直接运行该文件即可获取论文中单智能体的仿真示意图;Multimincircle.m:用于运行mincircle2.slx的脚本文件,直接运行该文件即可获取论文中多智能体的仿真示意图;操作指南:①、将上述所有文件存放至同一文件夹内;②、启动MATLAB软件,并将当前工作路径切换至该文件夹所在路径;③、打开可执行脚本Runmincircle.m,点击软件上方编辑器中的绿色运行按钮;④、同理,若需运行多智能体仿真文件,可运行Multimincircle.m。



