|
Algorithm 1: PID Wavenet Controller |
-
1:
Read the wavenet parameters: number of neurons , learning rates (), synaptic weight values and the wavelet .
-
2:
Read the IIR filter parameters: number of feed-backs and feed-forward coefficients, and , respectively; learning rates (), the IIR coefficient values () and the persistent signal .
-
3:
Read the PID controller parameters: gain values () and its update rates ().
-
4:
Read the operation parameters: number of epochs .
-
5:
Initialize the internal parameters and .
-
6:
while it is working do
-
7:
for do
-
8:
Get the control signal and the output from plant , Equations (39) and (9).
-
9:
Compute the vector using (14).
-
10:
Evaluate the mother’s wavelet with (13).
-
11:
Compute the wavelet output with (23).
-
12:
Compute estimated using (24).
-
13:
Compute the estimated error using (28).
-
14:
Compute the energy function with (27).
-
15:
Compute the parameter gradients: , , , , , Equations (29)–(33).
-
16:
Update the parameter values using its learning ratios: , , , , ; Equations (34)–(38).
-
17:
end for
-
18:
Get the parameter and the tracking error , Equations (25) and (40).
-
19:
Tune controller gains: : Equations (41)–(43).
-
20:
Calculate the new control signal using (39).
-
21:
Reassign the new values.
-
22:
Increase the value of while loop operator, .
-
23:
end while
|