Quasi Newton VI
- Updated2025-07-30
- 4 minute(s) read
Solves the unconstrained minimization problem for an arbitrary nonlinear function. You must manually select the polymorphic instance to use.

Inputs/Outputs
function data
—
function data contains static data that the user-defined function needs at run time.
objective function
—
objective function is a reference to the VI that implements the function to optimize. Create this VI by starting from the VI template located at labview\vi.lib\gmath\NumericalOptimization\ucno_objective function template.vit.
start
—
start is a point in n dimension at which the optimization process starts.
stopping criteria
—
stopping criteria is the collection of conditions that terminate the optimization. If (function tolerance AND parameter tolerance AND gradient tolerance) OR max iterations OR max function calls then optimization terminates.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
minimum
—
minimum is the determined local minimum in n dimension.
f(minimum)
—
f(minimum) is the function value of f(X) at the determined minimum.
number of function evaluations
—
number of function evaluations is the number of times the objective function was called in the optimization process.
error out
—
error out contains error information. This output provides standard error out functionality. |
For functions that are smooth and have first and second derivatives defined, the Broyden Quasi-Newton algorithm typically converges the fastest. If you experience problems with convergence of the Broyden Quasi-Newton algorithm, the Conjugate Gradient algorithm might be able to solve the problem. The Downhill Simplex algorithm relies only on function evaluations and often is able to find a solution when the function is not smooth and the other algorithms fail to converge.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Optimization\Optimize Extended Rosenbrock.vi
function data
—
objective function
—
start
—
stopping criteria
—
function tolerance
—
max iterations
—
error in (no error)
—
minimum
—
f(minimum)
—
number of function evaluations
—
error out
—