public void LaunchAgent(AgentSelector.AgentType algo, bool step = false) { switch (algo) { case AgentSelector.AgentType.PolicyIteration: if (GameSelector.type == GameSelector.GameType.GridWorld) { if (!step) { InitializePolicyIteration(); for (int i = 0; i < 10; ++i) { PolicyImprovement(); } } else { if (!gridWorldController.grid.hasBeenInitialized) { InitializePolicyIteration(); gridWorldController.grid.hasBeenInitialized = true; } PolicyImprovement(); gridWorldController.grid.debuggerManager.ClearIntents(); } } else if (GameSelector.type == GameSelector.GameType.Sokoban) { InitializePolicyIteration(); for (int i = 0; i < 10; ++i) { PolicyImprovement(); } } break; case AgentSelector.AgentType.ValueIteration: InitializeValueIteration(); for (int i = 0; i < 1; ++i) { ValueIteration(); } break; } DebugIntents(); }
public void LaunchAgent(AgentSelector.AgentType algo) { //InitializeMonteCarlo(); switch (algo) { case AgentSelector.AgentType.MonteCarloOffPolicy: break; case AgentSelector.AgentType.MonteCarloOffPolicyEvery: break; case AgentSelector.AgentType.MonteCarloOnPolicy: break; case AgentSelector.AgentType.MonteCarloOnPolicyEvery: break; } }