WebCab Optimization for COM v2.6

MultiDimensionalSolver.SetFunction Method 

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

public void SetFunction(
   MultiDimensionalFunction instanceOfMultiDimensionalFunction
);

Parameters

instanceOfMultiDimensionalFunction

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. MultiDimensionalFunction - For multi-dimensional functions for which the gradient either does not exist or for which the gradient is not known.
  2. Derivative - For multi-dimensional functions for which the gradient exists and the gradient is known. Note that the Derivative interface inherits from the MultiDimensionalFunction interface.

For further explicit details concerning how these interfaces are implemented (including source code) please see the documentation accompanying the interfaces MultiDimensionalFunction and Gradient.

See Also

MultiDimensionalSolver Class | WebCab.COM.Math.Optimization.MultiDimensional Namespace