Find All Minima 1D VI
- Updated2025-07-30
- 3 minute(s) read
Determines all local minima of a given function in a given interval.

Inputs/Outputs
accuracy
—
accuracy controls the accuracy of the minimum. The method stops if two consecutive approximations differ no more than the value of accuracy. The default is 1.00E-8.
step type
—
step type controls the spacing used for the function values. A step type value of 0, fixed function, represents uniformly spaced function values. A value of 1, modified function, represents the optimal step size. In general, modified function leads to more accurate Minima. The default is 0.
algorithm
—
algorithm specifies the method used by the VI. The default is 0.
start
—
start is the start point of the interval. The default is 0.0.
end
—
end is the end point of the interval. The default is 1.0.
formula
—
formula is a string representing the function under investigation. The formula can contain any number of valid variables.
Minima
—
Minima is an array of all found minima of formula in the interval (start, end).
f(Minima)
—
f(Minima) is the function values at the points Minima.
ticks
—
ticks is the time in milliseconds for the whole calculation.
error
—
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
The Find All Minima 1D VI finds all minima in the given interval (start, end). To find all minima 1D of f(x) = cos(x²), enter the following values on the front panel:
- start: -1.0
- end: 6.0
- formula: cos(x^2)
The following illustration shows the plot of f(x). The boxes on the plot are the locations of the minima.

Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Optimization\1D Explorer.vi
accuracy
—
step type
—
formula
—
Minima
—
ticks
—
error
—