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

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
  1. APreset, exactly as the link opens it.
  2. 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.

QuantityWhere to read itAB
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

  1. Raising the angle cost from run A to run B: what happens to the peak angle and to the cart travel?

  2. 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.

Source: eigenroom.com/worksheets/cart/lqrCite: EIGENROOM. (2026). Balance with a state model [Lab worksheet]. Accessed YYYY-MM-DD. https://eigenroom.com/worksheets/cart/lqr