To troubleshoot errors in your simulation, it's helpful to audit the data passed to the Pathmind Helper.

Printing Debug Information 

Click the Pathmind Helper to view its properties. Inside "Event Trigger", select "Debug Mode". 

From there, run your AnyLogic simulation and open up the AnyLogic console.

Inside the console, the Pathmind Helper will print the following information after each action that an agent performs. Inspect this to troubleshoot errors in your simulation. 

Pathmind:
  Step: 15
Observations:
    Array: [0.0, 0.0, 0.0, 1.0, 0.0]
    Total Observations: 5
  Reward Variables:
    Array: [1.0, 0.0, 0.0, 0.0, 0.0, 0.0]
    Total Rewards: 6
  Last Action: [3, 2]
  Done: false

Definitions

Step - The step associated with each action.

Observations -  Output of the observations array at each step. Audit these values to confirm that observations are computed correctly. 

Reward Variables -  Output of the rewards array at each step. Audit these values to confirm that rewards are computed correctly.

Last Action -  The last action taken at each decision point.

Done - Resolves to true  or false. Indicates whether or not an episode has completed.

Did this answer your question?