%% Create PG Agent Options Object
% This example shows how to create and modify a PG agent options object.
% Create a PG agent options object, specifying the discount factor.

opt = rlPGAgentOptions('DiscountFactor',0.9)

% You can modify options using dot notation. For example, set the agent sample time to 0.5.

opt.SampleTime = 0.5;

% Copyright 2019 The MathWorks, Inc.