pub trait PathCostFn {
// Required method
fn edge_cost(
&self,
overhead: &ReductionOverhead,
current_size: &ProblemSize,
) -> f64;
}Expand description
User-defined cost function for path optimization.
Required Methods§
Sourcefn edge_cost(
&self,
overhead: &ReductionOverhead,
current_size: &ProblemSize,
) -> f64
fn edge_cost( &self, overhead: &ReductionOverhead, current_size: &ProblemSize, ) -> f64
Compute cost of taking an edge given current problem size.