50 |
* \param filename is the name of the file |
* \param filename is the name of the file |
51 |
*/ |
*/ |
52 |
void setPrintFinalFile(char* filename); |
void setPrintFinalFile(char* filename); |
53 |
|
#ifdef _OPENMP |
54 |
|
/** |
55 |
|
* \brief This function will store parallel options |
56 |
|
*/ |
57 |
|
void setParallel(char* filename); |
58 |
|
#endif |
59 |
/** |
/** |
60 |
* \brief This function will store the filename that the initial values for the model parameters will be read from |
* \brief This function will store the filename that the initial values for the model parameters will be read from |
61 |
* \param filename is the name of the file |
* \param filename is the name of the file |
91 |
* \return flag |
* \return flag |
92 |
*/ |
*/ |
93 |
int runPrint() const { return runprint; }; |
int runPrint() const { return runprint; }; |
94 |
|
#ifdef _OPENMP |
95 |
|
/** |
96 |
|
* \brief This function will return the flag used to determine whether the current simulation should print the model output |
97 |
|
* \return flag |
98 |
|
*/ |
99 |
|
int runParallel() const { return runparallel; }; |
100 |
|
#endif |
101 |
/** |
/** |
102 |
* \brief This function will return the flag used to determine whether the optimisation parameters have been given |
* \brief This function will return the flag used to determine whether the optimisation parameters have been given |
103 |
* \return flag |
* \return flag |
157 |
* \brief This function will return the maximum ratio of a stock that can be consumed on any given timestep |
* \brief This function will return the maximum ratio of a stock that can be consumed on any given timestep |
158 |
* \return maxratio |
* \return maxratio |
159 |
*/ |
*/ |
160 |
double getMaxRatio() const { return maxratio; }; |
double getMaxRatio() const { |
161 |
|
return maxratio; |
162 |
|
} |
163 |
|
/** |
164 |
|
* \brief This function will return seeds used in SA |
165 |
|
* \return seed array of unsigned int with the seeds used in SA |
166 |
|
*/ |
167 |
|
unsigned* getSeed() const {return seed;}; |
168 |
|
|
169 |
|
|
170 |
private: |
private: |
171 |
/** |
/** |
172 |
* \brief This function will read input from a file instead of the command line |
* \brief This function will read input from a file instead of the command line |
241 |
* \brief This is the maximum ratio of a stock that can be consumed on any given timestep |
* \brief This is the maximum ratio of a stock that can be consumed on any given timestep |
242 |
*/ |
*/ |
243 |
double maxratio; |
double maxratio; |
244 |
|
/** |
245 |
|
* \brief vector with the seeds used in SA |
246 |
|
* \note see[0] = seed | see[1] = seedM | see[2] = seedP |
247 |
|
*/ |
248 |
|
unsigned* seed; |
249 |
|
#ifdef _OPENMP |
250 |
|
/** |
251 |
|
* \brief This is the flag used to denote whether the likelihood score should be optimised in pararrel */ |
252 |
|
int runparallel; |
253 |
|
#endif |
254 |
}; |
}; |
255 |
|
|
256 |
#endif |
#endif |
257 |
|
|