EIGENROOMLAB WORKSHEET 12Cart-pole · State space
Balance with a state model
NameSectionDate
Goal
Use the LQR weights to trade pole angle against cart travel, and measure the force each choice takes.
Setup
Lab eigenroom.com/lab?lesson=lqr · short link eigenroom.com/lqr
Open it on a phone or a computer; there is nothing to log in to or install. The link loads run A's settings:
- Initial angle
- 6°
- Controller type
- LQR
- Position cost
- 10
- Angle cost
- 100
- Force cost
- 1
- Sensor noise
- 0
- Disturbance events
- Nudge cart 1.2 N·s at 1.4 s
- Recording
- 8 s
- APreset, exactly as the link opens it.
- BChange only: Angle cost → 1000.
Pin each run before you change a setting, so you can compare runs at the same replay time.
1. Predict
What changes when position and pole angle have different costs?
Write your prediction and a reason before you run anything.
2. Observe
Read each value in the lab and write it in the table.
| Quantity | Where to read it | A | B |
|---|---|---|---|
| Peak angle (°) | Measured response | ||
| Peak cart travel (m) | Measured response | ||
| Peak |applied force| (N) | Control effort plot | ||
| Control effort (N·s) | Measured response |
3. Explain
Raising the angle cost from run A to run B: what happens to the peak angle and to the cart travel?
Did protecting the angle take more force? Compare the peak force and the total control effort.
Extension (optional)
Raise the force cost to 10 with the other weights as in run A. Predict the peak force and the peak angle.