

(11 intermediate revisions not shown.) 
Line 1: 
Line 1: 
  Hello,
 +  [http://www.convexoptimization.com/wikimization/index.php?title=Special:Userlogin&returnto=Special:Userlogout Login] required to [http://www.convexoptimization.com/wikimization/index.php/Special:Emailuser/Mtxu Email this user].<br> 
   +  If you do not already have an account, [http://www.convexoptimization.com/wikimization/index.php?title=Special:Userlogin&type=signup create one here]. 
  I'm Maria Calle, I have an answer abot CVX and how to work with. I hope here is the place for answer about.
 +  
   +  
  I'm one student from Spain. I'm studing engienering in automatic control. I'm in my last year and I'm making a proyect of investigacion. It's about LQR and how to sintonice it by pole assignment.
 +  
 
 +  
  I have some problems with the initialitation of the gain matrix. I'm reading one article for know how to make it. In the article they said that it's necessary to solve by convex programm. Until last week I didn't knew anything about convex program.
 +  
 
 +  
  So I'm begining whit CVX program and now I'm lost. Could you help me? I don't know how to continue.
 +  
 
 +  
  I have a system, A, B and C. It have to move poles to one region, for it, I make a transform to the original system. (A_alfa, B_alfa, C_alfa).
 +  
   +  
  I have to know the gain matrix, with is:
 +  
   +  
  [tex]K=R*W^1[/tex].
 +  
   +  
  It's knew that:
 +  
 
 +  
  [tex]Hij(W,R)=W*A/alfa_i '+A/alfa_i*WB/alfa_i*RR'*B/alfa_j '<0[\tex]
 +  
  and
 +  
  W=eye(2,2)*w, w > R^(2x2)
 +  
  R=eye(2,2)*w, w >R^(4x2).
 +  
 
 +  
  The ecuation must: min f(W,R)=min(p1)+min(p2)
 +  
  subject to:
 +  
  wnn<=p1
 +  
  p2<=rqn<=p2
 +  
 
 +  
  with
 +  
  n=1,....4, q=1...2.
 +  
   +  
  W=w*eye(4)
 +  
  R=r*eye(2,4)
 +  
 
 +  
  and:
 +  
  W>=epsilon1*eye(4)
 +  
  Hij(W,R)<=epsilon2*eye(4)
 +  
 
 +  
  Now the article says that aplaing the convex programm, it posible to solve the ecuation.
 +  
 
 +  
  They present the next algoritm:
 +  
  1) Initialization
 +  
  l=0, W1=W1=eye(4), R1=R2=zeros(2,4)
 +  
  2)Calculate
 +  
  lambda(W)=lambda min(W)
 +  
  lambda_Hij=lambda max(Hij(Wi,Ri))
 +  
 
 +  
  3)if
 +  
  lambda(W)>=epsilon1
 +  
  lambda_Hij<=epsilon2
 +  
  STOP
 +  
 
 +  
  Else
 +  
  l=l+1
 +  
  calculate eigenvalues(v_w y v_Hij).
 +  
  calculate the constraint linear: C1(W,R)
 +  
  v_w'*W1*v_w>=epsilon1 if (epsilon1lambda_w)>(lambda_Hij+epsilon2)
 +  
  v_Hij'*Hij*v_Hij<=epsilon2 if (epsilon1lambda_w)<=(lambda_Hij+epsilon2)
 +  
 
 +  
  4)Solve
 +  
  min(p1+p2)
 +  
  under
 +  
  epsilon1<=wnn<=p1
 +  
  p2<=rqn<=p2
 +  
  C_k(W,R)
 +  
 
 +  
  Now I have no idea of how to continue, or how to program the algoritm.
 +  
 
 +  
  They said the method for solving it's mathematical convex program.
 +  
 
 +  
  Thanks a lot for all, Greetings.
 +  