removeConstraint - Remove constraint from variant configuration data object - MATLAB (original) (raw)

Main Content

Remove constraint from variant configuration data object

Syntax

Description

Examples

collapse all

Remove a constraint named LinNotExtern from the variant configuration data object varconfigdata.

modelName = "slexVariantManagement"; openExample(modelName); varconfigdata = Simulink.VariantManager.getConfigurationData(modelname); removeConstraint(varconfigdata,"LinNotExtern");

Input Arguments

collapse all

Variant configuration data from which you want to remove the constraint, specified as a Simulink.VariantConfigurationData object.

Name of the constraint that must be removed, specified as a character vector or string scalar. This constraint must be present in the variant configuration data objectvarconfigdata.

Example: "PlantLocConstraint"

Data Types: char | string

Version History

Introduced in R2013b