linesearch_func Interface

interface
private subroutine linesearch_func(me, xold, p, x, f, fvec, fjac, fjac_sparse)

Arguments

Type IntentOptional Attributes Name
class(nlesolver_type), intent(inout) :: me
real(kind=wp), intent(in), dimension(me%n) :: xold

previous value of x

real(kind=wp), intent(in), dimension(me%n) :: p

search direction

real(kind=wp), intent(out), dimension(me%n) :: x

new x

real(kind=wp), intent(inout) :: f
  • input: current magnitude of fvec,
  • output: new value of f
real(kind=wp), intent(inout), dimension(me%m) :: fvec
  • input: current function vector,
  • output: new function vector
real(kind=wp), intent(in), optional, dimension(:,:) :: fjac

jacobian matrix [dense]

real(kind=wp), intent(in), optional, dimension(:) :: fjac_sparse

jacobian matrix [sparse]

Description

line search method. Note that not all inputs/outputs are used by all methods.