burlap.behavior.singleagent.planning.deterministic.uninformed.bfs.BFS Java Examples
The following examples show how to use
burlap.behavior.singleagent.planning.deterministic.uninformed.bfs.BFS.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestPlanning.java From burlap with Apache License 2.0 | 5 votes |
@Test public void testBFS() { GridWorldState initialState = new GridWorldState(new GridAgent(0, 0), new GridLocation(10, 10, 0, "loc0")); DeterministicPlanner planner = new BFS(this.domain, this.goalCondition, this.hashingFactory); planner.planFromState(initialState); Policy p = new SDPlannerPolicy(planner); Episode analysis = rollout(p, initialState, domain.getModel()); this.evaluateEpisode(analysis, true); }
Example #2
Source File: BasicBehavior.java From burlap_examples with MIT License | 3 votes |
public void BFSExample(String outputPath){ DeterministicPlanner planner = new BFS(domain, goalCondition, hashingFactory); Policy p = planner.planFromState(initialState); PolicyUtils.rollout(p, initialState, domain.getModel()).write(outputPath + "bfs"); }