%% Create a SARSA Agent Options Object
% This example shows how to create a SARSA agent option object.
% Create an rlSARSAAgentOptions object that specifies the agent sample time.

opt = rlSARSAAgentOptions('SampleTime',0.5)

% You can modify options using dot notation. For example, set the agent discount factor to 0.95.

opt.DiscountFactor = 0.95;

% Copyright 2019 The MathWorks, Inc.