Expose line search parameters in Solver::Options. Change-Id: Ifc52980976e7bac73c8164d80518a5a19db1b79d
diff --git a/include/ceres/types.h b/include/ceres/types.h index 5edd128..5becb53 100644 --- a/include/ceres/types.h +++ b/include/ceres/types.h
@@ -332,6 +332,12 @@ FORWARD }; +enum LineSearchInterpolationType { + BISECTION, + QUADRATIC, + CUBIC +}; + const char* LinearSolverTypeToString(LinearSolverType type); bool StringToLinearSolverType(string value, LinearSolverType* type); @@ -364,7 +370,14 @@ const char* NonlinearConjugateGradientTypeToString( NonlinearConjugateGradientType type); bool StringToNonlinearConjugateGradientType( - string value, NonlinearConjugateGradientType* type); + string value, + NonlinearConjugateGradientType* type); + +const char* LineSearchInterpolationTypeToString( + LineSearchInterpolationType type); +bool StringToLineSearchInterpolationType( + string value, + LineSearchInterpolationType* type); const char* LinearSolverTerminationTypeToString( LinearSolverTerminationType type);