Performs a line search.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public class LineSearch
Visual Basic (Declaration)
Public Class LineSearch
Visual C++
public ref class LineSearch

Remarks

This class minimizes arbitrary unimodal and convex 2d-functions y=f(x).

Examples

For example, given a class FooFunctions holding the static function barSquared. To find the minimum of barSquared in a specific interval
CopyC#
...
LineSearch.ObjectiveFunction objective = new LineSearch.ObjectiveFunction(FooFunctions.barSquared);
// for example, find the minimum in an interval of [-10,10]
// the result has an accuracy of 1e-6
double result = LineSearch.GoldenSection(1e-6, -10, 10, objective)
....

Inheritance Hierarchy

System..::.Object
  ceometric.VectorGeometry..::.LineSearch

See Also