%% Specify Run-Time Parameters for Nonlinear MPC
%
% Create a default nlmpcmoveopt option set.

options = nlmpcmoveopt;

%
% Specify the run-time values for the controller prediction model parameters. For this example, assume that the controller has the following optional parameters, which are input arguments to all the prediction model functions and custom functions of the controller.
% Sample time of the model, specified as a single numeric value. Specify a value of 0.25.
% Gain factors, specified as a two-element row vector. Specify a value of [0.7 0.35].
% The order in which you specify the parameters must match the order specified in the custom function argument lists. Also, the dimensions of the parameters must match the dimensions expected by the custom functions.

options.Parameters = {0.25,[0.7 0.35]};

% To use these parameters when computing optional control actions for a nonlinear MPC controller, pass options to the nlmpcmove function.
% Copyright 2018 The MathWorks, Inc.