25 #include <queso/config_queso.h>
26 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
27 #include <queso/BoostInputOptionsParser.h>
28 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
30 #include <queso/Environment.h>
32 #ifndef UQ_SIP_OPTIONS_H
33 #define UQ_SIP_OPTIONS_H
35 #undef UQ_SIP_READS_SOLVER_OPTION
37 #define UQ_SIP_HELP ""
38 #define UQ_SIP_FILENAME_FOR_NO_FILE "."
41 #define UQ_SIP_COMPUTE_SOLUTION_ODV 1
42 #define UQ_SIP_DATA_OUTPUT_FILE_NAME_ODV UQ_SIP_FILENAME_FOR_NO_FILE
43 #define UQ_SIP_DATA_OUTPUT_ALLOWED_SET_ODV ""
44 #ifdef UQ_SIP_READS_SOLVER_OPTION
45 #define UQ_SIP_SOLVER_ODV "bayes_mc" // Bayesian formula + Metropolis-Hastings
48 #define UQ_SIP_SEEDWITHMAPESTIMATOR 0
49 #define UQ_SIP_USEOPTIMIZERMONITOR 1
51 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
53 namespace program_options {
54 class options_description;
57 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
107 #ifdef UQ_SIP_READS_SOLVER_OPTION
115 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
117 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
124 #ifdef UQ_SIP_READS_SOLVER_OPTION
135 friend std::ostream &
operator<<(std::ostream & os,
172 void print (std::ostream& os)
const;
179 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
180 void defineMyOptions (boost::program_options::options_description& optionsDesc)
const;
183 void getMyOptionValues(boost::program_options::options_description& optionsDesc);
184 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
188 #ifndef QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
190 #endif // QUESO_DISABLE_BOOST_PROGRAM_OPTIONS
196 #ifdef UQ_SIP_READS_SOLVER_OPTION
208 #endif // UQ_SIP_OPTIONS_H
void print(std::ostream &os) const
It prints the option values.
std::string m_option_solver
ScopedPtr< boost::program_options::options_description >::Type m_optionsDesc
std::unique_ptr< T > Type
bool m_useOptimizerMonitor
std::string m_option_dataOutputAllowedSet
ScopedPtr< BoostInputOptionsParser >::Type m_parser
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
std::string m_help
If this string is non-empty, options are print to the output file.
void copy(const SipOptionsValues &src)
Copies the option values from src to this.
std::string m_option_solver
virtual ~SipOptionsValues()
Destructor.
std::set< unsigned int > m_dataOutputAllowedSet
std::ostream & operator<<(std::ostream &os, const SequenceStatisticalOptions &obj)
bool m_seedWithMAPEstimator
std::string m_option_dataOutputFileName
const BaseEnvironment & m_env
std::string m_option_useOptimizerMonitor
StatisticalInverseProblemOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
std::string m_option_dataOutputFileName
std::string m_option_seedWithMAPEstimator
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.
This class reads option values for a Statistical Inverse Problem from an input file.
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
Gets the option values of the SIP.
~StatisticalInverseProblemOptions()
Destructor.
std::string m_dataOutputFileName
std::string m_option_computeSolution
std::string m_option_help
SipOptionsValues & operator=(const SipOptionsValues &rhs)
Assignment operator; it copies rhs to this.
std::string m_solverString
std::string m_option_dataOutputAllowedSet
std::string m_option_help
std::string m_option_useOptimizerMonitor
std::string m_option_seedWithMAPEstimator
SipOptionsValues()
Default constructor.
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
Define my SIP options as the default options.
std::string m_option_computeSolution
friend std::ostream & operator<<(std::ostream &os, const SipOptionsValues &obj)