queso-0.57.1
|
This class reads option values for a Statistical Inverse Problem from an input file. More...
#include <StatisticalInverseProblemOptions.h>
Public Member Functions | |
Constructor/Destructor methods | |
StatisticalInverseProblemOptions (const BaseEnvironment &env, const char *prefix) | |
Constructor: reads options from the input file. More... | |
StatisticalInverseProblemOptions (const BaseEnvironment &env, const char *prefix, const SipOptionsValues &alternativeOptionsValues) | |
Constructor: with alternative option values. More... | |
~StatisticalInverseProblemOptions () | |
Destructor. More... | |
I/O methods | |
void | scanOptionsValues () |
It scans the option values from the options input file. More... | |
void | print (std::ostream &os) const |
It prints the option values. More... | |
Public Attributes | |
SipOptionsValues | m_ov |
std::string | m_prefix |
Private Member Functions | |
void | defineMyOptions (boost::program_options::options_description &optionsDesc) const |
Define my SIP options as the default options. More... | |
void | getMyOptionValues (boost::program_options::options_description &optionsDesc) |
Gets the option values of the SIP. More... | |
Private Attributes | |
const BaseEnvironment & | m_env |
ScopedPtr < boost::program_options::options_description > ::Type | m_optionsDesc |
std::string | m_option_help |
std::string | m_option_computeSolution |
std::string | m_option_dataOutputFileName |
std::string | m_option_dataOutputAllowedSet |
std::string | m_option_solver |
std::string | m_option_seedWithMAPEstimator |
std::string | m_option_useOptimizerMonitor |
This class reads option values for a Statistical Inverse Problem from an input file.
This class reads the option values for the Statistical Inverse Problem (SIP) from an input file provided by the user. The class expects the prefix '<prefix>_ip_'. For instance, if 'prefix' is 'foo_775_', then the constructor will read all options that begin with 'foo_775_ip_'. If the options request data to be written in the output file (MATLAB .m format only, for now), the user can run 'grep zeros <OUTPUT FILE NAME>' after the solution procedure ends in order to check which MATLAB variables are defined and set. The names of the variables are self explanatory.
Definition at line 149 of file StatisticalInverseProblemOptions.h.
QUESO::StatisticalInverseProblemOptions::StatisticalInverseProblemOptions | ( | const BaseEnvironment & | env, |
const char * | prefix | ||
) |
Constructor: reads options from the input file.
Definition at line 195 of file StatisticalInverseProblemOptions.C.
References m_env, QUESO::BaseEnvironment::optionsInputFileName(), and QUESO::queso_require_not_equal_to_msg.
QUESO::StatisticalInverseProblemOptions::StatisticalInverseProblemOptions | ( | const BaseEnvironment & | env, |
const char * | prefix, | ||
const SipOptionsValues & | alternativeOptionsValues | ||
) |
Constructor: with alternative option values.
In this constructor, the input options are given by alternativeOptionsValues
, rather than the options input file
Definition at line 220 of file StatisticalInverseProblemOptions.C.
References m_env, m_prefix, QUESO::BaseEnvironment::optionsInputFileName(), QUESO::queso_require_equal_to_msg, and QUESO::BaseEnvironment::subDisplayFile().
QUESO::StatisticalInverseProblemOptions::~StatisticalInverseProblemOptions | ( | ) |
Destructor.
Definition at line 254 of file StatisticalInverseProblemOptions.C.
|
private |
Define my SIP options as the default options.
Definition at line 306 of file StatisticalInverseProblemOptions.C.
References m_option_computeSolution, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_help, m_option_seedWithMAPEstimator, m_option_solver, and m_option_useOptimizerMonitor.
Referenced by scanOptionsValues().
|
private |
Gets the option values of the SIP.
Definition at line 327 of file StatisticalInverseProblemOptions.C.
References QUESO::BaseEnvironment::allOptionsMap(), QUESO::SipOptionsValues::m_computeSolution, QUESO::SipOptionsValues::m_dataOutputAllowedSet, QUESO::SipOptionsValues::m_dataOutputFileName, m_env, m_option_computeSolution, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_help, m_option_seedWithMAPEstimator, m_option_solver, m_option_useOptimizerMonitor, m_ov, QUESO::SipOptionsValues::m_seedWithMAPEstimator, QUESO::SipOptionsValues::m_solverString, QUESO::SipOptionsValues::m_useOptimizerMonitor, QUESO::MiscReadDoublesFromString(), and QUESO::BaseEnvironment::subDisplayFile().
Referenced by scanOptionsValues().
void QUESO::StatisticalInverseProblemOptions::print | ( | std::ostream & | os | ) | const |
It prints the option values.
Definition at line 284 of file StatisticalInverseProblemOptions.C.
References QUESO::SipOptionsValues::m_computeSolution, QUESO::SipOptionsValues::m_dataOutputAllowedSet, QUESO::SipOptionsValues::m_dataOutputFileName, m_option_computeSolution, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_seedWithMAPEstimator, m_option_solver, m_option_useOptimizerMonitor, m_ov, QUESO::SipOptionsValues::m_seedWithMAPEstimator, QUESO::SipOptionsValues::m_solverString, and QUESO::SipOptionsValues::m_useOptimizerMonitor.
Referenced by QUESO::operator<<().
void QUESO::StatisticalInverseProblemOptions::scanOptionsValues | ( | ) |
It scans the option values from the options input file.
Definition at line 261 of file StatisticalInverseProblemOptions.C.
References defineMyOptions(), getMyOptionValues(), m_env, m_optionsDesc, m_prefix, QUESO::BaseEnvironment::scanInputFileForMyOptions(), and QUESO::BaseEnvironment::subDisplayFile().
|
private |
Definition at line 186 of file StatisticalInverseProblemOptions.h.
Referenced by getMyOptionValues(), scanOptionsValues(), and StatisticalInverseProblemOptions().
|
private |
Definition at line 193 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 195 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 194 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 192 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), and getMyOptionValues().
|
private |
Definition at line 199 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 197 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 200 of file StatisticalInverseProblemOptions.h.
Referenced by defineMyOptions(), getMyOptionValues(), and print().
|
private |
Definition at line 189 of file StatisticalInverseProblemOptions.h.
Referenced by scanOptionsValues().
SipOptionsValues QUESO::StatisticalInverseProblemOptions::m_ov |
Definition at line 175 of file StatisticalInverseProblemOptions.h.
Referenced by getMyOptionValues(), and print().
std::string QUESO::StatisticalInverseProblemOptions::m_prefix |
Definition at line 176 of file StatisticalInverseProblemOptions.h.
Referenced by scanOptionsValues(), and StatisticalInverseProblemOptions().