libRoadRunner C++ API  1.0.0
 All Classes Functions Variables Enumerations Enumerator Pages
rrRoadRunnerOptions.h
1 /*
2  * rrRoadRunnerOptions.h
3  *
4  * Created on: Sep 9, 2013
5  * Author: andy
6  */
7 
8 #ifndef RRROADRUNNEROPTIONS_H_
9 #define RRROADRUNNEROPTIONS_H_
10 
11 #include "rrExporter.h"
12 #include <string>
13 #include <vector>
14 
15 #if defined(_MSC_VER)
16 #include "msc_stdint.h"
17 #else
18 #include <stdint.h>
19 #endif
20 
21 namespace rr
22 {
23 
30 struct RR_DECLSPEC LoadSBMLOptions
31 {
33  {
43  CONSERVED_MOIETIES = (0x1 << 0), // => 0x00000001
44 
56  RECOMPILE = (0x1 << 1), // => 0x00000010
57 
67  READ_ONLY = (0x1 << 2), // => 0x00000100
68 
73  MUTABLE_INITIAL_CONDITIONS = (0x1 << 3), // => 0x00001000
74 
79  OPTIMIZE_GVN = (0x1 << 4),
80 
85  OPTIMIZE_CFG_SIMPLIFICATION = (0x1 << 5),
86 
92  OPTIMIZE_INSTRUCTION_COMBINING = (0x1 << 6),
93 
99  OPTIMIZE_DEAD_INST_ELIMINATION = (0x1 << 7),
100 
107  OPTIMIZE_DEAD_CODE_ELIMINATION = (0x1 << 8),
108 
112  OPTIMIZE_INSTRUCTION_SIMPLIFIER = (0x1 << 9)
113  };
114 
115  enum LoadOpt
116  {
120  NO_DEFAULT_SELECTIONS = (0x1 << 0) // => 0x00000001
121  };
122 
126  LoadSBMLOptions();
127 
131  uint16_t version;
132 
136  uint16_t size;
137 
138 
139  uint32_t modelGeneratorOpt;
140 
141  uint32_t loadFlags;
142 };
143 
154 struct RR_DECLSPEC SimulateOptions
155 {
156  enum Options
157  {
161  RESET_MODEL = (0x1 << 0), // => 0x00000001
162 
167  STRUCTURED_RESULT = (0x1 << 1) // => 0x00000010
168  };
169 
174  {
175  CVODE
176  };
177 
179  {
185  STIFF = (0x1 << 0), // => 0x00000001
186  };
187 
191  SimulateOptions();
192 
197  SimulateOptions(const std::string& sbmlSettingFilePath);
198 
202  uint32_t flags;
203 
208 
213  uint32_t integratorFlags;
214 
221  int steps;
222 
227  double start;
228 
232  double duration;
233 
237  double absolute;
238 
243  double relative;
244 
259  std::vector<std::string> variables;
260 
266  std::vector<std::string> amounts;
267 
273  std::vector<std::string> concentrations;
274 
282  static const double MIN_RELATIVE;
283 
291  static const double MIN_ABSOLUTE;
292 };
293 
294 
295 } /* namespace rr */
296 #endif /* RRROADRUNNEROPTIONS_H_ */
double start
Definition: rrRoadRunnerOptions.h:227
double duration
Definition: rrRoadRunnerOptions.h:232
ModelGeneratorOpt
Definition: rrRoadRunnerOptions.h:32
Integrator integrator
Definition: rrRoadRunnerOptions.h:207
uint16_t version
Definition: rrRoadRunnerOptions.h:131
LoadOpt
Definition: rrRoadRunnerOptions.h:115
int steps
Definition: rrRoadRunnerOptions.h:221
static const double MIN_ABSOLUTE
Definition: rrRoadRunnerOptions.h:291
double absolute
Definition: rrRoadRunnerOptions.h:237
uint32_t flags
Definition: rrRoadRunnerOptions.h:202
std::vector< std::string > amounts
Definition: rrRoadRunnerOptions.h:266
IntegratorFlags
Definition: rrRoadRunnerOptions.h:178
std::vector< std::string > variables
Definition: rrRoadRunnerOptions.h:259
Definition: rrRoadRunnerOptions.h:30
Options
Definition: rrRoadRunnerOptions.h:156
Integrator
Definition: rrRoadRunnerOptions.h:173
std::vector< std::string > concentrations
Definition: rrRoadRunnerOptions.h:273
uint16_t size
Definition: rrRoadRunnerOptions.h:136
double relative
Definition: rrRoadRunnerOptions.h:243
uint32_t integratorFlags
Definition: rrRoadRunnerOptions.h:213
static const double MIN_RELATIVE
Definition: rrRoadRunnerOptions.h:282
Definition: rrRoadRunnerOptions.h:154