Research Article
U-Model-Based Adaptive Sliding Mode Control Using a Deep Deterministic Policy Gradient
Algorithm 2
Particle swarm optimization for a minimization problem.
(1) | Initialization. | (2) | for each one of the N particles do | (3) | Initialize the position and velocity | (4) | Set particles’ best position as current | (5) | Calculate the fitness of each particle and set the optimum as the | (6) | end for | (7) | Update. | (8) | while stopping Criterion not met do | (9) | Update particles’ velocity using | (10) | Update particles’ position using | (11) | Evaluate the fitness of all particles | (12) | If , update individual best | (13) | If , update global best | (14) | end while | (15) | Output best results |
|