Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 : PID Implementation [ 1 0 0 - marks ] The pseudocode of an adaptive pid controller algorithm is given as follows 1

Question 1: PID Implementation
[100-marks]
The pseudocode of an adaptive pid controller algorithm is given as follows 1.
Algorithm 1 Adaptive PID Algorithm
procedure ADAPTIVE PID CONTROLLER
Step 1: Initialization:
Initialize Kp0=0.75,Ki0=0.1,Kd0=0.25,umax=1,umin=0
n=3(Iteration Index)
Step 2: Compute error
e(n)=r(n)-y(n)
Step 3: PID Control Signal
u(n)=u(n-1)+Kp(n)[e(n)-e(n-1)]+Ki(n)e(n)+Kd(n)[e(n)-2e(n-1)+e(n-2)]
Step 4: Saturate Control Signal
if u(n)>umax,u(n)=umax
if u(n)y(n+1)=fCSTR(x1(n),x2(n),x3(n),u(n))Kp(n+1)=Kp0+e(n)Ki(n+1)=Ki0+e(n)Kd(n+1)=Kd0+e(n)nnlarrn+1u(n)
Step 5: Apply u(n)toCSTR system
y(n+1)=fCSTR(x1(n),x2(n),x3(n),u(n))
Step 6: Update PID gain
Update: Kp(n+1)=Kp0+e(n)
Update: Ki(n+1)=Ki0+e(n)
Update: Kd(n+1)=Kd0+e(n)
Step 7: Increment n
nlarrn+1 goto Step 2
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

What are the current HRM challenges in the textile industry?

Answered: 1 week ago