Hybrid Electric Vehicle Model in Simscape
Updated 10 Nov 2021
Copyright 2021 The MathWorks, Inc.
This example includes a Hybrid Electric Vehicle model in Simscape™, demonstrating some new features of the recent releases of MATLAB® and featuring Subsystem Reference which enables modular physical modeling workflow.
The model includes an abstract Power-Split Hybrid Electric Vehicle (HEV) model with a simple rule-based controller for speed tracking simulation. It can be used to better understand how to work with Subsystem Reference for an automotive application. For a vehicle model that includes more detailed supervisory and engine controllers, please see the reference applications in Powertrain Blockset™.
The included abstract model is suitable for the system level simulation of longitudinal vehicle behavior as it runs faster than real time. The model consists of components such as motor, engine, power-split device, and so on, and they are built in a modular manner using Subsystem Reference and Simscape product family demonstrating a workflow where physical components are built and tested individually and also they can be easily integrated into a complete vehicle system model.
The HEV model and its components are managed in a MATLAB project and some components come with their own test setups.
Supported MATLAB version: R2021a or newer releases
Optional: Parallel Computing Toolbox™
Parameter Sweep Workflow in Live Script
- Demonstrates how to investigate the effect of reduction gear ratio, high-voltage battery capacity and high-voltage battery weight on the electrical efficiency. You can optionally use Parallel Computing Toolbox to shorten total simulation time.
- Watch YouTube video
showing the workflow as well as real-time application.
- Real-Time application presented in the video will be added to this project in future updates.
- MATLAB R2021a or newer release is required.
HybridElectricVehicle.prj in MATLAB, and
it will automatically open the Live Script
The script contains the description of the model and
hyperlinks to models and scripts.
You can try this in MATLAB Online. In MATLAB Online, from the HOME tab in the toolstrip, select Add-Ons → Get Add-Ons to open the Add-On Explorer. Then search for the submission name, navigate to the submission page, click Add button, and select Save to MATLAB Drive.
Isaac Ito (2021). Hybrid Electric Vehicle Model in Simscape (https://github.com/mathworks/Simscape-Hybrid-Electric-Vehicle-Model/releases/tag/v1.1.2), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!