pub fn optimize(graph: &FactorGraph, iterations: usize) {
    for _i in 0..iterations {
        update_once(graph);
    }
}
/// Optimizes a factor graph with the given number of iterations.
Optimizes a factor graph with the given number of iterations.
Optimizes a factor graph with the given number of iterations .
pub fn optimize(graph: &FactorGraph, iterations: usize) {
    for _i in 0..iterations {
        update_once(graph);
    }
}
pub fn optimize ( graph : & FactorGraph , iterations : usize ) { for _i in 0 .. iterations { update_once ( graph ) ; } }
Optimizes a factor graph with the given number of iterations.
Optimizes a factor graph with the given number of iterations .
graph
&FactorGraph
iterations
usize