Method

NumCosmoMathFitrun_restart

Declaration [src]

gboolean
ncm_fit_run_restart (
  NcmFit* fit,
  NcmFitRunMsgs mtype,
  const gdouble abstol,
  const gdouble reltol,
  NcmMSet* save_mset,
  const gchar* mset_file
)

Description [src]

Re-runs the fit until the difference between fits are less than the required tolerance, i.e., $$ m2lnL_{i-1} - m2lnL_i < \mathrm{abstol} + \mathrm{reltol}\vert m2lnL_{i-1}\vert. $$.

Parameters

mtype

Type: NcmFitRunMsgs

A NcmFitRunMsgs.

abstol

Type: const gdouble

Restart absolute tolerance.

reltol

Type: const gdouble

Restart relative tolerance.

save_mset

Type: NcmMSet

The NcmMSet used to save progress.

The argument can be NULL.
The data is owned by the caller of the method.
mset_file

Type: const gchar*

The file name to save progress.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if the minimization went through.