Incorporate Time into Reinforcement Learning Environment

Illustration
ahmed_sultan - 2021-05-25T10:52:53+00:00
Question: Incorporate Time into Reinforcement Learning Environment

I am creating my own custom environemnt on MATLAB using the rlFunctionEnv function. I wanted to know whether I could somehow incorporate time into my envirnment when training it using a DQN as my environment needs to know the time at each time step. Is there a way to do this?  

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

Time would be another parameter of your environment. Interactions between the agent and environment happen at discrete time steps, so you can create a variable and increase it by an amount equal to your agent's sample time. If you step function also includes numerical integration you could use the integration times as well.
 


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!