how to set nominal values in model predictive controller using scripts?
Hello,
so i have this code, and i need to set nominal values for manipulated variables, however i am keep getting an error,
% Set the nominal values in the controller.
x = [25; 50; 0];
u = [-10; 0; -5];
nlobj.Model.Nominal = (‘X’,x,’U’,u); % the error is for this one;
if i add only the first two lines, will the controller take as nominal values for inputs and states?;
nlobj = nlmpc(3,2,’MV’,[1 2 3],’MD’,[4 5]);Hello,
so i have this code, and i need to set nominal values for manipulated variables, however i am keep getting an error,
% Set the nominal values in the controller.
x = [25; 50; 0];
u = [-10; 0; -5];
nlobj.Model.Nominal = (‘X’,x,’U’,u); % the error is for this one;
if i add only the first two lines, will the controller take as nominal values for inputs and states?;
nlobj = nlmpc(3,2,’MV’,[1 2 3],’MD’,[4 5]); Hello,
so i have this code, and i need to set nominal values for manipulated variables, however i am keep getting an error,
% Set the nominal values in the controller.
x = [25; 50; 0];
u = [-10; 0; -5];
nlobj.Model.Nominal = (‘X’,x,’U’,u); % the error is for this one;
if i add only the first two lines, will the controller take as nominal values for inputs and states?;
nlobj = nlmpc(3,2,’MV’,[1 2 3],’MD’,[4 5]); model predictive controller, matlab compiler, simulink, scripts MATLAB Answers — New Questions