User:Mtxu

From Wikimization

Revision as of 11:36, 2 February 2009 by Mtxu (Talk | contribs)
Jump to: navigation, search

Hello,

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]v(x)=x'*P*x=x'*W^(-1)*x[/tex]. [tex]x'*(A'*P+P*A)*x-2*x'P*B*K*x<0[/tex]. [tex]u(t)=-K*x(t)[/tex].


[tex]Hij(W,R)=W*A/alfa_i '+A/alfa_i*W-B/alfa_i*R-R'*B/alfa_j '<0[\tex] and [tex]W=eye(2,2)*w, w \in{} R^(2x2)[/tex] [tex]R=eye(2,2)*w, w \in{} R^(4x2)[/tex].

The ecuation must: [tex]min f(W,R)=min(p1)+min(p2)[/tex] subject to: [tex]wnn \leq{} p1[/tex] [tex]-p2 \leq{} r_qn\leq{}p2[/tex]

with [tex]n=1,....4, q=1...2.[/tex]

[tex]W=w*eye(4)[/tex] [tex]R=r*eye(2,4)[/tex]

and: [tex]W \geq{} \epsilon1*eye(4)[/tex] [tex]Hij(W,R) \leq{} -\epsilon2*eye(4)[/tex]

Now the article says that aplaing the convex programm, it posible to solve the ecuation.

They present the next algoritm: 1) Initialization [tex]l=0, W1=W1=eye(4), R1=R2=zeros(2,4)[/tex] 2)Calculate [tex]\lambda(W)=\lambda min(W)[/tex] [tex]\lambda_Hij=\lambda max(Hij(Wi,Ri))[/tex]

3)if [tex]\lambda(W) \geq \epsilon1[/tex] [tex]lambda_Hij \leq -\epsilon2[/tex] STOP

Else [tex]l=l+1[/tex] calculate eigenvalues(v_w y v_Hij). calculate the constraint linear: C1(W,R) [tex] v_w'*W1*v_w \geq \epsilon1[/tex] if [tex](\epsilon1-\lambda_w)>(\lambda_Hij+\epsilon2)[/tex] [tex]v_Hij'*Hij*v_Hij \leq -\epsilon2[/tex] if [tex](\epsilon1-\lambda_w)\leq (\lambda_Hij+\epsilon2)[/tex]

4)Solve [tex]min(p1+p2)[/tex] under [tex]\epsilon1\leq w_nn\leqp1[/tex] [tex]-p2\leq r_qn\leqp2[/tex] [tex]C_k(W,R)[/tex] [tex]k=1,...z[/tex] 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.

Personal tools