Interface AwAstarModel<T>

Type Parameters:
T - the type of states in the problem
All Superinterfaces:
Model<T>

public interface AwAstarModel<T> extends Model<T>
Defines the structure of an optimization model solved using the Anytime Weighted A* (AWA*) algorithm within the no-layer framework.

The Anytime Weighted A* algorithm is derived from the A* algorithm. By adding a weight to the heuristic function, it speeds up reaching a feasible solution, then incrementally improves the best solution found.

  • Method Details

    • weight

      default double weight()
      Returns the weight to add to the heuristic function. Must be > 1
      Returns:
      the weight to add to the heuristic function (5 by default)
    • setWeight

      default AwAstarModel<T> setWeight(double w)
      Returns a copy of this model but with another weight.
      Parameters:
      w - the weight to use
      Returns:
      a copy of this model but with another weight
    • setInitialSolution

      default AwAstarModel<T> setInitialSolution(Solution solution)
      Returns a copy of this model but with the given initial solution.
      Specified by:
      setInitialSolution in interface Model<T>
      Parameters:
      solution - the initial solution (see Model.initialSolution())
      Returns:
      a copy of this model but with the given initial solution