Explicit MPC transforms the traditional online Optimal Control Problem (OCP) into a multiparametric programming problem, where the system state is treated as a parameter. The solution is a piecewise affine control law defined over a partition of the state space into convex polyhedral regions. This pre-computed state-feedback control law maps any measured state directly to the optimal control input via a simple lookup and linear evaluation, bypassing the computational burden of solving a Quadratic Programming (QP) problem in real-time.
Glossary
Explicit MPC

What is Explicit MPC?
Explicit Model Predictive Control (Explicit MPC) is an advanced control strategy that pre-computes the optimal control law offline as a piecewise affine function of the system state, eliminating the need for online optimization at each control step.
This method is particularly valuable for systems with fast dynamics or embedded hardware with limited computational resources, as it provides deterministic, sub-millisecond execution times. The primary trade-off is the exponential complexity of the region partition, which limits practical application to systems with a relatively small number of states, constraints, and prediction horizon length. It is a cornerstone technique for real-time robotic control systems and embedded applications where computational latency is critical.
Key Characteristics of Explicit MPC
Explicit MPC transforms the traditional online optimization problem into a pre-computed, piecewise affine control law. These characteristics define its operational paradigm and technical implementation.
Offline Pre-Computation
The core characteristic of Explicit MPC is the offline solution of the underlying multiparametric programming problem. Instead of solving an optimization at each control step, the optimal control input is pre-computed as an explicit function of the system state, $u^*(x) = F_i x + g_i$, for each region $i$ of a partitioned state-space. This eliminates the need for a numerical solver during runtime.
Piecewise Affine Control Law
The solution is stored as a piecewise affine (PWA) function defined over a polyhedral partition of the feasible state-space. For a given measured state $x$, the controller:
- Identifies the critical region containing $x$.
- Evaluates the corresponding affine control law $F_i x + g_i$. This evaluation is a simple matrix-vector multiplication and lookup, enabling deterministic, microsecond execution times.
State-Space Partitioning
The feasible state-space is divided into convex polyhedral regions. Each region corresponds to a unique set of active constraints from the original optimal control problem. The partition is computed offline using geometric algorithms. The complexity scales with the number of constraints and system dimensions, leading to a fundamental trade-off between controller complexity and region count.
Deterministic Runtime Performance
Since online execution reduces to a point-location problem (finding which polyhedron contains the current state) followed by a function evaluation, the worst-case computation time is bounded and predictable. This makes Explicit MPC ideal for embedded systems with hard real-time requirements and limited computational resources, where the variable solve time of online MPC is unacceptable.
Limited Scalability to High Dimensions
A key limitation is the curse of dimensionality. The number of polyhedral regions in the explicit solution can grow exponentially with the number of states, constraints, and the prediction horizon. While effective for small-scale systems (e.g., 3-5 states, 1-2 inputs), it becomes intractable for large problems, limiting its application compared to online MPC.
Application to Fast/Small-Scale Systems
Explicit MPC is predominantly used for fast dynamical systems requiring sample times in the kilohertz range (e.g., power electronics, servo drives) and for small-scale systems with limited states and inputs where the region count remains manageable. It is a benchmark solution when the problem size permits, providing optimality with guaranteed timing.
Explicit MPC vs. Conventional (Implicit) MPC
A technical comparison of the offline, pre-computed Explicit MPC approach versus the traditional online optimization method of Conventional (Implicit) MPC.
| Feature / Metric | Explicit MPC | Conventional (Implicit) MPC |
|---|---|---|
Core Computation | Offline (pre-computed) | Online (real-time) |
Control Law Form | Piecewise affine (PWA) function of state: u*(x) = Fi x + Gi | Implicitly defined by the solution of an optimization problem |
Online Computational Load | Low (function evaluation, table lookup) | High (solving QP/NLP each sampling period) |
Deterministic Worst-Case Execution Time | Yes (< 1 ms typical) | No (depends on solver convergence) |
Applicable System Complexity | Low to medium state dimension, linear/quadratic problems | Any dimension, linear or nonlinear problems |
Memory Footprint | High (stores pre-computed polyhedral regions and gains) | Low (stores solver code and model parameters) |
Handling of Constraints | Exact, hard-coded into polyhedral partition | Exact, enforced within the online optimization |
Ease of Implementation on Embedded Hardware | High (simple code, predictable timing) | Medium to Low (requires robust, fast solver) |
Ability to Handle Model Changes | Low (requires full re-computation) | High (model parameters can be updated online) |
Primary Use Case | Fast, resource-constrained systems (e.g., automotive ECUs, microcontrollers) | Complex, nonlinear, or adaptive systems where models may change |
Common Applications of Explicit MPC
Explicit MPC's pre-computed control law makes it uniquely suited for systems with limited computational resources but stringent real-time and safety requirements. Below are its primary application domains.
Embedded Control Units
This method is deployed on microcontrollers and programmable logic controllers (PLCs) with severe memory and processing constraints. The explicit solution eliminates the need for an embedded Quadratic Programming (QP) solver library.
- Implementation: The control law is stored as a set of polyhedral regions and associated affine gains, often in read-only memory.
- Use Cases: Automotive engine control units, consumer appliance motor control, low-power sensor nodes.
- Advantage: Extremely deterministic execution and low power consumption, as computation is simple arithmetic.
Safety-Critical Systems
In applications where constraint violation is unacceptable, Explicit MPC provides formal guarantees. The offline computation verifies that all possible states within a defined region satisfy constraints under the optimal law.
- Critical Domains: Aerospace flight control, medical devices, nuclear reactor control.
- Verification: The multiparametric programming solution can be formally analyzed to prove properties like recursive feasibility and stability within the computed state-space partition.
- Assurance: Offers a higher degree of certification readiness compared to online MPC, where numerical solver failures are a risk.
Reference Governors and Supervisory Controllers
Explicit MPC acts as a high-level safety filter or reference governor for a lower-level controller. It modifies desired setpoints or trajectories to ensure all system constraints are respected.
- Function: It monitors the system state and a desired reference command. If the raw command would lead to constraint violation, the explicit law computes the closest admissible command.
- Architecture: Often sits atop a fast, simple PID or LQR controller in a cascaded setup.
- Example: Protecting a robot arm from joint limit and torque saturation while tracking a path from a planner.
Small-Scale Robotic Manipulators
Explicit MPC is applied to robotic arms with 2-4 degrees of freedom for tasks like pick-and-place or trajectory tracking. It optimally manages actuator limits and avoids obstacles defined as state constraints.
- Typical Constraints: Joint position, velocity, and torque limits; keep-out zones for collision avoidance.
- Benefit: Provides optimal, constraint-aware control with the computational footprint of a simple gain-scheduled controller.
- Limitation: The curse of dimensionality makes it impractical for high-DOF arms, where online MPC or alternative methods are preferred.
Frequently Asked Questions
Explicit Model Predictive Control (Explicit MPC) is an advanced control strategy that pre-computes the optimal control law offline, enabling deterministic, high-speed execution on embedded hardware. This section answers common technical questions about its implementation, trade-offs, and applications in robotics and industrial automation.
Explicit MPC is an offline method where the optimal control law is pre-computed as a piecewise affine (PWA) function of the system state by solving a multiparametric programming problem, eliminating the need for online optimization at runtime. The process works by treating the system's current state as a parameter and solving the associated Quadratic Programming (QP) problem for all possible states within a defined region. This results in a partition of the state-space into convex critical regions, each associated with a specific affine control law (u = Kx + c). During online execution, the controller simply measures the current state, identifies which critical region it belongs to via a point-location search, and applies the corresponding pre-computed control law. This transforms the real-time computational burden from solving an optimization problem to a lookup and evaluation task, guaranteeing a deterministic worst-case execution time.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Explicit MPC transforms an online optimization problem into a pre-computed, piecewise affine control law. These related concepts detail the mathematical foundations, computational methods, and practical implementations that enable this powerful offline approach.
Multiparametric Programming
Multiparametric programming is the core mathematical technique behind Explicit MPC. It solves an optimization problem where the objective function and constraints depend linearly on a vector of parameters—in MPC, the system state. The output is not a single optimal value, but an explicit piecewise affine function mapping the parameter (state) to the optimal solution (control input).
- Key Result: The optimal control law is partitioned into critical regions in the state space.
- For Linear Systems: With a quadratic cost and linear constraints, the resulting multiparametric Quadratic Program (mpQP) yields a continuous, piecewise affine control law.
- Offline Computation: This complex region exploration and function derivation is performed once, before deployment.
Piecewise Affine (PWA) Function
A Piecewise Affine function is a mathematical function whose domain is partitioned into polyhedral regions, with a distinct affine function (of the form u = Kx + c) defined on each region. This is the exact form of the pre-computed control law in Explicit MPC.
- Structure: The state space is divided into convex polyhedra (critical regions). For any measured state falling within a given region, the optimal control is calculated via a simple matrix multiplication and addition.
- Implementation: In practice, this is stored as a list of regions and their associated affine gains. Online execution reduces to a point location problem (finding which region contains the current state) followed by the affine evaluation.
- Continuity: For mpQP problems, the resulting PWA function is continuous across region boundaries.
Critical Region
A critical region is a convex polyhedral subset of the state space where a specific set of constraints is active at the optimum of the multiparametric program. In Explicit MPC, each critical region corresponds to a unique affine expression of the optimal control law.
- Definition: Mathematically, it is the set of parameters (states) for which the optimal solution has the same active set of constraints.
- Online Operation: The controller's main online task is to identify the critical region containing the current measured state, typically using a sequential search or binary search tree built from the region geometries.
- Complexity Trade-off: The number of critical regions grows combinatorially with the number of constraints and system dimensions, which is the primary storage and search challenge for Explicit MPC.
State Feedback Law
A state feedback law is a control policy where the input u is determined as a direct function of the current system state x. Explicit MPC provides an optimal constrained state feedback law, u = κ(x), where κ is the pre-computed piecewise affine function.
- Contrast with Classic MPC: Traditional (implicit) MPC solves an optimization problem online to find
u. Explicit MPC evaluates the pre-computed functionκ(x). - Deterministic Timing: The evaluation of a PWA function has a bounded worst-case execution time, critical for certified hard real-time systems.
- Relation to LQR: For an unconstrained linear system with a quadratic cost, the optimal feedback law is linear (
u = -Kx). Explicit MPC generalizes this to handle constraints, resulting in a nonlinear (PWA) law.
Online Complexity vs. Offline Complexity
This is the fundamental trade-off characterizing Explicit MPC. Computational effort is shifted from the online execution phase to a one-time offline design phase.
- Offline Complexity: Involves solving the multiparametric programming problem. This can be computationally intensive and grows rapidly with system size (states, inputs, constraints, and horizon length). It may involve exploring a potentially large number of critical regions.
- Online Complexity: Reduced to simple operations: measuring the state, searching a data structure (e.g., a binary search tree) to identify the active critical region, and evaluating the corresponding affine function. This is typically orders of magnitude faster than online optimization.
- Design Implication: Makes Explicit MPC suitable for systems with very fast sampling rates, limited online computational power (microcontrollers), or requirements for provable worst-case execution time.
Binary Search Tree (BST) Implementation
A Binary Search Tree is a prevalent data structure used to efficiently implement the online point-location problem in Explicit MPC. It organizes the critical regions into a tree to minimize the number of comparisons needed to find the active region.
- How it Works: The tree is constructed offline. Each node contains a hyperplane that splits the state space. Traversing the tree involves checking which side of the hyperplane the current state lies on, guiding the search to a leaf node containing the correct affine control law.
- Efficiency: Transforms an online search that could be linear in the number of regions (
O(N)) into a logarithmic one (O(log N)), drastically speeding up online evaluation. - Memory Trade-off: The BST itself requires storage, but this is a fixed, offline cost. It enables the deployment of Explicit MPC with thousands of regions on resource-constrained hardware.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us