Commit 31d003bb authored by's avatar
Browse files

In verbose mode, print a message if the initial iterate is accepted

Previously, if the subdifferential at the initial iterate would contain zero,
no message would be written at all.  This made it more difficult to follow
the programm output, because it was impossible to see how many times
the bisection method was called.
parent 79546637
Pipeline #4885 failed with stage
in 11 seconds
......@@ -74,7 +74,11 @@ class Bisection
J.subDiff(x, DJ);
if (DJ.containsZero(safety_))
if (verbosity > 0)
std::cout << "Bisection: initial iterate " << x << " accepted, DJ = " << DJ << std::endl;
return x;
// compute initial interval
// if quadratic part is strictly positive we can compute one bound from the other
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment