cloudy trunk
Loading...
Searching...
No Matches
optimize_func.cpp File Reference
#include "cddefines.h"
#include "init.h"
#include "lines.h"
#include "prt.h"
#include "called.h"
#include "predcont.h"
#include "radius.h"
#include "rfield.h"
#include "input.h"
#include "cloudy.h"
#include "cddrive.h"
#include "optimize.h"
#include "grid.h"
Include dependency graph for optimize_func.cpp:

Go to the source code of this file.

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 )

Definition at line 470 of file optimize_func.cpp.

References BIG_CHI2, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, 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

Definition at line 20 of file optimize_func.cpp.

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

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

Here is the call graph for this function: