// Implementation of standard FF-style search
infoOutput.println("Performing search as in FF - first considering EHC with only helpful actions");
// Now, initialise an EHC searcher
EnforcedHillClimbingSearch EHCS = new EnforcedHillClimbingSearch(initialState);
EHCS.setFilter(HelpfulFilter.getInstance()); // and use the helpful actions neighbourhood
// Try and find a plan using EHC
State goalState = EHCS.search();
if (goalState == null) // if we can't find one
{
infoOutput.println("EHC failed, using best-first search, with all actions");