FittingProblem Derived Type

type, public, abstract :: FittingProblem

Fitting problem setting

Description

This derived type holds all the relevant information for a parameter optimization problem. It keeps the base model structure that will be optimized and a procedure get_model_from_X that should reconstruct the model with the desired parameters to optimize.


Components

Type Visibility Attributes Name Initial
type(EquilibriumState), public, allocatable :: experimental_points(:)

Experimental points to fit

class(ArModel), public, allocatable :: model

Residual Helmholtz Model to fit

logical, public :: verbose = .false.

If true log the fitting process


Type-Bound Procedures

procedure(model_from_X), public, deferred :: get_model_from_X

  • subroutine model_from_X(problem, X) Prototype

    Function that returns a setted model from the parameters vector

    Arguments

    Type IntentOptional Attributes Name
    class(FittingProblem), intent(inout) :: problem

    Fitting problem to optimize

    real(kind=pr), intent(in) :: X(:)

    Vector of parameters to fit