Advisor.authoring.PositiveBlockParameterConstraint Class
Namespace: Advisor.authoring
Superclasses:
Create a Model Advisor constraint to check for supported block parameter values
Description
Instances of Advisor.authoring.PositiveBlockParameterConstraint
class define supported values for a specified block parameter.
Construction
constraint = Advisor.authoring.PositiveBlockParameterConstraint
creates an instance of this class.
Properties
Example
Specify Supported Block Parameter Values
For a Constant block, these commands specify
that the Value parameter must have a value of [2
5]
.
c1=Advisor.authoring.PositiveBlockParameterConstraint; c1.ID='ID_1'; c1.BlockType='Constant'; c1.ParameterName='Value'; c1.SupportedParameterValues={'[2 5]'}; c1.ValueOperator='eq';
For a Constant block, these commands specify
that the Value parameter must have a value between
1
and 4
.
c1=Advisor.authoring.PositiveBlockParameterConstraint; c1.ID='ID_1'; c1.BlockType='Constant'; c1.ParameterName='Value'; c1.SupportedParameterValues={'1','4'}; c1.ValueOperator='range';
Version History
Introduced in R2018a