Constructor

NumCosmoMathFitNLOptlocal_new

Declaration [src]

NcmFit*
ncm_fit_nlopt_local_new (
  NcmLikelihood* lh,
  NcmMSet* mset,
  NcmFitGradType gtype,
  NcmFitNloptAlgorithm algo,
  NcmFitNloptAlgorithm local_algo
)

Description [src]

Creates a new NcmFitNLOpt object using the specified algo and local_algo. The local_algo is used to refine the solution found by algo.

Parameters

lh

Type: NcmLikelihood

A NcmLikelihood.

The data is owned by the caller of the function.
mset

Type: NcmMSet

A NcmMSet.

The data is owned by the caller of the function.
gtype

Type: NcmFitGradType

A NcmFitGradType.

algo

Type: NcmFitNloptAlgorithm

A NcmFitNloptAlgorithm.

local_algo

Type: NcmFitNloptAlgorithm

A NcmFitNloptAlgorithm.

Return value

Type: NcmFit

A new NcmFitNLOpt object.

The caller of the function takes ownership of the data, and is responsible for freeing it.