Table Of Contents

Find Multiple Minima 1D (Brent with Derivatives) (G Dataflow)

Last Modified: December 18, 2017

Determines multiple minima of a given function in a given interval based on derivatives of the function.

connector_pane_image
datatype_icon

objective function

Formula that defines the objective function. The formula must contain one valid variable.

Entering Valid Variables

This node accepts variables that use the following format rule: variables must start with a letter or an underscore followed by any number of alphanumeric characters or underscores.

datatype_icon

start

Start point of the interval.

Default: 0

datatype_icon

end

End value of the interval where this node stops calculating values.

Default: 1

datatype_icon

step type

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

datatype_icon

error in

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

accuracy

Accuracy of the minimum of the objective function.

Default: 1E-08

datatype_icon

minima

All minima of the objective function in the interval (start, end).

datatype_icon

f(minima)

Values of the objective function at minima.

datatype_icon

error out

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.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Finding the Maxima of a Function

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(x2) 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.

spd-note-note
Note  

If the start or end values are close to the minimum value, set step type to Modified Function.

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


Recently Viewed Topics