All Implemented Interfaces:
Planner, StateSpacePlanner, Serializable, Callable<Integer>

public final class FF extends AbstractStateSpacePlanner
This class implements Fast Forward planner based on Enforced Hill Climbing algorithm and AStar search.

The command line syntax to launch the planner is as follow:

 FF [-hV] [-l=<logLevel>] [-t=<timeout>] [-w=<weight>] <domain>


 Solves a specified planning problem combining enforced hill climbing and A*
 search strategies using the the delete relaxation heuristic.

       <domain>              The domain file.
       <problem>             The problem file.

   -l, --log=<logLevel>      Set the level of trace: ALL, DEBUG, INFO, ERROR,
                               FATAL, OFF, TRACE (preset INFO).
   -t, --timeout=<timeout>   Set the time out of the planner in seconds (
                               preset 600s).
   -w, --weight=<weight>     Set the weight of the heuristic (preset 1.0).
   -h, --help                Show this help message and exit.
   -V, --version             Print version information and exit.

Command line example:

    java -cp build/libs/pddl4j-4.0-all.jar fr.uga.pddl4j.planners.statespace.FF
            -t 1000
See Also:
Serialized Form
  • Constructor Details

    • FF

      public FF()
      Creates a new planner with default parameters.
    • FF

      public FF(PlannerConfiguration configuration)
      Creates a new planner.
      configuration - the configuration of the planner.
  • Method Details

    • getDefaultConfiguration

      public static PlannerConfiguration getDefaultConfiguration()
      This method return the default arguments of the planner.
      the default arguments of the planner.
      See Also:
    • setHeuristicWeight

      public void setHeuristicWeight(double weight)
      Sets the weight of the heuristic.
      setHeuristicWeight in class AbstractStateSpacePlanner
      weight - the weight of the heuristic. The weight must be greater than 0.
      IllegalArgumentException - if the weight is strictly less than 0.
    • instantiate

      public Problem instantiate(DefaultParsedProblem problem)
      Instantiates the planning problem from a parsed problem.
      problem - the problem to instantiate.
      the instantiated planning problem or null if the problem cannot be instantiated.
    • hasValidConfiguration

      public boolean hasValidConfiguration()
      Checks the planner configuration and returns if the configuration is valid. A configuration is valid if (1) the domain and the problem files exist and can be read, (2) the timeout is greater than 0, (3) the weight of the heuristic is greater than 0, (4) the heuristic is a not null and (5) the list of search strategies to use is ENFORCE_HILL_CLIMBING and ASTAR.
      Specified by:
      hasValidConfiguration in interface Planner
      hasValidConfiguration in class AbstractStateSpacePlanner
      true if the configuration is valid false otherwise.
    • main

      public static void main(String[] args)
      The main method of the FF planner.
      args - the arguments of the command line.