Closed robfitzgerald closed 2 months ago
When users run A* searches, it should be possible to apply a global weight factor to all heuristic costs:
pub enum SearchAlgorithm { AStarAlgorithm { weight_factor: Option<f64> } }
and so SearchAlgorithms should be able to apply heurstic weight factors:
impl SearchAlgorithm { pub fn apply_weight_factor(&self, cost_estimate: Cost) -> Result<Cost, SearchError> { ... } }
in order to wire this in, SearchAlgorithm would need to be in scope of SearchInstance::estimate_traversal_cost method.
When users run A* searches, it should be possible to apply a global weight factor to all heuristic costs:
and so SearchAlgorithms should be able to apply heurstic weight factors:
in order to wire this in, SearchAlgorithm would need to be in scope of SearchInstance::estimate_traversal_cost method.