Owning Palette: Optimization VIs
Requires: Full Development System
Solves the unconstrained minimization problem for an arbitrary nonlinear function. You must manually select the polymorphic instance to use.
Use the pull-down menu to select an instance of this VI.
![]() |
![]() |
![]() |
Note Uses the Broyden Quasi-Newton method. |
![]() |
function data contains static data that the user-defined function needs at run time. | ||||||||||||
![]() |
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 is a point in n dimension at which the optimization process starts. | ||||||||||||
![]() |
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 describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||
![]() |
minimum is the determined local minimum in n dimension. | ||||||||||||
![]() |
f(minimum) is the function value of f(X) at the determined minimum. | ||||||||||||
![]() |
number of function evaluations is the number of times the objective function was called in the optimization process. | ||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
![]() |
Note Uses the Broyden Quasi-Newton method. |
![]() |
X is an array of strings representing the x variables. | ||||||||||||
![]() |
f(X) is the string representing the function of the x variables. The formulas can contain any number of valid variables. | ||||||||||||
![]() |
start is a point in n dimension at which the optimization process starts. | ||||||||||||
![]() |
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 describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||
![]() |
minimum is the determined local minimum in n dimension. | ||||||||||||
![]() |
f(minimum) is the function value of f(X) at the determined minimum. | ||||||||||||
![]() |
number of function evaluations is the number of times the objective function was called in the optimization process. | ||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
![]() |
function data contains static data that the user-defined function needs at run time. | ||||||||||||
![]() |
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 is a point in n dimension at which the optimization process starts. | ||||||||||||
![]() |
conjugate gradient settings
| ||||||||||||
![]() |
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 describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||
![]() |
minimum is the determined local minimum in n dimension. | ||||||||||||
![]() |
f(minimum) is the function value of f(X) at the determined minimum. | ||||||||||||
![]() |
number of function evaluations is the number of times the objective function was called in the optimization process. | ||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
![]() |
X is an array of strings representing the x variables. | ||||||||||||
![]() |
f(X) is the string representing the function of the x variables. The formulas can contain any number of valid variables. | ||||||||||||
![]() |
start is a point in n dimension at which the optimization process starts. | ||||||||||||
![]() |
conjugate gradient settings
| ||||||||||||
![]() |
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 describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||
![]() |
minimum is the determined local minimum in n dimension. | ||||||||||||
![]() |
f(minimum) is the function value of f(X) at the determined minimum. | ||||||||||||
![]() |
number of function evaluations is the number of times the objective function was called in the optimization process. | ||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
Determines a local minimum of a function of n independent variables with the Downhill Simplex method.
![]() |
function data contains static data that the user-defined function needs at run time. | ||||||||||||
![]() |
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 is a point in n dimension at which the optimization process starts. | ||||||||||||
![]() |
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 describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||
![]() |
minimum is the determined local minimum in n dimension. | ||||||||||||
![]() |
f(minimum) is the function value of f(X) at the determined minimum. | ||||||||||||
![]() |
number of function evaluations is the number of times the objective function was called in the optimization process. | ||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |
![]() |
X is an array of strings representing the x variables. | ||||||||||||
![]() |
f(X) is the string representing the function of the x variables. The formulas can contain any number of valid variables. | ||||||||||||
![]() |
start is a point in n dimension at which the optimization process starts. | ||||||||||||
![]() |
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 describes error conditions that occur before this node runs. This input provides standard error in functionality. | ||||||||||||
![]() |
minimum is the determined local minimum in n dimension. | ||||||||||||
![]() |
f(minimum) is the function value of f(X) at the determined minimum. | ||||||||||||
![]() |
number of function evaluations is the number of times the objective function was called in the optimization process. | ||||||||||||
![]() |
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.
Refer to the Optimize Extended Rosenbrock VI in the labview\examples\Mathematics\Optimization directory for an example of using the Unconstrained Optimization VI.