public static void RunPlanner(IPlan initPi, ISearch SearchMethod, ISelection SelectMethod, int k, float cutoff, string directoryToSaveTo, int problem) { var POP = new StateSpacePlanner(initPi, SelectMethod, SearchMethod, true) { directory = directoryToSaveTo, problemNumber = problem, }; var Solutions = POP.Solve(k, cutoff); if (Solutions != null) { Solutions[0].ToStringOrdered(); } }
public static void RunPlanner(IPlan initPi, List <IOperator> domainOps, ISelection SelectMethod, ISearch SearchMethod, int k, float cutoff, string directoryToSaveTo, int problem) { var POP = new StateSpacePlanner(initPi, SelectMethod, SearchMethod, domainOps, true) { directory = directoryToSaveTo, problemNumber = problem, }; var Solutions = POP.Solve(k, cutoff); if (Solutions != null) { Console.WriteLine(Solutions[0].ToString()); } }