System Modeling
In questa pagina 10
To design a controller we need a mathematical description of how the physical system reacts. This note collects the lesson on system modeling: what a model is, its ingredients, the notions of input, output and state, the classification of models (static/dynamic, causal, linear, time-invariant, SISO/MIMO) and the standard input-output ODE that the rest of the course uses. (The lesson does not develop block-diagram algebra, which is therefore not covered here.) Follow-up: 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 →; context in Introduction to Control SystemsA control system makes a physical system follow a desired reference; the key idea is feedback (closed loop), compared with open-loop control, and the problem is formulated in terms of systems, control inputs, disturbances, outputs and a reference.Introduction to Control Systems →.
1. Why we need models
A control system acts on a physical system. To design the controller we need a mathematical description of how the system reacts:
input u(t) ------> [ system / model ] ------> output y(t)A model connects causes (inputs), internal evolution and measured effects (outputs).
2. What is a mathematical model?
Definition. A mathematical model is an abstract description of the structure and behavior of a system using mathematical symbols and relations. It gives a quantitative description of the system.
Remark from the lesson: in many control courses, after the model has been derived, the word system is often used to mean the mathematical model itself.
The three ingredients
| Ingredient | Meaning | Examples |
|---|---|---|
| Parameters | constants describing the structure | |
| Variables | quantities that evolve | |
| Relations | equations connecting the variables |
3. Input, output and state
- Input : the cause acting on the system.
- Output : the effect that we measure or care about.
- State : the information needed to continue the evolution.
u(t) -------> [ dynamic system ] -------> y(t)
^
| (dashed)
x(t)Example state variables: position and velocity (mechanical system); capacitor voltage and inductor current (electrical circuit).
4. Static or dynamic?
| Static model | Dynamic model |
|---|---|
| the output depends only on the input at the same time | the output depends on the present and past evolution |
| no memory; algebraic relation | memory; differential equation |
Control systems are mainly interested in dynamic models, because control means shaping how the system evolves in time.
Example: static model of a scale
A mass rests on a spring of stiffness ; a weight is applied and is the compression (measured downward). Only the final compression is considered (equilibrium):
This is an algebraic input-output relation: the output at time depends only on the input at the same time.
Example: dynamic model of a scale
Now we care about the motion in time, not only the equilibrium. A damper is added in parallel to the spring . Input: , output: . By Newton's second law:
hence
Terms:
- : inertia;
- : damping (viscous) force;
- : elastic force.
This is a dynamic model: the output depends on derivatives of , so the system has memory.
5. Input-output model vs state model
| Input-output | Input-state-output |
|---|---|
| relates input and output directly | introduces variables that summarize the past |
| useful before introducing solution methods for ODEs | |
| useful for modern control and simulation |
How the second column follows from the first: choose position and velocity as state variables, and . Then , and solving the dynamic equation for gives , i.e. .
For this introductory part of the course, input-output models are mainly used.
6. Signals: time and value
A signal can be continuous or discrete in time, and continuous or discrete in value:
| continuous time () | discrete time () | |
|---|---|---|
| continuous value | analog | sampled |
| discrete value | quantized | digital |
In this course we mainly study continuous-time, continuous-valued signals.
7. A compact map of model properties
A model can be classified with a few questions:
- continuous time or discrete time?
- SISO or MIMO?
- static or dynamic?
- causal or noncausal?
- linear or nonlinear?
- time-invariant or time-varying?
In this course the most important class is: SISO, continuous-time, causal, dynamic, linear, time-invariant systems.
7.1 Causality
Causal model: the output at time depends only on inputs up to time , not on future inputs.
- Causal example: (uses present and past input).
- Noncausal example: (requires the future input).
Physical real-time systems must be causal.
7.2 Linearity (superposition principle)
A system is linear if scaling and adding causes produces scaling and adding effects. If
then a linear system satisfies
Examples from the lesson: linear spring ; nonlinear spring . (Linearization of nonlinear models is treated in 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 →.)
7.3 Time invariance
A time-invariant system behaves the same way today and tomorrow. If the input is delayed by , the output is the same, delayed by :
If parameters change with time, for instance , the model is generally time-varying.
8. What we mainly study: LTI systems
Linear Time-Invariant (LTI) systems, which are:
- SISO: single input, single output;
- in continuous time;
- causal and dynamic.
This restriction is not a weakness: it gives a powerful and clean starting point for control design.
9. The standard input-output ODE
For SISO continuous-time LTI systems the input-output model is often written as
- : constant parameters of the model;
- : order of the model;
- : input signal;
- : output signal;
- usually for causal systems.
The mass-spring-damper of Section 4 is the case , : , , , , with .
10. Take-away
physical system --> model --> ODE --> solutionThe next step is to solve these ODEs in the time domain, using tools from calculus: see 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 →.
Versione ripasso
Mathematical model: abstract, quantitative description of a system. Ingredients: parameters (constants ), variables (), relations (equations).
Input = cause; output = measured effect; state = information needed to continue the evolution (position and velocity; capacitor voltage and inductor current).
Static vs dynamic: static (algebraic, no memory); dynamic (differential equation, memory). Control is mainly about dynamic models.
Scale examples:
- static: ;
- dynamic: (inertia, damping, elastic force).
State form (, ): , . The course mainly uses input-output models.
Signals: continuous/discrete time continuous/discrete value gives analog, sampled, quantized, digital. The course studies continuous-time, continuous-valued signals.
Classification questions: continuous/discrete time; SISO/MIMO; static/dynamic; causal/noncausal; linear/nonlinear; time-invariant/time-varying.
- Causal: depends only on , (e.g. ; is noncausal).
- Linear: (spring linear, nonlinear).
- Time-invariant: .
Course focus: SISO, continuous-time, causal, dynamic LTI systems.
Standard ODE: , = order, for causal systems.
Typical mistakes: calling a system linear because the equation "looks simple" (the superposition test must hold); confusing a time-varying parameter with a time-invariant one; forgetting that is the usual condition for causal systems.