Advisor.authoring.NegativeBlockTypeConstraint Class
Namespace: Advisor.authoring
Superclasses:
Create a Model Advisor constraint to check for unsupported blocks
Description
Instances of Advisor.authoring.NegativeBlockTypeConstraint
class
define blocks that a model must not contain.
Construction
constraint = Advisor.authoring.NegativeBlockTypeConstraint
creates an
instance of this class.
Properties
Examples
Specify Unsupported Block Types
These commands specify that a model cannot contain Integrator blocks, Rate Transition blocks, or Constant blocks with a specified mask:
c1=Advisor.authoring.NegativeBlockTypeConstraint; c1.ID='ID_1'; s1=struct('BlockType','Integrator','MaskType',''); s2=struct('BlockType','RateTransition','MaskType',''); s3=struct('BlockType','Constant','MaskType','Stateflow'); c1.UnsupportedBlockTypes={s1;s2;s3};
Version History
Introduced in R2018a