Skip to content
Snippets Groups Projects
Commit a3e550b9 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Set x_old to 0.0 for inexact minimisation

parent d2b208e0
No related branches found
No related tags found
No related merge requests found
...@@ -197,9 +197,7 @@ void minimise(Functional const J, typename Functional::SmallVector &x, ...@@ -197,9 +197,7 @@ void minimise(Functional const J, typename Functional::SmallVector &x,
} }
int count; int count;
// FIXME: The value of x_old should not matter if the factor is 1.0, double const stepsize = bisection.minimize(JRest, 0.0, 0.0, count);
// correct?
double const stepsize = bisection.minimize(JRest, 0.0, 1.0, count);
dverb << "Number of iterations in the bisection method: " << count dverb << "Number of iterations in the bisection method: " << count
<< std::endl; << std::endl;
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment