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

Remove assertion

parent b2c9bc94
No related branches found
No related tags found
No related merge requests found
...@@ -174,8 +174,19 @@ void minimise(Functional const J, typename Functional::SmallVector &x, ...@@ -174,8 +174,19 @@ void minimise(Functional const J, typename Functional::SmallVector &x,
dverb << "## Directional derivative (as per subdifferential of " dverb << "## Directional derivative (as per subdifferential of "
"restriction): " << D[1] << " (coordinates of the restriction)" "restriction): " << D[1] << " (coordinates of the restriction)"
<< std::endl; << std::endl;
assert(D[1] <= /*
0); // We should not be minimising in this direction otherwise It is possible that this differs quite a lot from the
directional derivative computed in the descentDirection()
method:
If phi is nonsmooth at x, so that the directional
derivatives jump, and |x| is computed to be too small or too
large globally or locally, the locally computed
subdifferential and the globally computed subdifferential
will no longer coincide!
The assertion D[1] <= 0 may thus fail.
*/
} }
int count; int count;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment