Skip to Main Content Skip to Search
Product Documentation

rtw.codegenObjectives.Objective - Class: rtw.codegenObjectives.Objective
Package: rtw.codegenObjectives

Create custom code generation objectives

Syntax

obj = rtw.codegenObjectives.Objective('objID')
obj = rtw.codegenObjectives.Objective('objID', 'base_objID')

Description

obj = rtw.codegenObjectives.Objective('objID') creates an objective object, obj.

obj = rtw.codegenObjectives.Objective('objID', 'base_objID') creates an object, obj, for a new objective that is identical to an existing objective. You can then modify the new objective to meet your requirements.

Input Arguments

objIDA permanent, unique identifier for the objective.
  • You must have

    objID.

  • The value of objID must remain constant.

  • When you refresh your customizations, if objID is not unique, Simulink generates an error.

base_objIDThe identifier of the objective that you want to base the new objective on.

Examples

Create a new objective:

obj = rtw.codegenObjectives.Objective('ex_ram_1');

Create a new objective based on the existing Execution efficiency objective:

obj = rtw.codegenObjectives.Objective('ex_my_efficiency_1', 'Execution efficiency');

How To

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS