cloudy  trunk
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
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 
87 
89  bool lgVaryOn,
91  lgNoVary;
92 
94  bool lgOptimr;
95 
96  realnum
99  varmin[LIMPAR],
100 
103  vparm[LIMEXT][LIMPAR],
104 
106  vincr[LIMPAR];
107 
109  long int nvarxt[LIMPAR],
110  nvfpnt[LIMPAR];
111 
113  OptIncrm[LIMPAR],
114  varang[LIMPAR][2];
115 
116  long int nvary,
117  nparm,
118  nRangeSet;
119  bool lgVarOn;
122  long int ion_ColDen[NCOLLM],
123  ncobs,
124  ionTemp[NCOLLM];
125 
128 
132 
133  long int
135  nIterOptim,
137  nTempObs;
138 
142  errorwave[NOBSLM];
143 
145  FILE *ioOptim;
147 
148  /* counter for number of models in a grid - is one (not zero) for
149  * first simulation */
150  long int nOptimiz;
151 
154  optier;
155  long int nTrOpt;
156  bool lgTrOpt;
157  bool lgOptimize,
160  lgOptLin,
161  lgOptLum,
162  lgOptCol,
163  lgOptTemp;
164 
167  lgOptCont;
168  long useCPU;
169 
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 doxygen 1.8.3.1