getOutputIndex
Get index of an output element of an operating point specification
The Outputs property of an operating point specification is an array that contains
trimming specifications for each model output. When defining a mapping function for
customized trimming of Simulink models, getOutputIndex lets you obtain the index of
an output specification based on the corresponding block path.
When trimming Simulink models using optimization-based search, some applications
require additional flexibility in defining the optimization search parameters. For such
systems, you can specify custom constraints and a custom objective function. For complex
models, you can define a mapping that selects a subset of the model states, inputs, and
outputs to pass to the custom constraint and objective functions. For more information,
see “Compute Operating Points Using Custom Constraints and Objective Functions” on
page 1-78.
Syntax
index = getOutputIndex(op,block)
index = getOutputIndex(op,block,port)
index = getOutputIndex(op,block,port,element)
Description
index = getOutputIndex(op,block) returns the index of the output specification
that corresponds to block in the Outputs property of operating point specification op.
index = getOutputIndex(op,block,port) returns the index of the output
specification that corresponds to the trim output constraint added to the specified output
port of the specified block.
Use this syntax when the Outputs property of op contains trim output constraints for
more than one signal originating from the same block.
index = getOutputIndex(op,block,port,element) returns the index of the
specified element within an output specification for an output with multiple elements.
15 Alphabetical List