Question: 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
 Question 1: PID Implementation [100-marks] The pseudocode of an adaptive pid

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!