17 void vary_input(
bool *lgLimOK,
int grid_index);
68 template<
class X,
class Y = X,
int NP = 32,
int NSTR = 32>
120 X
p_delta(
int i,
int j )
const {
return ( i == j ) ? X(1.) : X(0.); }
129 void init_strings(
const string&,
const string&,
const char* );
269 for(
long i=0; i <
LIMPAR; ++i )
void p_rd_state(const char *)
Definition: optimize_phymir.cpp:141
X p_absmin[NP]
Definition: optimize.h:75
realnum optint
Definition: optimize.h:248
Y yval() const
Definition: optimize.h:141
realnum varmax[LIMPAR]
Definition: optimize.h:184
int32 p_sdim
Definition: optimize.h:90
X xval(int i) const
Definition: optimize.h:138
X xmin(int i) const
Definition: optimize.h:139
X p_absmax[NP]
Definition: optimize.h:76
Definition: optimize.h:167
const int FILENAME_PATH_LENGTH_2
Definition: cddefines.h:306
int32 p_curcpu
Definition: optimize.h:96
long int nRangeSet
Definition: optimize.h:201
vector< realnum > ColDen_Obs
Definition: optimize.h:211
long int nvfpnt[LIMPAR]
Definition: optimize.h:195
vector< realnum > xLineInt_error
Definition: optimize.h:221
vector< Flux > ContNFnu
Definition: optimize.h:239
Definition: optimize.h:63
chi2_type optDiam
Definition: optimize.h:233
Y p_execute_job(const X[], int, int)
Definition: optimize_phymir.cpp:188
bool lgTrOpt
Definition: optimize.h:251
chi2_type optimize_func(const realnum param[], int grid_index=-1)
Definition: optimize_func.cpp:19
X xmax(int i) const
Definition: optimize.h:140
long int nOptimiz
Definition: optimize.h:245
phymir_state()
Definition: optimize.h:125
int32 p_noptim
Definition: optimize.h:92
chi2_type optDiamErr
Definition: optimize.h:234
Definition: optimize.h:63
realnum varang[LIMPAR][2]
Definition: optimize.h:198
void p_wr_state(const char *) const
Definition: optimize_phymir.cpp:85
const chi2_type BIG_CHI2
Definition: optimize.h:49
void optimize_phymir(realnum[], const realnum[], long, chi2_type *, realnum)
t_optimize optimize
Definition: optimize.cpp:6
char p_chStr1[NSTR]
Definition: optimize.h:99
X p_a2[NP][NP]
Definition: optimize.h:79
void vary_input(bool *lgLimOK, int grid_index)
Definition: vary_input.cpp:9
bool lgVaryOn
Definition: optimize.h:170
X p_delta(int i, int j) const
Definition: optimize.h:120
char chVarFmt[LIMPAR][FILENAME_PATH_LENGTH_2]
Definition: optimize.h:262
int32 noptim() const
Definition: optimize.h:142
realnum vparm[LIMEXT][LIMPAR]
Definition: optimize.h:189
double SavGenericData[10]
Definition: optimize.h:265
bool lgInitialParse
Definition: optimize.h:179
void p_execute_job_parallel(const X[], int, int) const
Definition: optimize_phymir.cpp:242
bool lgVarOn
Definition: optimize.h:204
void optimize_subplex(long int n, double tol, long int maxnfe, long int mode, realnum scale[], realnum x[], realnum *fx, long int *nfe, realnum work[], long int iwork[], long int *iflag)
Definition: optimize_subplx.cpp:64
void continue_from_state(Y(*)(const X[], int), int, const char *, X, int, phymir_mode, int)
Definition: optimize_phymir.cpp:642
vector< realnum > temp_error
Definition: optimize.h:227
char p_chStr3[NSTR]
Definition: optimize.h:101
void init_strings(const string &, const string &, const char *)
Definition: optimize_phymir.cpp:565
X p_xmax
Definition: optimize.h:71
long int nIterOptim
Definition: optimize.h:206
bool lgOptimr
Definition: optimize.h:175
int32 p_maxiter
Definition: optimize.h:93
void p_barrier(int, int)
Definition: optimize_phymir.cpp:276
int32 p_maxcpu
Definition: optimize.h:95
t_optimize()
Definition: optimize.h:267
int32 p_nvar
Definition: optimize.h:91
void init_minmax(const X[], const X[], int)
Definition: optimize_phymir.cpp:549
void optimize()
Definition: optimize_phymir.cpp:687
bool lgParallel
Definition: optimize.h:258
long int nparm
Definition: optimize.h:201
vector< realnum > ColDen_error
Definition: optimize.h:212
Y p_ymin
Definition: optimize.h:88
X p_dold
Definition: optimize.h:87
long int nTrOpt
Definition: optimize.h:250
float realnum
Definition: cddefines.h:127
int nEmergent
Definition: optimize.h:215
long max(int a, long b)
Definition: cddefines.h:821
vector< realnum > xLineInt_Obs
Definition: optimize.h:220
bool lgConvergedRestart() const
Definition: optimize_phymir.cpp:720
X p_vers
Definition: optimize.h:84
int nOptLum
Definition: optimize.h:255
vector< string > chTempLab
Definition: optimize.h:224
long min(int a, long b)
Definition: cddefines.h:766
const long LIMPAR
Definition: optimize.h:59
realnum vincr[LIMPAR]
Definition: optimize.h:192
void p_clear1()
Definition: optimize_phymir.cpp:32
phymir_mode p_mode
Definition: optimize.h:97
void p_reset_transformation_matrix()
Definition: optimize_phymir.cpp:538
realnum optier
Definition: optimize.h:249
vector< LineID > lineids
Definition: optimize.h:216
bool lgOptimizeAsLinear[LIMPAR]
Definition: optimize.h:181
void clear()
Definition: optimize.h:126
char chOptRtn[5]
Definition: optimize.h:263
const long LIMEXT
Definition: optimize.h:58
double chi2_type
Definition: optimize.h:47
char p_chStr2[NSTR]
Definition: optimize.h:100
const realnum VRSNEW
Definition: optimize.h:45
vector< long > ContIndex
Definition: optimize.h:237
X p_varmax[NP]
Definition: optimize.h:78
Y(* p_func)(const X[], int)
Definition: optimize.h:104
vector< chi2_type > ContNFnuErr
Definition: optimize.h:240
bool lgOptimize
Definition: optimize.h:252
void init_state_file_name(const char *)
Definition: optimize_phymir.cpp:581
vector< long > ionTemp
Definition: optimize.h:225
long useCPU
Definition: optimize.h:260
vector< long > ipobs
Definition: optimize.h:219
Definition: optimize.h:63
Definition: optimize.h:63
bool p_lgLimitExceeded(const X[]) const
Definition: optimize_phymir.cpp:523
void optimize_do()
Definition: optimize_do.cpp:12
bool lgMaxIterExceeded() const
Definition: optimize.h:134
bool lgDiamInCM
Definition: optimize.h:232
vector< Energy > ContEner
Definition: optimize.h:238
X p_xcold[NP]
Definition: optimize.h:83
vector< realnum > temp_obs
Definition: optimize.h:226
void p_setup_next_hyperblock()
Definition: optimize_phymir.cpp:360
X p_toler
Definition: optimize.h:85
bool lgOptCont
Definition: optimize.h:259
vector< string > chColDen_label
Definition: optimize.h:209
bool lgOptDiam
Definition: optimize.h:231
char p_chState[NSTR]
Definition: optimize.h:98
realnum varmin[LIMPAR]
Definition: optimize.h:185
void p_reset_hyperblock()
Definition: optimize_phymir.cpp:478
void optimize_with_restart()
Definition: optimize_phymir.cpp:704
void p_evaluate_hyperblock()
Definition: optimize_phymir.cpp:329
void p_process_output(int, int)
Definition: optimize_phymir.cpp:308
Y p_ymax
Definition: optimize.h:72
X p_varmin[NP]
Definition: optimize.h:77
bool lgOptLum
Definition: optimize.h:254
X p_xc[NP]
Definition: optimize.h:82
int32 p_jmin
Definition: optimize.h:94
Definition: optimize.h:69
vector< string > chTempWeight
Definition: optimize.h:228
realnum OptGlobalErr
Definition: optimize.h:242
int32 p_dim
Definition: optimize.h:89
Y p_yp[2 *NP+1]
Definition: optimize.h:74
realnum OptIncrm[LIMPAR]
Definition: optimize.h:198
bool lgNoVary
Definition: optimize.h:172
bool lgOptimFlow
Definition: optimize.h:247
X p_c1[NP]
Definition: optimize.h:80
vector< long > ion_ColDen
Definition: optimize.h:210
bool lgConverged() const
Definition: optimize.h:136
X p_c2[NP]
Definition: optimize.h:81
long int nvarxt[LIMPAR]
Definition: optimize.h:195
void initial_run(Y(*)(const X[], int), int, const X[], const X[], X, int, phymir_mode, int)
Definition: optimize_phymir.cpp:590
void p_phygrm(X[][NP], int)
Definition: optimize_phymir.cpp:496
long int nvary
Definition: optimize.h:201
X p_dmax
Definition: optimize.h:86
phymir_mode
Definition: optimize.h:63
bool lgInitialized() const
Definition: optimize.h:135
vector< realnum > errorwave
Definition: optimize.h:218
X p_xp[2 *NP+1][NP]
Definition: optimize.h:73