Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

fmin_nonlin (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: optimization

Requires: MathScript RT Module


xmin = fmin_nonlin(fun, xstart)

[xmin, fval] = fmin_nonlin(fun, xstart)

Legacy Name: fminunc


Uses the Broyden Quasi-Newton method to compute the n-dimensional minimum of a function.



Name Description
fun Specifies the name of the function, defined and saved in a .m file, whose minimum you want to compute. The function you specify must accept a vector of the same length as xstart and return a scalar. fun is a string.
xstart Specifies the point at which to begin searching for a minimum value of fun. xstart is a real, double-precision vector.


Name Description
xmin Returns the point at which fun has the minimum value. xmin is a real, double-precision vector.
fval Returns the value of fun evaluated at xmin. fval is a real, double-precision scalar.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized


% The myfun function is defined by:
% function f = myfun(x)
% f = -x(1)*x(2)^2+x(2)^2+x(1)^2-x(1);
[XMIN, FVAL] = fmin_nonlin('myfun', [0;0;0])

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful