Ejemplo n.º 1
0
        public static MDP <CellWorldPosition, String> CreateFourByThreeMDP()
        {
            CellWorld cw = new CellWorld(3, 4, 0.4);

            cw = new CellWorld(3, 4, -0.04);

            cw.MarkBlocked(2, 2);

            cw.SetTerminalState(2, 4);
            cw.SetReward(2, 4, -1);

            cw.SetTerminalState(3, 4);
            cw.SetReward(3, 4, 1);
            return(cw.AsMdp());
        }