%% Create SAC Agent Options Object
% Create a SAC agent options object, specifying the discount factor.

opt = rlSACAgentOptions('DiscountFactor',0.95)

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

opt.SampleTime = 0.5;

% For SAC agents, configure the entropy weight optimizer using the options in EntropyWeightOptions. For example, set the target entropy value to –5.

opt.EntropyWeightOptions.TargetEntropy = -5;

% Copyright 2020 The MathWorks, Inc.