MCPcopy Create free account
hub / github.com/Open-Quant/openquant / is_better

Function is_better

crates/openquant/src/combinatorial_optimization.rs:479–484  ·  view source on GitHub ↗
(candidate: f64, incumbent: f64, sense: ObjectiveSense)

Source from the content-addressed store, hash-verified

477}
478
479fn is_better(candidate: f64, incumbent: f64, sense: ObjectiveSense) -> bool {
480 match sense {
481 ObjectiveSense::Maximize => candidate > incumbent,
482 ObjectiveSense::Minimize => candidate < incumbent,
483 }
484}

Callers 2

solve_exactFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected