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

TypeNameDefaultDescription
Realx0start value, fcn(x0) is approximate min
Realx_optoptional further arguments of function fcn

Outputs

TypeNameDefaultDescription
Realxargument where function value is minimal
Realyvalue of function at x

Contents

NameDescription
fcnprotectedfunction to be minimised around x0