필터 지우기
필터 지우기

how to see the PID parameters when implementing Optimization app?

조회 수: 3 (최근 30일)
Tran Paul
Tran Paul 2018년 11월 1일
댓글: Alan Weiss 2018년 11월 2일
Hi, I wrote the GA code for PID controller then, I use optimization app to run the Genetic Algorithm. But I can not see where are the PID parameters?

채택된 답변

Alan Weiss
Alan Weiss 2018년 11월 1일
I'm not sure that I understand you. The PID parameters are your control variables, right? I mean, they are in the vector x that ga uses as the fitness function fun(x). So what do you want to see, the values changing as ga progresses? You can use 'gaplotbestindiv' as the PlotFcn option.
But maybe you mean something else. If so, please ask again.
Alan Weiss
MATLAB mathematical toolbox documentation
  댓글 수: 2
Tran Paul
Tran Paul 2018년 11월 2일
I mean how to obtain the Kp, Ki, Kd?
Alan Weiss
Alan Weiss 2018년 11월 2일
ga accepts a vector x and uses x to compute the fitness function fun(x). The vector x is, I believe (but you would know better than I would) composed of Kp, Ki, and Kd.
In other words, examine how you pass the PID parameters, and then you'll know what the resulting x is.
If I misunderstand you, then please show exactly how you are using ga for a PID controller.
Alan Weiss
MATLAB mathematical toolbox documentation

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by