Optimization Functions in MATLAB
Optimization Functions in MATLAB
Optimization functions in MATLAB are categorized into Optimizers, Equation Solvers, and Output
Controllers.
1) Optimizers
a) fminbnd
Purpose: Finds the local minimum of a single-variable function within a specified interval.
Syntax:
Description: Returns the value of x that minimizes the scalar-valued function fun in the
interval x1 < x < x2.
Arguments:
b) fminsearch
Syntax:
x = fminsearch(fun, x0)
Description: Starts from the initial guess x0 and searches for a local minimum of the
function fun.
Arguments:
c) lsqnonneg
Syntax:
x = lsqnonneg(C, d)
Arguments:
o C: Coefficient matrix.
d) linprog
Syntax:
Arguments:
e) quadprog
Syntax:
Arguments:
f) lsqlin
Purpose: Solves constrained linear least-squares problems.
Syntax:
Arguments:
2) Equation Solvers
a) fzero
Syntax:
x = fzero(fun, x0)
Description: Attempts to find a value of x where fun(x) = 0, i.e., where the function changes
sign.
Arguments:
b) fsolve
Syntax:
Arguments:
3) Output Controllers
a) optimget
Syntax:
Description: Returns the value of a specific parameter 'param' from the options structure.
Arguments:
b) optimset
Syntax:
Description: Returns an options structure with specified parameters set using name-value
pairs.
Arguments:
c) outputfcn
Syntax:
Arguments: