|
|
◆ ivset()
| void ivset |
( |
int |
alg, |
|
|
double |
v[], |
|
|
int |
lv, |
|
|
int |
iv[], |
|
|
int |
liv |
|
) |
| |
Sets the default parameters for nonlinear optimization and nonlinear least squares routines
- Purpose
- Nonlinear optimization routines (mng, etc.) and nonlinear least squares routines (n2g, etc.) are using arrays v[] and iv[] as the parameter area. Usually these routines are called with iv[0]=0 and v[] and iv[] are automatically initialized to the default values. However, it is possible to call ivset explicitly to set the parameter area to the default values.
If the user want to call the nonlinear routines with some non-default parameters in v[] and/or iv[], the user may first call ivset to initialize the parameter area to the default values and then change the necessary parameters only.
- Parameters
-
| [in] | alg | Type of routine.
= 1: Nonlinear least squares (n2g, n2f, n2p, n2gb, n2fb, n2pb).
= 2: Nonlinear optimization (mng, mnf, mnh, mngb, mnfb, mnhb). |
| [out] | v[] | Array v[lv]
The array for the floating point parameters and work space (see description of each routine).
Depending on the type of routine, the array will be initialized to the approptiate default values. |
| [in] | lv | The length of array v[]. |
| [out] | iv[] | Array iv[liv]
The array for the integer parameters and work space (see description of each routine).
Depending on the type of routine, the array will be initialized to the approptiate default values.
iv[0] returns the error code as follows.
= 12: Successful exit.
= 15: The size of array iv[] is insufficient.
= 16: The size of array v[] is insufficient.
= 67: Invalid value for alg. |
| [in] | liv | The length of array iv[]. |
- Reference
- netlib/port
|