layered

be.cetic.ddolibscala.StartHeuristics.layered
object layered

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
layered.type

Members list

Value members

Concrete methods

def dfs[T](problem: Problem[T], lowerBound: FastLowerBound[T] = ..., dominance: DominanceChecker[T] = ..., limit: SearchStatistic => Boolean = ...): Solution

Runs the layered DFS start heuristic and returns the first feasible solution it encounters.

Runs the layered DFS start heuristic and returns the first feasible solution it encounters.

The children of a node are explored by increasing g + h, where h is given by the fast lower bound. States dominated by an already explored state are skipped.

Type parameters

T

the type representing a state in the problem

Value parameters

dominance

the dominance checker used to skip dominated states

limit

stopping criterion tested at each iteration; its statistics are the ones of A*, see be.cetic.ddolibscala.common.solver.stopcriterion.AstarStopCriterion

lowerBound

a heuristic that estimates a lower bound on the objective value for a given state

problem

the problem to solve

Attributes

Returns

the first solution found, or an empty solution (see isEmpty) if the problem has no solution or if the limit was reached first