Uses the downhill simplex method of Nelder and Mead to find a local extremum (i.e. minimum or maximum) of a generic multidimensional function.
extremumType == ExtremumTypes.MINIMUM; and in the case of a maximum, extremumType == ExtremumTypes.MAXIMUM.n-th term of the array corresponds to the value of the n coordinate value.0.01.the point (i.e an N-dimensional vector) where the object function has a local extremum.
When addressing general multi-dimensional problems you have the choice of selecting this method or Powell's direction set method (see Powell's method). If your aim is to `get something working quickly' then you should use this simplex method. The simplex method make no requirements on the function in fact it is possible to consider even non-continuous functions. However, partly because of its generality it is not particularly efficient in terms of the number of function evaluations required in order to achieve a given level of accuracy. It is also important to point out that though this method can be very slow and is in a sense simple, it can also be very robust.
Before you call this method you are required to set the object function of the optimization problem using SetFunction. Please see the documentation of SetFunction or the programmers guide within the PDF documentation for more details on exactly how to set the function. Once the object function has been set all that means to be done to to select an initial points from which the iterative search for the extremum will begin and the tolerance which will determine the exit condition for the search algorithm.
| Exception Type | Condition |
|---|---|
| TooManyMultiDimensionalIterationsException | Thrown if the user function returns invalid values like infinity or NaN. |
| MultiDimensionalException | Thrown if the delivered function does not implement {@lnik MultiDimensionalFunction}, or an interface which extends MultiDimensionalFunction. |
MultiDimensionalSolver Class | WebCab.COM.Math.Optimization.MultiDimensional Namespace