www.gusucode.com > mpc 案例源码 matlab代码程序 > mpc/CreateAndModifyDefaultMPCQPSolverOptionSetExample.m

    %% Create and Modify Default MPC QP Solver Option Set 
%%
% Create default option set.

% Copyright 2015 The MathWorks, Inc.

opt = mpcqpsolverOptions;

%%
% Specify the maximum number of iterations allowed during computation.
opt.MaxIter = 100;

%%
% Specify a feasibility tolerance for verifying that the optimal solution
% satisfies the inequality constraints.
opt.FeasibilityTol = 1.0e-3;