91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 10KB
    文件類型: .m
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-11
  • 語言: Matlab
  • 標簽: nmpc??程序??

資源簡介

一個非線性模型預測控制程序,初學者入門的好資料,值得下載參考

資源截圖

代碼片段和文件信息

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%?This?program?implements?a?controller?that?uses?a?planning
%?strategy?for?the?surge?tank?example.
%
%?Kevin?Passino
%?Version:?4/19/01
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%?Initialize?variables

clear

%?Set?the?length?of?the?simulation

Nnc=300;

T=0.1;??????%?Sampling?rate

%?As?a?reference?input?we?use?a?square?wave?(define?one?extra?
%?point?since?at?the?last?time?we?need?the?reference?value?at
%?the?last?time?plus?one)

timeref=1:Nnc;
r(timeref)=3.25-3*square((2*pi/150)*timeref);?%?A?square?wave?input
%r(timeref)=3.25*ones(1Nnc+1)-3*(2*rand(1Nnc+1)-ones(1Nnc+1));?%?A?noise?input
ref=r(1:Nnc);??%?Then?use?this?one?for?plotting

time=1:Nnc;
time=T*time;?%?Next?ma

評論

共有 條評論