Struct dogs::tree_search::decorators::bounding::BoundingDecorator[][src]

pub struct BoundingDecorator<Space, B, N> { /* fields omitted */ }
Expand description

Registers the global dual bound

  • when a node is destructed: remove its bound of the pq and update the global bound
  • TODO when a node bound is updated: update the global bound

Implementations

unwraps itself

builds the decorator using the wrapped space

binds the logger to display bound updates

Trait Implementations

Formats the value using the given formatter. Read more

returns the guide value of the node

returns the ID of the node

returns true if a dominates b

returns the next neighbor if it exists, or None

returns the initial (or root) node

returns the bound value of the node (i.e. f-cost)

returns true if and only if the node is goal

returns the g-cost of the node the h-cost can be computed by substracting the f-cost (SearchSpace.bound) by the g-cost Read more

called when the algorithm restarts

called when the algorithm finds a new-best-known solution

called when the algorithm finishes

displays various statistics about the search (nb nodes, etc.) TODO: use export_statistics to get the statistics in the JSON format, and display them Read more

registers information about the search statistics in a json file

called when the algorithm starts

requests log headers (does nothing if there is no logging decorator within the algorithm)

requests a logging to appear (does nothing if there is no logging decorator within the algorithm)

gets the underlying search space

constructs a solution from a goal node panics if the node is not a goal Read more

returns all neighbors of a given node

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.