%% Specify Options for FIS Tuning
% Create a default option set using the particle swarm tuning algorithm.

opt = tunefisOptions("Method","particleswarm")

% You can modify the options using dot notation. For example, set the maximum number of iterations to 20.

opt.MethodOptions.MaxIterations = 20;

% You can also specify other options when creating the option set. In this example, set the OptimizationType to "learning" to learn new rules.

opt2 = tunefisOptions("Method","particleswarm","OptimizationType","learning")

% Copyright 2018 The MathWorks, Inc.