optimize Function

public function optimize(X, opt, data) result(y)

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(inout) :: X(:)

Vector of parameters to fit

class(Optimizer), intent(inout) :: opt

Optimizer object, bsaed on the Optimizer class from yaeos__optimizers

class(FittingProblem), intent(inout), optional :: data

Fitting problem to optimize

Return Value real(kind=pr)