diff options
author | Thomas Capricelli <orzel@freehackers.org> | 2010-02-21 12:41:37 +0100 |
---|---|---|
committer | Thomas Capricelli <orzel@freehackers.org> | 2010-02-21 12:41:37 +0100 |
commit | a7d085eb4ecedd45f091eeadb93277c7f3878b27 (patch) | |
tree | 466060eaab83a18c54c8573fc1d5b6913699374d /unsupported/test | |
parent | 608959aa6fce375abb92872350267074a1d90283 (diff) |
NonLinearOptimization : clean 'mode' handling from the old minpack code :
* this is actually a boolean, not an int
* use a better name
* can be set at initialization time instead of bloating all methods signatures
Diffstat (limited to 'unsupported/test')
-rw-r--r-- | unsupported/test/NonLinearOptimization.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/unsupported/test/NonLinearOptimization.cpp b/unsupported/test/NonLinearOptimization.cpp index 1313726a1..7aea7b361 100644 --- a/unsupported/test/NonLinearOptimization.cpp +++ b/unsupported/test/NonLinearOptimization.cpp @@ -317,7 +317,8 @@ void testHybrj() hybrj_functor functor; HybridNonLinearSolver<hybrj_functor> solver(functor); solver.diag.setConstant(n, 1.); - info = solver.solve(x, 2); + solver.useExternalScaling = true; + info = solver.solve(x); // check return value VERIFY( 1 == info); @@ -401,7 +402,8 @@ void testHybrd() solver.parameters.nb_of_subdiagonals = 1; solver.parameters.nb_of_superdiagonals = 1; solver.diag.setConstant(n, 1.); - info = solver.solveNumericalDiff(x, 2); + solver.useExternalScaling = true; + info = solver.solveNumericalDiff(x); // check return value VERIFY( 1 == info); |