An observation space provides information about the current state of the environment. For example, if you were monitoring the state of a drone in flight, you might track its speed, acceleration, altitude, x-y coordinates and remaining battery life.

There are many ways to construct your observation space in AnyLogic. Below is a simple case for the purpose of demonstration.

Step 1 - Open the Pathmind Helper properties and locate the "Observations" field.

Step 2 - Define your observations.

class Observations {
double observation_0 = obs0;
double observation_1 = obs1;
double[] observation_2 = getObs_2()

This should output an array that looks something like: [0.0, 0.0, 0.0, 0.0].  The values 0.0  are just placeholders; in actuality, they will contain varied values from your observations.

Finally, you can inspect your observations by following the instructions here.

Did this answer your question?