Test nonlinear CG optimizer. More...
#include <CppUnitLite/TestHarness.h>
#include <gtsam/geometry/Pose2.h>
#include <gtsam/inference/Symbol.h>
#include <gtsam/nonlinear/NonlinearConjugateGradientOptimizer.h>
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
#include <gtsam/nonlinear/PriorFactor.h>
#include <gtsam/nonlinear/Values.h>
#include <gtsam/nonlinear/factorTesting.h>
#include <gtsam/slam/BetweenFactor.h>
Go to the source code of this file.
Classes | |
class | rosenbrock::Rosenbrock1Factor |
class | rosenbrock::Rosenbrock2Factor |
Factor for the second term of the Rosenbrock function. f2 = (y - x*x) More... | |
Namespaces | |
rosenbrock | |
Functions | |
double | rosenbrock::f (const NonlinearFactorGraph &graph, double x, double y) |
std::tuple< NonlinearFactorGraph, Values > | generateProblem () |
static NonlinearFactorGraph | rosenbrock::GetRosenbrockGraph (double a=1.0, double b=100.0) |
Get a nonlinear factor graph representing the Rosenbrock Banana function. More... | |
int | main () |
double | rosenbrock::rosenbrock_func (double x, double y, double a=1.0, double b=100.0) |
True Rosenbrock Banana function. More... | |
TEST (NonlinearConjugateGradientOptimizer, DirectionMethods) | |
Test different direction methods. More... | |
TEST (NonlinearConjugateGradientOptimizer, Optimization) | |
TEST (NonlinearConjugateGradientOptimizer, Optimize) | |
TEST (NonlinearConjugateGradientOptimizer, Rosenbrock) | |
Test nonlinear CG optimizer.
Definition in file testNonlinearConjugateGradientOptimizer.cpp.
std::tuple<NonlinearFactorGraph, Values> generateProblem | ( | ) |
Definition at line 26 of file testNonlinearConjugateGradientOptimizer.cpp.
int main | ( | ) |
Definition at line 286 of file testNonlinearConjugateGradientOptimizer.cpp.
TEST | ( | NonlinearConjugateGradientOptimizer | , |
DirectionMethods | |||
) |
Test different direction methods.
Definition at line 244 of file testNonlinearConjugateGradientOptimizer.cpp.
TEST | ( | NonlinearConjugateGradientOptimizer | , |
Optimization | |||
) |
Definition at line 206 of file testNonlinearConjugateGradientOptimizer.cpp.
TEST | ( | NonlinearConjugateGradientOptimizer | , |
Optimize | |||
) |
Definition at line 72 of file testNonlinearConjugateGradientOptimizer.cpp.
TEST | ( | NonlinearConjugateGradientOptimizer | , |
Rosenbrock | |||
) |
Definition at line 179 of file testNonlinearConjugateGradientOptimizer.cpp.