cloudy
trunk
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
optimize.h
Go to the documentation of this file.
1
/* This file is part of Cloudy and is copyright (C)1978-2008 by Gary J. Ferland and
2
* others. For conditions of distribution and use see copyright notice in license.txt */
3
4
#ifndef _OPTIMIZE_H_
5
#define _OPTIMIZE_H_
6
7
10
bool
lgOptimize_do
(
void
);
11
15
void
vary_input
(
bool
*lgLimOK);
16
31
void
optimize_subplex
(
long
int
n,
32
double
tol,
33
long
int
maxnfe,
34
long
int
mode,
35
realnum
scale[],
36
realnum
x[],
37
realnum
*fx,
38
long
int
*nfe,
39
realnum
work[],
40
long
int
iwork[],
41
long
int
*iflag);
42
43
/*<NP->*/
45
#define VRSNEW 3.00f
46
48
/* >>chng 00 sep 12, had been continue.in but was confused with normal input files*/
49
#define CNTFILE "continue.pmr"
50
51
void
optimize_phymir
(
realnum
[],
realnum
[],
long
,
realnum
*,
realnum
);
52
54
double
optimize_func
(
realnum
param[]);
55
56
/* varypar.h */
58
#define LIMEXT 5L
59
#define LIMPAR 20L
60
#define NCOLLM 100L
61
#define NOBSLM 100L
62
63
EXTERN
char
chOptimFileName
[
INPUT_LINE_LENGTH
];
86
EXTERN
struct
t_optimize
{
87
89
bool
lgVaryOn
,
91
lgNoVary
;
92
94
bool
lgOptimr
;
95
96
realnum
98
varmax
[
LIMPAR
],
99
varmin
[
LIMPAR
],
100
103
vparm
[
LIMEXT
][
LIMPAR
],
104
106
vincr
[
LIMPAR
];
107
109
long
int
nvarxt
[
LIMPAR
],
110
nvfpnt
[
LIMPAR
];
111
112
realnum
vpused
[
LIMPAR
],
113
OptIncrm
[
LIMPAR
],
114
varang
[
LIMPAR
][2];
115
116
long
int
nvary
,
117
nparm
,
118
nRangeSet
;
119
bool
lgVarOn
;
120
realnum
ColDen_Obs
[
NCOLLM
],
121
chColDen_error
[
NCOLLM
];
122
long
int
ion_ColDen
[
NCOLLM
],
123
ncobs
,
124
ionTemp
[
NCOLLM
];
125
126
realnum
xLineInt_Obs
[
NOBSLM
],
127
xLineInt_error
[
NOBSLM
];
128
129
realnum
temp_obs
[
NOBSLM
],
130
temp_error
[
NOBSLM
];
131
char
chTempWeight
[
NOBSLM
][7];
132
133
long
int
134
nlobs
,
135
nIterOptim
,
137
nTempObs
;
138
140
realnum
wavelength
[
NOBSLM
],
142
errorwave
[
NOBSLM
];
143
145
FILE *
ioOptim
;
146
realnum
OptGlobalErr
;
147
148
/* counter for number of models in a grid - is one (not zero) for
149
* first simulation */
150
long
int
nOptimiz
;
151
152
bool
lgOptimFlow
;
153
realnum
optint
,
154
optier
;
155
long
int
nTrOpt
;
156
bool
lgTrOpt
;
157
bool
lgOptimize
,
160
lgOptLin
,
161
lgOptLum
,
162
lgOptCol
,
163
lgOptTemp
;
164
166
bool
lgParallel
,
167
lgOptCont
;
168
long
useCPU
;
169
170
char
chVarFmt
[
LIMPAR
][
FILENAME_PATH_LENGTH_2
],
171
chColDen_label
[
NCOLLM
][5],
172
chLineLabel
[
NOBSLM
][5],
173
chTempLab
[
NOBSLM
][5],
174
chOptRtn
[5];
175
176
double
SavGenericData
[10];
177
178
}
optimize
;
179
180
181
182
#endif
/* _OPTIMIZE_H_ */
Generated for cloudy by
1.8.4