Skip to main content
. 2022 Dec 7;22(24):9601. doi: 10.3390/s22249601
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
HruleG% 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: Calculate  Z (j) and (j) by HruleG andM
5:    If O(j) ∈Orange
6:    Update Qrange,Z(i)min and Z(i)max by Z(j)
7:    Qnewrange = Qrange , Z(i)newmin Z(i)min and Z(i)newmax = Z(i)max
8: End If
9: End For
10: Forj = 1, …., N2
11: Select (j) fromQnewrange
12: Calculate  Z (j) byHruleG and M
13: Update Qnewrange,Z(i)newmin and Z(i)newmaxby Z(j)
14: If N2/jN*
15: Update Qnewrange
16: End if
17: Calculate  Z  by Z(i)newmin and Z(i)newmax
18: If ZZbest
19:                Copy Z into Zbest
20: End if
21: End For