Simulink.VariantManager.validateConstraint
R2026bSyntax
Description
Simulink.VariantManager.validateConstraint(
checks if the constraint named modelname,Constraint=constraintname)constraintname in the variant
configuration object associated with the model modelname is
satisfied by the model and the referenced components in the model hierarchy. The function
reports an error if the constraint fails for any of the variant configurations present in
the associated variant configurations object. The function does not return any value if
the constraints are satisfied by the model.
Simulink.VariantManager.validateConstraint(
checks if the constraint condition modelname,Condition=conditionexpr)conditionexpr is satisfied by the
model modelname and the referenced components in the model hierarchy.
Use this syntax to specify a condition expression that can include a combination of control
variables and configuration names instead of a constraint name.