queso-0.50.1
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,2009,2010,2011,2012,2013 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 
56 {
57 public:
59 
60 
63 
65 
67 
71 
73 
77 
79  std::string m_dataOutputFileName;
80  std::set<unsigned int> m_dataOutputAllowedSet;
81 #ifdef UQ_SIP_READS_SOLVER_OPTION
82  std::string m_solverString;
83 #endif
84 
85  //MhOptionsValues m_mhOptionsValues;
86 
87 private:
89  void copy(const SipOptionsValues& src);
90 };
91 
92 // --------------------------------------------------
93 // --------------------------------------------------
94 // --------------------------------------------------
95 
107 {
108 public:
110 
111  StatisticalInverseProblemOptions(const BaseEnvironment& env, const char* prefix);
113 
115 
117  StatisticalInverseProblemOptions(const BaseEnvironment& env, const char* prefix, const SipOptionsValues& alternativeOptionsValues);
118 
122 
124 
125  void scanOptionsValues();
127 
129  void print (std::ostream& os) const;
131 
133  std::string m_prefix;
134 
135 private:
137  void defineMyOptions (po::options_description& optionsDesc) const;
138 
140  void getMyOptionValues(po::options_description& optionsDesc);
141 
143 
144  po::options_description* m_optionsDesc;
145  std::string m_option_help;
149 #ifdef UQ_SIP_READS_SOLVER_OPTION
150  std::string m_option_solver;
151 #endif
152 };
153 
155 std::ostream& operator<<(std::ostream& os, const StatisticalInverseProblemOptions& obj);
156 
157 } // End namespace QUESO
158 
159 #endif // UQ_SIP_OPTIONS_H
This class provides options for a Statistical Inverse Problem if no input file is available...
void scanOptionsValues()
It scans the option values from the options input file.
SipOptionsValues & operator=(const SipOptionsValues &rhs)
Assignment operator; it copies rhs to this.
StatisticalInverseProblemOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
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.
void defineMyOptions(po::options_description &optionsDesc) const
Define my SIP options as the default options.
void print(std::ostream &os) const
It prints the option values.
void getMyOptionValues(po::options_description &optionsDesc)
Gets the option values of the SIP.
void copy(const SipOptionsValues &src)
Copies the option values from src to this.
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
std::set< unsigned int > m_dataOutputAllowedSet

Generated on Thu Apr 23 2015 19:18:34 for queso-0.50.1 by  doxygen 1.8.5