25 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
26 #include <queso/BoostInputOptionsParser.h>
27 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
29 #include <queso/Environment.h>
31 #ifndef UQ_SIP_OPTIONS_H
32 #define UQ_SIP_OPTIONS_H
34 #undef UQ_SIP_READS_SOLVER_OPTION
36 #define UQ_SIP_HELP ""
37 #define UQ_SIP_FILENAME_FOR_NO_FILE "."
40 #define UQ_SIP_COMPUTE_SOLUTION_ODV 1
41 #define UQ_SIP_DATA_OUTPUT_FILE_NAME_ODV UQ_SIP_FILENAME_FOR_NO_FILE
42 #define UQ_SIP_DATA_OUTPUT_ALLOWED_SET_ODV ""
43 #ifdef UQ_SIP_READS_SOLVER_OPTION
44 #define UQ_SIP_SOLVER_ODV "bayes_mc" // Bayesian formula + Metropolis-Hastings
47 #define UQ_SIP_SEEDWITHMAPESTIMATOR 0
48 #define UQ_SIP_USEOPTIMIZERMONITOR 1
50 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
52 namespace program_options {
53 class options_description;
56 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
106 #ifdef UQ_SIP_READS_SOLVER_OPTION
114 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
116 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
123 #ifdef UQ_SIP_READS_SOLVER_OPTION
134 friend std::ostream &
operator<<(std::ostream & os,
171 void print (std::ostream& os)
const;
178 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
179 void defineMyOptions (boost::program_options::options_description& optionsDesc)
const;
182 void getMyOptionValues(boost::program_options::options_description& optionsDesc);
183 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
187 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
189 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
195 #ifdef UQ_SIP_READS_SOLVER_OPTION
207 #endif // UQ_SIP_OPTIONS_H
std::string m_option_useOptimizerMonitor
std::string m_option_solver
std::ostream & operator<<(std::ostream &os, const SequenceStatisticalOptions &obj)
std::string m_option_dataOutputFileName
std::string m_option_seedWithMAPEstimator
std::string m_option_dataOutputAllowedSet
void scanOptionsValues()
It scans the option values from the options input file.
ScopedPtr< boost::program_options::options_description >::Type m_optionsDesc
std::string m_option_dataOutputFileName
friend std::ostream & operator<<(std::ostream &os, const SipOptionsValues &obj)
virtual ~SipOptionsValues()
Destructor.
std::string m_help
If this string is non-empty, options are print to the output file.
std::unique_ptr< T > Type
SipOptionsValues & operator=(const SipOptionsValues &rhs)
Assignment operator; it copies rhs to this.
std::string m_option_useOptimizerMonitor
std::string m_option_computeSolution
std::string m_option_solver
~StatisticalInverseProblemOptions()
Destructor.
bool m_seedWithMAPEstimator
This class provides options for a Statistical Inverse Problem if no input file is available...
StatisticalInverseProblemOptions(const BaseEnvironment &env, const char *prefix)
Constructor: reads options from the input file.
std::string m_dataOutputFileName
SipOptionsValues()
Default constructor.
void getMyOptionValues(boost::program_options::options_description &optionsDesc)
Gets the option values of the SIP.
This class reads option values for a Statistical Inverse Problem from an input file.
bool m_useOptimizerMonitor
std::string m_option_dataOutputAllowedSet
std::string m_option_help
const BaseEnvironment & m_env
std::set< unsigned int > m_dataOutputAllowedSet
std::string m_option_help
void print(std::ostream &os) const
It prints the option values.
std::string m_option_computeSolution
void defineMyOptions(boost::program_options::options_description &optionsDesc) const
Define my SIP options as the default options.
ScopedPtr< BoostInputOptionsParser >::Type m_parser
std::string m_solverString
std::string m_option_seedWithMAPEstimator
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
void copy(const SipOptionsValues &src)
Copies the option values from src to this.