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

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

slightly change search algorithm so that it is possible to re-start search in debugger

parent 06522150
No related branches found
No related tags found
No related merge requests found
......@@ -120,11 +120,15 @@ namespace TUGraz.VectoCore.Utils
/// Phase 1: Linear Bracketing: Search iterative for the area of interest (with fixed step size).
/// Phase 2: Binary Sectioning: Binary search in the area of interest.
/// </summary>
private static T LineSearch<T>(T x, SI y, T interval, Func<object, SI> getYValue, Func<T, object> evaluateFunction,
private static T LineSearch<T>(T xStart, SI yStart, T intervalStart, Func<object, SI> getYValue, Func<T, object> evaluateFunction,
Func<object, double> criterion, Func<object, int, bool> abortCriterion, ref int iterationCount) where T : SIBase<T>
{
var log = LogManager.GetLogger(typeof(SearchAlgorithm).FullName);
var x = xStart;
var y = yStart;
var interval = intervalStart;
var intervalFactor = 1.0;
var origY = y;
var debug = new DebugData();
......
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