主要内容

验证规格的操作点

When you compute an operating point based on input, output, or state specifications, the金宝app®Control Design™software indicates whether the specifications were successfully met during the trimming process. If the trimming was unsuccessful, to determine the specifications that could not be met, you must validate your trimmed operating point against the original specifications.

验证操作点Steady State Manager

When you compute an operating point usingSteady State Manager, the software creates an operating point report object and highlights any operating point values that violate the constraints in the specification.

For example, consider thescdairframetrimmodel. Open the model and set the speed and incidence angle parameters.

sys ='scdairframeTRIM'; open_system(sys) alpha_ini = -0.21; v_ini = 933;

To open theSteady State Manager, 在里面Simulink model window, in theAppsgallery, clickSteady State Manager.

创造一个整洁规范的模型。在Steady Statetab, click修剪规范.

在里面SPEC1document, specify which states are known and which are at steady state.

To trim the model, on the规格tab, clickTrimPlay button. The software generates an operating point report and, in the correspondingreport1document, highlights any constraint violations in red

The optimization search could not find an operating point that satisfies the specifications. As highlighted inSteady State Manager,指定处于稳态的三个状态不是。突出的状态值违反了指定的约束,超过了公差值Report标签,在验证公差field. For steady-state conditions, theDX最小值dx Maximum约束都为零;也就是说,每个状态的变化速率为零。在修剪的操作点中Actual dx价值违反了这些约束。

对于此模型,指定第二个位置状态处于稳态过度构成系统,从而使稳态解决方案不可能。

To remove this steady-state constraint, update the specification. In theSPEC1document, in theSteady Statecolumn, clear the corresponding row.

规格tab, clickTrimPlay button. The software trims the model and opens a correspondingReporttab. The resulting report shows that there are no constraint violations.

您还可以根据一组规格验证现有的操作点。例如,检查模型初始条件是否满足SPEC1, first create an operating point based on the model initial conditions. On theSteady Statetab, clickOperating Point. The software creates an operating point and opens a correspondingop1document.

验证此操作点根据SPEC1, on theOperating Pointtab, underValidate Against, selectSPEC1.

The software creates an operating point report and opens a correspondingreport3document.

The model initial conditions do not satisfy the operating point specifications, as shown by the highlighted constraint violations.

验证操作点模型线性化器

When you compute an operating point using模型线性化器, the software does not highlight constraint violations. Instead, you must inspect the operating point report information for any violations.

If you trim the model from the precedingSteady State Manager示例使用相同的规格模型线性化器, the software creates an operating point in the数据浏览器, 在里面Linear Analysis Workspace.

要检查操作点是否满足指定的约束数据浏览器, 在里面Linear Analysis Workspace, double-click the operating point.

在“编辑对话框”中,对于三个稳态规格,将修剪状态值在Actual dxcolumn violate the zeroDesired dxvalues.

验证命令行的操作点

When you compute an operating point at the command line, theFindopfunction outputs an operating point report to the Command Window by default. You can also return the operating point report as an output argument. For more information, seeFindop. To validate your operating point against the specifications, you must check whether the operating point values satisfy the constraints.

例如,打开scdairframetrimmodel and set the model parameters.

sys ='scdairframeTRIM'; open_system(sys) alpha_ini = -0.21; v_ini = 933;

创建一个操作点规范对象,并指定哪些状态已知,哪些状态处于稳态状态。

opspec = operspec(sys); opspec.States(1).Known = [1;1]; opspec.States(1).SteadyState = [0;1]; opspec.States(3).Known = [1;1]; opspec.States(3).SteadyState = [0;1]; opspec.States(2).Known = 1; opspec.States(2).SteadyState = 0; opspec.States(4).Known = 0; opspec.States(4).SteadyState = 1;

Trim the model.

op = findop(sys,opspec);
操作点搜索报告:-----------------------------------------------------
opReport = scdairframetrim型号的操作点搜索报告。(在时间t = 0上评估的时间变化组件)找不到满足所有约束的解决方案。放松约束以找到可行的解决方案。States: ---------- Min x Max dxMin dx dxMax __________ __________ __________ __________ __________ __________ (1.) scdairframeTRIM/Airframe Model/EOM/ Equations of Motion (Body Axes)/Position 0 0 0 -Inf 912.5028INF -3047.9999 -3047.9999-3047.9999 0 -194.4931 0(2.)运动(身体轴)/U,W 912.5028 912.5028 912.5028 -INF 25.3477 INF -194.4931 -194.4931 -194.4931 0 273.1028 0(4.)0 31.1548 0 Inputs: ---------- Min u Max ____ ____ ____ (1.) scdairframeTRIM/delta -Inf 0 Inf Outputs: ---------- Min y Max ________ ________ ________(1.)scdairframetrim/alpha -Inf -0.21 inf(2.)scdairframetrim/v -Inf 933 Inf(3.)scdairframetrim/q -Inf 0 Inf(4.)/伽马-INF 0.21 INF

在里面operating point search report, thedx指定稳态的值的约束为零,如0value in parentheses. The optimization search did not find a steady-state operating point, since all three of these states violate the constraints.

See Also

Functions

Apps

相关话题