This file contains a dual-clutch transmission model built using Simscape and Simscape Driveline that can be configured for control algorithm development or optimization tests. The clutch states and pre-selection of the gears via dog clutches is controlled by a state machine modeled in Stateflow. Model variants for the transmission and vehicle dynamics can be selected using configurable subsystems. MATLAB scripts demonstrate how to optimize a shift schedule for maximum fuel economy, and how to speed that process using parallel computing. This model can be configured for hardware-in-the-loop testing.
Please read the README.txt file to get started.
See the optimization examples in this video (5 min):
Learn about model tuning, parameter sweeps, and optimization tasks in this webinar:
Find other Simscape examples by searching posts for the keyword "physical modeling"
Learn more about MathWorks Simscape Products:
You may reuse this content, with or without modification, in your work.
Please follow the conditions of the license file and use the following citation:
 Miller, Steve (2017), Dual Clutch Transmission in Simulink (https://www.mathworks.com/matlabcentral/fileexchange/32246) MATLAB Central File Exchange. Retrieved on <date you downloaded submission>
Great, works well.
It is perfect!
This demo is so good!!!
Hi Chris -- do you have a license for the MathWorks product Model-Based Calibration Toolbox? That product is required for the data-driven model we have used. If you ">>which xregmaskinitialization -all" and get "xregmaskinitialization not found" then you don't have it. You could probably get a trial license of it from your sales rep.
This is a great model but whenever I change the Block choice of the Engine to 'Data Driven' I get the following error.
"Error in 'Dual_Clutch_Trans/Engine/Data Driven/MBC Engine Model From Dynamometer Data/MBC Brake Torque/xregtwostage/Local Model': Initialization commands cannot be evaluated.
Undefined function or variable 'xregmaskinitialization'."
Its a pity as I am building a diesel engine model and this would have been a great model to learn from.
Sorry, I've realized that we don't have xPCtarget ...
I've tried to run the simulation, but I get the following error:
Making simulation target "Dual_Clutch_Trans_sfun", ...
'Dual_Clutch_Trans_sfun.bat' is not recognized as an internal or external command,
operable program or batch file.
I'm running Matlab 64bits on Windows 7 with all the necessary toolboxes and compilers.
Added R2017b version
Added R2017a version and text for citing submission in other works. Made startup file compatible with Mac
Added R2016b version.
Fixed broken hyperlink in submission description.
Fixed webinar link only.
Updated for R2016a. Added hyperlinks to model canvas to change subsystem variants.
Fixed webinar link.
Updated link to optimization tasks video in "Description". No change to submission files.
Updated MATLAB Release information to R2013a
Zip contains R2013a version, as well as R2012b and R2011b versions.
Corrected release (zip file contains R2011b version)
Added 3D animation. The gearbox VRML model is based on Bachelor Thesis of Mr. Jaroslav Prochazka, Department of Computer Graphics and Interaction, Czech Technical University in Prague, Czech Republic.
Added link to video.