%% Optimize Transmission Control Module Shift Schedules
% This example shows how to use the conventional vehicle reference
% application to optimize the transmission control module (TCM) shift
% schedules. Use the optimized shift schedules to: 
%
% * Design control algorithms.
% * Assess the impact of powertrain changes, such as an engine or gear
% ratio, on performance, fuel economy, and emissions.
%
% This example uses the Global Optimization Toolbox, Simulink(R) Design
% Optimization(TM), and Stateflow(R). To increase optimization performance,
% consider using the Parallel Computing Toolbox(TM).
%
% For more information about the reference application, see
% <docid:autoblks_ug#bvgfov9-2 Explore the Conventional Vehicle Reference
% Application>.
%
% Copyright 2019 The MathWorks, Inc.
%%
helpersetupopt;
%% Run Conventional Vehicle Reference Application
% Click *Run* to simulate the conventional vehicle reference application with
% the default settings. The results indicate that the conventional vehicle
% has a fuel economy of approximately 26 mpg.
%
% <<../opt_shift_pre_fuel.png>>
%
%% Optimize Transmission Shift Maps
% Click *Optimize Transmission Shift Maps*. Optimizing the shift schedules
% can take time to run. If you have the Parallel Computing Toolbox, the
% optimization uses parallel workers by default. View the optimization in
% the MATLAB(R) window.
%
% <<../optimize_button.png>>
%
%% View Results
% After you optimize the shift schedule, view the results.
%
% The performance scope indicates that the conventional vehicle with an
% optimized TCM shift schedule has a fuel economy of approximately 30 mpg.
%
% <<../opt_shift_post_fuel.png>>
%
% The figure shows the transmission shift schedule upshift and downshift
% calibration lines before and after optimization.
%
% <<../opt_shift_post_map.png>>
%
%% Open Reference Application From Command Line
% Use this command to open a version of the conventional vehicle reference
% application that includes the option to optimize transmission shift maps.
%%
% <matlab:autoblkConVehShftOptStart |autoblkConVehShftOptStart|>