1 Star 1 Fork 1

JeffreyChan / ReceedingHorizonControlAutonomousVehicle

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
closedLoopGains.m 396 Bytes
一键复制 编辑 原始数据 按行查看 历史
Mohamed 提交于 2016-11-16 09:31 . Add files via upload
%calculate closed loop gains for one step of RHC of time invariant system
%given MPC gains
function [Ky,Kmpc]=closedLoopGains (Phi_Phi,Phi_F,Phi_R,rw,Nc)
%Tuning parameter diagonal matrix
I = eye(Nc);
BarR = rw*I;
%Set point change gain
Ky = (inv(Phi_Phi+BarR))*Phi_R;
Ky = Ky(1,1);
%State feedback controller gain
Kmpc = (inv(Phi_Phi+BarR))*Phi_F;
Kmpc = Kmpc(1,:);
end
Matlab
1
https://gitee.com/jeffreychan/ReceedingHorizonControlAutonomousVehicle.git
git@gitee.com:jeffreychan/ReceedingHorizonControlAutonomousVehicle.git
jeffreychan
ReceedingHorizonControlAutonomousVehicle
ReceedingHorizonControlAutonomousVehicle
master

搜索帮助