I need your help to tune PID controller using Moth Flame Optimization (MFO)
古いコメントを表示
I need your help for implementation of Moth Flame Optimization(MFO) to tune PID controller for motor speed control and torque ripples reduction.
1 件のコメント
Hi @Muhammad
The problem can be divided into three stages:
- Modeling of the motor speed and torque ripple.
- Defining the cost function for the difference between the desired motor speed and the actual measured motor speed, and the torque ripple characteristics.
- Implementing the optimizer to tune the PID controller (testing can be conducted with a Genetic Algorithm; if successful, then the Moth Flame Algorithm can be tried).
Could you provide at least items 1 and 2 in MATLAB function code? Once you these items, it will be relatively straightforward to tune the PID controller with the optimizer, depending on the number of control gains you wish to tune.
%% item 1: motor with PID controller
function dx = motorODE(t, x)
% put the mathematical model that describes the speed and torque ripple
end
%% item 2: cost function
function J = motorCost(t, x)
% cost function that corresponds to the speed difference and torque ripple characteristics
end
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で PID Controller Tuning についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!