Reporting routines.
Print report heading.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
logical, | intent(inout) | :: | head |
Variable designating whether the heading is to be printed ( |
||
integer, | intent(in) | :: | lunit |
Logical unit number to which the heading is written. |
Generate computation reports.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ipr |
Variable indicating what is to be printed. |
||
integer, | intent(in) | :: | lunrpt |
Logical unit number used for computation reports. |
||
logical, | intent(inout) | :: | head |
Variable designating whether the heading is to be printed ( |
||
logical, | intent(in) | :: | printpen |
Variable designating whether the penalty parameter is to be printed in the
iteration report ( |
||
logical, | intent(in) | :: | firstitr |
Variable designating whether this is the first iteration ( |
||
logical, | intent(in) | :: | didvcv |
Variable designating whether the covariance matrix was computed ( |
||
integer, | intent(in) | :: | iflag |
Variable designating what is to be printed. |
||
integer, | intent(in) | :: | n |
Number of observations. |
||
integer, | intent(in) | :: | m |
Number of columns of data in the explanatory variable. |
||
integer, | intent(in) | :: | np |
Number of function parameters. |
||
integer, | intent(in) | :: | q |
Number of responses per observation. |
||
integer, | intent(in) | :: | npp |
Number of function parameters being estimated. |
||
integer, | intent(in) | :: | nnzw |
Number of nonzero weighted observations. |
||
integer, | intent(in) | :: | msgb(q*np+1) |
Error checking results for the Jacobian with respect to |
||
integer, | intent(in) | :: | msgd(q*m+1) |
Error checking results for the Jacobian with respect to |
||
real(kind=wp), | intent(in) | :: | beta(np) |
Function parameters. |
||
real(kind=wp), | intent(in) | :: | y(n,q) |
Response variable. Unused when the model is implicit. |
||
real(kind=wp), | intent(in) | :: | x(n,m) |
Explanatory variable. |
||
real(kind=wp), | intent(in) | :: | delta(n,m) |
Estimated errors in the explanatory variables. |
||
real(kind=wp), | intent(in) | :: | we(ldwe,ld2we,q) |
|
||
integer, | intent(in) | :: | ldwe |
Leading dimension of array |
||
integer, | intent(in) | :: | ld2we |
Second dimension of array |
||
real(kind=wp), | intent(in) | :: | wd(ldwd,ld2wd,m) |
|
||
integer, | intent(in) | :: | ldwd |
Leading dimension of array |
||
integer, | intent(in) | :: | ld2wd |
Second dimension of array |
||
integer, | intent(in) | :: | ifixb(np) |
Values designating whether the elements of |
||
integer, | intent(in) | :: | ifixx(ldifx,m) |
Values designating whether the elements of |
||
integer, | intent(in) | :: | ldifx |
Leading dimension of array |
||
real(kind=wp), | intent(in) | :: | lower(np) |
Lower bounds for |
||
real(kind=wp), | intent(in) | :: | upper(np) |
Upper bounds for |
||
real(kind=wp), | intent(in) | :: | ssf(np) |
Scaling values for |
||
real(kind=wp), | intent(in) | :: | tt(ldtt,m) |
Scaling values for |
||
integer, | intent(in) | :: | ldtt |
Leading dimension of array |
||
real(kind=wp), | intent(in) | :: | stpb(np) |
Relative step used for computing finite difference derivatives with respect
to |
||
real(kind=wp), | intent(in) | :: | stpd(ldstpd,m) |
Relative step used for computing finite difference derivatives with respect
to |
||
integer, | intent(in) | :: | ldstpd |
Leading dimension of array |
||
integer, | intent(in) | :: | job |
Variable controlling problem initialization and computational method. |
||
integer, | intent(in) | :: | neta |
Number of accurate digits in the function results. |
||
real(kind=wp), | intent(in) | :: | taufac |
Factor used to compute the initial trust region diameter. |
||
real(kind=wp), | intent(in) | :: | sstol |
Sum-of-squares convergence stopping tolerance. |
||
real(kind=wp), | intent(in) | :: | partol |
Parameter convergence stopping tolerance. |
||
integer, | intent(in) | :: | maxit |
Maximum number of iterations allowed. |
||
real(kind=wp), | intent(in) | :: | wss(3) |
Sum-of-squares of the weighted |
||
real(kind=wp), | intent(in) | :: | rvar |
Residual variance. |
||
integer, | intent(in) | :: | idf |
Degrees of freedom of the fit, equal to the number of observations with nonzero weighted derivatives minus the number of parameters being estimated. |
||
real(kind=wp), | intent(in) | :: | sdbeta(np) |
Standard errors of the estimated parameters. |
||
integer, | intent(in) | :: | niter |
Number of iterations. |
||
integer, | intent(in) | :: | nfev |
Number of function evaluations. |
||
integer, | intent(in) | :: | njev |
Number of Jacobian evaluations. |
||
real(kind=wp), | intent(in) | :: | actred |
Actual relative reduction in the sum-of-squares. |
||
real(kind=wp), | intent(in) | :: | prered |
Predicted relative reduction in the sum-of-squares. |
||
real(kind=wp), | intent(in) | :: | tau |
Trust region diameter. |
||
real(kind=wp), | intent(in) | :: | pnorm |
Norm of the scaled estimated parameters. |
||
real(kind=wp), | intent(in) | :: | alpha |
Levenberg-Marquardt parameter. |
||
real(kind=wp), | intent(in) | :: | f(n,q) |
Estimated values of |
||
real(kind=wp), | intent(in) | :: | rcond |
Approximate reciprocal condition of |
||
integer, | intent(in) | :: | irank |
Rank deficiency of the Jacobian with respect to |
||
integer, | intent(in) | :: | info |
Variable designating why the computations were stopped. |
||
integer, | intent(in) | :: | istop |
Variable designating whether there are problems computing the function at the
current |
Generate initial summary report.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ipr |
Value indicating the report to be printed. |
||
integer, | intent(in) | :: | lunrpt |
Logical unit number for the computation reports. |
||
logical, | intent(in) | :: | anajac |
Variable designating whether the Jacobians are computed by finite differences
( |
||
logical, | intent(in) | :: | cdjac |
Variable designating whether the Jacobians are computed by central differences
( |
||
logical, | intent(in) | :: | chkjac |
Variable designating whether the user-supplied Jacobians are to be checked
( |
||
logical, | intent(in) | :: | initd |
Variable designating whether |
||
logical, | intent(in) | :: | restart |
Variable designating whether the call is a restart ( |
||
logical, | intent(in) | :: | isodr |
Variable designating whether the solution is by ODR ( |
||
logical, | intent(in) | :: | implicit |
Variable designating whether the solution is by implicit ODR ( |
||
logical, | intent(in) | :: | dovcv |
Variable designating whether the covariance matrix is to be computed ( |
||
logical, | intent(in) | :: | redoj |
Variable designating whether the Jacobian matrix is to be recomputed for the
computation of the covariance matrix ( |
||
integer, | intent(in) | :: | msgb1 |
Error checking results for the Jacobian with respect to |
||
integer, | intent(in) | :: | msgb(q,np) |
Error checking results for the Jacobian with respect to |
||
integer, | intent(in) | :: | msgd1 |
Error checking results for the Jacobian with respect to |
||
integer, | intent(in) | :: | msgd(q,m) |
Error checking results for the Jacobian with respect to |
||
integer, | intent(in) | :: | n |
Number of observations. |
||
integer, | intent(in) | :: | m |
Number of columns of data in the explanatory variable. |
||
integer, | intent(in) | :: | np |
Number of function parameters. |
||
integer, | intent(in) | :: | q |
Number of responses per observation. |
||
integer, | intent(in) | :: | npp |
Number of function parameters being estimated. |
||
integer, | intent(in) | :: | nnzw |
Number of nonzero observational error weights. |
||
real(kind=wp), | intent(in) | :: | x(n,m) |
Explanatory variable. |
||
integer, | intent(in) | :: | ifixx(ldifx,m) |
Values designating whether the elements of |
||
integer, | intent(in) | :: | ldifx |
Leading dimension of array |
||
real(kind=wp), | intent(in) | :: | delta(n,m) |
Estimated errors in the explanatory variables. |
||
real(kind=wp), | intent(in) | :: | wd(ldwd,ld2wd,m) |
|
||
integer, | intent(in) | :: | ldwd |
Leading dimension of array |
||
integer, | intent(in) | :: | ld2wd |
Second dimension of array |
||
real(kind=wp), | intent(in) | :: | tt(ldtt,m) |
Scaling values for |
||
integer, | intent(in) | :: | ldtt |
Leading dimension of array |
||
real(kind=wp), | intent(in) | :: | stpd(ldstpd,m) |
Relative step used for computing finite difference derivatives with respect to |
||
integer, | intent(in) | :: | ldstpd |
Leading dimension of array |
||
real(kind=wp), | intent(in) | :: | y(n,q) |
Response variable. Unused when the model is implicit. |
||
real(kind=wp), | intent(in) | :: | we(ldwe,ld2we,q) |
|
||
integer, | intent(in) | :: | ldwe |
Leading dimension of array |
||
integer, | intent(in) | :: | ld2we |
Second dimension of array |
||
real(kind=wp), | intent(in) | :: | penalty |
Penalty parameter for an implicit model. |
||
real(kind=wp), | intent(in) | :: | beta(np) |
Function parameters. |
||
integer, | intent(in) | :: | ifixb(np) |
Values designating whether the elements of |
||
real(kind=wp), | intent(in) | :: | ssf(np) |
Scaling values for |
||
real(kind=wp), | intent(in) | :: | stpb(np) |
Relative step used for computing finite difference derivatives with respect to |
||
real(kind=wp), | intent(in) | :: | lower(np) |
Lower bounds for |
||
real(kind=wp), | intent(in) | :: | upper(np) |
Upper bounds for |
||
integer, | intent(in) | :: | job |
Variable controlling problem initialization and computational method. |
||
integer, | intent(in) | :: | neta |
Number of accurate digits in the function results. A negative value indicates
that |
||
real(kind=wp), | intent(in) | :: | taufac |
Factor used to compute the initial trust region diameter. |
||
real(kind=wp), | intent(in) | :: | sstol |
Sum-of-squares convergence stopping tolerance. |
||
real(kind=wp), | intent(in) | :: | partol |
Parameter convergence stopping tolerance. |
||
integer, | intent(in) | :: | maxit |
Maximum number of iterations allowed. |
||
real(kind=wp), | intent(in) | :: | wss |
Sum-of-squares of the weighted |
||
real(kind=wp), | intent(in) | :: | wssdel |
Sum-of-squares of the weighted |
||
real(kind=wp), | intent(in) | :: | wsseps |
Sum-of-squares of the weighted |
Generate iteration reports.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ipr |
Value indicating the report to be printed. |
||
integer, | intent(in) | :: | lunrpt |
Logical unit number used for computation reports. |
||
logical, | intent(in) | :: | firstitr |
Variable designating whether this is the first iteration ( |
||
logical, | intent(in) | :: | implicit |
Variable designating whether the solution is by implicit ODR ( |
||
logical, | intent(in) | :: | printpen |
Variable designating whether the penalty parameter is to be printed in the
iteration report ( |
||
real(kind=wp), | intent(in) | :: | penalty |
Penalty parameter for an implicit model. |
||
integer, | intent(in) | :: | niter |
Number of iterations. |
||
integer, | intent(in) | :: | nfev |
Number of function evaluations. |
||
real(kind=wp), | intent(in) | :: | wss |
Sum-of-squares of the weighted |
||
real(kind=wp), | intent(in) | :: | actred |
Actual relative reduction in the sum-of-squares. |
||
real(kind=wp), | intent(in) | :: | prered |
Predicted relative reduction in the sum-of-squares. |
||
real(kind=wp), | intent(in) | :: | alpha |
Levenberg-Marquardt parameter. |
||
real(kind=wp), | intent(in) | :: | tau |
Trust region diameter. |
||
real(kind=wp), | intent(in) | :: | pnorm |
Norm of the scaled estimated parameters. |
||
integer, | intent(in) | :: | np |
Number of function parameters. |
||
real(kind=wp), | intent(in) | :: | beta(np) |
Function parameters. |
Generate final summary report.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | ipr |
Variable indicating what is to be printed. |
||
integer, | intent(in) | :: | lunrpt |
Logical unit number used for computation reports. |
||
logical, | intent(in) | :: | isodr |
Variable designating whether the solution is by ODR ( |
||
logical, | intent(in) | :: | implicit |
Variable designating whether the solution is by implicit ODR ( |
||
logical, | intent(in) | :: | didvcv |
Variable designating whether the covariance matrix was computed ( |
||
logical, | intent(in) | :: | dovcv |
Variable designating whether the covariance matrix was to be computed
( |
||
logical, | intent(in) | :: | redoj |
Variable designating whether the Jacobian matrix is to be recomputed for the
computation of the covariance matrix ( |
||
logical, | intent(in) | :: | anajac |
Variable designating whether the Jacobians are computed by finite differences
( |
||
integer, | intent(in) | :: | n |
Number of observations. |
||
integer, | intent(in) | :: | m |
Number of columns of data in the explanatory variable. |
||
integer, | intent(in) | :: | np |
Number of function parameters. |
||
integer, | intent(in) | :: | q |
Number of responses per observation. |
||
integer, | intent(in) | :: | npp |
Number of function parameters being estimated. |
||
integer, | intent(in) | :: | info |
Variable designating why the computations were stopped. |
||
integer, | intent(in) | :: | niter |
Number of iterations. |
||
integer, | intent(in) | :: | nfev |
Number of function evaluations. |
||
integer, | intent(in) | :: | njev |
Number of Jacobian evaluations. |
||
integer, | intent(in) | :: | irank |
Rank deficiency of the Jacobian with respect to |
||
real(kind=wp), | intent(in) | :: | rcond |
Approximate reciprocal condition of |
||
integer, | intent(in) | :: | istop |
Variable designating whether there are problems computing the function at the
current |
||
real(kind=wp), | intent(in) | :: | wss |
Sum-of-squares of the weighted |
||
real(kind=wp), | intent(in) | :: | wssdel |
Sum-of-squares of the weighted |
||
real(kind=wp), | intent(in) | :: | wsseps |
Sum-of-squares of the weighted |
||
real(kind=wp), | intent(in) | :: | penalty |
Penalty parameter for an implicit model. |
||
real(kind=wp), | intent(in) | :: | rvar |
Residual variance. |
||
integer, | intent(in) | :: | idf |
Degrees of freedom of the fit, equal to the number of observations with nonzero weighted derivatives minus the number of parameters being estimated. |
||
real(kind=wp), | intent(in) | :: | beta(np) |
Function parameters. |
||
real(kind=wp), | intent(in) | :: | sdbeta(np) |
Standard errors of the estimated parameters. |
||
integer, | intent(in) | :: | ifixb2(np) |
Values designating whether the elements of |
||
real(kind=wp), | intent(in) | :: | f(n,q) |
Estimated values of |
||
real(kind=wp), | intent(in) | :: | delta(n,m) |
Estimated errors in the explanatory variables. |
||
real(kind=wp), | intent(in) | :: | lower(np) |
Lower bound on |
||
real(kind=wp), | intent(in) | :: | upper(np) |
Upper bound on |
Controlling routine for printing error reports.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(inout) | :: | info |
Variable designating why the computations were stopped. |
||
integer, | intent(in) | :: | lunerr |
Logical unit number used for error messages. |
||
integer, | intent(in) | :: | n |
Number of observations. |
||
integer, | intent(in) | :: | m |
Number of columns of data in the explanatory variable. |
||
integer, | intent(in) | :: | np |
Number of function parameters. |
||
integer, | intent(in) | :: | q |
Number of responses per observation. |
||
integer, | intent(in) | :: | ldscld |
Leading dimension of array |
||
integer, | intent(in) | :: | ldstpd |
Leading dimension of array |
||
integer, | intent(in) | :: | ldwe |
Leading dimension of array |
||
integer, | intent(in) | :: | ld2we |
Second dimension of array |
||
integer, | intent(in) | :: | ldwd |
Leading dimension of array |
||
integer, | intent(in) | :: | ld2wd |
Second dimension of array |
||
integer, | intent(in) | :: | lrwkmin |
Minimum acceptable length of array |
||
integer, | intent(in) | :: | liwkmin |
Minimum acceptable length of array |
||
real(kind=wp), | intent(in) | :: | fjacb(n,np,q) |
Jacobian with respect to |
||
real(kind=wp), | intent(in) | :: | fjacd(n,m,q) |
Jacobian with respect to |
||
real(kind=wp), | intent(in) | :: | diff(q,np+m) |
Relative differences between the user-supplied and finite difference derivatives for each derivative checked. |
||
integer, | intent(in) | :: | msgb(q*np+1) |
Error checking results for the Jacobian with respect to |
||
logical, | intent(in) | :: | isodr |
Variable designating whether the solution is by ODR ( |
||
integer, | intent(in) | :: | msgd(q*m+1) |
Error checking results for the Jacobian with respect to |
||
real(kind=wp), | intent(in) | :: | xplusd(n,m) |
Values |
||
integer, | intent(in) | :: | nrow |
Row number of the explanatory variable array at which the derivative is to be checked. |
||
integer, | intent(in) | :: | neta |
Number of reliable digits in the model. |
||
integer, | intent(in) | :: | ntol |
Number of digits of agreement required between the finite difference and the user-supplied derivatives. |
Print error reports.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | lunerr |
Logical unit number used for error messages. |
||
integer, | intent(inout) | :: | info |
Variable designating why the computations were stopped. |
||
integer, | intent(in) | :: | d1 |
1st digit (from the left) of |
||
integer, | intent(in) | :: | d2 |
2nd digit (from the left) of |
||
integer, | intent(in) | :: | d3 |
3rd digit (from the left) of |
||
integer, | intent(in) | :: | d4 |
4th digit (from the left) of |
||
integer, | intent(in) | :: | d5 |
5th digit (from the left) of |
||
integer, | intent(in) | :: | n |
Number of observations. |
||
integer, | intent(in) | :: | m |
Number of columns of data in the explanatory variable. |
||
integer, | intent(in) | :: | q |
Number of responses per observation. |
||
integer, | intent(in) | :: | ldscld |
Leading dimension of array |
||
integer, | intent(in) | :: | ldstpd |
Leading dimension of array |
||
integer, | intent(in) | :: | ldwe |
Leading dimension of array |
||
integer, | intent(in) | :: | ld2we |
Second dimension of array |
||
integer, | intent(in) | :: | ldwd |
Leading dimension of array |
||
integer, | intent(in) | :: | ld2wd |
Second dimension of array |
||
integer, | intent(in) | :: | lrwkmin |
Minimum acceptable length of array |
||
integer, | intent(in) | :: | liwkmin |
Minimum acceptable length of array |
Generate the derivative checking report.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | lunerr |
Logical unit number used for error messages. |
||
integer, | intent(in) | :: | n |
Number of observations. |
||
integer, | intent(in) | :: | m |
Number of columns of data in the explanatory variable. |
||
integer, | intent(in) | :: | np |
Number of function parameters. |
||
integer, | intent(in) | :: | q |
Number of responses per observation. |
||
real(kind=wp), | intent(in) | :: | fjacb(n,np,q) |
Jacobian with respect to |
||
real(kind=wp), | intent(in) | :: | fjacd(n,m,q) |
Jacobian with respect to |
||
real(kind=wp), | intent(in) | :: | diff(q,np+m) |
Relative differences between the user-supplied and finite difference derivatives for each derivative checked. |
||
integer, | intent(in) | :: | msgb1 |
Error checking results for the Jacobian with respect to |
||
integer, | intent(in) | :: | msgb(q,np) |
Error checking results for the Jacobian with respect to |
||
logical, | intent(in) | :: | isodr |
Variable designating whether the solution is by ODR ( |
||
integer, | intent(in) | :: | msgd1 |
Error checking results for the Jacobian with respect to |
||
integer, | intent(in) | :: | msgd(q,m) |
Error checking results for the Jacobian with respect to |
||
real(kind=wp), | intent(in) | :: | xplusd(n,m) |
Values of |
||
integer, | intent(in) | :: | nrow |
Row number of the explanatory variable array at which the derivative is to be checked. |
||
integer, | intent(in) | :: | neta |
Number of reliable digits in the model. |
||
integer, | intent(in) | :: | ntol |
Number of digits of agreement required between the finite difference and the user-supplied derivatives. |
Print error reports indicating that computations were stopped in user-supplied
subroutine fcn
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer | :: | lunerr |
Logical unit number used for error messages. |
|||
integer | :: | d2 |
2nd digit (from the left) of |
|||
integer | :: | d3 |
3rd digit (from the left) of |