Go to the source code of this file.
Functions | |
| void | _simplexGenNew (int M, double F) |
| double | simplex (double(*_fun)(double *), int parNr, double *par, double *delta, double maxerr, int maxiter) |
Variables | |
| int | _simplexParNr |
| int | Worst |
| int | NewPnt |
| double | _simplexP [MAX_PARAMETERS+3][MAX_PARAMETERS] |
| double | _simplexC [MAX_PARAMETERS] |
| double | _simplexR [MAX_PARAMETERS+3] |
| double(* | _simplexFunc )(double *) |
| void _simplexGenNew | ( | int | M, |
| double | F | ||
| ) |
| double simplex | ( | double(*)(double *) | _fun, |
| int | parNr, | ||
| double * | par, | ||
| double * | delta, | ||
| double | maxerr, | ||
| int | maxiter | ||
| ) |
Simplex function minimization routine. Note that if any constraints are required for the parameter values they must be set in the function.
| _fun | Pointer to the function to be minimized. It must be defined in main program as: double func(double *p); where p is the parameter array. |
| parNr | The number of unknown parameters |
| par | This double array contains the minimized parameters. Initial values must be set. |
| delta | This double array contains the initial changes to parameters. To fix a parameter, set the corresponding delta to 0. |
| maxerr | Maximal error allowed (stopping rule #1) |
| maxiter | Maximal nr of iterations allowed (stopping rule #2) |
Definition at line 52 of file simplex.c.
References _simplexC, _simplexFunc, _simplexGenNew(), _simplexP, _simplexParNr, _simplexR, NewPnt, SIMPLEX_TEST, and Worst.
| double _simplexC[MAX_PARAMETERS] |
Definition at line 41 of file simplex.c.
Referenced by _simplexGenNew(), and simplex().
| double(* _simplexFunc)(double *) |
| double _simplexP[MAX_PARAMETERS+3][MAX_PARAMETERS] |
Definition at line 41 of file simplex.c.
Referenced by _simplexGenNew(), and simplex().
| int _simplexParNr |
Local variables for this routine
Definition at line 40 of file simplex.c.
Referenced by _simplexGenNew(), and simplex().
| double _simplexR[MAX_PARAMETERS+3] |
Definition at line 41 of file simplex.c.
Referenced by _simplexGenNew(), and simplex().
| int NewPnt |
Definition at line 40 of file simplex.c.
Referenced by _simplexGenNew(), and simplex().
| int Worst |
Definition at line 40 of file simplex.c.
Referenced by _simplexGenNew(), and simplex().
1.8.0