https://www.mathworks.com/help/reinforcement-learning/ref/rl.function.rlcontinuousdeterministicrewardfunction.html
When creating a neural network-based environment using rlNeuralNetworkEnvironment, you can specify the reward function approximator using an...
reward functiondeterministicobject