functionfminSearch
Determines minimum of a scalar function with vector-argument x
Extends from Modelica.Icons.Function (Icon for functions).
Information
see Matlab 'fminsearch':
FMINSEARCH Multidimensional unconstrained nonlinear minimization (Nelder-Mead).
X = FMINSEARCH(FUN,X0) starts at X0 and attempts to find a local minimizer
X of the function FUN. FUN accepts input X and returns a scalar function
value F evaluated at X. X0 can be a scalar, vector or matrix.
Actually only used for precalculation of generator data (fixed function-argument),
Should be modified (domains with boundaries).
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x0 | start value, fcn(x0) is approximate min | |
| Real | x_opt | optional further arguments of function fcn |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | x | argument where function value is minimal | |
| Real | y | value of function at x |
Contents
| Name | Description |
|---|---|
| function to be minimised around x0 |