Lite / Engineering Complex Systems / Week 10
Inputs, outputs, states and parameters
A greenhouse model has a heater, a thermometer, a temperature and a wall thickness. Which of those is the model's memory?
Why should I care?
Before you can simulate or control anything you need to agree what is a knob you turn (input), what you measure (output), what the system remembers (state), what is fixed by its design (parameter) and what the world does to it (disturbance). Mixing these up is the most common source of broken models.
- Sort the quantities in a model into inputs, outputs, states, parameters and disturbances.
- Explain why parameters are held fixed during a run while states evolve.
- Draw a block diagram of a dynamic model with its signals labelled.
Predict
In a model of a lift, which quantity is a parameter rather than a state?
- Cabin position
- Cabin velocity
- Cabin empty mass
- Motor current
Guess first, then reveal
The empty mass is fixed by the design for the whole run: a parameter. Position, velocity and current all evolve over time and the model has to remember them: states.
Discover
Open the feedback lab with a first-order plant. Write down every slider and label each one input, parameter or controller setting. Then change only the plant time constant and see which curves change.
What the interactive shows (text version)
The feedback lab has sliders for the set point (input), the plant gain and time constant (parameters), the controller gains (design choices) and an optional disturbance. Changing only the time constant changes how fast the output curve rises, without changing where it ends up.
Understand
Five kinds of quantity
Inputs are what you choose (heater power, motor voltage). Disturbances are inputs you don't choose (wind, a passenger stepping in). States are what the system remembers (temperature, speed). Outputs are what you measure, often a state seen through a sensor. Parameters are fixed numbers in the equations (mass, time constant, gain).
Parameters stay put, states move
In a single run the parameters are constants; the states change from step to step. Changing a parameter means simulating a different system. That is why a fair test changes one parameter at a time across runs.
Block diagrams
Engineers draw a model as boxes joined by arrows. Each arrow is a signal (a quantity that varies in time) and each box transforms signals. Parameters live inside the boxes. A feedback loop is an arrow that carries the output back to the input side.
Explain it another way
Intuitive
Think of a recipe: ingredients are inputs, the oven temperature dial is an input too, the cake's doneness is the state, the oven's size is a parameter, and opening the door is a disturbance.
Technical
A model dx/dt = f(x, u, d; p), y = h(x) has state x, input u, disturbance d, parameters p and output y. Identification estimates p from data; simulation computes x(t) given p, x(0), u(t) and d(t).
Applied
In the Elevator build, the controller gains are inputs to your design, the cabin mass and rope stiffness are parameters, the cabin position and speed are states, and the passengers' weight is a disturbance the controller must reject.
Worked example 1
A model of a phone battery: dQ/dt = −I(t), V = V₀(Q) − I·R. Label Q, I, V, R and V₀.
Q (stored charge) is the state. I (current drawn) is the input, or a disturbance if the user decides it. V (terminal voltage) is the output. R (internal resistance) is a parameter, and V₀(Q) is a parameterised curve. The battery remembers Q; everything else follows from it.
Common mix-ups
Anything with a number in the model is a parameter.
✓ Numbers that evolve during a run are states; only numbers fixed for the run are parameters.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
Draw a labelled block diagram of the Smart Greenhouse: heater command in, air temperature state, thermometer output, outside temperature disturbance, wall insulation and air volume as parameters. Mark which arrow would carry feedback.
Reflect
Name a system where it is genuinely hard to decide whether something is an input or a disturbance. What decides it?
Write your answer on paper or in your own notes. Lite never stores what you write.