SMC for Manipulator Optimizing SMC parameters by Genetic Algorithm.

TELKOMNIKA ISSN: 1693-6930 Genetic Algorithm of Sliding Mode Control Design for Manipulator Robot Ahmad Riyad Firdaus 649 Since the torque developed at the motor shaft increas linearly with the armature current, independent of speed and angular position, then the torque can be written by the following equation 12. a a i K = τ 12 Whereas, armature voltage b a a a a a e dt di L R i V + + = 13 where n K e L m m b b θ θ θ = = dan thus,       − = L a b a a a nR K R V K θ τ 14 By substituting the equation 10, 11 and 14, is obtained: 1 1 1 1 1 a V B H D + = θ 15 2 2 2 2 2 2 a L V B G H D + + = θ 16 where, 1 1 1 2 1 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 1 1 cos sin 3 2 3 3 cos a a L L L L L m a b a m L R K B l m n n F R n K K H n J l m n D = +       + − = + = θ θ θ θ θ θ 2 2 2 2 2 2 2 2 2 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 cos 2 1 cos sin 3 1 3 3 a a L L L L L m a b a m R K B gl m n G l m n n F R n K K H n J l m n D = − = −       + − = + = θ θ θ θ θ If select the state 2 4 2 3 1 2 1 1 ; ; ; L L L L x x x x θ θ θ θ = = = = , the control input are 2 2 1 1 ; a a V u V u = = and desired output are 2 2 1 1 ; L L y y θ θ = = , thus, the nonlinear state equation of manipulator 2- DOF can be written by the following equation 17.                   +             + =             − − − − 2 1 2 1 2 1 1 1 2 2 1 2 4 1 1 1 2 4 3 2 1 u u B D B D G H D x H D x x x x x 17 x y       = 1 1 18

3.2 SMC for Manipulator

The operation target are to make output x 1 and x 3 following reference input x 1r and x 3r , and another state go to zero. Define system error state by following equation: ISSN: 1693-6930 TELKOMNIKA Vol. 10, No. 4, December 2012 : 645 – 654 650             − − − − = 4 3 3 2 1 1 x x x x x x e r r where e is tracking error of state. The transien response of the system is based on selecting switching variables. The following equation 19 and 20 are the sliding surface for joint 1 x 1 and joint 2 x 3 of manipulator robot. r r x x dt d x x S 1 1 1 1 1 1 − + − = σ r x S x x S 1 1 2 1 1 1 − + = σ 19 r r x x dt d x x S 3 3 3 3 2 2 − + − = σ r x S x x S 3 2 4 3 2 2 − + = σ 20 Thus, the matrix of sliding surface can be obtaoned by the following equation 21. , 1 1 2 1 3 2 1 1 2 1       − − +       = S S x S x S x S S r r σ 21 From equation 21, the selection of S relate to system dynamics to influence system time response. Chosen correct S , hence poles at closed loop system will be able to be accommodated with a purpose of controlling.

3.3 Optimizing SMC parameters by Genetic Algorithm.

In this section, a genetic based SMC method is proposed so that the parameters of SMC k and S are self-generated by means of Genetic Algorithm based on the direction of a proposed fitness function [7]. In order to select the set of control parameters R= k and S by using genetic algorithm, first, we select R as a parameter set and code it as a finite-length string, then choose a fitness function so that genetic algortithm can be used to search for a better solution in the parameter space. If we define a function, the search direction of genetic algorithm will depend on the requirement of fitness function. So it is a key role on the defined fitness function so that the controlled system can achieve a desired performance. In this paper, we want to find the gain parameters and sliding surface constants of the SMC to reduce the time response of x 1 and x 3 T r and the steady state error and the amplitude of control input of the controlled system, so we propose the following objective function [13]: 2 max 3 2 2 2 1 U c e c T c F r + + = 22 Where c 1 , c 2 , c 3 are multiplying constants that can be adjusted according to designer’s specification or the system requirement. The fitness function can be defined by the following equaition 23. 1 1 + = F f 23 The objective function needs to add 1 to avoid programming error cause of dividing by zero. In this way, the selected control parameters based on the direction of the proposed fitness function will provide the system with a good overall performance of small time response and small steady state error. That is, as f R increases as greatly as possible, the global performance of the controlled system corresponding to the string will work as well as possible. Therefore, the selection problem becomes the following optimization problem. TELKOMNIKA ISSN: 1693-6930 Genetic Algorithm of Sliding Mode Control Design for Manipulator Robot Ahmad Riyad Firdaus 651 { } R f MAX 23 where R is a string which represents a point located in the search space. Hence, three basic genetic operators can be applied to select the parameters { k , S 1 , S 2 }to maximize the performance index in the parameter space. If the final string is obtained, it can be selected as the SMC parameters that a high performance can be achieved.

4. Result and Discussion