Automotive Electrical System Simulation and Control

Automotive Electrical System Simulation and Control: A conventional vehicle electrical system model with alternator, battery, loads, and idl


Updated 6 Apr 2020

From GitHub

View License on GitHub

This model shows an example of a conventional vehicle electrical system model, which was shown in the webinar "Optimizing Vehicle Electrical Design through System-Level Simulation". The model is intended to study component sizing, selection, and control.
The electrical system model contains a Simscape lead-acid battery model as described in SAE Paper 2007-01-0778. There are two choices for battery size.

The model also contains data-driven alternator model options using either look-up tables or Model-Based Calibration Toolbox blocks. The alternator model is described in SAE Paper 2007-01-3471.

Control may be added to monitor the system condition, and increase idle speed to compensate for bad conditions in the vehicle charging system.

Vehicle loads are modeled as variable resistive elements.


Simulink Design Optimization can be used to estimate battery parameters from experimental battery data. To see how, please watch this video (5 min):

Parameter estimation for these models from measured data sets at different temperature and current data is a complex task. To learn how MathWorks Consulting can teach you this technique, please contact us or see:

MathWorks Consulting: Battery Simulation and Controls


Cite As

Robyn Jackey (2023). Automotive Electrical System Simulation and Control (, GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with R2012b and later releases
Platform Compatibility
Windows macOS Linux

Inspired by: Battery Modeling

Inspired: Battery Modeling


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes

Connect to GitHub, add R2019b compatibility model

Updated license

Updated the description and acknowledgement

Updated description only. No file changes.

Added an updated model for R2012b and later.

Updated the description with new webinar link. Referenced alternator paper available from SAE.

Minor update to directions in Readme.txt.
Changed solver setting to "nonadaptive" to avoid warnings.

updated broken webinar link in description

Updated model settings.

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.