Specifying reference state values in MPC controller cost function

조회 수: 8 (최근 30일)
Alessandro Maria Laspina
Alessandro Maria Laspina 2021년 7월 4일
Hello,
I have an MPC controller, built with the following general format (i have not included the nonlinear equations because they are relatively long):
nx = 11;
ny = 3;
nu = 13;
nlobj = nlmpc(nx,ny,nu);
nlobj.Model.StateFcn="nonlinear_eom.m";
nlobj.Jacobian.StateFcn="nonlinear_j";
Ts=0.4;
p=30;
nlobj.Ts=Ts;
nlobj.PredictionHorizon=p;
nlobj.ControlHorizon=p;
I want to use this controller as part of a simulation where a preliminary value of the control values U(5:13) for each time step is to be given to the controller i.e. I want to specify a cost function where given the reference controls (using subscripts U), the cost is given by:
This only considers the control values themselves. I know that:
nlmpcmove(nlmpcobj,x,lastmv,ref)
includes ref, which is the output reference values, but what about the input reference values?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Model Predictive Control Toolbox에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by