This article provides a detailed explanation of a design method for the Model Error Compensator (MEC) that handles polytopic-type uncertainty and disturbances. While the MEC was originally designed using frequency-domain methods (e.g., synthesis), this paper proposes a new state-space approach combining LMI-based performance analysis with particle swarm optimization (PSO), enabling flexible design for various evaluation criteria. Related articles, related papers, and MATLAB links are placed at the bottom.
Author: Hiroshi Okajima, Associate Professor, Kumamoto University, Japan — 20 years of control engineering research
This article is based on the following paper.
- Yoshida, Y. Tanigawa, H. Okajima and N. Matsunaga, A design method of model error compensator for systems with polytopic-type uncertainty and disturbances, SICE Journal of Control, Measurement, and System Integration, Vol. 14, No. 2, pp. 119–127 (2021) (Open Access)
This paper is co-work with Ryuichiro Yoshida (Master's student, Kumamoto University), Yuki Tanigawa (Master's student, Kumamoto University), and Prof. Nobutomo Matsunaga (Professor, Kumamoto University).
Contents
- Why a New Design Framework for MEC Is Needed
- Review of the Model Error Compensator
- State-Space Representation of MEC Components
- Generalized Plant and Evaluation Output
- Performance Analysis Using LMIs (H-infinity)
- Design Method Using PSO
- Numerical Examples
- Connections to Related Research
- MATLAB Code
- Related Articles and Videos
- Paper Information
Why a New Design Framework for MEC Is Needed
The Model Error Compensator (MEC) suppresses the modeling error between the actual plant and its nominal model by feeding back the output difference. Previous design methods for MEC were primarily based on frequency-domain uncertainty representations such as additive and multiplicative uncertainty, and the compensator was designed using synthesis.
However, different plants require different uncertainty representations. In particular, when plant dynamics are described in state-space form with polytopic-type uncertainty — a common representation in the robust control literature — a different design framework is needed. Polytopic uncertainty represents the actual plant as a convex combination of known endpoint systems, which naturally arises in many practical situations.
Furthermore, previous design methods were limited to performance in the frequency domain. In practice, one may want to evaluate performance using other criteria such as
norm, peak value of impulse response, or pole placement. This paper addresses both challenges by proposing a state-space approach that combines LMI-based analysis with particle swarm optimization (PSO), providing the flexibility to use any LMI-representable evaluation criterion.
Review of the Model Error Compensator
The MEC, proposed in the foundational paper (SICE JCMSI, 2013), consists of a nominal model and a differential compensator
. The MEC includes the nominal model internally and feeds back the output difference between the actual plant
and the nominal model
.
The compensated system dynamics from input to output
is:
When , this reduces to
regardless of
. The difference between
and
is:
A high-gain differential compensator reduces this gap. The MEC is unique in that it can be used in conjunction with various existing control systems — feedback controllers, state feedback, model predictive control, and so on. The MEC manages robustness, while the controller can be designed independently without considering modeling errors.
State-Space Representation of MEC Components
Plant with Polytopic Uncertainty
The actual plant is described in state-space form as:
where is the state,
is the control input,
is the disturbance input,
is the plant output, and
is the observation noise.
The matrices ,
, and
have polytopic-type uncertainties:
where and
. The endpoint matrices
define the vertices of the uncertainty polytope. The plant is assumed to be controllable and observable for all
in the polytope.
Nominal Model
The nominal model is:
Differential Compensator
The differential compensator is given in state-space form as:
The input to the nominal model is , and the input to the actual plant is
, where
is the controller output.
Generalized Plant and Evaluation Output
By defining the error state and the augmented state
, the generalized plant dynamics is obtained as:
where is the combined input.
The matrices and
are 3-by-3 block matrices involving
,
,
,
,
,
,
,
,
,
, and
. For the explicit form, see Eqs. (14)–(15) in the paper.
The evaluation output is:
where with
. Note that
is the output error excluding observation noise.
Under the assumption that ,
, or
, the generalized plant matrices can be represented as a matrix polytope, enabling LMI-based analysis. The condition
(no direct term in the differential compensator) is commonly used in practice, so this assumption is not restrictive.
Performance Analysis Using LMIs (H-infinity)
The system from to
is denoted as
. For given differential compensator parameters, the
performance of
can be analyzed using the following LMI conditions.
For all endpoint matrices with
, and a given
, find
such that:
for all .
If satisfying these LMIs exists, then the
norm of the generalized plant is bounded:
Since the norm equals the
-induced norm, this provides a bound on the worst-case amplification from disturbances to the evaluation output:
The key advantage is that only vertex systems need to be checked, making the analysis computationally tractable even for complex polytopic uncertainty.
The paper notes that the same LMI framework can also accommodate performance, the peak value of impulse response, and pole placement constraints, enabling multi-objective design.
Design Method Using PSO
Since the LMI-based analysis requires the differential compensator parameters to be given, the paper uses particle swarm optimization (PSO) to search for the best parameters, with the LMI analysis providing the evaluation function.
The design procedure is:
- Initialize particles with random positions (compensator parameters) and velocities. Solve the LMIs for each particle; if infeasible, re-initialize.
- Evaluate each particle using the LMI analysis. If the LMIs are infeasible (indicating instability), assign a large penalty value.
- Update particle positions and velocities using the standard PSO update rules with personal best
and global best
.
- Repeat until the maximum iteration count is reached. Output the global best parameters.
The PSO update law is:
where is the inertia weight,
and
are weighting factors, and
and
are random numbers in
.
To reduce the search dimensionality, the differential compensator is parameterized in controllable canonical form, which minimizes the number of free parameters. The evaluation function can be flexibly changed — not only
norm but also
norm, peak of impulse response, and pole placement, all of which have LMI representations.
Numerical Examples
The paper demonstrates the method on a MIMO system with 3 states, 2 inputs, and 2 outputs. The polytope has vertices, representing uncertainty in the system matrices
and
(with
). The nominal model corresponds to the center of the polytope (
for all
).
The differential compensator is designed in controllable canonical form with 17 parameters. PSO settings are: maximum update count
, number of particles
, and weighting factors
,
.
The designed MEC achieves , meaning:
This indicates very strong suppression of the model error effect.
Simulation results are shown for two types of disturbances:
| Disturbance type | Actual ratio |
Bound |
|---|---|---|
| Random noise | 0.0070 | 0.0167 |
| Step disturbance | 0.0049 | 0.0167 |
In both cases, the actual performance is well within the guaranteed bound. The simulations confirm that the designed MEC effectively reduces the influence of disturbances and modeling errors for all plants within the polytope.
Connections to Related Research
This work is part of a broader research program on the Model Error Compensator:
Foundational MEC Paper — H. Okajima, H. Umei, N. Matsunaga and T. Asai, A Design Method of Compensator to Minimize Model Error, SICE JCMSI, Vol. 6, No. 4, pp. 267–275 (2013). The original paper that proposed the MEC and its design based on synthesis. See also the blog article.
MEC with Parallel Feed-Forward Filter — G. Ichimasa, H. Okajima, K. Okumura and N. Matsunaga, Model Error Compensator with Parallel Feed-Forward Filter, SICE JCMSI, Vol. 10, No. 5, pp. 468–475 (2017). Extends MEC to non-minimum-phase plants using a parallel feed-forward filter.
MEC for Non-Minimum Phase with Polytopic Uncertainty — R. Yoshida, H. Okajima and T. Sato, Model Error Compensator Design for Continuous- and Discrete-Time Non-minimum Phase Systems with Polytopic-Type Uncertainties, SICE JCMSI (2022). Combines the PFF approach with the polytopic uncertainty framework from this paper.
MEC Overview (IFAC) — H. Okajima, Model Error Compensator for adding Robustness toward Existing Control Systems, IFAC PapersOnLine, Vol. 56, Issue 2, pp. 3998–4005 (2023). A comprehensive overview of the MEC framework presented at the IFAC World Congress.
Robust Performance Analysis (Japanese) — H. Okajima, Analysis of Robust Performance of Model Error Compensator for Polytopic-Type Uncertain Continuous-Time Linear Time Invariant Systems, Trans. SICE, Vol. 55, No. 12, pp. 800–807 (2019). The LMI-based analysis method used in this paper was originally developed in this Japanese paper.
MATLAB Code
- GitHub: Robust-control-MATLAB_MEC01 — MATLAB code for PSO-based design and iterative design of MEC
Related Articles and Videos
Blog Articles (blog.control-theory.com)
- Model Error Compensator (MEC): Enhance the Robustness of Existing Control Systems with Simple Compensation
- A Design Method of Compensator to Minimize Model Error
- Linear Matrix Inequalities (LMIs) and Controller Design
- State Observer: Understanding the Basic Mechanism
Research Web Pages (www.control-theory.com)
Video
Paper Information
- Yoshida, Y. Tanigawa, H. Okajima and N. Matsunaga, "A design method of model error compensator for systems with polytopic-type uncertainty and disturbances", SICE Journal of Control, Measurement, and System Integration, Vol. 14, No. 2, pp. 119–127, 2021. DOI: 10.1080/18824889.2021.1918392 (Open Access)
Co-authors: Ryuichiro Yoshida (Master's student, Kumamoto University), Yuki Tanigawa (Master's student, Kumamoto University), Nobutomo Matsunaga (Professor, Kumamoto University)
This work was supported by JSPS KAKENHI Grant-in-Aid for Scientific Research (C) 21K04111.
Earlier Japanese paper: H. Okajima, "ポリトープ型不確かさを有する連続時間線形時不変システムに対するモデル誤差抑制補償器のロバスト性能解析," 計測自動制御学会論文集, Vol. 55, No. 12, pp. 800–807 (2019)
Self-Introduction
Hiroshi Okajima — Associate Professor, Graduate School of Science and Technology, Kumamoto University. Member of SICE, ISCIE, and IEEE.
If you found this article helpful, please consider bookmarking or sharing it.