Research Article
Optimal Control through Leadership of the Cucker and Smale Flocking Model with Time Delays
Algorithm 2
NCG with Hager and Zhang scheme.
| | Input: index , maximum , tolerance . | | | While ( and ) do | | (1) | Obtain from step 1 in Algorithm 1 with ; | | (2) | Get from step 1 in Algorithm 1 with ; | | (3) | Evaluate the gradient from step 1 in Algorithm 1; | | (4) | Compute by using backtracking line search scheme with Armijo’s condition [30]; | | (5) | Compute by using Hager and Zhang search direction formula [24]; | | (6) | Update ; | | (7) | | | | End while |
|