【PID优化】基于正余弦算法 (SCA)优化PID实现微型机器人系统位置控制附simulink模型和matlab代码

​✅作者简介:热爱科研的Matlab仿真开发者,修心和技术同步精进,matlab项目合作可私信。

🍎个人主页:Matlab科研工作室

🍊个人信条:格物致知。

更多Matlab仿真内容点击👇

智能优化算法  神经网络预测 雷达通信  无线传感器

信号处理 图像处理 路径规划 元胞自动机 无人机  电力系统

⛄ 内容介绍

本研究提出了一种使用比例-积分-微分 (PID) 控制器控制微型机器人系统位置的新方法。利用正余弦算法(SCA),应用新的目标函数积分平方时间乘以误差平方(ISTES)得到最优PID控制器指标。通过与基于 ISTES 目标函数的灰狼优化 (GWO) 进行比较,验证了所提出的基于 SCA 的控制器的效率。将使用 MATLAB、Simulink 将每种控制技术应用于已识别的模型,并使用 LABVIEW 软件进行实验测试。此外,与基于上升、设置时间和设置误差的 GWO 技术相比,SCA 技术具有最高的性能。因此,建议应用 SSA 来调整 PID 的参数,因为它可以提高其在微型机器人系统中的性能。发现使用 SCA 的错误量比以前的其他实验减少了 37.5%。

⛄ 部分代码

close all

clear all 

clc

global Kp Ki Kd

% Opening simulink model

open('PID_controlled_process.slx')

%% problem definition

objfun = @(K)ISTES_PID(K);

N = 3; % NO OF VARIABLES

Kmin = [0 0 0];      % Vector of minimum value of variables

Kmax  = [100 1 1];  % Vector of maximum value of variables

SearchAgents_no=30; % Number of search agents

Max_iteration=25; % Maximum numbef of iterations

lb = Kmin;

ub = Kmax;

dim = N;

fobj = objfun;

% Load details of the selected benchmark function

%[lb,ub,dim,fobj]=Get_Functions_details(Function_name);

[Best_score,Best_pos,cg_curve]=SCA(SearchAgents_no,Max_iteration,lb,ub,dim,fobj);

figure('Position',[284   214   660   290])

semilogy(cg_curve,'Color','b')

title('Convergence curve')

xlabel('Iteration');

ylabel('Best flame (score) obtained so far');

axis tight

grid off

box on

legend('SCA')

display(['The best solution obtained by SCA is : ', num2str(Best_pos)]);

⛄ 运行结果

⛄ 参考文献

1- Eissa, M. M., Virk, G. S., AbdelGhany, A. M., & Ghith, E. S. (2013). Optimum induction motor speed control technique using particle swarm optimization. International Journal of Energy Engineering, 3(2), 65-73.‏ 2-

2- Eissa, M. M., Virk, G. S., AbdelGhany, A. M., & Ghith, E. S. (2013). Optimum induction motor speed control technique using genetic algorithm. Am. J. Intell. Syst, 3(1), 1-12.‏

3- Ghith, E. S., & Tolba, F. A. A. (2022, March). Real-Time Implementation of Tuning PID Controller Based on Whale Optimization Algorithm for Micro-robotics System. In 2022 14th International Conference on Computer and Automation Engineering (ICCAE) (pp. 103-109). IEEE.‏

4- Ghith, E. S., & Tolba, F. A. A. (2022). Design and Optimization of PID Controller using Various Algorithms for Micro-Robotics System. Journal of Robotics and Control (JRC), 3(3), 244-256.‏

5- Ghith, E. S., & Tolba, F. A. A. (2022). LabVIEW Implementation of Tuning PID Controller Using Advanced Control Optimization Techniques for Micro-robotics System. International Journal of Mechanical Engineering and Robotics Research, 11(9).‏

6- Ghith, E. S., & Tolba, F. A. A. (2022, May). Real-Time Implementation of an Enhanced PID CONTROLLER based on Marine Predator Algorithm (MPA) for Micro-robotics System. In 2022 3rd International Conference on Artificial Intelligence, Robotics and Control (AIRC) (pp. 40-45). IEEE.

⛄ Matlab代码关注

❤️部分理论引用网络文献,若有侵权联系博主删除

❤️ 关注我领取海量matlab电子书和数学建模资料

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值