Log inStart free
LESSON 20.C1 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Controllers vs RL on one plant

Watch four controllers balance one cart-pole and take the same tap.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 20.C1 · ONE PLANT, FOUR METHODSTAP 1.0 RAD/S AT 1 S · SAME STATE, ±10 N
01
Stage 1 of 6 · One plant
Four methods balance the same cart-pole, and none knows the tap. Each reads the full state and pushes within 10 N.
Explain it simply

Four methods get the same job: keep the pole up for 4 seconds. Each one reads where the cart is, how fast it moves, the lean and how fast the lean changes. Each can push at most 10 newtons. At 1 second a tap knocks the pole, and no method knows it is coming.

Four rows, one per method: PID, LQR, MPC and SAC. Each row shows the cart and pole at the time the slider sets. A note says what each method knows before the run.

cart, measured leanforces, gains, modeltap, cost, fallsMPC plan, largest tap
cart at the time sliderpole lean θ over 4 swhat it knowstap +1.0 rad/s0 s1 s2 s3 s4 slesson 20.0612°−12°PIDlesson 20.0712°−12°LQRlesson 20.0212°−12°MPClesson 17.1512°−12°SACno model5 gains set by handmodel A, Bgains from the Riccati equationmodel A, B and the 10 N limitplans 1 s ahead every stepno modela network trained by practiceone plant, four methodscart at the time sliderpole lean θ over 4 swhat it knowstap +1.0 rad/s0 s1 s2 s3 s4 slesson 20.0612°−12°PIDlesson 20.0712°−12°LQRlesson 20.0212°−12°MPClesson 17.1512°−12°SACno model5 gains set by handmodel A, Bgains from the Riccati equationmodel A, B and the 10 N limitplans 1 s ahead every stepno modela network trained by practiceone plant, four methods
Toy: the 20.C1 cart-pole; SAC is one seeded training run
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
s=(x, x˙, θ, θ˙),∣F∣≤10 N\sy{s}{data}{s} = (x,\ \dot x,\ \theta,\ \dot\theta),\quad |\sy{F}{param}{F}| \le 10\ \text{N}
s0=(0, 0, 0.100, 0),tap at 1 s:+1.0 rad/ss_0 = (0,\ 0,\ 0.100,\ 0),\quad \text{tap at } 1\text{ s}: +1.0\ \text{rad/s}

Every method reads the same state and has the same force limit.

Common mix-ups

MYTHRL beats a hand-built controller because it learns.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With no tap, which method gets the lowest cost?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.