Determines all local minima of a given function in a given interval. The node uses the golden section search method.
Start point of the interval.
Default: 0
End value of the interval where this node stops calculating values.
Default: 1
Spacing used for the function values.
Name | Value | Description |
---|---|---|
Fixed Function | 0 | Uses uniformly spaced function values. |
Modified Function | 1 | Uses optimal step size. In general, Modified Function leads to more accurate minima. |
Default: Fixed Function
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
Default: No error
Accuracy of the minimum of the formula.
The node stops running if the difference between two consecutive approximations equals to or is less than the value of accuracy.
Default: 1E-08
All minima of the formula in the interval (start, end).
Function values at the points minima.
Error information.
The node produces this output according to standard error behavior.
Standard Error Behavior
Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.
To find the maxima of a function, you must take -function as the input. The -f(minima) are the correct maximal function values.
This node finds all minima in the given interval (start, end). To find all minima 1D of f(x) = cos(x^{2}) in interval (-1.0, 6.0), enter the following values on the panel:
start | -1.0 |
end | 6.0 |
formula | cos(x^2) |
The following illustration shows the plot of f(x). The red points on the plot are the locations of the minima.
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices