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
+21
View File
@@ -193,6 +193,27 @@ bool StringToLineSearchType(string value, LineSearchType* type) {
return false;
}
const char* LineSearchInterpolationTypeToString(
LineSearchInterpolationType type) {
switch (type) {
CASESTR(BISECTION);
CASESTR(QUADRATIC);
CASESTR(CUBIC);
default:
return "UNKNOWN";
}
}
bool StringToLineSearchInterpolationType(
string value,
LineSearchInterpolationType* type) {
UpperCase(&value);
STRENUM(BISECTION);
STRENUM(QUADRATIC);
STRENUM(CUBIC);
return false;
}
const char* NonlinearConjugateGradientTypeToString(
NonlinearConjugateGradientType type) {
switch (type) {