MATLAB: Does the ‘Prioritized objectives’ setting, in the Real-Time Workshop Embedded Coder Configuration Parameters, affect the generated code

debuggingefficiencyprecautionsafetysimulink codertraceability

I have a model which is used for code-generation. On choosing 'ert.tlc' in the Real-Time Workshop configuration settings, the 'Prioritized objectives' setting appears in the same GUI. I would like to know how this setting affects the code that is generated from my model.

Best Answer

'Prioritized objectives' do not affect the generated code.
By clicking on the 'Set Objectives' button in the Real-Time Workshop pane of the Configuration Parameters GUI, you can specify high-level code-generation objectives for your model and run Code Generation Advisor checks. The software then identifies changes to model constructs and settings that can improve the generated code. You can make the changes using the Code Generation Advisor interface.