Skip to content
StackDecode
AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough

Model Predictive Control (MPC)

Plans a short sequence of actions with a model, executes the first, then replans.

The idea

At every step, simulate several candidate action sequences over a short horizon using the model, choose the sequence with the best predicted outcome, apply only its first action, then observe and plan again. Replanning corrects for model errors, so it is robust and widely used in engineering. In RL a learnt model is used inside it.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Observe the current state.
  2. 2Optimise an action sequence over the next H steps using the model.
  3. 3Apply only the first action.
  4. 4Move to the next state and repeat.
1/4

Step by step

  1. 1Observe the current state.
  2. 2Optimise an action sequence over the next H steps using the model.
  3. 3Apply only the first action.
  4. 4Move to the next state and repeat.

Where it is used

Robotics, autonomous vehicles, process control.

Watch out for

Computation at every step and sensitivity to model quality.

Related