queso-0.52.0
StatisticalInverseProblemOptions.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_SIP_OPTIONS_H
26 #define UQ_SIP_OPTIONS_H
27 
28 #include <queso/Environment.h>
29 //#include <queso/MetropolisHastingsSGOptions.h>
30 
31 #undef UQ_SIP_READS_SOLVER_OPTION
32 
33 #define UQ_SIP_FILENAME_FOR_NO_FILE "."
34 
35 // _ODV = option default value
36 #define UQ_SIP_COMPUTE_SOLUTION_ODV 1
37 #define UQ_SIP_DATA_OUTPUT_FILE_NAME_ODV UQ_SIP_FILENAME_FOR_NO_FILE
38 #define UQ_SIP_DATA_OUTPUT_ALLOWED_SET_ODV ""
39 #ifdef UQ_SIP_READS_SOLVER_OPTION
40 #define UQ_SIP_SOLVER_ODV "bayes_mc" // Bayesian formula + Metropolis-Hastings
41 #endif
42 
43 namespace QUESO {
44 
60 {
61 public:
63 
64 
67 
69 
71 
75 
77 
81 
83  std::string m_dataOutputFileName;
84  std::set<unsigned int> m_dataOutputAllowedSet;
85 #ifdef UQ_SIP_READS_SOLVER_OPTION
86  std::string m_solverString;
87 #endif
88 
89  //MhOptionsValues m_mhOptionsValues;
90 
91 private:
93  void copy(const SipOptionsValues& src);
94 };
95 
96 // --------------------------------------------------
97 // --------------------------------------------------
98 // --------------------------------------------------
99 
111 {
112 public:
114 
115  StatisticalInverseProblemOptions(const BaseEnvironment& env, const char* prefix);
117 
119 
121  StatisticalInverseProblemOptions(const BaseEnvironment& env, const char* prefix, const SipOptionsValues& alternativeOptionsValues);
122 
126 
128 
129  void scanOptionsValues();
131 
133  void print (std::ostream& os) const;
135 
137  std::string m_prefix;
138 
139 private:
141  void defineMyOptions (po::options_description& optionsDesc) const;
142 
144  void getMyOptionValues(po::options_description& optionsDesc);
145 
147 
148  po::options_description* m_optionsDesc;
149  std::string m_option_help;
153 #ifdef UQ_SIP_READS_SOLVER_OPTION
154  std::string m_option_solver;
155 #endif
156 };
157 
159 std::ostream& operator<<(std::ostream& os, const StatisticalInverseProblemOptions& obj);
160 
161 } // End namespace QUESO
162 
163 #endif // UQ_SIP_OPTIONS_H
void copy(const SipOptionsValues &src)
Copies the option values from src to this.
void getMyOptionValues(po::options_description &optionsDesc)
Gets the option values of the SIP.
StatisticalInverseProblemOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
This class provides options for a Statistical Inverse Problem if no input file is available...
void defineMyOptions(po::options_description &optionsDesc) const
Define my SIP options as the default options.
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
Definition: Environment.h:187
This class reads option values for a Statistical Inverse Problem from an input file.
SipOptionsValues & operator=(const SipOptionsValues &rhs)
Assignment operator; it copies rhs to this.
std::set< unsigned int > m_dataOutputAllowedSet
void print(std::ostream &os) const
It prints the option values.
void scanOptionsValues()
It scans the option values from the options input file.

Generated on Thu Apr 23 2015 19:30:54 for queso-0.52.0 by  doxygen 1.8.5