Advisor.authoring.PositiveModelParameterConstraint类
包:Advisor.authoring
超类:
创建Model Advisor约束以检查受支持的模型参数值万博1manbetx
描述
的实例Advisor.authoring.PositiveModelParameterConstraint
类定义指定模型参数的支持值万博1manbetx。
建设
constraint = advisor .author . positivemodelparameterconstraint
创建该类的实例。
属性
例子
指定支持的模型参万博1manbetx数值
这些命令指定求解器类型模型参数的值必须为变步
:
c1 = Advisor.authoring.PositiveModelParameterConstraint;c1。ID =“ID_1”;c1。ParameterName =“SolverType”;c1。万博1manbetxSupportedParameterValues = {“变步”};
这些命令指定停止时间模型参数的值必须为10
或15
:
c1 = Advisor.authoring.PositiveModelParameterConstraint;c1。ID =“ID_1”;c1。ParameterName =“StopTime”;c1。万博1manbetxSupportedParameterValues = {“十”,“15”};
为ReplacementTypes模型参数(嵌入式编码器用户)时,这些命令指定两组支持的值万博1manbetx双
而且单
数据类型:
c1 = advisor .author . positivemodelparameterconstraint ();c1。ID =“ID_2”;c1。ParameterName =“ReplacementTypes”;S1 = struct(“双”,“一个”,“单一”,“b”);S2 = struct(“双”,“c”,“单一”,“b”);c1。万博1manbetxSupportedParameterValues = {s1, s2};
另请参阅
CompositeConstraint
|NegativeBlockParameterConstraint
|NegativeBlockTypeConstraint
|NegativeModelParameterConstraint
|PositiveBlockParameterConstraint
|PositiveBlockTypeConstraint
在R2018a中引入
这个话题有用吗?