Model Predictive Control (MPC) of Buck Converter in MATLAB/Simulink
Model Predictive Control (MPC) of Buck Converter in MATLAB/Simulink
𝐌𝐨𝐝𝐞𝐥 𝐏𝐫𝐞𝐝𝐢𝐜𝐭𝐢𝐯𝐞 𝐂𝐨𝐧𝐭𝐫𝐨𝐥 (𝐌𝐏𝐂) is an advanced control technique that uses a mathematical model of a system to predict its future response and determine a suitable control action. In this implementation, MPC is applied to a DC–DC buck converter in MATLAB/Simulink to regulate the output voltage by controlling the converter duty cycle.

The complete workflow includes buck converter design, Simulink modeling, input-output data collection, system identification, transfer-function estimation, MPC design, and output-voltage regulation.
𝐈𝐧𝐭𝐫𝐨𝐝𝐮𝐜𝐭𝐢𝐨𝐧
A buck converter is a DC–DC converter used to obtain a lower DC voltage from a higher DC input voltage.
For example, in the demonstrated system:
Parameter | Value |
DC Input Voltage | 70 V |
Desired Output Voltage | 50 V |
Disturbance Input | 0 |
Step Change Time | 0.5 s |
Changed Reference Voltage | 40 V |
The main objective is to make the converter output voltage accurately follow the required voltage reference.
Instead of using a conventional fixed-gain controller, an MPC controller is designed using a model identified from the actual Simulink converter response.
𝐒𝐲𝐬𝐭𝐞𝐦 𝐎𝐯𝐞𝐫𝐯𝐢𝐞𝐰
The MATLAB/Simulink model contains the essential components of a buck converter.
Main power-circuit components
DC voltage source
IGBT switching device
Diode
Inductor
Capacitor
Resistive load
Voltage measurement
Current measurement
PWM/pulse generation
MPC controller
The converter receives a higher DC input voltage and produces a controlled lower DC output voltage.
Control structure
The important signals used for controller development are:
Signal | Purpose |
Duty Cycle | Control input |
Output Voltage | Controlled output |
Reference Voltage | Desired converter voltage |
Model Output | Feedback to MPC |
Disturbance Input | Additional MPC input, maintained at zero in this demonstration |
The duty cycle acts as the manipulated input, while the load/output voltage acts as the controlled output.
𝐁𝐮𝐜𝐤 𝐂𝐨𝐧𝐯𝐞𝐫𝐭𝐞𝐫 𝐃𝐞𝐬𝐢𝐠𝐧
Before developing the MPC controller, the buck converter parameters are calculated.
The design program considers parameters such as:
Converter power rating
Input voltage
Required output voltage
Switching frequency
Permissible inductor-current ripple
Permissible capacitor-voltage ripple
Load requirement
Based on these specifications, the required values of the following components are obtained:
Inductor
Capacitor
Load resistance
Nominal duty cycle
These calculated parameters are then entered into the Simulink power circuit.
𝐖𝐨𝐫𝐤𝐢𝐧𝐠 𝐏𝐫𝐨𝐜𝐞𝐬𝐬
The overall MPC implementation can be divided into several simple stages.
1. Build the Buck Converter
The converter is developed in Simulink using the calculated component values.
The basic power flow is:
DC Source → IGBT Switching Stage → Inductor → Capacitor → Load
The diode provides the required freewheeling path during switching operation.
2. Apply the Initial Duty Cycle
The calculated duty-cycle value is initially supplied to the converter.
This allows the converter to operate under the designed condition before developing the predictive controller.
3. Collect Input and Output Data
To create a mathematical model of the converter, its input-output behavior must first be recorded.
Two important signals are stored:
Input data: Duty cycle
Output data: Converter output voltage
Simulink To Workspace blocks can be used to transfer these signals into the MATLAB workspace.
After the simulation is completed, both datasets become available for system identification.
𝐒𝐲𝐬𝐭𝐞𝐦 𝐈𝐝𝐞𝐧𝐭𝐢𝐟𝐢𝐜𝐚𝐭𝐢𝐨𝐧
The next step is to estimate a dynamic model of the buck converter using the collected data.
Procedure
Open MATLAB and navigate to:
Apps → System Identification
Then:
Select Time Domain Data.
Import the duty-cycle data as the input.
Import the converter-voltage data as the output.
Set the simulation starting time.
Enter the corresponding sample time.
Import the dataset.
Select Transfer Function Model.
Perform the model estimation.
MATLAB then estimates a transfer-function representation based on the converter's recorded input-output response.
𝐓𝐫𝐚𝐧𝐬𝐟𝐞𝐫 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧 𝐌𝐨𝐝𝐞𝐥
After completing the system-identification process, the estimated plant model can be inspected.
The identified model provides:
Numerator coefficients
Denominator coefficients
Estimated dynamic behavior
Relationship between duty cycle and output voltage
The estimated model is then exported to the MATLAB workspace.
This model represents the converter dynamics required for MPC development.
𝐌𝐏𝐂 𝐂𝐨𝐧𝐭𝐫𝐨𝐥 𝐒𝐭𝐫𝐚𝐭𝐞𝐠𝐲
The Model Predictive Controller uses the identified converter model to determine an appropriate control action.
The main objective is:
Reference Voltage → MPC → Duty Cycle → Buck Converter → Output Voltage
The measured converter voltage is returned to the MPC as feedback.
The controller continuously determines the required manipulated variable so that the converter voltage follows the reference command.
𝐌𝐏𝐂 𝐃𝐞𝐬𝐢𝐠𝐧 𝐢𝐧 𝐒𝐢𝐦𝐮𝐥𝐢𝐧𝐤
A separate Simulink model can initially be created to configure and test the MPC controller.
The required blocks include:
MPC Controller
Linear Time-Invariant plant model
Reference input
Disturbance input
Plant feedback
The numerator and denominator obtained from system identification are entered into the plant model.
MPC Input and Output Signals
MPC Signal | Function |
Reference | Desired output voltage |
Model Output | Measured/estimated converter voltage |
Disturbance | Set to zero for this test |
Manipulated Variable | Converter control signal |
The controller is therefore designed specifically for the identified buck converter.
𝐌𝐏𝐂 𝐃𝐞𝐬𝐢𝐠𝐧𝐞𝐫
The MPC Designer available in MATLAB is used to configure the controller.
During the design process:
The identified plant is selected.
The controller sample time is specified.
The plant model is linearized.
Closed-loop behavior is observed.
Reference tracking performance is checked.
The designed MPC configuration is transferred to the Simulink MPC block.
An important point is that the MPC sample time should be consistent with the sample time used during data collection and system identification.
𝐌𝐏𝐂 𝐑𝐞𝐬𝐩𝐨𝐧𝐬𝐞 𝐕𝐚𝐥𝐢𝐝𝐚𝐭𝐢𝐨𝐧
During controller design, the predicted system behavior can be compared with the plant response.
The response window allows the user to examine:
Reference command
Predicted output
Actual plant output
Manipulated variable
Disturbance response
Good agreement between the model and converter behavior is important because MPC performance depends strongly on the quality of the plant model.
𝐈𝐧𝐭𝐞𝐠𝐫𝐚𝐭𝐢𝐧𝐠 𝐌𝐏𝐂 𝐰𝐢𝐭𝐡 𝐭𝐡𝐞 𝐁𝐮𝐜𝐤 𝐂𝐨𝐧𝐯𝐞𝐫𝐭𝐞𝐫
After MPC tuning is completed, the configured controller is connected to the original buck-converter model.
The connections are arranged as follows:
Converter output voltage → MPC measured/model output
Voltage reference → MPC reference input
Constant zero → disturbance input
MPC output → converter switching/control stage
The controller can now modify the converter operation automatically according to the required output voltage.
𝐒𝐢𝐦𝐮𝐥𝐚𝐭𝐢𝐨𝐧 𝐑𝐞𝐬𝐮𝐥𝐭𝐬
Case 1: Constant 50 V Reference
The converter input voltage is approximately 70 V, while the required output voltage is 50 V.
Quantity | Value |
Input Voltage | 70 V |
Reference Output Voltage | 50 V |
Obtained Output Voltage | Approximately 50 V |
Disturbance Input | 0 |
The simulation demonstrates that the MPC-controlled buck converter maintains the requested output-voltage level.
Case 2: Step Change in Reference Voltage
The controller is also tested under a changing voltage-reference condition.
Parameter | Setting |
Initial Reference | 50 V |
Final Reference | 40 V |
Step Time | 0.5 s |
Input Voltage | 70 V |
At 0.5 seconds, the voltage command changes from 50 V to 40 V.
The converter output correspondingly changes and settles around the new 40 V reference, demonstrating reference-tracking capability.
𝐑𝐞𝐟𝐞𝐫𝐞𝐧𝐜𝐞 𝐕𝐨𝐥𝐭𝐚𝐠𝐞 𝐓𝐫𝐚𝐜𝐤𝐢𝐧𝐠
One of the key observations from the simulation is the ability of MPC to handle changes in the required converter voltage.
The demonstrated sequence is:
50 V Reference → MPC Control Action → 50 V Output
followed by
40 V Reference → MPC Control Action → 40 V Output
This shows how the controller adjusts the switching command according to the reference requirement.
𝐊𝐞𝐲 𝐅𝐞𝐚𝐭𝐮𝐫𝐞𝐬
Model-based control of a DC–DC buck converter
MATLAB/Simulink implementation
Converter parameter calculation before simulation
Input-output data collection from Simulink
System Identification Toolbox integration
Data-based transfer-function estimation
MPC Designer-based controller configuration
Duty-cycle-based converter regulation
Output-voltage feedback control
Reference-voltage tracking
Step-reference testing
Easy visualization of voltage, current, and power signals
𝐖𝐡𝐲 𝐔𝐬𝐞 𝐌𝐏𝐂 𝐟𝐨𝐫 𝐚 𝐁𝐮𝐜𝐤 𝐂𝐨𝐧𝐯𝐞𝐫𝐭𝐞𝐫?
Model Predictive Control provides a systematic way to regulate a power converter using its dynamic model.
It is particularly useful for studying:
Dynamic voltage regulation
Reference tracking
Converter transient response
Model-based power-electronic control
Data-driven plant identification
Digital converter-control techniques
Advanced closed-loop control
The combination of System Identification + MPC Designer + Simulink also provides a clear workflow for understanding practical model-based controller development.
𝐀𝐩𝐩𝐥𝐢𝐜𝐚𝐭𝐢𝐨𝐧𝐬
MPC-controlled buck converters can be studied in areas such as:
DC power supplies
Battery-powered systems
Renewable-energy interfaces
DC microgrids
Battery charging systems
Electric-vehicle power electronics
DC bus voltage regulation
Industrial DC power conversion
Embedded power-electronic control
Advanced converter-control research
𝐋𝐞𝐚𝐫𝐧𝐢𝐧𝐠 𝐎𝐮𝐭𝐜𝐨𝐦𝐞𝐬
By following this MATLAB/Simulink implementation, learners can understand how to:
Design a basic buck converter.
Calculate the required converter components.
Build a switching converter in Simulink.
Record input-output data.
Import simulation data into System Identification Toolbox.
Estimate a converter transfer-function model.
Configure an MPC controller.
Connect MPC with the physical converter.
Test constant and changing voltage references.
Analyze closed-loop voltage response.
𝐂𝐨𝐧𝐜𝐥𝐮𝐬𝐢𝐨𝐧
The Model Predictive Control of a Buck Converter in MATLAB/Simulink demonstrates a complete model-based converter-control workflow.
The implementation begins with buck-converter design and Simulink modeling, followed by duty-cycle and output-voltage data collection. The converter model is obtained through system identification, and this model is then used to configure an MPC controller.
For the demonstrated operating condition, the converter reduces the 70 V DC input to a regulated 50 V output. When the reference is changed from 50 V to 40 V at 0.5 seconds, the controller adjusts the converter operation and tracks the new voltage command.
This implementation provides a useful learning platform for students, researchers, and engineers interested in power electronics, DC–DC converters, system identification, predictive control, and MATLAB/Simulink-based control design.



Comments