Expose line search parameters in Solver::Options.

Change-Id: Ifc52980976e7bac73c8164d80518a5a19db1b79d
This commit is contained in:
Sameer Agarwal
2013-06-30 14:33:23 -07:00
parent 1c70ae9aa6
commit 09244015e3
8 changed files with 153 additions and 36 deletions
+14 -1
View File
@@ -332,6 +332,12 @@ enum NumericDiffMethod {
FORWARD
};
enum LineSearchInterpolationType {
BISECTION,
QUADRATIC,
CUBIC
};
const char* LinearSolverTypeToString(LinearSolverType type);
bool StringToLinearSolverType(string value, LinearSolverType* type);
@@ -364,7 +370,14 @@ bool StringToLineSearchType(string value, LineSearchType* type);
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);