Determines multiple minima of a given function in a given interval using 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
Type of function to use to control the spacing of the function values.
Name | Value | Description |
---|---|---|
Fixed Function | 0 | Uses a fixed function that generates evenly-spaced function values. |
Modified Function | 1 | Uses a modified function that optimizes the step size to generate more accurate results. |
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 objective function.
Default: 1E-08
All minima of the objective function in the interval (start, end).
Values of the objective function at 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 maximum 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 |
objective function | 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
Web Server: Not supported in VIs that run in a web application