Need some help about optimization with matlab and simulink.

1 回表示 (過去 30 日間)
Donguk Koo
Donguk Koo 2021 年 6 月 4 日
回答済み: Alan Weiss 2021 年 6 月 6 日
Hello, can anybody help me doing optimization work?
<process>
1) Kp, Ki, Kd is variable.
2) Run simulink PID model using that variable.
3) export simulink simulation result to matlab. (a, b, c)
4) find Kp, Ki, Kd that minimizing F=a*b*c
I tried to use fmincon function in optimization tool(matlab), but I couldn't express F as a function of Kp, Ki, Kd.
And also I don't know how to put varying Kp, Ki, Kd in simulink PID control block.
How can I solve this problem? I'd really appreciate it if you could just give me a quick.

回答 (1 件)

Alan Weiss
Alan Weiss 2021 年 6 月 6 日
For a relevant example, see lsqnonlin with a Simulink® Model.
Alan Weiss
MATLAB mathematical toolbox documentation

カテゴリ

Help Center および File ExchangePID Controller Tuning についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by