queso-0.53.0
GpmsaComputerModelOptions.h
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // QUESO - a library to support the Quantification of Uncertainty
5 // for Estimation, Simulation and Optimization
6 //
7 // Copyright (C) 2008-2015 The PECOS Development Team
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the Version 2.1 GNU Lesser General
11 // Public License as published by the Free Software Foundation.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
21 // Boston, MA 02110-1301 USA
22 //
23 //-----------------------------------------------------------------------el-
24 
25 #ifndef UQ_GCM_OPTIONS_H
26 #define UQ_GCM_OPTIONS_H
27 
28 #include <queso/Environment.h>
29 #include <queso/BoostInputOptionsParser.h>
30 #include <queso/SequenceStatisticalOptions.h>
31 
32 #define UQ_GCM_FILENAME_FOR_NO_FILE "."
33 
34 // _ODV = option default value
35 #define UQ_GCM_COMPUTE_SOLUTION_ODV 1
36 #define UQ_GCM_CHECK_AGAINST_PREVIOUS_SAMPLE_ODV 1
37 #define UQ_GCM_DATA_OUTPUT_FILE_NAME_ODV UQ_GCM_FILENAME_FOR_NO_FILE
38 #define UQ_GCM_DATA_OUTPUT_ALLOW_ALL_ODV 0
39 #define UQ_GCM_DATA_OUTPUT_ALLOWED_SET_ODV ""
40 #define UQ_GCM_PRIOR_SEQ_NUM_SAMPLES_ODV 0
41 #define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_NAME_ODV UQ_GCM_FILENAME_FOR_NO_FILE
42 #define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_FILE_TYPE_ODV "m"
43 #define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOW_ALL_ODV 0
44 #define UQ_GCM_PRIOR_SEQ_DATA_OUTPUT_ALLOWED_SET_ODV ""
45 #define UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_ODV 0.
46 #define UQ_GCM_NUGGET_VALUE_FOR_BT_WY_B_INV_ODV 0.
47 #define UQ_GCM_FORM_C_MATRIX_ODV 0
48 #define UQ_GCM_USE_TILDE_LOGIC_FOR_RANK_DEFFICIENT_C_ODV 0
49 #define UQ_GCM_PRED_LAG_ODV 1
50 #define UQ_GCM_PRED_VUS_BY_SAMPLING_RVS_ODV 0
51 #define UQ_GCM_PRED_VUS_BY_SUMMING_RVS_ODV 1
52 #define UQ_GCM_PRED_VUS_AT_KEY_POINTS_ODV 0
53 #define UQ_GCM_PRED_WS_BY_SAMPLING_RVS_ODV 0
54 #define UQ_GCM_PRED_WS_BY_SUMMING_RVS_ODV 1
55 #define UQ_GCM_PRED_WS_AT_KEY_POINTS_ODV 0
56 
57 namespace boost {
58  namespace program_options {
59  class options_description;
60  }
61 }
62 
63 namespace QUESO {
64 
66 {
67 public:
69  GcmOptionsValues(const BaseEnvironment * env, const char * prefix);
72  virtual ~GcmOptionsValues ();
73 
74  std::string m_prefix;
75 
77  std::string m_dataOutputFileName;
79  std::set<unsigned int> m_dataOutputAllowedSet;
80  unsigned int m_priorSeqNumSamples;
84  std::set<unsigned int> m_priorSeqDataOutputAllowedSet;
87  double m_formCMatrix;
89  unsigned int m_predLag;
96 
97  //MhOptionsValues m_mhOptionsValues;
98 
99 private:
101 
102  std::string m_option_help;
114  std::string m_option_formCMatrix;
116  std::string m_option_predLag;
123 
124  void copy(const GcmOptionsValues& src);
125 
126 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
127  friend class GpmsaComputerModelOptions;
128  SsOptionsValues m_alternativePriorSeqSsOptionsValues;
129 #endif
130 };
131 
133 {
134 public:
135  GpmsaComputerModelOptions(const BaseEnvironment& env, const char* prefix);
136  GpmsaComputerModelOptions(const BaseEnvironment& env, const char* prefix, const GcmOptionsValues& alternativeOptionsValues);
138 
139  void scanOptionsValues();
140  void print (std::ostream& os) const;
141 
143 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
144  SequenceStatisticalOptions* m_priorSeqStatisticalOptionsObj;
145  bool m_priorSeqStatOptsInstantiated;
146 #endif
147  std::string m_prefix;
148 
149 private:
150  void defineMyOptions (boost::program_options::options_description& optionsDesc) const;
151  void getMyOptionValues(boost::program_options::options_description& optionsDesc);
152 
154 
155  boost::program_options::options_description* m_optionsDesc;
156  std::string m_option_help;
168  std::string m_option_formCMatrix;
170  std::string m_option_predLag;
177 };
178 
179 std::ostream& operator<<(std::ostream& os, const GpmsaComputerModelOptions& obj);
180 
181 } // End namespace QUESO
182 
183 #endif // UQ_GCM_OPTIONS_H
GpmsaComputerModelOptions(const BaseEnvironment &env, const char *prefix)
boost::program_options::options_description * m_optionsDesc
void copy(const GcmOptionsValues &src)
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
std::set< unsigned int > m_dataOutputAllowedSet
GcmOptionsValues & operator=(const GcmOptionsValues &rhs)
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:193
std::string m_option_useTildeLogicForRankDefficientC
std::set< unsigned int > m_priorSeqDataOutputAllowedSet
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
void print(std::ostream &os) const
BoostInputOptionsParser * m_parser

Generated on Thu Jun 11 2015 13:52:32 for queso-0.53.0 by  doxygen 1.8.5