资源简介
分别给出了无约束MPC和约束MPC的MATLAB程序
代码片段和文件信息
load step_model;
load unconstrained_MPC
%--------无噪声情况-----------%
Kmpc=mpccon(modelywuwMP);
[yu]=mpcsim(plantmodelKmpctendr);
%------与噪声相关的参数-------%
usat=[];
tfilter=[];
dplant=model;
dmodel=model;
%----------生成白噪声---------%
n=randn(tend/Ts1);
n=n-mean(n);
n=n/std(n);
a=0; b=sqrt(0.1);
n=a+b*n;%零均值,方差为0.1
dstep=n;
[y1u1]=mpcsim(plantmodelKmpctendrusattfilterdplantdmodeldstep);
%----------生成白噪声---------%
n=randn(tend/Ts1);
n=n-mean(n);
n=n/std(n);
a=0; b=sqrt(10);
n=a+b*n;%零均值,方差为10
dstep=n;
[y2u2]=mpcsim(plantmodelKmpctendrusattfilterdplantdmodeldstep);
subplot(221);
plot(0:Ts:tendy(:1)‘--‘);
hold on;
plot(0:Ts:tendy1(:1)‘r‘);
grid on;
xlabel(‘time(s)‘);
legend(‘未加白噪声输出‘‘加入白噪声输出‘);
title(‘Output 方差0.1‘);
subplot(222);
plot(0:Ts:tendy(:1)‘--‘);
hold on;
plot(0:Ts:tendy2(:1)‘r‘);
grid on;
xlabel(‘time(s)‘);
legend(‘未加白噪声‘‘加入白噪声‘);
title(‘Output 方差10‘);
subplot(223);
plot(0:Ts:tendu‘--‘);
hold on;
plot(0:Ts:tendu1‘r‘);
grid on;
legend(‘未加白噪声控制量‘‘加入白噪声控制量‘);
xlabel(‘time(s)‘);
title(‘Manipulated Variables 方差0.1‘);
subplot(224);
plot(0:Ts:tendu‘--‘);
hold on;
plot(0:Ts:tendu2‘r‘);
grid on;
legend(‘未加白噪声控制量‘‘加入白噪声控制量‘);
xlabel(‘time(s)‘);
title(‘Manipulated Variables 方差10‘);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-03-21 15:22 MPC程序\
目录 0 2014-03-21 15:20 MPC程序\无约束\
文件 1416 2014-02-23 14:41 MPC程序\无约束\noise.m
文件 256 2014-02-23 14:41 MPC程序\无约束\step_model.m
文件 2403161 2014-02-23 14:42 MPC程序\无约束\step_model.mat
文件 1169443 2014-02-23 14:42 MPC程序\无约束\unconstrained_MPC.mat
文件 1912 2014-02-23 14:42 MPC程序\无约束\unconstrained_m.m
文件 1935 2014-02-23 14:42 MPC程序\无约束\unconstrained_p.m
文件 1888 2014-02-23 14:42 MPC程序\无约束\unconstrained_uw.m
文件 1916 2014-02-23 14:42 MPC程序\无约束\unconstrained_yw.m
目录 0 2014-03-21 15:20 MPC程序\约束\
文件 1782 2014-02-23 14:42 MPC程序\约束\cmpcQP.m
文件 1758 2014-02-23 14:42 MPC程序\约束\cmpcQP_m.m
文件 1735 2014-02-23 14:42 MPC程序\约束\cmpcQP_yw.m
文件 1910 2014-02-23 14:42 MPC程序\约束\cmpcQPnoise.m
文件 2393 2014-02-23 14:42 MPC程序\约束\compare.m
文件 2327554 2014-02-23 14:43 MPC程序\约束\dstatespace.mat
文件 1410 2014-02-23 14:42 MPC程序\约束\genQP.m
文件 392 2014-02-23 14:42 MPC程序\约束\get_F.m
文件 243 2014-02-23 14:42 MPC程序\约束\state_model_c2d.m
文件 939731 2014-02-23 14:43 MPC程序\约束\step_model.mat
相关资源
- 非线性SVM算法-matlab实现
- 《MATLAB 智能算法超级学习手册》-程序
- 组合导航matlab程序
- 读取txt文件内容matlab代码实现
- Matlab实现基于相关的模板匹配程序
- matlab优化工具箱讲解
- 基于MATLAB的快速傅里叶变换
- 光纤传输中的分布傅立叶算法matlab实
- 基于matlab的图像处理源程序
- matlab 椭圆拟合程序
- 算术编码解码matlab源代码
- optical_flow 光流法 matlab 实现程序
- 引导图像滤波器 Matlab实现
- 分形几何中一些经典图形的Matlab画法
- OFDM系统MATLAB仿真代码
- SVM工具箱(matlab中运行)
- 图像小波变换MatLab源代码
- LU分解的MATLAB实现
- 冈萨雷斯数字图像处理matlab版(第三
- 替代数据法的matlab程序
- 用matlab实现的多站定位系统性能仿真
- 通过不同方法进行粗糙集属性约简m
- k近邻算法matlab实现
- matlab识别系统
- 神经网络分类matlab程序
- matlab正弦信号发生器的设计
- matlab程序用Hopfield网络解决TSP
- 实例matlab 编程100个常用程序
- 用MATLAB(BPSK仿真 直接扩频)
- 最小二乘法曲线拟合(MATLAB)
评论
共有 条评论