Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
optimize_func.cpp File Reference
#include "cddefines.h"
#include "init.h"
#include "lines.h"
#include "called.h"
#include "predcont.h"
#include "radius.h"
#include "rfield.h"
#include "input.h"
#include "cloudy.h"
#include "cddrive.h"
#include "grid.h"
#include "flux.h"
Include dependency graph for optimize_func.cpp:

Functions

STATIC double chi2_func (double, double, double)
 
chi2_type optimize_func (const realnum param[], int grid_index)
 

Function Documentation

◆ chi2_func()

STATIC chi2_type chi2_func ( double ymodl,
double ymeas,
double yerr )

References BIG_CHI2, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, min(), pow2, and STATIC.

Referenced by optimize_func().

Here is the call graph for this function:

◆ optimize_func()

chi2_type optimize_func ( const realnum param[],
int grid_index = -1 )

optimize_func actual function called during evaluation of optimization run

References ASSERT, BIG_CHI2, called, cdColm(), cdEXIT, cdTemp(), cdWarnings(), chi2_func(), cloudy(), DEBUG_ENTRY, EXIT_FAILURE, exp10(), fprintf(), Flux::get(), grid, input, Singleton< t_PredCont >::Inst(), ioQQQ, LineSave, MakeInputLine(), max(), min(), t_PredCont::offset(), optimize, radius, rfield, SMALLFLOAT, vary_input(), and zero().

Referenced by evalf(), gridXspec(), optimize_do(), and optimize_phymir().

Here is the call graph for this function: