From: Stefan Stefan on

Hi there,

it seems that this line

> xnew= A*xold+B*unew+L*c+K*uold;

should be a state controller with observer. But the observer usually feeds back the difference of the real plant output and the model output - not a constant. What up with this?
How do you determine the values in K and L. It doesn't seems, that you did a controller synthesis anyhow.

Regards,
Stefan
From: Bruno Luong on
"david " <david.sabine760(a)gmail.com> wrote in message <hhn5qa$rrk$1(a)fred.mathworks.com>...
> "Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hhn53r$1lb$1(a)fred.mathworks.com>...
> >
> > > It is a model for contrling the traffic on an over-saturated intersection .where u is the control variable (the green time in the traffic light) and :
> > > A=[1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1]
> > > B=[s1-q1;s2-q2;-s3;-s4]
> > > C=[1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1]
> > > D=[0];
> > > s1=0.38; %1368 veh/h
> > > s2=0.27; %972 veh/h
> > > s3=0.19; %684 veh/h
> > > s4=0.20; %720 veh/h
> > > q1=0.5; %2160 veh/h
> > > q2=0.4; %1800 veh/h
> > > In this case how do i do to make my system controllable (the rank of controllability matrix= n )where n= the number of state variables.
> > > BEST REGARDS
> > > david
> >
> > So everything are fixed and the system is not controllable. I can't see what else you can do beside praying for a miracle.
> >
> > I don't understand how you can multiply B (vector) with u (vector) and why the D? Are you sure to formulate the problem correctly?
> >
> > Bruno
> For u ,it is a one variable vector so we can do B*u .in the following you find my code
>
> %/////////////////////////////////////////////////////////////
> clear
> clc
> s1=0.38; %1368 veh/h
> s2=0.27; %972 veh/h
> s3=0.19; %684 veh/h
> s4=0.20; %720 veh/h
> q1=0.5; %2160 veh/h
> q2=0.4; %1800 veh/h
> q3=0.4; %1440 veh/h
> q4=0.3; %1080 veh/h
> %--------------------------------
> c=160;
> rho=0.2;
> %x(k)=[x1(k);x2(k);x3(k);x4(k)]
> A=[1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1]
> B=[s1-q1;s2-q2;-s3;-s4]

David, your control matrix B is rank 1 (column matrix), the instantaneous state and observation vectors are rank 4. So the system clearly cannot be controllable.

Bruno