The Athenians were as litigious as modern Americans.  This made the abuse of the legal system possible both for prosecutors and for jurors.  Find a humorous video or article that discusses an outrag

ECE509 { Analysis of Linear Systems Computer Project #2 (100 pts.) Due: Sunday, May 12, 2018 at 11:55 PM 1.The following three state feedback problems from the textbook are to be used for practice, and not to be turned in. While you can of course use MATLAB to verify your results, be sure to work out all the control design details by hand. Solutions to these problems are available on Isidore for your reference.

(a)Problem 8.4 (b)Problem 8.5 (c)Problem 8.6 2.Consider the SISO system from the (future) lecture notes:

_ ~ x (t) = 2 4 1 2 2 0 1 1 1 0 13 5 ~x (t) + 2 4 2 0 1 3 5 u(t) y (t) = 1 1 0 ~x (t) Verify that this system is controllable and observable. In Simulink, design a state feedback controller such that the system meets or exceeds the following speci cations when tracking a train of steps alternating between -1 and 1 at 1Hz for 5 seconds:

(a)Maximum settling time for 98% criterion: 0:18 s (b) jy (t) j < 1:01 for 1s t 5s Plot the reference signal r(t) along with the output y(t) for 5 seconds. In a separate gure, plot the control signal u(t) . Also state what your nal poles and kvector are.

A diagram of a Simulink model capable of state feedback is given below: \Gain1" (the feedforward gain) will need to be an element-wise multiplication. \Gain" (feedback gain) and \Gain2" (C matrix/vector) will both need to be matrix multiplications. Carefully consider what C needs to be in the state-space model block for this to function as intended. 3.Now consider the system from (2) and implement feedback via a state observer:

Here you no longer have access to the state vector ~ x (t) , only the output y(t) . Design a system using a state observer that is able to track a train of steps alternating between 1 and 1with a frequency of your choice { but make sure the frequency is chosen so that steady-state tracking can take place. Do the following:

(a)Describe your overall control design solution.

(b)State the frequency of the reference signal. (c)Simulate the system with your control solution. Demonstrate your design by plotting, in one gure, the real state and its estimate, and in another, the real and estimated output together with the reference to be tracked. Show two full periods of your reference.

Make sure the plant and observer have di erent initial conditions (of your choice), so that the e ect of the observer can be clearly seen.

Bonus (5 pts.) : Why does the output always rst go in the opposite direction before tracking the alternating step signal?

4. A More Realistic Example: Mechanical Press A simple mechanical press can be modeled as two rotating masses joined by a torsional spring, as depicted in Figure 1. 1 and !

1 = _ 1 are, respectively, the angle and angular speed of the press motor spindle. Figure 1: Schematic diagram of a mechanical press.

Similarly, !

2 = _ 2. In a typical press application, it is of interest to control the motor angle, 1. The parameters of the system are as follows:

J 1 = 0 :1722 kg m 2 : inertia of rotating mass 1; J 2 = 0 :1392 kg m 2 : inertia of rotating mass 2; k 1 = 20491 N m=rad : torsional spring constant; and c 1 = 4 :7521 N s=m : damping coe cient.

By choosing the states ~ x (t) = [ 1; !

1; 2; !

2]T , the press can be modeled by the state equation _ ~ x (t) = 2 6 6 4 0 1 0 0 k 1=J 1 c 1 =J 1 k 1=J 1 c 1 =J 1 0 0 0 1 k 1=J 2 c 1 =J 2 k 1=J 2 c 1 =J 23 7 7 5 ~ x (t) + 2 6 6 4 0 1 =J 1 0 0 3 7 7 5 u (t) y (t) = 1 0 0 0 ~x (t) ; and the output y(t) is in radians. It is desired to track a reference r(t) that can be produced by using the following code:

% Set time vector t = [0:0.001:3]; % Set reference signal 2!!" # ! !!" # ! !!" # ! !

! !! r = (t<=0.6).*t*12/0.6+(t>0.6&t<=1)*12+ ...

(t>1&t<=2).*(18-6*t)+ ...

(t>2&t<=2.5)*6+(t>2.5&t<=3)*12; figure(1) plot(t, r , LineWidth ,2) grid xlabel( Time (s) ) ylabel( Reference (rad) ) title( Desired reference position ) Set the initial conditions as follows: ~ x (0) = [10 ;0 ;0 ;0] > , and ^ ~ x (0) = 0 . Let the tracking error be de ned as e(t) = r(t) y(t) . Design a state feedback controller together with a state observer that can track the reference given in the MATLAB code above while satisfying the following design speci cations:

(a) je (t) j 10rad for0 t 3s.

(b) je (t) j 0:4 rad fort= 0 :6 s.

(c)The settling time ( 98%criterion) for the step at t= 2 :5 s should be less than 0:05 s.

A good way to solve such a problem is to rst design the state feedback, temporarily assuming that the state vector ~ x (t) is available, and meet the requirements. Then, use ^ ~ x (t) from the observer instead of ~ x (t) and design the observer to still meet the requirements.

Provide enough support via plots to show that your design meets all the given speci cations.

General notes and hints :

Your report should be well written and presented. If you need assistance with writing, contact The Write Place . Be clear and concise. A report not satisfying these requirements will lose 10% credit.

Only include your result plots and any pertinent analysis in the main portion of your report. Attach MATLAB code and Simulink les separately, NOT in the report.

All gures must be carefully labeled. The xand yaxes should be labeled, a title used, and a legend should be included when more than one signal is plotted in the same gure.

Submit your report and MATLAB code in electronic form via Isidore. No hard copies will be accepted.

Last, but not least, ensure the work you turn in is your own, from the code to the report .

3