Two-dimensional grid world, returned as a GridWorld object with
properties listed below. For more information, see Create Custom Grid World Environments.
GridSize — Size of the grid world [m,n] vector
Size of the grid world, specified as a [m,n] vector.
CurrentState — Name of the current state string
Name of the current state, specified as a string.
States — State names string vector
State names, specified as a string vector of length
m*n.
Actions — Action names string vector
Action names, specified as a string vector. The length of the
Actions vector is determined by the
moves argument.
Actions is a string vector of length:
Four, if moves is specified as
'Standard'.
Eight, moves is specified as
'Kings'.
T — State transition matrix 3D array
State transition matrix, specified as a 3-D array, which determines the
possible movements of the agent in an environment. State transition matrix
T is a probability matrix that indicates how likely the agent
will move from the current state s to any possible next state
s' by performing action a.
T is given by,
T is:
A K-by-K-by-4 array, if
moves is specified as 'Standard'.
Here, K =
m*n.
A K-by-K-by-8 array, if
moves is specified as
'Kings'.
R — Reward transition matrix 3D array
Reward transition matrix, specified as a 3-D array, determines how much reward
the agent receives after performing an action in the environment.
R has the same shape and size as state transition matrix
T. Reward transition matrix R is given by,
R is:
A K-by-K-by-4 array, if
moves is specified as 'Standard'.
Here, K =
m*n.
A K-by-K-by-8 array, if
moves is specified as
'Kings'.
ObstacleStates — State names that cannot be reached in the grid world string vector
State names that cannot be reached in the grid world, specified as a string
vector.
TerminalStates — Terminal state names in the grid world string vector
Terminal state names in the grid world, specified as a string vector.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.