def main(domain_file, problem_file, plan_file): task = SIW_Plus_Planner() task.ignore_action_costs = True fd.grounding.default(domain_file, problem_file, task) #MRJ: Uncomment to check what actions are being loaded #for i in range( 0, task.num_actions() ) : # task.print_action( i ) # MRJ: Setting planner parameters is as easy as setting the values # of Python object attributes # MRJ: Maximum bound on width is set to 1 task.iw_bound = 2 # MRJ: log filename set task.log_filename = 'iw.log' # MRJ: plan file task.plan_filename = plan_file # MRJ: Comment line below to deactivate profiling #profiler_start( 'siw_plus.prof' ) # MRJ: We call the setup method in SIW_Plus_Planner task.setup() # MRJ: And then we're ready to go task.solve()
def main( domain_file, problem_file, plan_file ) : task = SIW_Plus_Planner( ) task.ignore_action_costs = False fd.grounding.default( domain_file, problem_file, task ) #MRJ: Uncomment to check what actions are being loaded #for i in range( 0, task.num_actions() ) : # task.print_action( i ) # MRJ: Setting planner parameters is as easy as setting the values # of Python object attributes # MRJ: Maximum bound on width is set to 1 task.iw_bound = 1 # MRJ: log filename set task.log_filename = 'iw.log' # MRJ: plan file task.plan_filename = plan_file # MRJ: Comment line below to deactivate profiling #profiler_start( 'siw_plus.prof' ) # MRJ: We call the setup method in SIW_Plus_Planner task.setup() # MRJ: And then we're ready to go task.solve()