Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 2b3143f0 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

search alg: move calculation of y a little bit up

parent beff07b8
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,7 @@ namespace TUGraz.VectoCore.Utils
x += interval * -y.Sign();
var result = evaluateFunction(x);
y = getYValue(result);
debug.Add(new { x, y, delta = criterion(result), result });
if (criterion(result).IsEqual(0, Constants.SimulationSettings.LineSearchTolerance)) {
LogManager.EnableLogging();
......@@ -142,7 +143,6 @@ namespace TUGraz.VectoCore.Utils
LogManager.DisableLogging();
throw new VectoSearchAbortedException("LineSearch");
}
y = getYValue(result);
}
} finally {
LogManager.EnableLogging();
......
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