Usage: |
lmin = nmlinmin(func,fder,x0,direc {,stepmax,nowarn})
|
Input: |
| func | name of function (string) whose minimum is to be
found. The function should have just one
parameter x (vector n x 1). As a result, the function
should return a scalar.
|
| fder | dummy; name of function (string) computing the gradient of func;
not used in nmlinmin, only necessary for compatibility of format
with nmlinminder
|
| x0 | n x 1 vector, starting point for the line minimization
|
| direc | n x 1 vector, direction vector of a line for the line minimization
|
| stepmax | dummy; not used in nmlinmin, only necessary for compatibility of
format with nmlinminder
|
| nowarn | dummy; not used in nmlinmin, only necessary for compatibility of
format with nmlinminder
|
Output: |
| lmin.xlmin | n x 1 vector, minimum of func on the line x0 + span{direc} |
| lmin.flmin | scalar, minimum function value on the line, f(xlmin) |
| lmin.moved | n x 1 vector, vector displacement during line minimization,
moved = xlmin - x0 |