Control Systems - Mock Exam 2
Questa pagina non ha ancora la versione ripasso: qui sotto c'è il testo completo.
In questa pagina 5
Mock exam of Control Systems (Information Engineering). The written exams of this course are not public: the model is the set of written exams of the equivalent Italian-language course held at Padova (Fondamenti di Automatica, Information Engineering, UniPD), adapted to the topics of the notes of this course, which also include modeling, linearization and time response. It is a simulation, not an official paper, and the split of the points is a proposal. Time: 3 hours. Closed book: no notes, no documents. Every answer must be justified; show all the calculations you consider necessary. Structure: Exercise 1 (9 points), Exercise 2 (8 points), Exercise 3 (8 points), Theory 1 (5 points); total 30 points.
Conventions. is the unit step; denotes a deviation from an equilibrium; is the transfer function of the plant, that of the controller, the open-loop and the closed-loop transfer function of the unity negative feedback scheme, .
Exercise 1 (points 9)
Exercise 1: Linearization. A nonlinear system has state , input and output , and it is described by
- (2 points) Keep the input constant, . Find all the equilibrium states and the corresponding output values .
- (3 points) For each equilibrium, write the linearized model in the deviation variables , , (matrices ) and compute the transfer function from to .
- (2 points) For each equilibrium, find the poles of the linearized model and say whether the free evolution of the deviations tends to zero and whether is BIBO stable. What can be said about the stability of each equilibrium of the nonlinear system for small perturbations?
- (2 points) The system is at the stable equilibrium and the input is increased from to . Using the linearized model, predict the new steady-state value of . Then compute the new equilibrium of the nonlinear system exactly and the error of the prediction.
Show the result
- Equilibria: and , with and respectively.
- At : , , , , . At : , same , .
- At : poles , asymptotically stable, BIBO stable: locally stable equilibrium. At : poles (that is and ), one positive pole, unstable, not BIBO stable: unstable equilibrium.
- Prediction , so . Exact new equilibrium: , so ; the prediction is too high by about (about 2 percent of ).
Show the full solution
Point 1: equilibria. An equilibrium of for the constant input satisfies (LinearizationLinearization replaces a nonlinear model by its first-order Taylor expansion around an equilibrium, written in deviation variables, so that transfer functions, poles and stability can be used locally.Linearization →). Here:
The first equation gives ; substituting in the second, , that is , so . The output is . Graphically, the equilibria are the abscissas where the curve meets the horizontal line at height .
Grafico interattivo: g(x1) = x1^2 − x1 e la retta u_e = 6: le due intersezioni x1 = −2 e x1 = 3 sono gli equilibri
Typical mistake: forgetting that forces and writing equilibria with ; or linearizing before checking .
Point 2: linearized models. Introduce , , . The Jacobians are computed first and evaluated afterwards. With , and :
Only the entry depends on the operating point (it is the slope of the nonlinear term ):
- at : , so ;
- at : , so .
In both cases , , , and the model is , .
The transfer function is (The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →). For a matrix one has , , and
so . With and (first equilibrium) or (second equilibrium):
The same result follows from the input-output form obtained by eliminating . Typical mistakes: writing the linear model in instead of ; evaluating the derivative at the wrong point; using the same for both equilibria (the linearization is not unique, it depends on the operating point).
Point 3: local stability. The poles are the roots of the denominator of , which is the characteristic polynomial of (Stability of Dynamical SystemsFor an LTI system the response to a perturbation of an equilibrium does not depend on the equilibrium or on the perturbation amplitude, so stability reduces to the free evolution being bounded (stable) or vanishing (asymptotically stable), decided by the roots of the characteristic polynomial, and is related to BIBO stability.Stability of Dynamical Systems →).
- At : gives , both with negative real part. The same follows from the degree-2 test of The Routh-Hurwitz CriterionThe Routh-Hurwitz criterion decides whether all roots of a characteristic polynomial lie in the open left half-plane, and counts the right-half-plane roots, by building a table (the Routh array) from the coefficients and counting sign changes in its first column.The Routh-Hurwitz Criterion →: both coefficients and are strictly positive. The free evolution is a damped oscillation , and there is no pole-zero cancellation, so is BIBO stable (BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models →). Small perturbations of the nonlinear system die out: this equilibrium is locally (asymptotically) stable. The natural frequency is and the damping ratio is ().
- At : gives , i.e. and . The coefficient of is negative, so the polynomial is not Hurwitz; the root produces the mode that grows, so the linearized model is not asymptotically stable and not BIBO stable. The equilibrium of the nonlinear system is unstable (a perturbation along the unstable direction moves the state away).
Typical mistake: concluding that "the system" is stable or unstable: for a nonlinear system the answer depends on the equilibrium, and the linear analysis says only what happens for small perturbations around it.
Point 4: effect of a small input step. The deviation of the input is , constant. The linearized model at is BIBO stable, so for a constant the deviation settles at (final value of the forced response, Time-Domain Solution of ODEsA linear constant-coefficient ODE is solved as the sum of a homogeneous solution (natural modes from the characteristic equation) and a particular solution (forced by the input), with the constants fixed by the initial conditions; the sign of the real part of the roots decides growth or decay.Time-Domain Solution of ODEs →):
Exact value: the new equilibrium for solves , so
and the root near is (the other, , is near the unstable equilibrium). Hence and the prediction error is , about 2 percent of the variation: the neglected quadratic term of the Taylor expansion is small because the deviation is small. For a much larger step the error would grow (LinearizationLinearization replaces a nonlinear model by its first-order Taylor expansion around an equilibrium, written in deviation variables, so that transfer functions, poles and stability can be used locally.Linearization →: the model is valid only near the operating point).
Exercise 2 (points 8)
Exercise 2: Tracking and rejection of standard signals. Consider the unity negative feedback scheme
d(t)
|
v
r(t) e(t) u(t)
---> (+) -----> [ C(s) ] ----> [ G(s) ] ----> (+) --+---> y(t)
^ - |
| |
+---------------------------------------------+where the plant is and is a disturbance added to the output of the plant. First consider the controller with .
- (2 points) Find the system type, write the characteristic polynomial of the closed loop and use the Routh table to find all the values of for which is BIBO stable. What happens at the limit value of ?
- (2 points) For in the stability range, compute the steady-state error when and is the unit step, the unit ramp and the unit parabola . Give the values for .
- (2.5 points) Let now and act together. Find as a function of and the values of for which the closed loop is stable and . Compute for .
- (1.5 points) The integrator is removed: . Check the BIBO stability of the closed loop and compute for the unit step reference, for the constant disturbance (with ) and for the unit ramp.
Show the result
- is of type . Characteristic polynomial . BIBO stable if and only if . At the polynomial has the roots and : no BIBO stability.
- With : , , . For : , , .
- (the disturbance does not contribute). Condition . For : .
- has denominator (Hurwitz): BIBO stable. ; for the disturbance (not rejected); for the ramp .
Show the full solution
Point 1: type and stability range. The open loop is
It has one pole in the origin ( is a simple pole, the other poles are and ), so it is a type 1 system: with , , finite and nonzero (Tracking and Rejection of Standard SignalsWith a BIBO stable closed loop, the steady-state tracking error for a reference (or disturbance on the output) that is a standard signal of order l is zero if the system type, the number of poles at the origin of the open-loop transfer function H(s) = C(s)G(s), is greater than l, finite and nonzero if it equals l, and infinite if it is smaller, so the controller must supply the missing poles at the origin.Tracking and Rejection of Standard Signals →).
With , , , the denominator of is :
(Equivalently in The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →.) Routh table (The Routh-Hurwitz CriterionThe Routh-Hurwitz criterion decides whether all roots of a characteristic polynomial lie in the open left half-plane, and counts the right-half-plane roots, by building a table (the Routh array) from the coefficients and counting sign changes in its first column.The Routh-Hurwitz Criterion →):
s^3 | 1 4
s^2 | 5 10K
s^1 | (20-10K)/5 0
s^0 | 10K 0The entry of the row is . All first-column entries must be strictly positive: , , . Hence is BIBO stable if and only if . (The degree-3 test gives the same: .)
At the row is entirely zero; the auxiliary polynomial from the row is , i.e. , and : two poles on the imaginary axis, so the loop is not BIBO stable (sustained oscillations at rad/s). For there are two roots with positive real part.
Typical mistakes: counting in the plant instead of in ; using the polynomial with the wrong constant ( here, so the constant term is , not ); using non-strict inequalities.
Point 2: errors to standard signals. is BIBO stable for , so the final value theorem applies to . With (type ), the formula of the notes for is
- Step (): .
- Ramp (): . For : .
- Parabola (): , the error grows without bound.
So the integral action gives perfect tracking of the step, a finite error for the ramp and an infinite one for the parabola. Typical mistake: applying the final value theorem without having checked BIBO stability first (here, for the formulas are meaningless).
Point 3: reference and disturbance together. The scheme is linear, so the total error is the sum of the errors due to and to and each is proportional to the amplitude of its signal (Tracking and Rejection of Standard SignalsWith a BIBO stable closed loop, the steady-state tracking error for a reference (or disturbance on the output) that is a standard signal of order l is zero if the system type, the number of poles at the origin of the open-loop transfer function H(s) = C(s)G(s), is greater than l, finite and nonzero if it equals l, and infinite if it is smaller, so the controller must supply the missing poles at the origin.Tracking and Rejection of Standard Signals →):
- The reference is twice the unit ramp: contribution .
- The disturbance is a (scaled) step, of order , and the type is : it is rejected, contribution . (Directly: .)
Therefore . The specification gives . Together with the stability condition of point 1:
For : , which meets the specification. Note that the values of near meet the error requirement but make the closed loop poorly damped (for the complex poles are at , a very slow oscillatory transient): the steady-state requirement and the transient requirement must be balanced.
Typical mistakes: forgetting that the error is linear in the amplitude of the signals (using the unit-ramp value for ); thinking that the disturbance adds to the error because it is present; checking the error specification but not the stability.
Point 4: proportional controller. With :
Both coefficients are strictly positive, so the polynomial is Hurwitz (degree-2 test): is BIBO stable. Now : type .
- Step: (no more perfect tracking).
- Disturbance with : : the constant disturbance is attenuated by the factor but not rejected.
- Ramp: type , so .
The comparison with point 2 shows the role of the pole in the origin supplied by the controller: it is the integrator that gives zero steady-state error for a step reference and for a constant disturbance acting on the output.
Exercise 3 (points 8)
Exercise 3: Frequency response of a BIBO stable system. A system with input and output is described by the differential equation
with zero initial conditions.
- (2 points) Find the transfer function and show that the system is BIBO stable.
- (1.5 points) Compute the steady-state output when .
- (2 points) Compute , its modulus and its phase for and rad/s, and give the steady-state output when .
- (1.5 points) Find the angular frequency at which the steady-state output is in phase with the input, and the gain of the system at that frequency.
- (1 point) The coefficient of is changed from to , the rest being unchanged. Can the steady-state response to a sinusoid still be computed with ? Justify.
Show the result
- , poles , both with negative real part: BIBO stable.
- .
- : , . : , . Output: .
- rad/s; there (gain , phase ).
- No: the new poles are with positive real part, the system is not BIBO stable, the output contains a term that grows like and there is no steady-state sinusoid.
Show the full solution
Point 1: transfer function and stability. With zero initial conditions, the Laplace transform of the equation gives (The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →):
There is one zero, , and two complex poles (real part ). There is no pole-zero cancellation (the zero is not a pole). The denominator is Hurwitz: by the degree-2 test of The Routh-Hurwitz CriterionThe Routh-Hurwitz criterion decides whether all roots of a characteristic polynomial lie in the open left half-plane, and counts the right-half-plane roots, by building a table (the Routh array) from the coefficients and counting sign changes in its first column.The Routh-Hurwitz Criterion → its coefficients and are strictly positive. Hence is BIBO stable (BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models →).
Point 2: steady state at . The theorem of Frequency Response of BIBO Stable SystemsFor a BIBO stable system W(s) driven by a sinusoid of angular frequency w, the output converges to a sinusoid of the same frequency whose amplitude is multiplied by |W(jw)| and whose phase is shifted by the angle of W(jw); the result extends to cosines and to sums of sinusoids.Frequency Response of BIBO Stable Systems → applies, because is BIBO stable: for the output tends to with and . Here , , . Evaluate on the imaginary axis, at (not at ):
So and . The output tends to
The frequency rad/s equals , where the real part of the denominator vanishes: this is why the gain is large (the poles are lightly damped, , and the input frequency is close to their imaginary part). Typical mistakes: forgetting to add the phase of the input; giving the phase in degrees in one place and in radians in another; evaluating instead of .
Point 3: two frequencies. Evaluate .
- : . Modulus . Phase: numerator , denominator , difference .
- : (since and ). Modulus . Phase: the numerator is in the first quadrant, ; the denominator has negative real part and positive imaginary part (second quadrant), angle . Difference: (more precisely ).
(Using with a calculator would give the wrong quadrant: the denominator must be taken in the second quadrant.)
The input is a sum of two sinusoids of different frequencies; by linearity each one is propagated separately, with the gain and the phase of its own frequency (cosine: the phase shift is added to the cosine itself, as in the corollaries of the theorem):
Typical mistake: using the gain of one frequency for the whole sum.
Grafico interattivo: Guadagno |W(jω)| del sistema: vale 1 in ω = 0, 1,06 in ω = 1, 2,5 in ω = √15 ≈ 3,87, 3,54 in ω = 5 e 0,72 in ω = 10; poi scende a zero come 1/ω
Point 4: output in phase with the input. The output is in phase with the input if (modulo ), i.e. if is a positive real number. Write with and . Multiplying numerator and denominator by , the denominator is real and positive, so the phase of is the phase of :
The imaginary part vanishes for only if , i.e. rad/s. There the real part is , so the phase is and not . The gain: , , hence
(Directly: .) At this frequency the output is a sinusoid of the same shape as the input, amplified by . Typical mistake: solving only and forgetting to check the sign of the real part (a negative real part would give a phase of , output in antiphase).
Point 5: an unstable variant. With the denominator is , with roots and a negative coefficient: it is not Hurwitz. The theorem of Frequency Response of BIBO Stable SystemsFor a BIBO stable system W(s) driven by a sinusoid of angular frequency w, the output converges to a sinusoid of the same frequency whose amplitude is multiplied by |W(jw)| and whose phase is shifted by the angle of W(jw); the result extends to cosines and to sums of sinusoids.Frequency Response of BIBO Stable Systems → requires BIBO stability, which fails here: the natural response contains modes and that grow and never die out, so the output does not tend to a sinusoid. The expression can still be evaluated, but it no longer describes the steady-state response. Typical mistake: applying the formula without checking the poles.
Theory 1 (points 5)
Theory 1: The Routh-Hurwitz criterion. Let , , be a real polynomial.
- (2 points) State the Routh-Hurwitz criterion: define a Hurwitz polynomial, explain how the Routh table is built (first rows, general entry), and how the first column is read, including the number of roots in the open right half-plane.
- (1.5 points) Prove that a polynomial of degree is Hurwitz if and only if and . For degree , deduce from the table the necessary and sufficient condition and show with an example that the positivity of all coefficients is not sufficient.
- (1.5 points) Describe the two special cases (a zero as first element of a row that is not entirely zero; an entire row of zeros) and apply the right procedure to and .
Show the result
- Hurwitz: all roots with . Table: first two rows from the alternate coefficients and ; each new entry is minus the determinant of the matrix formed by the first column and the target column of the two rows above, divided by the first element of the lower row. Hurwitz if and only if all the first-column entries are strictly positive; otherwise the number of sign changes in the first column is the number of roots with positive real part (regular case).
- Degree 2: sum of roots , product ; Hurwitz iff , . Degree 3: Hurwitz iff and . Example: (all positive coefficients, but ): roots with positive real part.
- Case I: replace the zero by and let . Case II: auxiliary polynomial from the row above, replace the zero row by the coefficients of , the roots of are roots of (symmetric about the origin). : first column , so roots with (unstable). : zero row, , roots ; no sign changes: no roots in the right half-plane, and : not asymptotically stable, with simple roots on the imaginary axis.
Show the full solution
Point 1: statement. A polynomial is Hurwitz if all its roots lie in the open left half-plane, . This is exactly the condition of asymptotic stability of the natural response of the differential equation with characteristic polynomial , and the same polynomial gives the poles of a transfer function in least terms (Stability of Dynamical SystemsFor an LTI system the response to a perturbation of an equilibrium does not depend on the equilibrium or on the perturbation amplitude, so stability reduces to the free evolution being bounded (stable) or vanishing (asymptotically stable), decided by the roots of the characteristic polynomial, and is related to BIBO stability.Stability of Dynamical Systems →, The Routh-Hurwitz CriterionThe Routh-Hurwitz criterion decides whether all roots of a characteristic polynomial lie in the open left half-plane, and counts the right-half-plane roots, by building a table (the Routh array) from the coefficients and counting sign changes in its first column.The Routh-Hurwitz Criterion →). The criterion decides it without computing the roots.
Building the table. Normalize (otherwise multiply by ). The first two rows contain the coefficients alternately:
s^n | a_n a_{n-2} a_{n-4} ...
s^(n-1) | a_{n-1} a_{n-3} a_{n-5} ...
s^(n-2) | b_1 b_2 b_3 ...Each entry of the following rows is built with the same rule on the two rows above:
i.e. minus the determinant of the matrix formed by the first column and the column to be filled, divided by the pivot (first element of the lower row). Missing elements are zeros. The table has rows, from to .
Reading. is Hurwitz if and only if all the elements of the first column are strictly positive. In general, the number of sign changes of the first column equals the number of roots with positive real part (when no special case occurs). The inequalities must be strict.
Typical mistakes: sign errors in the determinant (it is the negative determinant); forgetting the strictness; skipping the normalization .
Point 2: degrees 2 and 3.
Degree 2. Let with . By Vieta, and .
- If and : for real roots, the product is positive (same sign) and the sum is negative, so both are negative; for a complex pair, the real part is . So is Hurwitz.
- Conversely, if is Hurwitz: real roots both negative give positive product () and negative sum (); a complex pair with real part gives , and the product is , so .
Degree 3. For :
s^3 | a3 a1
s^2 | a2 a0
s^1 | b1 0
s^0 | a0 0with . The first column must be positive, hence is Hurwitz iff and (the condition is implied by together with and and is listed for clarity).
Positivity is not sufficient. has all positive coefficients but : the table is
s^3 | 1 1
s^2 | 1 3
s^1 | -2 0
s^0 | 3 0with first column : two sign changes, so two roots with positive real part (numerically ). For degree positivity of the coefficients is necessary and sufficient, for degree it is only necessary.
Point 3: special cases.
Case I: a zero in the first column, row not entirely zero. The next entry would need a division by zero. Replace the zero by a small , continue the table, then look at the signs for . For :
s^4 | 1 2 3
s^3 | 1 2 0
s^2 | 0 -> eps 3 0
s^1 | -(3 - 2 eps)/eps 0 0
s^0 | 3 0 0Computation: (replaced by ) and . Then , and . First column for : : two sign changes, so has two roots with positive real part and is unstable (numerically and ).
Case II: an entire row of zeros. It occurs when has roots symmetric about the origin (for example a pair ). Form the auxiliary polynomial with the coefficients of the row above the zero row (in powers of descending by two), replace the zero row by the coefficients of and continue; the roots of are roots of . For :
s^4 | 1 7 12
s^3 | 4 16 0
s^2 | 3 12 0
s^1 | 0 0 0 -> replaced by A'(s) = 6s: 6
s^0 | 12Computation: , ; the row is , entirely zero. Auxiliary polynomial from the row: , with roots ; gives the new row and then equal to . The first column has no sign changes: no roots in the right half-plane. The two roots of are on the imaginary axis, and indeed : the polynomial is not Hurwitz (not asymptotically stable): the natural response contains a sustained oscillation at rad/s, which stays bounded because the imaginary-axis roots are simple. Typical mistakes: concluding "stable" from the absence of sign changes when a zero row has appeared; dropping the factor and continuing with ; for a zero row, not using the row above to build .
Applications: the stability range of a closed loop with a parameter, as in Exercise 2, comes from the same table applied to the characteristic polynomial (The Feedback Control Scheme and RequirementsThe basic control scheme feeds the plant G(s) with the output of a controller C(s) acting on the tracking error e = r - y, giving the closed-loop transfer function W(s) = C(s)G(s) / (1 + C(s)G(s)); the requirement y close to r splits into steady-state conditions (small error for some references, disturbances, model uncertainty) and transient conditions on rise time, settling time and overshoot, which become a region of the complex plane where the poles of W(s) must lie.The Feedback Control Scheme and Requirements →); for linearized models see LinearizationLinearization replaces a nonlinear model by its first-order Taylor expansion around an equilibrium, written in deviation variables, so that transfer functions, poles and stability can be used locally.Linearization →.
Self-assessment grid
| Exercise | Points | What must be there for full points | Typical mistakes |
|---|---|---|---|
| Exercise 1 | 9 | Equilibria from with (2); Jacobians evaluated at each equilibrium, with entry or , and (3); poles (stable) and (unstable), conclusion local and per equilibrium (2); versus exact (2) | linearizing without checking equilibria; writing the model in instead of ; same for both equilibria; calling the whole nonlinear system stable or unstable |
| Exercise 2 | 8 | Type , , Routh and the case (2); errors , , (2); linearity, disturbance rejected, , range , value (2.5); proportional controller: stable, , , ramp infinite (1.5) | wrong constant term ( instead of ); final value theorem without stability; unit-ramp error used for ; stability not checked together with the error specification |
| Exercise 3 | 8 | and Hurwitz denominator (2); , output (1.5); gain and phase at with the right quadrant, each component with its own (2); and gain (1.5); unstable variant: theorem not applicable (1) | instead of ; wrong quadrant for the phase at ; phase of the input forgotten; one gain for the whole sum; applying the theorem to an unstable system |
| Theory 1 | 5 | Hurwitz definition, table rule with the negative determinant and the pivot, strict positivity of the first column, sign changes count (2); degree-2 proof by Vieta, degree-3 condition , counterexample with positive coefficients (1.5); procedure with the result on (2 roots) and auxiliary polynomial with the result on (roots , not Hurwitz) (1.5) | sign of the determinant; non-strict inequalities; stating that positive coefficients are sufficient; ignoring the zero row or continuing with a division by zero |