Initializes the solver of nonlinear least squares problem with linear (boundary) constraints.
?trnlspbc_initroutine initializes the solver.
After initialization, all subsequent invocations of the
?trnlspbc_solveroutine should use the values of the handle returned by
?trnlspbc_init. This handle stores internal data, including pointers to the arrays
eps. It is important to not move or deallocate these arrays until after calling the
epsarray contains a number indicating the stopping criteria:
The Jacobian matrix is singular.
j= 1, ...,
(4)> 0, an extra scaling is applied to ‘s’ after it has been selected, to ensure that it does not leave the specified domain, but scales it down to not cross the boundary. This preserves the solution inside the boundary, but may result in getting stuck in a local minimum on the boundary and exiting early due to this stopping criteria
(4)< 0, the previous behavior is maintained, which may result in the solution, x, leaving the boundary. If this occurs, try starting over with a different initial condition.
The trial step precision. If
(6)= 0, then the trial step meets the required precision (
- is the Jacobian matrix.J(x)
- Δis the trust-region area.
- is the value of the functional.F(x)
- sis the trial step.
- Length ofINTEGER.x.