class="resources" Find All Minima 1D (Not in Base Package) - LabVIEW 7.1 Help - Support - National Instruments
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Find All Minima 1D (Not in Base Package)

Determines all local minima of a given function in a given interval. Details  Example

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 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 specifies the method used by the VI. The default is 0.

0Golden Section Search (default)
1Brent with Derivatives
start is the start point of the interval. The default is 0.0.
end is the end point of the interval. The default is 1.0.
formula is a string representing the function under investigation.
Minima is an array of all found minima of formula in the interval (start, end).
f(Minima) is the function values at the points Minima.
ticks is the time in milliseconds for the whole calculation.
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.

Find All Minima 1D Details

Note  If you want to find out the maxima of a function, you must take –function as the inputs. The –f(Minima) are the correct maximal function values.

The Find All Minima 1D VI finds all minima in the given interval (start, end). To find all minima 1D of f(x) = cos(x2), 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.

Example

Refer to the 1D Explorer Example VI in the labview\examples\math\math.llb directory for an example of using the Find All Minima 1D VI.

 


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit