Summary of the invention
The object of the invention provides a kind of positive motion of parallel robot and learns method for solving, and the method can search out optimum or approach optimum 6-SPS parallel robot positive motion in suitable time learns solution, and the method also portable is applied in other Numerical Optimization.
To achieve these goals, technical scheme of the present invention is as follows:
A kind of positive motion of parallel robot is learned method for solving, and wherein, the method specific implementation step is as follows:
S1, algorithm population P (t) and algorithm parameter initialization make current evolutionary generation t=1, and maximum evolutionary generation T is set;
S2, each individual fitness function value of assessment population P (t);
S3, the optimum individual of population is carried out pattern search as initial point, and its result is substituted the optimum individual of former colony;
S4, population at individual is carried out differential evolution operation generate the new P of colony (t+1);
S5, the individual fitness function value of the new P of colony of evaluation (t+1);
S6, evolutionary generation t=t+1 return execution in step S3 and continue iterative evolution, until evolutionary generation t>T, end loop;
S7: output optimum individual result.
Preferably, learn in the method for solving at the positive motion of above-mentioned parallel robot, described parallel manipulator people is 6-SPS type parallel robot, comprise moving platform, lower stationary platform and be connected to described upper moving platform and lower stationary platform between 6 driving pull bars.
Preferably, learn in the method for solving at the positive motion of above-mentioned parallel robot, the concrete grammar of described step S2 comprises:
(1) sets up the parallel robot inverse kinematics model, ask for each individual corresponding pull bar long vector l that respectively drives
iAnd bar is long | l
i| (i=1,2 ..., 6);
(2) fitness function of definition algorithm: long according to the driving pull bar bar that parallel robot is given
Corresponding respectively to drive the pull bar bar long with asked for population at individual by step (1) inverse kinematics model | l
i| (i=1,2 ..., 6), defining the long error function of each bar is the fitness function of algorithm;
(3) fitness function according to step (2) calculates each individual fitness value f, and fitness value is less to show that individual corresponding positive motion solution precision is higher:
In the formula, x represents population at individual, i.e. parameter x to be optimized=[x
1, x
2..., x
6]
T=(X
P, Y
P, Z
P, α, beta, gamma)
TP=[X
PY
PZ
P]
TBe upper moving platform moving coordinate system initial point o position vector in lower stationary platform fixed coordinate system O-XYZ, b
IxAnd b
IyBe respectively x, the y axial coordinate of each hinge point of moving platform in moving coordinate system o-xyz, B
IxAnd B
IyBe respectively each hinge point of lower stationary platform X, Y-axis coordinate in fixed coordinate system O-XYZ, d
Ij(i=1,2,3; J=1,2) be element among the lower attitude matrix T, wherein α, β and γ are respectively the moving platform coordinate system with respect to the independent corner of lower stationary platform coordinate system, c
α=cos α, s
α=sin α is the concise and to the point literary style of α attitude angle, c
β=cos β, s
β=sin β is the concise and to the point literary style of β attitude angle, c
γ=cos γ, s
γ=sin
γBe the concise and to the point literary style of γ attitude angle
Preferably, learn in the method for solving at the positive motion of above-mentioned parallel robot, among the described step S3, the optimum individual of population carried out pattern search according to lower step:
(1) the given optimum individual position x of colony
(1)∈ R
n, its axial coordinate direction is e
j(j=1,2 ..., n), make y
(1)=x
(1), k=1;
(2) each component j is axially searched for successively, if f is (y
(j)+ δ e
j) be better than f (y
(j)), y
(j+1)=y
(j)+ δ e
jIf f is (y
(j)-δ e
j) be better than f (y
(j)), y
(j+1)=y
(j)-δ e
jOtherwise y
(j+1)=y
(j)
(3) if f is (y
(n+1)) be better than f (x
(k)), put x
(k+1)=y
(n+1), make y
(1)=x
(k+1)+ α (x
(k+1)-x
(k)), k=k+1, j=1 turns step (2), otherwise carries out step (4);
(4) if δ≤ε, iteration stopping then, invocation point x
(k)Otherwise δ=β δ, y
(1)=x
(k), x
(k+1)=x
(k), k=k+1, j=1 turns step (2).
Preferably, learn in the method for solving at the positive motion of above-mentioned parallel robot, among the described step S4, population at individual is carried out the differential evolution operation generate the new P of colony (t+1), namely
In the formula, r1, r2, r3 ∈ 1,2 ..., m} is different and also different from target sequence number i, and F ∈ [0,2] is zoom factor; Carry out according to the following equation interlace operation
In the formula, rand () is uniform random number between [0,1], and CR ∈ [0,1] is crossover probability, randn be 1,2 ..., choose random quantity among the n}; At last to individuality
With
Be at war with, select the conduct individuality of lower generation of the more excellent individuality of fitness
Namely
Compared with prior art, the present invention proposes a kind of 6-SPS type parallel robot positive motion knowledge topic method for solving of Schema-based search-differential evolution.The DE/rand/1 differential evolution algorithm is strong to solution space overall situation exploring ability, but local development ability a little less than, the characteristic of the slow even stagnation behavior that may occur evolving of speed of convergence; Pattern search is as a kind of deterministic local search approach, and its Local Search performance is strong, but the pattern search initial point selects to affect its search solution result, and different Search Results are caused in different initial points position, easily are absorbed in the local minimum characteristic; This method combines the DE/rand/1 differential evolution algorithm and has stronger overall situation exploration performance, and the pattern search method has preferably local development ability, and mechanism merges mutually, the initial position that in per generation evolution, operates as pattern search with the optimum individual when former generation colony, further local exploitation searches the more excellent individuality of performance to solution space, and replace optimum individual in the former colony, improve the algorithm optimization performance.The method has excellent performance in solving 6-SPS type parallel robot positive motion knowledge topic, also can be applicable to other complicated Numerical Optimization simultaneously.
Embodiment
Facts have proved that every kind of single searching method all has self-defect when solving complicated optimum problem because of himself natural mode, if with two kinds of different searching algorithms mutually mechanism merge and consist of hybrid algorithm, its search performance is better than the search performance of single algorithm usually.Pattern search is a kind of effective, simple and direct determinacy searching method, it is moved by exploration and moves two parts with model utility and form, move with motion of defect modes by continuous detection close to extreme point gradually, so pattern search fast convergence rate, local search ability is strong.Based on this, the present invention is dissolved into the pattern search operation in the differential evolution algorithm, proposes a kind of numerical optimization of Schema-based search-differential evolution blending algorithm, and is successfully applied in the 6-SPS type parallel robot positive motion knowledge topic solution procedure.
Join shown in Figure 2ly, the positive motion that the embodiment of the invention discloses a kind of parallel robot is learned method for solving, and the method specific implementation step is as follows:
S1, algorithm population P (t) and algorithm parameter initialization make current evolutionary generation t=1, and maximum evolutionary generation T is set;
S2, each individual fitness function value of assessment population P (t);
S3, the optimum individual of population is carried out pattern search as initial point, and its result is substituted the optimum individual of former colony;
S4, population at individual is carried out differential evolution operation generate the new P of colony (t+1);
S5, the individual fitness function value of the new P of colony of evaluation (t+1);
S6, evolutionary generation t=t+1 return execution in step S3 and continue iterative evolution, until evolutionary generation t>T, end loop;
S7: output optimum individual result.
The method utilizes 6-SPS type parallel robot easily to obtain the characteristics of inverse kinetics solution, its positive motion is learned the minimization problem that Solve problems is converted into an equivalence, by the long error of the calculate driving pull bar bar that returns, by pattern search-differential evolution blending algorithm 6 unknown pose parameters of upper moving platform might value find out in the candidate solution set of combination one group optimum or near optimum solution, make the 6-SPS type parallel robot of definition drive the long error function value minimum of pull bar bar.Pattern search-differential evolution blending algorithm take full advantage of differential evolution algorithm to solution space overall situation exploring ability strong and pattern search fast convergence rate, the excellent advantage of Local Search performance, mutually merge the Optimal performance that search mechanisms has separately improved algorithm.
The below is clearly and completely described the technical scheme in the embodiment of the invention.
1.6-SPS type parallel robot positive motion knowledge topic is found the solution mathematical description
6-SPS type parallel manipulator artificial one typical Stewart platform structure.Lower platform is the symmetrical hexagon of inequilateral on this parallel institution, and wherein lower platform is stationary platform, and upper mounting plate can carry out the 6DOF motion in work space, and two platforms adopt 6 to have same structure and be connected by gimbal suspension with the pull bar of stroke up and down.Fig. 1 is the corresponding mechanism of 6-SPS parallel robot coordinate diagram, b among the figure
i(i=1,2 ..., 6) and be each hinge point of upper moving platform, B
i(i=1,2 ..., 6) and be each hinge point of lower stationary platform, b
1Be the initial point of upper moving platform coordinate system o-xyz,
Be upper moving platform coordinate system x axle positive dirction, B
1Be the initial point of lower stationary platform coordinate system O-XYZ,
Be lower stationary platform coordinate system X-axis positive dirction.But arbitrary vectorial R' through type (1) transforms to vectorial R under the lower fixed coordinate system O-XYZ in upper moving coordinate system o-xyz thus
R=TR'+P (1)
P=[X in the formula
PY
PZ
P]
TBe the position vector of upper mounting plate moving coordinate system initial point o in fixed coordinate system O-XYZ, T is the attitude matrix of upper mounting plate, wherein
Following formula α, β and γ are respectively the moving platform coordinate system with respect to the independent corner of lower stationary platform coordinate system, c
γ=cos γ, s
γ=sin γ is the concise and to the point literary style of γ attitude angle, and α, β angle are similar.
Given upper moving platform attitude matrix T and the position vector P of upper moving platform coordinate system o-xyz initial point o in lower stationary platform coordinate system O-XYZ, and the upper moving platform of definition and each hinge point of lower stationary platform with respect to they separately the position coordinate value of coordinate system be respectively b
iAnd B
i(i=1,2 ..., 6), can in lower stationary platform coordinate system, each drive pull bar long vector l according to formula (1)
iAnd bar is long | l
i| be respectively
In the formula, b
IxAnd b
IyBe respectively x, the y axial coordinate of each hinge point of upper mounting plate in moving coordinate system o-xyz, B
IxAnd B
IyBe respectively each hinge point of lower platform X, Y-axis coordinate in fixed coordinate system O-XYZ.
6-SPS type parallel robot positive motion knowledge topic Numerical Methods Solve is exactly will be in the candidate solution set that the unknown pose parameter of upper moving platform might make up, find optimum or make the robot of definition drive the long error function minimum of pull bar bar near optimum solution, can make up fitness function and be
In the formula,
For the driving pull bar bar that the 6-SPS parallel robot is given long.
2. differential evolution algorithm (DE) ultimate principle
Differential evolution has three mainly to be operating as variation, to intersect and to select.In each iteration, algorithm utilizes differential evolution variation and interlace operation to current colony, produces an interim population; Recycling is carried out man-to-man selection based on the selection operation of Greedy idea to this two colony, thereby realizes the renewal of colony.
Differential evolution algorithm produces first m initial individual x at random in the search volume
i(i=1,2 ..., m), the individual variable number is n.To the arbitrary individual vector x of population
iPress the DE/rand/1 mode and produce the variation vector v
i
In the formula, t is current algebraically, r1, and r2, r3 ∈ 1,2 ..., m} is different and also different from target sequence number i, and F ∈ [0,2] is zoom factor, is used for the control difference vector
Impact, the less disturbance to individuality of difference vector is also less.
The interlace operation purpose of differential evolution algorithm is by the variation vector v
iWith individual vector x
iCombine and improve the vectorial diversity of variation, algorithm carries out interlace operation according to the following equation
Rand () is uniform random number between [0,1] in the formula, and CR ∈ [0,1] is crossover probability, randn be 1,2 ..., choose random quantity among the n};
The selection operation of differential evolution algorithm is a kind of preference pattern based on " greediness ", namely to the vectorial u of new individuality
iWith former vector x
iBe at war with, select the more excellent individuality of fitness to enter in the colony of future generation.
3. pattern search algorithm (PS)
Pattern search method is a kind of Deterministic searching method that was proposed in 1961 by Hooke and Jeeves, and it is moved by exploration and moves two parts with model utility and form; Wherein exploration mobile then with a fixed step size along the descent direction of axial exploration with probe function, it is to directly search to seek better point along beneficial direction that model utility moves, move and motion of defect modes by continuous detection, iteration point will be close to minimal point gradually.The basic step of the method is as follows:
(1) the given optimum individual x of colony
(1)∈ R
n, n axial coordinate direction e
1, e
2..., e
n, initial step length δ, speedup factor α 〉=1, economy β ∈ [0,1], permissible error ε>0 makes y
(1)=x
(1), k=1, j=1;
(2) each component j is axially searched for successively, if f is (y
(j)+ δ e
j) be better than f (y
(j)), y
(j+1)=y
(j)+ δ e
jIf f is (y
(j)-δ e
j) be better than f (y
(j)), y
(j+1)=y
(j)-δ e
jOtherwise y
(j+1)=y
(j)
(3) if f is (y
(n+1)) be better than f (x
(k)), put x
(k+1)=y
(n+1), make y
(1)=x
(k+1)+ α (x
(k+1)-x
(k)), k=k+1, j=1 turns step (2), otherwise carries out step (4);
(4) if δ≤ε, iteration stopping then, invocation point x
(k)Otherwise δ=β δ, y
(1)=x
(k), x
(k+1)=x
(k), k=k+1, j=1 turns step (2).
4. pattern search-differential evolution blending algorithm is found the solution the performing step of 6-SPS parallel robot positive motion knowledge topic
In sum, invent a kind of 6-SPS type parallel robot positive motion knowledge topic method for solving of Schema-based search-differential evolution, the method concrete steps are as follows:
Step 1: parameter initialization.Make current evolutionary generation t=1, maximum evolutionary generation T is set, algorithm Population Size m, individual variable is counted n; Pattern search parameter initial step length δ, speedup factor α 〉=1, economy β ∈ [0,1], step-length allowable error ε>0; Differential evolution zoom factor parameter F, crossover probability parameters C R; Relative its position coordinate value b of coordinate system separately of moving platform and each hinge point of lower stationary platform on the 6-SPS type parallel robot
iAnd B
i, given driving pull bar length
Deng;
Step 2: algorithm population P (t) initialization is also assessed population at individual: produce at random m initial individual x in the search volume
i(i=1,2 ..., m), calculate each individual fitness function value f according to finding the solution fitness function constructed in the 6-SPS parallel robot positive motion knowledge topic mathematical description;
In the formula, x represents population at individual, i.e. parameter x to be optimized=[x
1, x
2..., x
6]
T=(X
P, Y
P, Z
P, α, beta, gamma)
TP=[X
PY
PZ
P]
TBe the position vector of upper mounting plate moving coordinate system initial point o in fixed coordinate system O-XYZ, b
IxAnd b
IyBe respectively x, the y axial coordinate of each hinge point of upper mounting plate in moving coordinate system o-xyz, B
IxAnd B
IyBe respectively each hinge point of lower platform X, Y-axis coordinate in fixed coordinate system O-XYZ, d
Ij(i=1,2,3; J=1,2) be element among the attitude matrix T, embody referring to shown in the formula (2);
Step 3: the optimum individual to population carries out the operation of pattern Local Search as initial point, and substitutes the optimum individual of former colony with the result after the search;
Step 4: population is carried out the operation of DE/rand/1 differential evolution generate the lower P of Dai Xin colony (t+1), and calculate each individual fitness function value f of new colony according to fitness function;
Step 5: evolutionary generation t=t+1, return execution in step three and continue iterative evolution, until evolutionary generation t>T, end loop;
Step 6: output optimum individual result, note (X
P, Y
P, Z
P, α, beta, gamma)
Opt, this result is 6-SPS type parallel robot positive motion and learns solution.
Find the solution the performance of 6-SPS type parallel robot positive motion knowledge topic below by instantiation checking Schema-based search-differential evolution blending algorithm proposed by the invention.Experimental situation is 2.60GHz, 1G internal memory, Matlab 7.11.0.584 version.Obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
To 6-SPS type parallel robot mechanism coordinate diagram as shown in Figure 1, establish each hinge point of upper and lower platform with respect to they separately the position coordinate parameters of coordinate system be respectively shown in the table 1.
Each hinge point of table 1.6-SPS parallel robot is coordinate figure (rice) for corresponding coordinate
|
b
1 |
b
2 |
b
3 |
b
4 |
b
5 |
b
6 |
b
ix |
0 |
0.10 |
0.50 |
0.50 |
0.20 |
0.10 |
b
iy |
0 |
0 |
0.20 |
0.30 |
0.50 |
0.10 |
|
B
1 |
B
2 |
B
3 |
B
4 |
B
5 |
B
6 |
B
ix |
0 |
0.70 |
0.70 |
0.40 |
0.30 |
0 |
B
iy |
0 |
0 |
0.10 |
0.40 |
0.40 |
0.10 |
If 6 driving pull bars of parallel robot length is respectively | l
1|=1.0m, | l
2|=1.0m, | l
3|=1.2m, | l
4|=1.2m, | l
5|=1.0m and | l
6|=1.0m.
The below adopts respectively the differential evolution algorithm of DE/rand/1 and two kinds of Different Variation strategies of DE/best/1 and the present invention is based on pattern search-differential evolution blending algorithm and finds the solution 6-SPS type parallel robot upper mounting plate pose positive motion solution, and mutual comparison search solution performance.Each method parameter arranges as follows in the experiment: dimension is upper mounting plate pose parameter n=6,6 pose parameter (X
P, Y
P, Z
P, α, beta, gamma) and the variable hunting zone is respectively X
P∈ [0.6,0.6], Y
P∈ [0.6,0.6], Z
P∈ [0.9,0.9] rice, α ∈ [40* π/180,40* π/180], β ∈ [75* π/180,75* π/180], γ ∈ [115* π/180,115* π/180] radian; The common parameter zoom factor coefficient F=0.80 of each algorithm DE operation, crossover probability CR=0.90; Pattern search operating parameter δ=0.2 in the pattern search that other the present invention proposes-differential evolution blending algorithm, α=1.0, β=0.5, ε=0.001; During justice, also value is identical for the common parameter of other of three kinds of algorithms of different, be that population at individual is counted P=30, total evolutionary generation T=1500, with the fitness function of formula (8) as upper each algorithm, independent operating is 10 times respectively, and table 2 is respectively 10 corresponding optimizing results of each method independence optimizing.
10 optimizing results of table 2.6-SPS parallel robot positive motion knowledge topic independent operating relatively
|
Optimum |
On average |
The poorest |
Standard deviation |
DE/rand/1 |
5.9952E-15 |
1.6352E-02 |
1.4095E-01 |
4.4030E-02 |
DE/best/1 |
0 |
6.7718E-03 |
1.1286E-02 |
5.8282E-03 |
The inventive method |
6.6613E-16 |
1.3212E-14 |
8.3045E-14 |
2.4827E-14 |
The optimizing result of 10 operations can be found out from table 2, compare with the DE/rand/1 algorithm, the inventive method find the solution the optimum of 6-SPS parallel robot positive motion knowledge topic independent operating 10 times, on average, the standard deviation of the most bad optimization solution precision and optimization solution all is better than the analog value of these two kinds of methods, illustrate that Schema-based search-differential evolution blending algorithm not only has degree of precision finding the solution on the parallel robot positive motion knowledge topic, also has relative stability.With the DE/best/1 algorithm relatively, the inventive method is on average, also be better than the DE/best/1 algorithm on the standard deviation of the most bad optimization solution precision and optimization solution; Though the inventive method optimum solution result is not as good as the DE/best/1 algorithm, but in 10 independent operating results, the DE/best/1 algorithm wherein occupies the optimizing solution (establishing take convergence precision ε=1.0E-5 as condition) that can not converge on expectation for 6 times, obtaining expectation optimization solution success ratio only is 40%, so comprehensive evaluation comparison DE/best/1 algorithm obtains the performance of 6-SPS type parallel robot positive motion solution not as good as the present invention is based on pattern search-differential evolution blending algorithm.Fig. 3 is that three kinds of distinct methods are found the solution 10 average evolution curve comparison diagrams of 6-SPS parallel robot positive motion knowledge topic independent operating, and comparison curves is also verified and be the present invention is based on pattern search-differential evolution blending algorithm to finding the solution the validity of parallel robot positive motion knowledge topic among the figure.
The present invention is based on pattern search-differential evolution blending algorithm and ask for 6-SPS parallel robot positive motion and learn solution procedure for further describing, Fig. 4 is fusion mode search-differential evolution algorithm fitness value function evolutionary process figure when finding the solution positive motion knowledge topic and getting optimum solution f=6.6613E-16, and the pose parameter of corresponding 6-SPS parallel robot upper mounting plate is respectively
(X
P,Y
P,Z
P)
=(0.4402913,0.5242920,0.7288768) rice
(α,β,γ)
=(0.525408 ,-1.272296 ,-1.952770) radian
As can be seen from Figure, the fitness value function evolution curve of this blending algorithm is close to transverse axis fast, can obtain the higher 6-SPS parallel robot positive motion of solving precision and learn solution.
This fusion method provides a kind of effective method approach for solving multidimensional function overall situation numerical value optimizing problem, and other relates in the multidimensional function overall situation numerical optimization field also can be widely used in robot, Aeronautics and Astronautics etc.
In sum, method of the present invention is utilized its characteristic of easily asking for inverse kinetics solution when solving parallel robot positive motion knowledge topic, the parallel robot positive motion is learned the minimum optimization problem that Solve problems is converted into equivalence, and adopts numerical optimization to find the solution.This method combines differential evolution solution space is had the advantage that the strong overall situation is explored performance, reaches pattern search solution space is had more excellent local development ability characteristic, and the mutual mechanism of two kinds of optimized algorithms is merged the search performance that has improved algorithm.Compare with traditional method, the method that the present invention proposes has higher optimizing solution precision and speed of convergence faster when solving 6-SPS type parallel robot positive motion knowledge topic, during the method parallel robot positive motion knowledge of also can be generalized to other types is inscribed and found the solution simultaneously.
Be to be understood that, although this instructions is described according to embodiment, but be not that each embodiment only comprises an independently technical scheme, this narrating mode of instructions only is for clarity sake, those skilled in the art should make instructions as a whole, technical scheme in each embodiment also can through appropriate combination, form other embodiments that it will be appreciated by those skilled in the art that.
Above listed a series of detailed description only is specifying for feasibility embodiment of the present invention; they are not to limit protection scope of the present invention, allly do not break away from equivalent embodiment or the change that skill spirit of the present invention does and all should be included within protection scope of the present invention.