SDDSlib
|
Finds the minimum of a multi-parameter function with parameter constraints. More...
#include "mdb.h"
Go to the source code of this file.
Functions | |
double | minc (double *fn, double *x, double *dx, double *dx_lim, double *xlo, double *xhi, long np, long ns_max, long p_flag) |
Finds the minimum of a multi-parameter function with constraints. | |
Finds the minimum of a multi-parameter function with parameter constraints.
This file contains the implementation of the minc() function, which searches for the minimum of a multi-parameter function while respecting constraints on the parameter ranges.
Definition in file minc.c.
double minc | ( | double * | fn, |
double * | x, | ||
double * | dx, | ||
double * | dx_lim, | ||
double * | xlo, | ||
double * | xhi, | ||
long | np, | ||
long | ns_max, | ||
long | p_flag ) |
Finds the minimum of a multi-parameter function with constraints.
The minc() function searches for the minimum value of a user-defined multi-parameter function, allowing constraints on the range of each parameter. It iteratively adjusts the parameters within specified limits to find the function's minimum value.
fn | Pointer to the function to be minimized. |
x | Array of starting values for the parameters. |
dx | Array of step sizes for each parameter. |
dx_lim | Array of step size limits for each parameter. |
xlo | Array of lower bounds for the parameters. |
xhi | Array of upper bounds for the parameters. |
np | Number of parameters. |
ns_max | Maximum number of steps to take before increasing the step size. |
p_flag | If >= 0, prints information during the minimization process. |
Definition at line 40 of file minc.c.