MATLAB MAB Control Optimizer

Specifications
- Product Name: MAB Control Optimizer
- Version: Not specified
Prerequisites for Deployment
Before deploying the MAB Control Optimizer, ensure that the following prerequisites are met:
- Verify that version 9.11 (R2021b) of the MATLAB Runtime is installed.
- If not installed, run the MATLAB Runtime installer by entering
>mcrinstallerat the MATLAB prompt.
Note: Administrator rights are required for installation. - Alternatively, download and install the Windows version of the MATLAB Runtime for R2021b from MathWorks website.
Files to Deploy and Package
When deploying the MAB Control Optimizer, make sure to include the following files in your package:
- MAB_Optimizer.exe
- MCRInstaller.exe
- If end users face issues downloading the MATLAB Runtime, include it by selecting the “Runtime included in package” option in the Deployment Tool.
- Include the readme file for additional information.
“`
MAB Control Optimizer

1. Prerequisites for Deployment
Verify that version 9.11 (R2021b) of the MATLAB Runtime is installed. If not, you can run the MATLAB Runtime installer. To find its location, enter
>>mcrinstaller
at the MATLAB prompt. NOTE: You will need administrator rights to run the MATLAB Runtime installer.
Alternatively, download and install the Windows version of the MATLAB Runtime for R2021b from the following link on the MathWorks website:
https://www.mathworks.com/products/compiler/mcr/index.html
For more information about the MATLAB Runtime and the MATLAB Runtime installer, see “Distribute Applications” in the MATLAB Compiler documentation in the MathWorks Documentation Center.
2. Files to Deploy and Package

Files to Package for Standalone ================================ -MAB_Optimizer.exe -MCRInstaller.exe Note: if end users are unable to download the MATLAB Runtime using the instructions in the previous section, include it when building your component by clicking the “Runtime included in package” link in the Deployment Tool. -This readme fileRule ID
A rule ID, which is used to identify the guideline, consists of two lower case letters and a four-digit
number. The letter and number combination is separated by an underscore. For example, xx_nnnn. A
rule ID is permanent and will not change.
Note: The two-letters in the rule ID identify the guideline author. db, jm, hd, ar are used for Ver 1.0
guidelines. na and jc are used for guidelines created from Ver 2.0 to present.
Sub ID Recommendations
Specifies guideline sub IDs that are recommended for use by the NA-MAAB (North American MathWorks
Automotive Advisory Board) and JMAAB (Japan MathWorks Automotive Advisory Board) modeling
standards organizations. Each organization is a region-specific consortium of OEMs and suppliers; NAMAAB represents North America and Europe. JMAAB represents Japan.
MATLAB® Versions
MAB guidelines support all versions of MATLAB and Simulink products. When a rule applies only to a
specific version(s), the version is identified in the MATLAB Version field by using one of these formats:
• All — All versions of MATLAB
• RX, RY, RZ — A specific version of MATLAB
• RX and earlier — Versions of MATLAB until version RX
• RX and later — Versions of MATLAB from version RX to the current version
• RX through RY — Versions of MATLAB between RX and RY
Sub ID
Specifies the condition(s) of the rule. There can be multiple sub IDs per rule ID, which are designated as
either:
• Selectable ― Consist of one lower-case letter (alphabetical order). The choice of whether to
adopt a selectable sub ID is left to the user.
• Mutually Exclusive ― Consist of one lower case letter (alphabetical order) and a single-digit
number. When choosing to accept or reject a mutually exclusive sub ID, only one option can be
selected.
Example
xy_0000 → xy_0000a Selectable (user’s choice)
→ xy_0000b1 Mutually Exclusive (if using, choose from xy_0000b1 or xy_0000b2)
→ xy_0000b2 Mutually Exclusive (if using, choose from xy_0000b1 or xy_0000b2)
Title
The title is unique and provides a brief description of the guidelines.
Description
The description uses figures and tables to provide details for the guideline rules.
This table identifies characters that are used in the description
Description content Explanation Example
[] (square brackets) Block name [Outport]
{ } (curly brackets)
Block parameter name
Stateflow parameter name
Configuration parameter settings
{Display propagated signal}
10
“ ” (double quotation marks) Parameter setting value “0”
Custom Parameters
For rules that include custom parameters, the chosen value is specific for the project with regard to the
item being described.
Example of objects and values are provided in the description field. However, a project’s processes,
condition of the control target, and skill levels of the engineers should be comprehensively evaluated
when specifying a custom parameter.
Rational
The rationale provides reasoning for the use of the guideline with regard to readability, verification
efficiency, efficiency of code after code generation, etc.
See Also
This optional section is only available in guidelines that have additional reference information that may
be helpful to better understand the guideline.
11
2. Naming Conventions
General Conventions
ar_0001: Usable characters for file names
Rule ID: Title ar_0001: Usable characters for file names
Sub ID
Recommendations
NA-MAAB: a, b, c, d, e, f, g
JMAAB: a, b, c, d, e, f, g
MATLAB® Version All
Rule
Sub ID Description Custom Parameter
a Only these character types shall be used in file names:
single-byte alphanumeric characters (a-z, A-Z, 0-9)
single-byte underscore (_)
Line breaks, single-byte spaces, double-byte
characters, and control characters shall not be used.
File types that are checked for model and MATLAB
files shall be set in the project settings.
File (extension)
【Incorrect】
MAB Model.slx Single-byte spaces are used.
JMAAB 設定.m Double-byte characters are used.
NA-MAABModel.p
JMAAB(Model).mdl Symbol characters are used.
b The file name shall not use numbers at the beginning. File (extension)
【Incorrect】
001_JMAABModel.slx
c The file name shall not use underscores at the
beginning.
File (extension)
【Incorrect】
_JMAABModel.slx
d The file name shall not use an underscore at the end. File (extension)
【Incorrect】
MABModel_.slx
e The file name shall not use consecutive underscores. File (extension)
【Incorrect】
JMAAB__Model.slx
f The file name shall not consist solely of a single
reserved MATLAB word
File (extension)
【Incorrect】
ans.slx
double.slx
week.slx
zero.slx, etc.
g File names on the MATLAB path shall not be identical. File (extension)
【Incorrect】
Files with the same name are saved to the folder that goes through the MATLAB path.
12
Rationale
Sub ID Description
abcf Readability is impaired.
Deviation from the rule can cause unexpected issues.
de Readability is impaired.
g
If there are multiple files with the same name, the one higher on the path is loaded.
As a result, unnecessary files might be included.
Readability is impaired.
Deviation from the rule can cause unexpected issues.
ar_0002: Usable characters for folder names
Rule ID: Title ar_0002: Usable characters for folder names
Sub ID
Recommendations
NA-MAAB: a, b, c, d, e, f
JMAAB: a, b, c, d, e, f
MATLAB® Version All
Rule
Sub ID Description Custom Parameter
a Only these character types shall be used in folder
names:
Single-byte alphanumeric characters (a-z, A-Z, 0-9)
Single-byte underscore (_)
Line breaks, single-byte spaces, double-byte
characters, and control characters shall not be used.
–
【Incorrect】
Symbol characters are used.
Single-byte spaces are used.
Double-byte characters are used.
b The folder name shall not use numbers at the
beginning.
–
【Incorrect】
c The folder name shall not use underscores at the
beginning.
–
【Incorrect】
d The folder name shall not use underscores at the end. –
13
【Incorrect】
e The folder name shall not use consecutive
underscores.
–
【Incorrect】
f The folder name shall not consist solely of a single
reserved MATLAB word.
–
【Incorrect】
Rationale
Sub ID Description
abcdef Readability is impaired.
Deviation from the rule can cause unexpected issues.
jc_0241: Length restriction for model file names
Rule ID: Title jc_0241: Length restriction for model file names
Sub ID
Recommendations

NA-MAAB: a
JMAAB: a
MATLAB® Version All
Rule
Sub ID Description Custom Parameter
a Model file name length shall be a maximum of 63
characters (not including dots and extension).
Maximum model file
name length
Rationale
Sub ID Description
a Possible that a long file name cannot be referred to in the model reference.
jc_0242: Length restriction for folder names
Rule ID: Title jc_0242: Length restriction for folder names
Sub ID
Recommendations
NA-MAAB: a
JMAAB: a
MATLAB® Version All
Rule
Sub ID Description Custom Parameter
a Folder name length shall be a maximum of 63 Maximum folder name
14
characters. length
Rationale
Sub ID Description
a Possible that the full path name cannot be display in the user interface.
3. Definitions
For information on deployment terminology, go to https://www.mathworks.com/help and select MATLAB Compiler > Getting Started > About Application Deployment > Deployment Product Terms in the MathWorks Documentation Center.
Documents / Resources
![]() |
MATLAB MAB Control Optimizer [pdf] User Manual MAB Control Optimizer, Control Optimizer, Optimizer |

