Question: Using Matlab implement a Q-Learning maze solver using the following: *Also the program should be implemented using two loops. The outside loop iterates the maze

Using Matlab implement a Q-Learning maze solver using the following:

*Also the program should be implemented using two loops. The outside loop iterates the maze solver 1000 times and the inside loops runs until the agent reaches the target goal.

Using Matlab implement a Q-Learning maze solver using the following: *Also theprogram should be implemented using two loops. The outside loop iterates themaze solver 1000 times and the inside loops runs until the agent

Given a grid world with n X n size, let user input the starting position, target, find the short path thorough learning. The inclusion of obstacles in the problem-solving can earn extra credit. - Correct initialization (proper n*n Q-matrix, R matrix or vector, etc. according to your implementation): 3 points - Correct transition function or matrix to get the next state given the current state and the action: 3 points - Correct function or code block for choosing a random and valid action, or similar. 3 points - Implement episode iterations, calculate q value and update q matrix correctly: 6 points - Return the correct path of reaching the goal state given Q matrix : 5 points (this means you need to create a concrete gridworld using your implementation and find the solution) Extra Credit: - Show the update of q matrix every N episodes ( You choose N): 1 points - Set alpha between (0,1): 2 points - Implement a simple GUI which shows the movement of agent or the change of policy: 2 points Given a grid world with n X n size, let user input the starting position, target, find the short path thorough learning. The inclusion of obstacles in the problem-solving can earn extra credit. - Correct initialization (proper n*n Q-matrix, R matrix or vector, etc. according to your implementation): 3 points - Correct transition function or matrix to get the next state given the current state and the action: 3 points - Correct function or code block for choosing a random and valid action, or similar. 3 points - Implement episode iterations, calculate q value and update q matrix correctly: 6 points - Return the correct path of reaching the goal state given Q matrix : 5 points (this means you need to create a concrete gridworld using your implementation and find the solution) Extra Credit: - Show the update of q matrix every N episodes ( You choose N): 1 points - Set alpha between (0,1): 2 points - Implement a simple GUI which shows the movement of agent or the change of policy: 2 points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To implement a QLearning maze solver in MATLAB follow these steps Step 1 Initialize Parameters matlab n 5 Define the size of the grid Q zerosnn 4 Init... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!