Quasi Newton formula string 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
X
—
X is an array of strings representing the x variables.
f(X)
—
f(X) is the string representing the function of the x variables. The formulas can contain any number of valid variables.
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
X
—
f(X)
—
start
—
stopping criteria
—
function tolerance
—
max iterations
—
error in (no error)
—
minimum
—
f(minimum)
—
number of function evaluations
—
error out
—