WebCab Optimization for COM v2.6

UniDimensionalSolver.SetFunction Method 

Submits a new uni-dimensional function for which the location of the extremum is to be found.

public void SetFunction(
   UniDimensionalFunction instanceOfUniDimensionalFunction
);

Parameters

instanceOfUniDimensionalFunction

Remarks

The current function (if any) will be discarded.

Providing an Implementation of the Function

In order to provide a function which is to be used within the algorithms contained within this class you are required to implement one of the following interfaces:

  1. UniDimensionalFunction - For unidimensional functions which are either not differentiable or for which the differentiable is not known.
  2. Derivative - For unidimensional functions which are differentiable and the differential is known. Note that the Derivative interface inherits from the UniDimensionalFunction interface.

For further explicit details concerning how these interfaces are implemented (including source code) see the documentation for the classes UniDimensionalFunction and Derivative.

See Also

UniDimensionalSolver Class | WebCab.COM.Math.Optimization.UniDimensional Namespace