Checks the correctness of handle and arrays containing Jacobian matrix, objective function, lower and upper bounds, and stopping criteria.
Fortran:
res = strnlspbc_check(handle, n, m, fjac, fvec, LW, UP, eps, info)
res = dtrnlspbc_check(handle, n, m, fjac, fvec, LW, UP, eps, info)
C:
res = strnlspbc_check(&handle, &n, &m, fjac, fvec, LW, UP, eps, info);
res = dtrnlspbc_check(&handle, &n, &m, fjac, fvec, LW, UP, eps, info);
The Fortran interfaces are specified in the mkl_rci.fi include file and the C interfaces are specified in the mkl_rci.h include file.
The ?trnlspbc_check routine checks the arrays passed into the solver as input parameters. If an array contains any INF or NaN values, the routine sets the flag in output array info (see the description of the values returned in the Output Parameters section for the info array).
Type _TRNSPBC_HANDLE_t in C/C++ and INTEGER*8 in FORTRAN.
INTEGER. Length of x.
INTEGER. Length of F(x).
REAL for strnlspbc_check
DOUBLE PRECISION for dtrnlspbc_check
Array of size m by n. Contains the Jacobian matrix of the function.
REAL for strnlspbc_check
DOUBLE PRECISION for dtrnlspbc_check
Array of size m. Contains the function values at X, where fvec(i) = (yi – fi(x)).
REAL for strnlspbc_check
DOUBLE PRECISION for dtrnlspbc_check
Array of size n.
Contains low bounds for x (lwi < xi ).
REAL for strnlspbc_check
DOUBLE PRECISION for dtrnlspbc_check
Array of size n.
Contains upper bounds for x (upi > xi ).
REAL for strnlspbc_check
DOUBLE PRECISION for dtrnlspbc_check
Array of size 6; contains stopping criteria. See the values in the Description section of the ?trnlspbc_init.
INTEGER
Array of size 6.
Results of input parameter checking:
Parameter | Used for | Value |
Description |
|
---|---|---|---|---|
C Language | Fortran Language | |||
info(0) | info(1) | Flags for handle | 0 | The handle is valid. |
1 | The handle is not allocated. |
|||
info(1) | info(2) | Flags for fjac | 0 | The fjac array is valid. |
1 | The fjac array is not allocated |
|||
2 | The fjac array contains NaN. |
|||
3 | The fjac array contains Inf. |
|||
info(2) | info(3) | Flags for fvec | 0 | The fvec array is valid. |
1 | The fvec array is not allocated |
|||
2 | The fvec array contains NaN. |
|||
3 | The fvec array contains Inf. |
|||
info(3) | info(4) | Flags for LW | 0 | The LW array is valid. |
1 | The LW array is not allocated |
|||
2 | The LW array contains NaN. |
|||
3 | The LW array contains Inf. |
|||
4 | The lower bound is greater than the upper bound. |
|||
info(4) | info(5) | Flags for up | 0 | The up array is valid. |
1 | The up array is not allocated |
|||
2 | The up array contains NaN. |
|||
3 | The up array contains Inf. |
|||
4 | The upper bound is less than the lower bound. |
|||
info(5) | info(6) | Flags for eps | 0 | The eps array is valid. |
1 | The eps array is not allocated |
|||
2 | The eps array contains NaN. |
|||
3 | The eps array contains Inf. |
|||
4 | The eps array contains a value less than or equal to zero. |
INTEGER. Information about completion of the task.
res = TR_SUCCESS - the routine completed the task normally.
TR_SUCCESS is defined in the mkl_rci.h and mkl_rci.fi include files.
Copyright © 1994 - 2011, Intel Corporation. All rights reserved.