Added optional ordering to GFG::optimize()
parent
12de12f045
commit
2b9105b0ce
|
@ -196,10 +196,10 @@ namespace gtsam {
|
||||||
//}
|
//}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
VectorValues GaussianFactorGraph::optimize(const Eliminate& function) const
|
VectorValues GaussianFactorGraph::optimize(OptionalOrdering ordering, const Eliminate& function) const
|
||||||
{
|
{
|
||||||
gttic(GaussianFactorGraph_optimize);
|
gttic(GaussianFactorGraph_optimize);
|
||||||
return BaseEliminateable::eliminateMultifrontal(boost::none, function)->optimize();
|
return BaseEliminateable::eliminateMultifrontal(ordering, function)->optimize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
|
|
|
@ -207,7 +207,8 @@ namespace gtsam {
|
||||||
* the dense elimination function specified in \c function (default EliminatePreferCholesky),
|
* the dense elimination function specified in \c function (default EliminatePreferCholesky),
|
||||||
* followed by back-substitution in the Bayes tree resulting from elimination. Is equivalent
|
* followed by back-substitution in the Bayes tree resulting from elimination. Is equivalent
|
||||||
* to calling graph.eliminateMultifrontal()->optimize(). */
|
* to calling graph.eliminateMultifrontal()->optimize(). */
|
||||||
VectorValues optimize(const Eliminate& function = EliminationTraits::DefaultEliminate) const;
|
VectorValues optimize(OptionalOrdering ordering = boost::none,
|
||||||
|
const Eliminate& function = EliminationTraits::DefaultEliminate) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compute the gradient of the energy function,
|
* Compute the gradient of the energy function,
|
||||||
|
|
Loading…
Reference in New Issue