Click or drag to resize

GoldenMinimizer Class

Class GoldenMinimizer performs a golden section search for a minimium of a function within an interval known to contain a minimum.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreMinimizerBase
    CenterSpace.NMath.CoreGoldenMinimizer

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
[SerializableAttribute]
public class GoldenMinimizer : MinimizerBase, 
	IOneVariableMinimizer, ICloneable

The GoldenMinimizer type exposes the following members.

Constructors
 NameDescription
Public methodGoldenMinimizer Default constructor.
Public methodGoldenMinimizer(Double) Constructs a GoldenMinimizer instance with the given error tolerance.
Public methodGoldenMinimizer(Int32) Constructs a GoldenMinimizer instance with the given maximum number of iterations.
Public methodGoldenMinimizer(Double, Int32) Constructs a GoldenMinimizer instance with the given error tolerance and maximum number of iterations.
Top
Properties
 NameDescription
Public propertyError Gets the error associated with the mimimum just computed.
(Inherited from MinimizerBase)
Public propertyIterations Gets the number of iterations used in the estimate of the mimimum just computed.
(Inherited from MinimizerBase)
Public propertyMaxIterations Gets and sets the maximum number of iterations used in computing minima estimates.
(Inherited from MinimizerBase)
Public propertyMaxIterationsMet Returns true if the minimum just computed stopped because the maximum number of iterations was reached; otherwise, false.
(Inherited from MinimizerBase)
Public propertyTolerance Gets and sets the error tolerance used in computing minima estimates.
(Inherited from MinimizerBase)
Public propertyToleranceMet Returns true if the minimum just computed stopped because the error tolerance was reached; otherwise, false.
(Inherited from MinimizerBase)
Top
Methods
 NameDescription
Public methodClone Creates a deep copy of this GoldenMinimizer.
(Overrides MinimizerBaseClone)
Public methodMinimize(Bracket) Minimizes the function within the interval contained in the given Bracket.
Public methodMinimize(OneVariableFunction, Interval) Minimizes the given function within the given interval.
Public methodMinimize(OneVariableFunction, Double, Double) Minimizes the given function within the given interval.
Public methodMinimize(OneVariableFunction, Double, Double, Double) Minimizes the given function within the given interval.
Top
Fields
 NameDescription
Protected fielderror_The current error.
(Inherited from MinimizerBase)
Protected fielditer_The current number of iterations performed.
(Inherited from MinimizerBase)
Protected fieldmax_The maximum number of iterations.
(Inherited from MinimizerBase)
Protected fieldtolerance_The error tolerance.
(Inherited from MinimizerBase)
Top
Remarks
Iteration stops when either the estimated error is less than a specified error tolerance, or a specified maximum number of iterations is reached.
The golden section search method is linearly convergent.
See Also