m一种一世nContent

Controller State Estimation

控制器状态变量

一种s the controller operates, it uses its current state,XC,作为预测的基础。根据定义,国家向量是以下内容:

X C t (( k = [[ X p t (( k X 一世 d t (( k X o d t (( k X n t (( k 这是给予的

这里,

  • XC是控制器状态,包括nXP+nX一世d+nXOD+nxnstate variables.

  • Xp是植物模型状态向量,长度nXP

  • X一世d一世s the input disturbance model state vector, of lengthnX一世d

  • Xod一世s the output disturbance model state vector, of lengthnXOD

  • Xn是测量噪声模型状态矢量,长度nxn

因此,变量包括XCrepresent the models appearing in the following diagram of the MPC system.

Some of the state vectors may be empty. If not, they appear in the sequence defined within each model.

bydefault, the controller updates its state automatically using the latest plant measurements. SeeState Estimation有关详细信息。另外,自定义状态估计功能使您可以使用外部过程更新控制器状态,然后将这些值提供给控制器。看C你stom State Estimation有关详细信息。

State Observer

图中显示的模型的组合产生了状态观察者:

X C (( k + 1 = 一种 X C (( k + b o (( k y (( k = C X C (( k + d o (( k

mPC controller uses the state observer in the following ways:

  • 估计所需的未测量状态的价值作为预测的基础(请参阅State Estimation)。

  • 为了预测控制器建议的操纵变量(MV)调整将如何影响未来的植物产出值(请参阅输出变量预测)。

the observer’s input signals are the dimensionless plant manipulated and measured disturbance inputs, and the white noise inputs to the disturbance and noise models:

o t (( k = [[ t (( k v t (( k w 一世 d t (( k w o d t (( k w n t (( k 这是给予的

观察者的输出是nyd一世mensionless plant outputs.

In terms of the parameters defining the four models shown in the diagram, the observer’s parameters are:

一种 = [[ 一种 p b p d C 一世 d 0 0 0 一种 一世 d 0 0 0 0 一种 o d 0 0 0 0 一种 n 这是给予的 ,,,, b = [[ b p b p v b p d d 一世 d 0 0 0 0 b 一世 d 0 0 0 0 0 b o d 0 0 0 0 0 b n 这是给予的 C = [[ C p d p d C 一世 d C o d [[ C n 0 这是给予的 这是给予的 ,,,, d = [[ 0 d p v d p d d 一世 d d o d [[ d n 0 这是给予的 这是给予的 ,,,,

这里,the plant and output disturbance models are resequenced so that the measured outputs precede the unmeasured outputs.

State Estimation

通常,控制器状态是未测量的,必须估算。默认情况下,控制器使用源自状态观察者的稳态卡尔曼滤波器。

在开始k控制间隔,根据以下步骤估算控制器状态:

  1. Obtain the following data:

    • XC((k|k–1)— Controller state estimate from previous control interval,k–1

    • 行为((k–1) - 工厂中实际使用的操纵变量(MV)k–1tok((一种ssumed constant)

    • 选择((k–1) - MPC推荐的最佳MV,并假定在工厂中使用k–1tok

    • v((k) - 当前测量的干扰

    • ym((k) - - -目前是sured plant outputs

    • b,,,,bv- 观察者参数的列b对应于((k)一种ndv((k)输入

    • Cm— Rows of observer parameter C corresponding to measured plant outputs

    • dmv— Rows and columns of observer parameterd对应于测量的植物产量和测量的干扰输入

    • l,,,,m- 恒定的卡尔曼获得矩阵

    在计算之前,将工厂输入和输出信号缩放为无量纲。

  2. 修订XC((k|k–1)when行为((k–1)一种nd选择((k–1)是不同的。

    X C r e v (( k | k - 1 = X C (( k | k - 1 + b [[ 一种 C t (( k - 1 - o p t (( k - 1 这是给予的

  3. 计算创新。

    e (( k = y m (( k - [[ C m X C r e v (( k | k - 1 + d m v v (( k 这是给予的

  4. 更新控制器状态估计以说明最新测量值。

    X C (( k | k = X C r e v (( k | k - 1 + m e (( k

    然后,软件使用当前状态估计XC((k|k)以间隔解决二次程序k。解决方案是选择((k),,,,the MPC-recommended manipulated-variable value to be used between control intervalsk一种ndk+1。

    最后,该软件为下一个控制间隔做准备,假设未知输入,w一世d((k),,,,wod((k),,,,一种ndwn((k)在时间之间假设其平均值(零)k一种ndk+1。该软件预测已知输入和创新的影响如下:

    X C (( k + 1 | k = 一种 X C r e v (( k | k - 1 + b o p t (( k + b v v (( k + l e (( k

内置稳态卡尔曼获得计算

模型预测控制工具箱™ software uses thek一种lmanComm一种ndtoC一种lculate Kalman estimator gainsl一种ndm。the following assumptions apply:

  • State observer parameters一种,,,,b,,,,C,,,,d是时间不变的。

  • Controller states,XC,可检测到。(如果没有,或者观察者在数字上接近未检索性,则Kalman增益计算失败,生成错误消息。)

  • 随机输入w一世d((k),,,,wod((k),,,,一种ndwn((k)一种re一世ndependentwhite noise, each with zero mean and identity covariance.

  • 额外的白噪声w((k)一种ndwv((k)w一世th the same characteristics adds to the dimensionless((k)一种ndv((k)分别输入。在某些情况下,例如植物模型不稳定时,这会改善估计器性能。

Without loss of generality, set the((k)一种ndv((k)输入tozero. The effect of the stochastic inputs on the controller states and measured plant outputs is:

X C (( k + 1 = 一种 X C (( k + b w (( k y m (( k = C m X C (( k + d m w (( k

这里,

w t (( k = [[ w t (( k w v t (( k w 一世 d t (( k w o d t (( k w n t (( k 这是给予的

输入到k一种lmanComm一种nd一种rethe state observer parameters一种,,,,Cm,以及以下协方差矩阵:

= e { b w w t b t } = b b t r = e { d m w w t d m t } = d m d m t n = e { b w w t d m t } = b d m t

这里,e{...}表示期望。

输出变量预测

model Predictive Control requires prediction of noise-free future plant outputs used in optimization. This is a key application of the state observer (seeState Observer)。

在控制间隔中k,所需的数据如下:

  • p— Prediction horizon (number of control intervals, which is greater than or equal to 1)

  • XC((k|k)— Controller state estimates (seeState Estimation

  • v((k) - 当前测量的干扰输入(MDS)

  • v((k+一世|k) - 预计未来的MD,哪里一世=1:p–1。如果您不使用MD预览,那么v((k+一世|k)=v((k)。

  • 一种,,,,b,,,,bv,,,,C,,,,dv- 国家观察者常数,那里b,,,,bv,,,,一种nddvdenoteColumns of theb一种nddm一种tr一世Ces corresponding to inputs一种ndvd由于没有直接进料,因此是零矩阵

预测假设未知的白噪声输入为零(他们的期望)。同样,预测的植物产量将无噪声。因此,所有涉及测量噪声状态的术语都从状态观察者方程式中消失。这等同于零nxnelements ofXC((k|k)。

给定上述数据和简化,在第一步中,州观察者预测:

X C (( k + 1 | k = 一种 X C (( k | k + b (( k | k + b v v (( k

继续执行连续步骤,一世=2:p,国家观察家预测:

X C (( k + 一世 | k = 一种 X C (( k + 一世 - 1 | k + b (( k + 一世 - 1 | k + b v v (( k + 一世 - 1 | k

一种t一种nystep,一世= 1:p,,,,the predicted noise-free plant outputs are:

y (( k + 一世 | k = C X C (( k + 一世 | k + d v v (( k + 一世 | k

所有这些方程都采用无量纲的植物输入和输出变量。看指定规模因素。方程式还假设零偏移。包含非零偏移是简单的。

对于更快的计算,MPC控制器使用上述方程式的替代形式,其中在控制器初始化过程中计算和存储常数项。看QP矩阵

也可以看看

related Topics