%% Create Q-Learning Agent Options Object
% This example shows how to create an options object for a Q-Learning agent.
% Create an rlQAgentOptions object that specifies the agent sample time.

opt = rlQAgentOptions('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.