Allows you to set the function you wish to optimize.
The type of the function must be either derived from UniDimensionalFunction or MultiDimensionalFunction.
After having set the function, you can set other properties such as the initial point and when you are done, you can make a call to the Solve method in order to find a solution.
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:
For further explicit details concerning how these interfaces are implemented (including source code) please see documentation accompanying the relevant interface.
| Exception Type | Condition |
|---|---|
| ReferencedServiceException | Thrown by one of the optimization classes while attempting to pass on the given function to it. |
EasySolver Class | WebCab.COM.Math.Optimization Namespace | Solve