Package javaff.search

Examples of javaff.search.EnforcedHillClimbingSearch


  // 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");
   
View Full Code Here

TOP

Related Classes of javaff.search.EnforcedHillClimbingSearch

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.