Exemple #1
0
		def v13_plan(problem, agent):
			problem.a_star = False # TODO: need to debug no-a-* first before using v13
			problem.rand = False
			solutions = pyhop.seek_plan_v13(problem,problem.goals[agent],[],[],0)

			# If there is no solution
			if solutions[0] == False:
				return solutions

			return Planner.make_sol_obj(solutions, problem, agent)
Exemple #2
0
		def v15_plan(problem, agent):
			problem.a_star = True
			problem.rand = True # Only difference from v14
			if not hasattr(problem, 'verbose'):
				problem.verbose = 0
			elif problem.verbose == 1:
				print("Problem State: ")
				pyhop.print_state(problem)
			solutions = pyhop.seek_plan_v13(problem,problem.goals[agent],[],[],0, verbose=problem.verbose)
			# If there is no solution
			if solutions[0] == False:
				return solutions
			return Planner.make_sol_obj(solutions, problem, agent)