| Algorithm 1 Leg parameters optimization |
| Nomenclature: |
Q% Ranges of optimization variables |
|
|
W% Optimization variables |
|
|
Z% Optimization objective function |
|
|
O% Kinematic feasibility constraints |
|
|
M% Range constraints |
|
|
% Bee colony algorithm |
| 1: |
Set Qrange, Orange, Z(i)min,Z(i)max, and M
|
| 2: |
Forj=1, …., N1
|
| 3: |
Select W(j) from Qrange
|
| 4: |
andM
|
| 5: |
If O(j) ∈Orange
|
| 6: |
Update Qrange,Z(i)min and Z(i)max by Z(j) |
| 7: |
= Qrange
Z(i)min and = Z(i)max
|
| 8: |
End If |
| 9: |
End For |
| 10: |
Forj = 1, …., N2
|
| 11: |
|
| 12: |
and M
|
| 13: |
by Z(j) |
| 14: |
If N2N*
|
| 15: |
|
| 16: |
End if |
| 17: |
|
| 18: |
If Z ≤ Zbest
|
| 19: |
Copy Z into Zbest
|
| 20: |
End if |
| 21: |
End For |