queso-0.56.1
Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
QUESO::MhOptionsValues Class Reference

This class provides options for the Metropolis-Hastings generator of samples if no input file is available. More...

#include <MetropolisHastingsSGOptions.h>

Collaboration diagram for QUESO::MhOptionsValues:
Collaboration graph
[legend]

Public Member Functions

Constructor/Destructor methods
 MhOptionsValues ()
 Default constructor. More...
 
 MhOptionsValues (const BaseEnvironment *env, const char *prefix)
 Prefix constructor for input file parsing purposes. More...
 
 MhOptionsValues (const MhOptionsValues &src)
 Copy constructor. More...
 
virtual ~MhOptionsValues ()
 Destructor. More...
 
Set methods
MhOptionsValuesoperator= (const MhOptionsValues &rhs)
 Assignment operator; it copies rhs to this. More...
 

Public Attributes

std::string m_prefix
 Prefix for input file option names. Prepends all options for this class. More...
 
std::string m_help
 If non-empty string, print options and values to the output file. More...
 
std::string m_dataOutputFileName
 The base name of output files where the chain (and related information) will be written. More...
 
bool m_dataOutputAllowAll
 If true, all processes write output and m_dataOutputAllowedSet is ignored. More...
 
std::set< unsigned int > m_dataOutputAllowedSet
 The set of MPI ranks that can write output. See m_dataOutputAllowAll. More...
 
bool m_totallyMute
 If true, zero output is written to files. Default is false. More...
 
std::string m_initialPositionDataInputFileName
 If not ".", reads the contents of the file and uses that to start the MCMC. Default is ".". More...
 
std::string m_initialPositionDataInputFileType
 The filetype of m_initialPositionDataInputFileName. Only "m" (matlab) is currently supported. Default is "m". More...
 
std::string m_initialProposalCovMatrixDataInputFileName
 If not ".", reads the contents of the file as the initial proposal covariance matrix. More...
 
std::string m_initialProposalCovMatrixDataInputFileType
 The filetype of m_initialProposalCovMatrixDataInputFileName. Only "m" (matlab) is currently supported. Default is "m". More...
 
std::set< unsigned int > m_parameterDisabledSet
 Set of parameters that don't get sampled. More...
 
std::string m_rawChainDataInputFileName
 Filename for reading an already-produced Markov chain. More...
 
std::string m_rawChainDataInputFileType
 The filetype of m_rawChainDataInputFileName. Only "m" (matlab) is currently supported. Default is "m". More...
 
unsigned int m_rawChainSize
 The size of the chain (number of posterior samples) to generate. Default is 100. More...
 
bool m_rawChainGenerateExtra
 If true, extra chain information is computed/stored. More...
 
unsigned int m_rawChainDisplayPeriod
 The frequency with which to output diagnostic information. More...
 
bool m_rawChainMeasureRunTimes
 If true, measures timings spent in various chain computions and writes them to the output file. More...
 
unsigned int m_rawChainDataOutputPeriod
 The frequency with which to write chain output. Defaults to 0. More...
 
std::string m_rawChainDataOutputFileName
 If not ".", filename to write the Markov chain to. More...
 
std::string m_rawChainDataOutputFileType
 The filetype of m_rawChainDataOutputFileName. More...
 
bool m_rawChainDataOutputAllowAll
 Toggle for whether or not to allow all processes to write Markov chain output to a file. More...
 
std::set< unsigned int > m_rawChainDataOutputAllowedSet
 The set of MPI ranks that will write Markov chain output to a file. See also m_rawChainDataOutputAllowAll. Default is empty set. More...
 
bool m_filteredChainGenerate
 Toggle the option to save a filtered chain. More...
 
double m_filteredChainDiscardedPortion
 What initial fraction of the filtered chain is discarded. More...
 
unsigned int m_filteredChainLag
 Set the lag for the filtered chain. Default is 1. More...
 
std::string m_filteredChainDataOutputFileName
 If not ".", file name to save the filtered chain to. Default is ".". More...
 
std::string m_filteredChainDataOutputFileType
 The filetype of m_filteredChainDataOutputFileName. Only "m" (matlab) is currently supported. Default is "m". More...
 
bool m_filteredChainDataOutputAllowAll
 Toggle for whether or not to allow all processes to write filtered Markov chain output to a file. More...
 
std::set< unsigned int > m_filteredChainDataOutputAllowedSet
 The set of MPI ranks that will write filtered Markov chain output to a file. See also m_filteredChainDataOutputAllowAll. Default is empty set. More...
 
bool m_displayCandidates
 Toggle to tell QUESO whether or not to write proposal (candidate) state to output file. Default is false. More...
 
bool m_putOutOfBoundsInChain
 Flag to tell QUESO how chains should be upon generating a proposal that is out of the problem domain. More...
 
bool m_tkUseLocalHessian
 Flag to tell QUESO whether or not to use Hessian information for the proposal covariance matrix. More...
 
bool m_tkUseNewtonComponent
 This option is a no-op. Default is true. More...
 
unsigned int m_drMaxNumExtraStages
 The number of delayed rejection stages to do. Default is 0. More...
 
std::vector< double > m_drScalesForExtraStages
 The vector of scale factors for the proposal covariance matrix to use for delayed rejection. More...
 
bool m_drDuringAmNonAdaptiveInt
 Do delayed rejection during the initial non-adaptive part of sampling? More...
 
bool m_amKeepInitialMatrix
 This option is a no-op. The default is false. More...
 
unsigned int m_amInitialNonAdaptInterval
 The number of initial samples to do without adapting the proposal covariance matrix. More...
 
unsigned int m_amAdaptInterval
 The frequency at which to adapt the proposal covariance matrix. More...
 
unsigned int m_amAdaptedMatricesDataOutputPeriod
 The frequency (after m_amInitialNonAdaptInterval samples are done) of printing the last adapted proposal covariance matrix. More...
 
std::string m_amAdaptedMatricesDataOutputFileName
 If not ".", this is the file to write adapted proposal covariance matrices to. Default is ".". More...
 
std::string m_amAdaptedMatricesDataOutputFileType
 The filetype of m_amAdaptedMatricesDataOutputFileName. Only "m" (matlab) is currently supported. Default is "m". More...
 
bool m_amAdaptedMatricesDataOutputAllowAll
 This option is a no-op. The default is false. More...
 
std::set< unsigned int > m_amAdaptedMatricesDataOutputAllowedSet
 This option is a no-op. The default is the empty set. More...
 
double m_amEta
 Proposal covariance scaling factor, usually 2.4 * 2.4 / d. More...
 
double m_amEpsilon
 Regularisation parameter for the DRAM covariance matrix. More...
 
unsigned int m_enableBrooksGelmanConvMonitor
 The frequency with which to compute the Brooks-Gelman convergence statistic. More...
 
unsigned int m_BrooksGelmanLag
 The lag with which to compute the Brooks-Gelman convergence statistic. More...
 
bool m_outputLogLikelihood
 Flag for deciding whether or not to dump log likelihood values in output. Default is true. More...
 
bool m_outputLogTarget
 Flag for deciding whether or not to dump log target values in output Default is true. More...
 
bool m_doLogitTransform
 Flag for deciding whether or not to do logit transform of bounded domains Default is true. More...
 
std::string m_algorithm
 Which algorithm to use for the MCMC. Default is "random_walk". More...
 
std::string m_tk
 Which transition kernel to use for MCMC. Default is "random_walk". More...
 

Private Member Functions

void copy (const MhOptionsValues &src)
 Copies the option values from src to this. More...
 
void checkOptions (const BaseEnvironment *env)
 

Private Attributes

const BaseEnvironmentm_env
 
BoostInputOptionsParserm_parser
 
std::string m_option_help
 Option name for MhOptionsValues::m_help. Option name is m_prefix + "mh_help". More...
 
std::string m_option_dataOutputFileName
 Option name for MhOptionsValues::m_dataOutputFileName. Option name is m_prefix + "mh_dataOutputFileName". More...
 
std::string m_option_dataOutputAllowAll
 Option name for MhOptionsValues::m_dataOutputAllowAll. Option name is m_prefix + "mh_dataOutputAllowAll". More...
 
std::string m_option_dataOutputAllowedSet
 Option name for MhOptionsValues::m_dataOutputAllowedSet. Option name is m_prefix + "mh_dataOutputAllowedSet". More...
 
std::string m_option_totallyMute
 Option name for MhOptionsValues::m_totallyMute. Option name is m_prefix + "mh_totallyMute". More...
 
std::string m_option_initialPosition_dataInputFileName
 Option name for MhOptionsValues::m_initialPositionDataInputFileName. Option name is m_prefix + "mh_initialPosition_dataInputFileName". More...
 
std::string m_option_initialPosition_dataInputFileType
 Option name for MhOptionsValues::m_initialPositionDataInputFileType. Option name is m_prefix + "mh_initialPosition_dataInputFileType". More...
 
std::string m_option_initialProposalCovMatrix_dataInputFileName
 Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileName. Option name is m_prefix + "mh_initialProposalCovMatrix_dataInputFileName". More...
 
std::string m_option_initialProposalCovMatrix_dataInputFileType
 Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileType. Option name is m_prefix + "mh_initialProposalCovMatrix_dataInputFileType". More...
 
std::string m_option_listOfDisabledParameters
 Option name for MhOptionsValues::m_parameterDisabledSet. Option name is m_prefix + "mh_listOfDisabledParameters". More...
 
std::string m_option_rawChain_dataInputFileName
 Option name for MhOptionsValues::m_rawChainDataInputFileName. Option name is m_prefix + "mh_rawChain_dataInputFileName". More...
 
std::string m_option_rawChain_dataInputFileType
 Option name for MhOptionsValues::m_rawChainDataInputFileType. Option name is m_prefix + "mh_rawChain_dataInputFileType". More...
 
std::string m_option_rawChain_size
 Option name for MhOptionsValues::m_rawChainSize. Option name is m_prefix + "mh_rawChain_size". More...
 
std::string m_option_rawChain_generateExtra
 Option name for MhOptionsValues::m_rawChainGenerateExtra. Option name is m_prefix + "mh_rawChain_generateExtra". More...
 
std::string m_option_rawChain_displayPeriod
 Option name for MhOptionsValues::m_rawChainDisplayPeriod. Option name is m_prefix + "mh_rawChain_displayPeriod". More...
 
std::string m_option_rawChain_measureRunTimes
 Option name for MhOptionsValues::m_rawChainMeasureRunTimes. Option name is m_prefix + "mh_rawChain_measureRunTimes". More...
 
std::string m_option_rawChain_dataOutputPeriod
 Option name for MhOptionsValues::m_rawChainDataOutputPeriod. Option name is m_prefix + "mh_rawChain_dataOutputPeriod". More...
 
std::string m_option_rawChain_dataOutputFileName
 Option name for MhOptionsValues::m_rawChainDataOutputFileName. Option name is m_prefix + "mh_rawChain_dataOutputFileName". More...
 
std::string m_option_rawChain_dataOutputFileType
 Option name for MhOptionsValues::m_rawChainDataOutputFileType. Option name is m_prefix + "mh_rawChain_dataOutputFileType". More...
 
std::string m_option_rawChain_dataOutputAllowAll
 Option name for MhOptionsValues::m_rawChainDataOutputAllowAll. Option name is m_prefix + "mh_rawChain_dataOutputAllowAll". More...
 
std::string m_option_rawChain_dataOutputAllowedSet
 Option name for MhOptionsValues::m_rawChainDataOutputAllowedSet. Option name is m_prefix + "mh_rawChain_dataOutputAllowedSet". More...
 
std::string m_option_filteredChain_generate
 Option name for MhOptionsValues::m_filteredChainGenerate. Option name is m_prefix + "mh_filteredChain_generate". More...
 
std::string m_option_filteredChain_discardedPortion
 Option name for MhOptionsValues::m_filteredChainDiscardedPortion. Option name is m_prefix + "mh_filteredChain_discardedPortion". More...
 
std::string m_option_filteredChain_lag
 Option name for MhOptionsValues::m_filteredChainLag. Option name is m_prefix + "mh_filteredChain_lag". More...
 
std::string m_option_filteredChain_dataOutputFileName
 Option name for MhOptionsValues::m_filteredChainDataOutputFileName. Option name is m_prefix + "mh_filteredChain_dataOutputFileName". More...
 
std::string m_option_filteredChain_dataOutputFileType
 Option name for MhOptionsValues::m_filteredChainDataOutputFileType. Option name is m_prefix + "mh_filteredChain_dataOutputFileType". More...
 
std::string m_option_filteredChain_dataOutputAllowAll
 Option name for MhOptionsValues::m_filteredChainDataOutputAllowAll. Option name is m_prefix + "mh_filteredChain_dataOutputAllowAll". More...
 
std::string m_option_filteredChain_dataOutputAllowedSet
 Option name for MhOptionsValues::m_filteredChainDataOutputAllowedSet. Option name is m_prefix + "mh_filteredChain_dataOutputAllowedSet". More...
 
std::string m_option_displayCandidates
 Option name for MhOptionsValues::m_displayCandidates. Option name is m_prefix + "mh_displayCandidates". More...
 
std::string m_option_putOutOfBoundsInChain
 Option name for MhOptionsValues::m_putOutOfBoundsInChain. Option name is m_prefix + "mh_putOutOfBoundsInChain". More...
 
std::string m_option_tk_useLocalHessian
 Option name for MhOptionsValues::m_tkUseLocalHessian. Option name is m_prefix + "mh_tk_useLocalHessian". More...
 
std::string m_option_tk_useNewtonComponent
 Option name for MhOptionsValues::m_tkUseNewtonComponent. Option name is m_prefix + "mh_tk_useNewtonComponent". More...
 
std::string m_option_dr_maxNumExtraStages
 Option name for MhOptionsValues::m_drMaxNumExtraStages. Option name is m_prefix + "mh_dr_maxNumExtraStages". More...
 
std::string m_option_dr_listOfScalesForExtraStages
 Option name for MhOptionsValues::m_drScalesForExtraStages. Option name is m_prefix + "mh_dr_listOfScalesForExtraStages". More...
 
std::string m_option_dr_duringAmNonAdaptiveInt
 Option name for MhOptionsValues::m_drDuringAmNonAdaptiveInt. Option name is m_prefix + "mh_dr_duringAmNonAdaptiveInt". More...
 
std::string m_option_am_keepInitialMatrix
 Option name for MhOptionsValues::m_amKeepInitialMatrix. Option name is m_prefix + "mh_am_keepInitialMatrix". More...
 
std::string m_option_am_initialNonAdaptInterval
 Option name for MhOptionsValues::m_amInitialNonAdaptInterval. Option name is m_prefix + "mh_am_initialNonAdaptInterval". More...
 
std::string m_option_am_adaptInterval
 Option name for MhOptionsValues::m_amAdaptInterval. Option name is m_prefix + "mh_am_adaptInterval". More...
 
std::string m_option_am_adaptedMatrices_dataOutputPeriod
 Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputPeriod". More...
 
std::string m_option_am_adaptedMatrices_dataOutputFileName
 Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileName. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputFileName". More...
 
std::string m_option_am_adaptedMatrices_dataOutputFileType
 Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileType. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputFileType". More...
 
std::string m_option_am_adaptedMatrices_dataOutputAllowAll
 Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputAllowAll". More...
 
std::string m_option_am_adaptedMatrices_dataOutputAllowedSet
 Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputAllowedSet". More...
 
std::string m_option_am_eta
 Option name for MhOptionsValues::m_amEta. Option name is m_prefix + "mh_am_eta". More...
 
std::string m_option_am_epsilon
 Option name for MhOptionsValues::m_amEpsilon. Option name is m_prefix + "mh_am_epsilon". More...
 
std::string m_option_enableBrooksGelmanConvMonitor
 Option name for MhOptionsValues::m_enableBrooksGelmanConvMonitor. Option name is m_prefix + "mh_enableBrooksGelmanConvMonitor". More...
 
std::string m_option_BrooksGelmanLag
 Option name for MhOptionsValues::m_BrooksGelmanLag. Option name is m_prefix + "mh_BrooksGelmanLag". More...
 
std::string m_option_outputLogLikelihood
 Option name for MhOptionsValues::m_outputLogLikelihood. Option name is m_prefix + "mh_outputLogLikelihood". More...
 
std::string m_option_outputLogTarget
 Option name for MhOptionsValues::m_outputLogTarget. Option name is m_prefix + "mh_outputLogTarget". More...
 
std::string m_option_doLogitTransform
 Option name for MhOptionsValues::m_doLogitTransform. Option name is m_prefix + "mh_doLogitTransform". More...
 
std::string m_option_algorithm
 Option name for MhOptionsValues::m_algorithm. Option name is m_prefix + "mh_algorithm". More...
 
std::string m_option_tk
 Option name for MhOptionsValues::m_tk. Option name is m_prefix + "mh_tk". More...
 

Friends

std::ostream & operator<< (std::ostream &os, const MhOptionsValues &obj)
 

Detailed Description

This class provides options for the Metropolis-Hastings generator of samples if no input file is available.

Metropolis-Hastings generator of samples expects some options for its methods to be fully defined. This class provides default values for such options if no input file is available.

Definition at line 127 of file MetropolisHastingsSGOptions.h.

Constructor & Destructor Documentation

QUESO::MhOptionsValues::MhOptionsValues ( )

Default constructor.

Assigns the default suite of options to the Metropolis-Hastings generator of samples.

Definition at line 40 of file MetropolisHastingsSGOptions.C.

46  :
47  m_prefix ("mh_"),
51  //m_dataOutputAllowedSet (),
57  //m_parameterDisabledSet (),
68  //m_rawChainDataOutputAllowedSet (),
69 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
70  m_rawChainComputeStats (UQ_MH_SG_RAW_CHAIN_COMPUTE_STATS_ODV),
71 #endif
78  //m_filteredChainDataOutputAllowedSet (),
79 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
80  m_filteredChainComputeStats (UQ_MH_SG_FILTERED_CHAIN_COMPUTE_STATS_ODV),
81 #endif
96  //m_amAdaptedMatricesDataOutputAllowedSet (),
105  m_tk (UQ_MH_SG_TK),
106 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
107  m_alternativeRawSsOptionsValues (),
108  m_alternativeFilteredSsOptionsValues (),
109 #endif
110  m_env(NULL),
111 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
112  m_parser(NULL),
113 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
114  m_option_help (m_prefix + "help" ),
115  m_option_dataOutputFileName (m_prefix + "dataOutputFileName" ),
116  m_option_dataOutputAllowAll (m_prefix + "dataOutputAllowAll" ),
117  m_option_dataOutputAllowedSet (m_prefix + "dataOutputAllowedSet" ),
118  m_option_totallyMute (m_prefix + "totallyMute" ),
119  m_option_initialPosition_dataInputFileName (m_prefix + "initialPosition_dataInputFileName" ),
120  m_option_initialPosition_dataInputFileType (m_prefix + "initialPosition_dataInputFileType" ),
121  m_option_initialProposalCovMatrix_dataInputFileName(m_prefix + "initialProposalCovMatrix_dataInputFileName"),
122  m_option_initialProposalCovMatrix_dataInputFileType(m_prefix + "initialProposalCovMatrix_dataInputFileType"),
123  m_option_listOfDisabledParameters (m_prefix + "listOfDisabledParameters" ),
124  m_option_rawChain_dataInputFileName (m_prefix + "rawChain_dataInputFileName" ),
125  m_option_rawChain_dataInputFileType (m_prefix + "rawChain_dataInputFileType" ),
126  m_option_rawChain_size (m_prefix + "rawChain_size" ),
127  m_option_rawChain_generateExtra (m_prefix + "rawChain_generateExtra" ),
128  m_option_rawChain_displayPeriod (m_prefix + "rawChain_displayPeriod" ),
129  m_option_rawChain_measureRunTimes (m_prefix + "rawChain_measureRunTimes" ),
130  m_option_rawChain_dataOutputPeriod (m_prefix + "rawChain_dataOutputPeriod" ),
131  m_option_rawChain_dataOutputFileName (m_prefix + "rawChain_dataOutputFileName" ),
132  m_option_rawChain_dataOutputFileType (m_prefix + "rawChain_dataOutputFileType" ),
133  m_option_rawChain_dataOutputAllowAll (m_prefix + "rawChain_dataOutputAllowAll" ),
134  m_option_rawChain_dataOutputAllowedSet (m_prefix + "rawChain_dataOutputAllowedSet" ),
135 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
136  m_option_rawChain_computeStats (m_prefix + "rawChain_computeStats" ),
137 #endif
138  m_option_filteredChain_generate (m_prefix + "filteredChain_generate" ),
139  m_option_filteredChain_discardedPortion (m_prefix + "filteredChain_discardedPortion" ),
140  m_option_filteredChain_lag (m_prefix + "filteredChain_lag" ),
141  m_option_filteredChain_dataOutputFileName (m_prefix + "filteredChain_dataOutputFileName" ),
142  m_option_filteredChain_dataOutputFileType (m_prefix + "filteredChain_dataOutputFileType" ),
143  m_option_filteredChain_dataOutputAllowAll (m_prefix + "filteredChain_dataOutputAllowAll" ),
144  m_option_filteredChain_dataOutputAllowedSet (m_prefix + "filteredChain_dataOutputAllowedSet" ),
145 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
146  m_option_filteredChain_computeStats (m_prefix + "filteredChain_computeStats" ),
147 #endif
148  m_option_displayCandidates (m_prefix + "displayCandidates" ),
149  m_option_putOutOfBoundsInChain (m_prefix + "putOutOfBoundsInChain" ),
150  m_option_tk_useLocalHessian (m_prefix + "tk_useLocalHessian" ),
151  m_option_tk_useNewtonComponent (m_prefix + "tk_useNewtonComponent" ),
152  m_option_dr_maxNumExtraStages (m_prefix + "dr_maxNumExtraStages" ),
153  m_option_dr_listOfScalesForExtraStages (m_prefix + "dr_listOfScalesForExtraStages" ),
154  m_option_dr_duringAmNonAdaptiveInt (m_prefix + "dr_duringAmNonAdaptiveInt" ),
155  m_option_am_keepInitialMatrix (m_prefix + "am_keepInitialMatrix" ),
156  m_option_am_initialNonAdaptInterval (m_prefix + "am_initialNonAdaptInterval" ),
157  m_option_am_adaptInterval (m_prefix + "am_adaptInterval" ),
158  m_option_am_adaptedMatrices_dataOutputPeriod (m_prefix + "am_adaptedMatrices_dataOutputPeriod" ),
159  m_option_am_adaptedMatrices_dataOutputFileName (m_prefix + "am_adaptedMatrices_dataOutputFileName" ),
160  m_option_am_adaptedMatrices_dataOutputFileType (m_prefix + "am_adaptedMatrices_dataOutputFileType" ),
161  m_option_am_adaptedMatrices_dataOutputAllowAll (m_prefix + "am_adaptedMatrices_dataOutputAllowAll" ),
162  m_option_am_adaptedMatrices_dataOutputAllowedSet (m_prefix + "am_adaptedMatrices_dataOutputAllowedSet" ),
163  m_option_am_eta (m_prefix + "am_eta" ),
164  m_option_am_epsilon (m_prefix + "am_epsilon" ),
165  m_option_enableBrooksGelmanConvMonitor (m_prefix + "enableBrooksGelmanConvMonitor" ),
166  m_option_BrooksGelmanLag (m_prefix + "BrooksGelmanLag" ),
167  m_option_outputLogLikelihood (m_prefix + "outputLogLikelihood" ),
168  m_option_outputLogTarget (m_prefix + "outputLogTarget" ),
169  m_option_doLogitTransform (m_prefix + "doLogitTransform" ),
170  m_option_algorithm (m_prefix + "algorithm" ),
171  m_option_tk (m_prefix + "tk" )
172 {
173 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
174  if (alternativeRawSsOptionsValues ) m_alternativeRawSsOptionsValues = *alternativeRawSsOptionsValues;
175  if (alternativeFilteredSsOptionsValues) m_alternativeFilteredSsOptionsValues = *alternativeFilteredSsOptionsValues;
176 #endif
177 }
#define UQ_MH_SG_TOTALLY_MUTE_ODV
double m_filteredChainDiscardedPortion
What initial fraction of the filtered chain is discarded.
std::vector< double > m_drScalesForExtraStages
The vector of scale factors for the proposal covariance matrix to use for delayed rejection...
bool m_displayCandidates
Toggle to tell QUESO whether or not to write proposal (candidate) state to output file...
std::string m_rawChainDataOutputFileName
If not &quot;.&quot;, filename to write the Markov chain to.
#define UQ_MH_SG_RAW_CHAIN_GENERATE_EXTRA_ODV
bool m_totallyMute
If true, zero output is written to files. Default is false.
bool m_putOutOfBoundsInChain
Flag to tell QUESO how chains should be upon generating a proposal that is out of the problem domain...
std::string m_option_rawChain_dataInputFileType
Option name for MhOptionsValues::m_rawChainDataInputFileType. Option name is m_prefix + &quot;mh_rawChain_...
std::string m_option_initialProposalCovMatrix_dataInputFileName
Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileName. Option name is m_prefix...
unsigned int m_rawChainDataOutputPeriod
The frequency with which to write chain output. Defaults to 0.
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_NAME_ODV
std::string m_filteredChainDataOutputFileName
If not &quot;.&quot;, file name to save the filtered chain to. Default is &quot;.&quot;.
std::string m_option_rawChain_measureRunTimes
Option name for MhOptionsValues::m_rawChainMeasureRunTimes. Option name is m_prefix + &quot;mh_rawChain_me...
std::string m_rawChainDataOutputFileType
The filetype of m_rawChainDataOutputFileName.
#define UQ_MH_SG_RAW_CHAIN_MEASURE_RUN_TIMES_ODV
bool m_drDuringAmNonAdaptiveInt
Do delayed rejection during the initial non-adaptive part of sampling?
#define UQ_MH_SG_TK_USE_LOCAL_HESSIAN_ODV
std::string m_option_listOfDisabledParameters
Option name for MhOptionsValues::m_parameterDisabledSet. Option name is m_prefix + &quot;mh_listOfDisabled...
std::string m_option_BrooksGelmanLag
Option name for MhOptionsValues::m_BrooksGelmanLag. Option name is m_prefix + &quot;mh_BrooksGelmanLag&quot;.
std::string m_initialPositionDataInputFileName
If not &quot;.&quot;, reads the contents of the file and uses that to start the MCMC. Default is &quot;...
std::string m_option_dr_listOfScalesForExtraStages
Option name for MhOptionsValues::m_drScalesForExtraStages. Option name is m_prefix + &quot;mh_dr_listOfSca...
unsigned int m_BrooksGelmanLag
The lag with which to compute the Brooks-Gelman convergence statistic.
#define UQ_MH_SG_DR_MAX_NUM_EXTRA_STAGES_ODV
std::string m_option_putOutOfBoundsInChain
Option name for MhOptionsValues::m_putOutOfBoundsInChain. Option name is m_prefix + &quot;mh_putOutOfBound...
#define UQ_MH_SG_OUTPUT_LOG_TARGET
#define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_NAME_ODV
#define UQ_MH_SG_AM_ADAPT_INTERVAL_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV
bool m_outputLogTarget
Flag for deciding whether or not to dump log target values in output Default is true.
std::string m_option_totallyMute
Option name for MhOptionsValues::m_totallyMute. Option name is m_prefix + &quot;mh_totallyMute&quot;.
unsigned int m_rawChainDisplayPeriod
The frequency with which to output diagnostic information.
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_PERIOD_ODV
std::string m_initialProposalCovMatrixDataInputFileName
If not &quot;.&quot;, reads the contents of the file as the initial proposal covariance matrix.
#define UQ_MH_SG_FILTERED_CHAIN_LAG_ODV
std::string m_option_am_eta
Option name for MhOptionsValues::m_amEta. Option name is m_prefix + &quot;mh_am_eta&quot;.
unsigned int m_enableBrooksGelmanConvMonitor
The frequency with which to compute the Brooks-Gelman convergence statistic.
std::string m_option_rawChain_displayPeriod
Option name for MhOptionsValues::m_rawChainDisplayPeriod. Option name is m_prefix + &quot;mh_rawChain_disp...
std::string m_option_tk
Option name for MhOptionsValues::m_tk. Option name is m_prefix + &quot;mh_tk&quot;.
std::string m_option_algorithm
Option name for MhOptionsValues::m_algorithm. Option name is m_prefix + &quot;mh_algorithm&quot;.
std::string m_option_filteredChain_generate
Option name for MhOptionsValues::m_filteredChainGenerate. Option name is m_prefix + &quot;mh_filteredChain...
bool m_tkUseLocalHessian
Flag to tell QUESO whether or not to use Hessian information for the proposal covariance matrix...
std::string m_dataOutputFileName
The base name of output files where the chain (and related information) will be written.
std::string m_option_am_adaptedMatrices_dataOutputFileType
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileType. Option name is m_prefix + &quot;mh...
bool m_filteredChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write filtered Markov chain output to a file...
bool m_filteredChainGenerate
Toggle the option to save a filtered chain.
std::string m_option_help
Option name for MhOptionsValues::m_help. Option name is m_prefix + &quot;mh_help&quot;.
std::string m_option_rawChain_dataOutputAllowedSet
Option name for MhOptionsValues::m_rawChainDataOutputAllowedSet. Option name is m_prefix + &quot;mh_rawCha...
std::string m_option_enableBrooksGelmanConvMonitor
Option name for MhOptionsValues::m_enableBrooksGelmanConvMonitor. Option name is m_prefix + &quot;mh_enabl...
std::string m_option_outputLogTarget
Option name for MhOptionsValues::m_outputLogTarget. Option name is m_prefix + &quot;mh_outputLogTarget&quot;.
#define UQ_MH_SG_ALGORITHM
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_MH_SG_FILTERED_CHAIN_DISCARDED_PORTION_ODV
#define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_TYPE_ODV
#define UQ_MH_SG_DR_DURING_AM_NON_ADAPTIVE_INT_ODV
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_TYPE_ODV
std::string m_option_am_adaptedMatrices_dataOutputAllowAll
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll. Option name is m_prefix + &quot;mh...
std::string m_rawChainDataInputFileType
The filetype of m_rawChainDataInputFileName. Only &quot;m&quot; (matlab) is currently supported. Default is &quot;m&quot;.
std::string m_amAdaptedMatricesDataOutputFileName
If not &quot;.&quot;, this is the file to write adapted proposal covariance matrices to. Default is &quot;...
#define UQ_MH_SG_RAW_CHAIN_DISPLAY_PERIOD_ODV
std::string m_option_dataOutputFileName
Option name for MhOptionsValues::m_dataOutputFileName. Option name is m_prefix + &quot;mh_dataOutputFileNa...
std::string m_initialProposalCovMatrixDataInputFileType
The filetype of m_initialProposalCovMatrixDataInputFileName. Only &quot;m&quot; (matlab) is currently supported...
std::string m_option_filteredChain_dataOutputAllowAll
Option name for MhOptionsValues::m_filteredChainDataOutputAllowAll. Option name is m_prefix + &quot;mh_fil...
std::string m_option_rawChain_generateExtra
Option name for MhOptionsValues::m_rawChainGenerateExtra. Option name is m_prefix + &quot;mh_rawChain_gene...
std::string m_option_rawChain_dataOutputFileType
Option name for MhOptionsValues::m_rawChainDataOutputFileType. Option name is m_prefix + &quot;mh_rawChain...
#define UQ_MH_SG_DO_LOGIT_TRANSFORM
unsigned int m_amInitialNonAdaptInterval
The number of initial samples to do without adapting the proposal covariance matrix.
std::string m_option_tk_useLocalHessian
Option name for MhOptionsValues::m_tkUseLocalHessian. Option name is m_prefix + &quot;mh_tk_useLocalHessia...
std::string m_option_am_adaptedMatrices_dataOutputFileName
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileName. Option name is m_prefix + &quot;mh...
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_NAME_ODV
std::string m_option_doLogitTransform
Option name for MhOptionsValues::m_doLogitTransform. Option name is m_prefix + &quot;mh_doLogitTransform&quot;...
std::string m_option_dataOutputAllowAll
Option name for MhOptionsValues::m_dataOutputAllowAll. Option name is m_prefix + &quot;mh_dataOutputAllowA...
std::string m_tk
Which transition kernel to use for MCMC. Default is &quot;random_walk&quot;.
std::string m_option_dataOutputAllowedSet
Option name for MhOptionsValues::m_dataOutputAllowedSet. Option name is m_prefix + &quot;mh_dataOutputAllo...
#define UQ_MH_SG_HELP
#define UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV
#define UQ_MH_SG_RAW_CHAIN_SIZE_ODV
std::string m_algorithm
Which algorithm to use for the MCMC. Default is &quot;random_walk&quot;.
std::string m_option_am_epsilon
Option name for MhOptionsValues::m_amEpsilon. Option name is m_prefix + &quot;mh_am_epsilon&quot;.
bool m_outputLogLikelihood
Flag for deciding whether or not to dump log likelihood values in output. Default is true...
unsigned int m_drMaxNumExtraStages
The number of delayed rejection stages to do. Default is 0.
#define UQ_MH_SG_FILTERED_CHAIN_GENERATE_ODV
std::string m_option_displayCandidates
Option name for MhOptionsValues::m_displayCandidates. Option name is m_prefix + &quot;mh_displayCandidates...
#define UQ_MH_SG_DISPLAY_CANDIDATES_ODV
std::string m_help
If non-empty string, print options and values to the output file.
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV
std::string m_initialPositionDataInputFileType
The filetype of m_initialPositionDataInputFileName. Only &quot;m&quot; (matlab) is currently supported...
#define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_NAME_ODV
#define UQ_MH_SG_BROOKS_GELMAN_LAG
std::string m_rawChainDataInputFileName
Filename for reading an already-produced Markov chain.
std::string m_option_am_initialNonAdaptInterval
Option name for MhOptionsValues::m_amInitialNonAdaptInterval. Option name is m_prefix + &quot;mh_am_initia...
std::string m_prefix
Prefix for input file option names. Prepends all options for this class.
#define UQ_MH_SG_PUT_OUT_OF_BOUNDS_IN_CHAIN_ODV
std::string m_option_outputLogLikelihood
Option name for MhOptionsValues::m_outputLogLikelihood. Option name is m_prefix + &quot;mh_outputLogLikeli...
std::string m_filteredChainDataOutputFileType
The filetype of m_filteredChainDataOutputFileName. Only &quot;m&quot; (matlab) is currently supported...
std::string m_option_rawChain_dataOutputFileName
Option name for MhOptionsValues::m_rawChainDataOutputFileName. Option name is m_prefix + &quot;mh_rawChain...
std::string m_option_initialPosition_dataInputFileType
Option name for MhOptionsValues::m_initialPositionDataInputFileType. Option name is m_prefix + &quot;mh_in...
std::string m_option_filteredChain_dataOutputAllowedSet
Option name for MhOptionsValues::m_filteredChainDataOutputAllowedSet. Option name is m_prefix + &quot;mh_f...
std::string m_option_filteredChain_discardedPortion
Option name for MhOptionsValues::m_filteredChainDiscardedPortion. Option name is m_prefix + &quot;mh_filte...
bool m_dataOutputAllowAll
If true, all processes write output and m_dataOutputAllowedSet is ignored.
bool m_rawChainGenerateExtra
If true, extra chain information is computed/stored.
std::string m_amAdaptedMatricesDataOutputFileType
The filetype of m_amAdaptedMatricesDataOutputFileName. Only &quot;m&quot; (matlab) is currently supported...
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_NAME_ODV
bool m_rawChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write Markov chain output to a file...
std::string m_option_tk_useNewtonComponent
Option name for MhOptionsValues::m_tkUseNewtonComponent. Option name is m_prefix + &quot;mh_tk_useNewtonCo...
#define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_TYPE_ODV
#define UQ_MH_SG_AM_KEEP_INITIAL_MATRIX_ODV
std::string m_option_initialProposalCovMatrix_dataInputFileType
Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileType. Option name is m_prefix...
#define UQ_MH_SG_TK_USE_NEWTON_COMPONENT_ODV
std::string m_option_initialPosition_dataInputFileName
Option name for MhOptionsValues::m_initialPositionDataInputFileName. Option name is m_prefix + &quot;mh_in...
unsigned int m_filteredChainLag
Set the lag for the filtered chain. Default is 1.
double m_amEta
Proposal covariance scaling factor, usually 2.4 * 2.4 / d.
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOW_ALL_ODV
bool m_tkUseNewtonComponent
This option is a no-op. Default is true.
#define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_NAME_ODV
unsigned int m_rawChainSize
The size of the chain (number of posterior samples) to generate. Default is 100.
std::string m_option_dr_maxNumExtraStages
Option name for MhOptionsValues::m_drMaxNumExtraStages. Option name is m_prefix + &quot;mh_dr_maxNumExtraS...
#define UQ_MH_SG_TK
BoostInputOptionsParser * m_parser
std::string m_option_dr_duringAmNonAdaptiveInt
Option name for MhOptionsValues::m_drDuringAmNonAdaptiveInt. Option name is m_prefix + &quot;mh_dr_duringA...
#define UQ_MH_SG_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_MH_SG_AM_EPSILON_ODV
bool m_amAdaptedMatricesDataOutputAllowAll
This option is a no-op. The default is false.
std::string m_option_rawChain_dataOutputPeriod
Option name for MhOptionsValues::m_rawChainDataOutputPeriod. Option name is m_prefix + &quot;mh_rawChain_d...
#define UQ_MH_SG_AM_INIT_NON_ADAPT_INT_ODV
std::string m_option_rawChain_dataOutputAllowAll
Option name for MhOptionsValues::m_rawChainDataOutputAllowAll. Option name is m_prefix + &quot;mh_rawChain...
bool m_rawChainMeasureRunTimes
If true, measures timings spent in various chain computions and writes them to the output file...
#define UQ_MH_SG_AM_ETA_ODV
std::string m_option_am_adaptedMatrices_dataOutputPeriod
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod. Option name is m_prefix + &quot;mh_a...
#define UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR
double m_amEpsilon
Regularisation parameter for the DRAM covariance matrix.
bool m_doLogitTransform
Flag for deciding whether or not to do logit transform of bounded domains Default is true...
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_PERIOD_ODV
std::string m_option_am_keepInitialMatrix
Option name for MhOptionsValues::m_amKeepInitialMatrix. Option name is m_prefix + &quot;mh_am_keepInitialM...
std::string m_option_filteredChain_lag
Option name for MhOptionsValues::m_filteredChainLag. Option name is m_prefix + &quot;mh_filteredChain_lag&quot;...
unsigned int m_amAdaptInterval
The frequency at which to adapt the proposal covariance matrix.
std::string m_option_am_adaptedMatrices_dataOutputAllowedSet
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet. Option name is m_prefix + &quot;...
std::string m_option_filteredChain_dataOutputFileType
Option name for MhOptionsValues::m_filteredChainDataOutputFileType. Option name is m_prefix + &quot;mh_fil...
bool m_amKeepInitialMatrix
This option is a no-op. The default is false.
std::string m_option_am_adaptInterval
Option name for MhOptionsValues::m_amAdaptInterval. Option name is m_prefix + &quot;mh_am_adaptInterval&quot;.
std::string m_option_rawChain_size
Option name for MhOptionsValues::m_rawChainSize. Option name is m_prefix + &quot;mh_rawChain_size&quot;.
#define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_TYPE_ODV
unsigned int m_amAdaptedMatricesDataOutputPeriod
The frequency (after m_amInitialNonAdaptInterval samples are done) of printing the last adapted propo...
std::string m_option_rawChain_dataInputFileName
Option name for MhOptionsValues::m_rawChainDataInputFileName. Option name is m_prefix + &quot;mh_rawChain_...
#define UQ_MH_SG_DATA_OUTPUT_ALLOW_ALL_ODV
std::string m_option_filteredChain_dataOutputFileName
Option name for MhOptionsValues::m_filteredChainDataOutputFileName. Option name is m_prefix + &quot;mh_fil...
QUESO::MhOptionsValues::MhOptionsValues ( const BaseEnvironment env,
const char *  prefix 
)

Prefix constructor for input file parsing purposes.

Definition at line 179 of file MetropolisHastingsSGOptions.C.

References checkOptions(), QUESO::BoostInputOptionsParser::getOption(), QUESO::BaseEnvironment::input(), m_algorithm, m_amAdaptedMatricesDataOutputAllowAll, m_amAdaptedMatricesDataOutputAllowedSet, m_amAdaptedMatricesDataOutputFileName, m_amAdaptedMatricesDataOutputFileType, m_amAdaptedMatricesDataOutputPeriod, m_amAdaptInterval, m_amEpsilon, m_amEta, m_amInitialNonAdaptInterval, m_amKeepInitialMatrix, m_BrooksGelmanLag, m_dataOutputAllowAll, m_dataOutputAllowedSet, m_dataOutputFileName, m_displayCandidates, m_doLogitTransform, m_drDuringAmNonAdaptiveInt, m_drMaxNumExtraStages, m_drScalesForExtraStages, m_enableBrooksGelmanConvMonitor, m_env, m_filteredChainDataOutputAllowAll, m_filteredChainDataOutputAllowedSet, m_filteredChainDataOutputFileName, m_filteredChainDataOutputFileType, m_filteredChainDiscardedPortion, m_filteredChainGenerate, m_filteredChainLag, m_help, m_initialPositionDataInputFileName, m_initialPositionDataInputFileType, m_initialProposalCovMatrixDataInputFileName, m_initialProposalCovMatrixDataInputFileType, m_option_algorithm, m_option_am_adaptedMatrices_dataOutputAllowAll, m_option_am_adaptedMatrices_dataOutputAllowedSet, m_option_am_adaptedMatrices_dataOutputFileName, m_option_am_adaptedMatrices_dataOutputFileType, m_option_am_adaptedMatrices_dataOutputPeriod, m_option_am_adaptInterval, m_option_am_epsilon, m_option_am_eta, m_option_am_initialNonAdaptInterval, m_option_am_keepInitialMatrix, m_option_BrooksGelmanLag, m_option_dataOutputAllowAll, m_option_dataOutputAllowedSet, m_option_dataOutputFileName, m_option_displayCandidates, m_option_doLogitTransform, m_option_dr_duringAmNonAdaptiveInt, m_option_dr_listOfScalesForExtraStages, m_option_dr_maxNumExtraStages, m_option_enableBrooksGelmanConvMonitor, m_option_filteredChain_dataOutputAllowAll, m_option_filteredChain_dataOutputAllowedSet, m_option_filteredChain_dataOutputFileName, m_option_filteredChain_dataOutputFileType, m_option_filteredChain_discardedPortion, m_option_filteredChain_generate, m_option_filteredChain_lag, m_option_help, m_option_initialPosition_dataInputFileName, m_option_initialPosition_dataInputFileType, m_option_initialProposalCovMatrix_dataInputFileName, m_option_initialProposalCovMatrix_dataInputFileType, m_option_listOfDisabledParameters, m_option_outputLogLikelihood, m_option_outputLogTarget, m_option_putOutOfBoundsInChain, m_option_rawChain_dataInputFileName, m_option_rawChain_dataInputFileType, m_option_rawChain_dataOutputAllowAll, m_option_rawChain_dataOutputAllowedSet, m_option_rawChain_dataOutputFileName, m_option_rawChain_dataOutputFileType, m_option_rawChain_dataOutputPeriod, m_option_rawChain_displayPeriod, m_option_rawChain_generateExtra, m_option_rawChain_measureRunTimes, m_option_rawChain_size, m_option_tk, m_option_tk_useLocalHessian, m_option_tk_useNewtonComponent, m_option_totallyMute, m_outputLogLikelihood, m_outputLogTarget, m_parameterDisabledSet, m_parser, m_putOutOfBoundsInChain, m_rawChainDataInputFileName, m_rawChainDataInputFileType, m_rawChainDataOutputAllowAll, m_rawChainDataOutputAllowedSet, m_rawChainDataOutputFileName, m_rawChainDataOutputFileType, m_rawChainDataOutputPeriod, m_rawChainDisplayPeriod, m_rawChainGenerateExtra, m_rawChainMeasureRunTimes, m_rawChainSize, m_tk, m_tkUseLocalHessian, m_tkUseNewtonComponent, m_totallyMute, QUESO::BoostInputOptionsParser::registerOption(), QUESO::BoostInputOptionsParser::scanInputFile(), UQ_MH_SG_ALGORITHM, UQ_MH_SG_AM_ADAPT_INTERVAL_ODV, UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOW_ALL_ODV, UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_NAME_ODV, UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_TYPE_ODV, UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_PERIOD_ODV, UQ_MH_SG_AM_EPSILON_ODV, UQ_MH_SG_AM_ETA_ODV, UQ_MH_SG_AM_INIT_NON_ADAPT_INT_ODV, UQ_MH_SG_AM_KEEP_INITIAL_MATRIX_ODV, UQ_MH_SG_BROOKS_GELMAN_LAG, UQ_MH_SG_DATA_OUTPUT_ALLOW_ALL_ODV, UQ_MH_SG_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_MH_SG_DATA_OUTPUT_FILE_NAME_ODV, UQ_MH_SG_DISPLAY_CANDIDATES_ODV, UQ_MH_SG_DO_LOGIT_TRANSFORM, UQ_MH_SG_DR_DURING_AM_NON_ADAPTIVE_INT_ODV, UQ_MH_SG_DR_LIST_OF_SCALES_FOR_EXTRA_STAGES_ODV, UQ_MH_SG_DR_MAX_NUM_EXTRA_STAGES_ODV, UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR, UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV, UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_NAME_ODV, UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV, UQ_MH_SG_FILTERED_CHAIN_DISCARDED_PORTION_ODV, UQ_MH_SG_FILTERED_CHAIN_GENERATE_ODV, UQ_MH_SG_FILTERED_CHAIN_LAG_ODV, UQ_MH_SG_HELP, UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_NAME_ODV, UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_TYPE_ODV, UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_NAME_ODV, UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_TYPE_ODV, UQ_MH_SG_LIST_OF_DISABLED_PARAMETERS_ODV, UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD, UQ_MH_SG_OUTPUT_LOG_TARGET, UQ_MH_SG_PUT_OUT_OF_BOUNDS_IN_CHAIN_ODV, UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_NAME_ODV, UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_TYPE_ODV, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_NAME_ODV, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_PERIOD_ODV, UQ_MH_SG_RAW_CHAIN_DISPLAY_PERIOD_ODV, UQ_MH_SG_RAW_CHAIN_GENERATE_EXTRA_ODV, UQ_MH_SG_RAW_CHAIN_MEASURE_RUN_TIMES_ODV, UQ_MH_SG_RAW_CHAIN_SIZE_ODV, UQ_MH_SG_TK, UQ_MH_SG_TK_USE_LOCAL_HESSIAN_ODV, UQ_MH_SG_TK_USE_NEWTON_COMPONENT_ODV, UQ_MH_SG_TOTALLY_MUTE_ODV, and GetPot::vector_variable_size().

187  :
188  m_prefix ((std::string)(prefix) + "mh_"),
192  //m_dataOutputAllowedSet (),
198  //m_parameterDisabledSet (),
209  //m_rawChainDataOutputAllowedSet (),
210 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
211  m_rawChainComputeStats (UQ_MH_SG_RAW_CHAIN_COMPUTE_STATS_ODV),
212 #endif
219  //m_filteredChainDataOutputAllowedSet (),
220 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
221  m_filteredChainComputeStats (UQ_MH_SG_FILTERED_CHAIN_COMPUTE_STATS_ODV),
222 #endif
237  //m_amAdaptedMatricesDataOutputAllowedSet (),
246  m_tk (UQ_MH_SG_TK),
247 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
248  m_alternativeRawSsOptionsValues (),
249  m_alternativeFilteredSsOptionsValues (),
250 #endif
251  m_env(env),
252 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
253  m_parser(new BoostInputOptionsParser(env->optionsInputFileName())),
254 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
255  m_option_help (m_prefix + "help" ),
256  m_option_dataOutputFileName (m_prefix + "dataOutputFileName" ),
257  m_option_dataOutputAllowAll (m_prefix + "dataOutputAllowAll" ),
258  m_option_dataOutputAllowedSet (m_prefix + "dataOutputAllowedSet" ),
259  m_option_totallyMute (m_prefix + "totallyMute" ),
260  m_option_initialPosition_dataInputFileName (m_prefix + "initialPosition_dataInputFileName" ),
261  m_option_initialPosition_dataInputFileType (m_prefix + "initialPosition_dataInputFileType" ),
262  m_option_initialProposalCovMatrix_dataInputFileName(m_prefix + "initialProposalCovMatrix_dataInputFileName"),
263  m_option_initialProposalCovMatrix_dataInputFileType(m_prefix + "initialProposalCovMatrix_dataInputFileType"),
264  m_option_listOfDisabledParameters (m_prefix + "listOfDisabledParameters" ),
265  m_option_rawChain_dataInputFileName (m_prefix + "rawChain_dataInputFileName" ),
266  m_option_rawChain_dataInputFileType (m_prefix + "rawChain_dataInputFileType" ),
267  m_option_rawChain_size (m_prefix + "rawChain_size" ),
268  m_option_rawChain_generateExtra (m_prefix + "rawChain_generateExtra" ),
269  m_option_rawChain_displayPeriod (m_prefix + "rawChain_displayPeriod" ),
270  m_option_rawChain_measureRunTimes (m_prefix + "rawChain_measureRunTimes" ),
271  m_option_rawChain_dataOutputPeriod (m_prefix + "rawChain_dataOutputPeriod" ),
272  m_option_rawChain_dataOutputFileName (m_prefix + "rawChain_dataOutputFileName" ),
273  m_option_rawChain_dataOutputFileType (m_prefix + "rawChain_dataOutputFileType" ),
274  m_option_rawChain_dataOutputAllowAll (m_prefix + "rawChain_dataOutputAllowAll" ),
275  m_option_rawChain_dataOutputAllowedSet (m_prefix + "rawChain_dataOutputAllowedSet" ),
276 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
277  m_option_rawChain_computeStats (m_prefix + "rawChain_computeStats" ),
278 #endif
279  m_option_filteredChain_generate (m_prefix + "filteredChain_generate" ),
280  m_option_filteredChain_discardedPortion (m_prefix + "filteredChain_discardedPortion" ),
281  m_option_filteredChain_lag (m_prefix + "filteredChain_lag" ),
282  m_option_filteredChain_dataOutputFileName (m_prefix + "filteredChain_dataOutputFileName" ),
283  m_option_filteredChain_dataOutputFileType (m_prefix + "filteredChain_dataOutputFileType" ),
284  m_option_filteredChain_dataOutputAllowAll (m_prefix + "filteredChain_dataOutputAllowAll" ),
285  m_option_filteredChain_dataOutputAllowedSet (m_prefix + "filteredChain_dataOutputAllowedSet" ),
286 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
287  m_option_filteredChain_computeStats (m_prefix + "filteredChain_computeStats" ),
288 #endif
289  m_option_displayCandidates (m_prefix + "displayCandidates" ),
290  m_option_putOutOfBoundsInChain (m_prefix + "putOutOfBoundsInChain" ),
291  m_option_tk_useLocalHessian (m_prefix + "tk_useLocalHessian" ),
292  m_option_tk_useNewtonComponent (m_prefix + "tk_useNewtonComponent" ),
293  m_option_dr_maxNumExtraStages (m_prefix + "dr_maxNumExtraStages" ),
294  m_option_dr_listOfScalesForExtraStages (m_prefix + "dr_listOfScalesForExtraStages" ),
295  m_option_dr_duringAmNonAdaptiveInt (m_prefix + "dr_duringAmNonAdaptiveInt" ),
296  m_option_am_keepInitialMatrix (m_prefix + "am_keepInitialMatrix" ),
297  m_option_am_initialNonAdaptInterval (m_prefix + "am_initialNonAdaptInterval" ),
298  m_option_am_adaptInterval (m_prefix + "am_adaptInterval" ),
299  m_option_am_adaptedMatrices_dataOutputPeriod (m_prefix + "am_adaptedMatrices_dataOutputPeriod" ),
300  m_option_am_adaptedMatrices_dataOutputFileName (m_prefix + "am_adaptedMatrices_dataOutputFileName" ),
301  m_option_am_adaptedMatrices_dataOutputFileType (m_prefix + "am_adaptedMatrices_dataOutputFileType" ),
302  m_option_am_adaptedMatrices_dataOutputAllowAll (m_prefix + "am_adaptedMatrices_dataOutputAllowAll" ),
303  m_option_am_adaptedMatrices_dataOutputAllowedSet (m_prefix + "am_adaptedMatrices_dataOutputAllowedSet" ),
304  m_option_am_eta (m_prefix + "am_eta" ),
305  m_option_am_epsilon (m_prefix + "am_epsilon" ),
306  m_option_enableBrooksGelmanConvMonitor (m_prefix + "enableBrooksGelmanConvMonitor" ),
307  m_option_BrooksGelmanLag (m_prefix + "BrooksGelmanLag" ),
308  m_option_outputLogLikelihood (m_prefix + "outputLogLikelihood" ),
309  m_option_outputLogTarget (m_prefix + "outputLogTarget" ),
310  m_option_doLogitTransform (m_prefix + "doLogitTransform" ),
311  m_option_algorithm (m_prefix + "algorithm" ),
312  m_option_tk (m_prefix + "tk" )
313 {
314 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
315  if (alternativeRawSsOptionsValues ) m_alternativeRawSsOptionsValues = *alternativeRawSsOptionsValues;
316  if (alternativeFilteredSsOptionsValues) m_alternativeFilteredSsOptionsValues = *alternativeFilteredSsOptionsValues;
317 #endif
318 
319 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
320  m_parser->registerOption<std::string >(m_option_help, UQ_MH_SG_HELP, "produce help msg for Bayesian Metropolis-Hastings" );
321  m_parser->registerOption<std::string >(m_option_dataOutputFileName, UQ_MH_SG_DATA_OUTPUT_FILE_NAME_ODV , "name of generic output file" );
322  m_parser->registerOption<bool >(m_option_dataOutputAllowAll, UQ_MH_SG_DATA_OUTPUT_ALLOW_ALL_ODV , "allow all subEnvs write to a generic output file" );
323  m_parser->registerOption<std::string >(m_option_dataOutputAllowedSet, UQ_MH_SG_DATA_OUTPUT_ALLOWED_SET_ODV , "subEnvs that will write to generic output file" );
324  m_parser->registerOption<bool >(m_option_totallyMute, UQ_MH_SG_TOTALLY_MUTE_ODV , "totally mute (no printout msg)" );
330  m_parser->registerOption<std::string >(m_option_rawChain_dataInputFileName, UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_NAME_ODV , "name of input file for raw chain " );
331  m_parser->registerOption<std::string >(m_option_rawChain_dataInputFileType, UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_TYPE_ODV , "type of input file for raw chain " );
332  m_parser->registerOption<unsigned int>(m_option_rawChain_size, UQ_MH_SG_RAW_CHAIN_SIZE_ODV , "size of raw chain" );
333  m_parser->registerOption<bool >(m_option_rawChain_generateExtra, UQ_MH_SG_RAW_CHAIN_GENERATE_EXTRA_ODV , "generate extra information about raw chain" );
334  m_parser->registerOption<unsigned int>(m_option_rawChain_displayPeriod, UQ_MH_SG_RAW_CHAIN_DISPLAY_PERIOD_ODV , "period of msg display during raw chain generation" );
336  m_parser->registerOption<unsigned int>(m_option_rawChain_dataOutputPeriod, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_PERIOD_ODV , "period of msg display during raw chain generation" );
337  m_parser->registerOption<std::string >(m_option_rawChain_dataOutputFileName, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_NAME_ODV , "name of output file for raw chain " );
338  m_parser->registerOption<std::string >(m_option_rawChain_dataOutputFileType, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV , "type of output file for raw chain " );
339  m_parser->registerOption<bool >(m_option_rawChain_dataOutputAllowAll, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV , "allow all subEnvs to write raw chain to an output file" );
340  m_parser->registerOption<std::string >(m_option_rawChain_dataOutputAllowedSet, UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV , "subEnvs that will write raw chain to output file" );
341 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
342  m_parser->registerOption<bool >(m_option_rawChain_computeStats, UQ_MH_SG_RAW_CHAIN_COMPUTE_STATS_ODV , "compute statistics on raw chain" );
343 #endif
345  m_parser->registerOption<double >(m_option_filteredChain_discardedPortion, UQ_MH_SG_FILTERED_CHAIN_DISCARDED_PORTION_ODV , "initial discarded portion for chain filtering" );
346  m_parser->registerOption<unsigned int>(m_option_filteredChain_lag, UQ_MH_SG_FILTERED_CHAIN_LAG_ODV , "spacing for chain filtering" );
349  m_parser->registerOption<bool >(m_option_filteredChain_dataOutputAllowAll, UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV , "allow all subEnvs to write filt chain to an output file" );
350  m_parser->registerOption<std::string >(m_option_filteredChain_dataOutputAllowedSet, UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV , "subEnvs that will write filt chain to output file" );
351 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
352  m_parser->registerOption<bool >(m_option_filteredChain_computeStats, UQ_MH_SG_FILTERED_CHAIN_COMPUTE_STATS_ODV , "compute statistics on filtered chain" );
353 #endif
354  m_parser->registerOption<bool >(m_option_displayCandidates, UQ_MH_SG_DISPLAY_CANDIDATES_ODV , "display candidates in the core MH algorithm" );
355  m_parser->registerOption<bool >(m_option_putOutOfBoundsInChain, UQ_MH_SG_PUT_OUT_OF_BOUNDS_IN_CHAIN_ODV , "put 'out of bound' candidates in chain as well" );
356  m_parser->registerOption<bool >(m_option_tk_useLocalHessian, UQ_MH_SG_TK_USE_LOCAL_HESSIAN_ODV , "'proposal' use local Hessian" );
358  m_parser->registerOption<unsigned int>(m_option_dr_maxNumExtraStages, UQ_MH_SG_DR_MAX_NUM_EXTRA_STAGES_ODV , "'dr' maximum number of extra stages" );
359  m_parser->registerOption<std::string >(m_option_dr_listOfScalesForExtraStages, UQ_MH_SG_DR_LIST_OF_SCALES_FOR_EXTRA_STAGES_ODV , "'dr' scales for prop cov matrices from 2nd stage on" );
360  m_parser->registerOption<bool >(m_option_dr_duringAmNonAdaptiveInt, UQ_MH_SG_DR_DURING_AM_NON_ADAPTIVE_INT_ODV , "'dr' used during 'am' non adaptive interval" );
361  m_parser->registerOption<bool >(m_option_am_keepInitialMatrix, UQ_MH_SG_AM_KEEP_INITIAL_MATRIX_ODV , "'am' keep initial (given) matrix" );
362  m_parser->registerOption<unsigned int>(m_option_am_initialNonAdaptInterval, UQ_MH_SG_AM_INIT_NON_ADAPT_INT_ODV , "'am' initial non adaptation interval" );
363  m_parser->registerOption<unsigned int>(m_option_am_adaptInterval, UQ_MH_SG_AM_ADAPT_INTERVAL_ODV , "'am' adaptation interval" );
371  m_parser->registerOption<unsigned int>(m_option_enableBrooksGelmanConvMonitor, UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR , "assess convergence using Brooks-Gelman metric" );
372  m_parser->registerOption<unsigned int>(m_option_BrooksGelmanLag, UQ_MH_SG_BROOKS_GELMAN_LAG , "number of chain positions before starting to compute metric");
373  m_parser->registerOption<bool >(m_option_outputLogLikelihood, UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD , "flag to toggle output of log likelihood values" );
374  m_parser->registerOption<bool >(m_option_outputLogTarget, UQ_MH_SG_OUTPUT_LOG_TARGET , "flag to toggle output of log target values" );
375  m_parser->registerOption<bool >(m_option_doLogitTransform, UQ_MH_SG_DO_LOGIT_TRANSFORM , "flag to toggle logit transform for bounded domains" );
376  m_parser->registerOption<std::string >(m_option_algorithm, UQ_MH_SG_ALGORITHM , "which MCMC algorithm to use" );
377  m_parser->registerOption<std::string >(m_option_tk, UQ_MH_SG_TK , "which MCMC transition kernel to use" );
378 
380 
381  m_parser->getOption<std::string >(m_option_help, m_help);
402 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
403  m_parser->getOption<bool >(m_option_rawChain_computeStats, m_rawChain_computeStats);
404 #endif
412 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
413  m_parser->getOption<bool >(m_option_filteredChain_computeStats, m_filteredChain_computeStats);
414 #endif
438  m_parser->getOption<std::string >(m_option_tk, m_tk);
439 #else
443 
444  // UQ_MH_SG_DATA_OUTPUT_ALLOWED_SET_ODV is the empty set (string) by default
445  unsigned int size = m_env->input().vector_variable_size(m_option_dataOutputAllowedSet);
446  for (unsigned int i = 0; i < size; i++) {
447  // We default to empty set, so the default values are actually never used
448  // here
449  unsigned int allowed = m_env->input()(m_option_dataOutputAllowedSet, i, i);
450  m_dataOutputAllowedSet.insert(allowed);
451  }
452 
458 
459  // UQ_MH_SG_LIST_OF_DISABLED_PARAMETERS_ODV is the empty set (string) by
460  // default
461  size = m_env->input().vector_variable_size(m_option_listOfDisabledParameters);
462  for (unsigned int i = 0; i < size; i++) {
463  // We default to empty set, so the default values are actually never used
464  // here
465  unsigned int disabled = m_env->input()(m_option_listOfDisabledParameters, i, i);
466  m_parameterDisabledSet.insert(disabled);
467  }
468 
479 
480  // UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV is the empty set (string) by default
481  size = m_env->input().vector_variable_size(m_option_rawChain_dataOutputAllowedSet);
482  for (unsigned int i = 0; i < size; i++) {
483  // We default to empty set, so the default values are actually never used
484  // here
485  unsigned int allowed = m_env->input()(m_option_rawChain_dataOutputAllowedSet, i, i);
486  m_rawChainDataOutputAllowedSet.insert(allowed);
487  }
488 
489 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
490  m_rawChain_computeStats = m_env->input()(m_option_rawChain_computeStats, UQ_MH_SG_RAW_CHAIN_COMPUTE_STATS_ODV);
491 #endif
498 
499  // UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV is the empty set (string) by default
500  size = m_env->input().vector_variable_size(m_option_filteredChain_dataOutputAllowedSet);
501  for (unsigned int i = 0; i < size; i++) {
502  // We default to empty set, so the default values are actually never used
503  // here
504  unsigned int allowed = m_env->input()(m_option_filteredChain_dataOutputAllowedSet, i, i);
505  m_filteredChainDataOutputAllowedSet.insert(allowed);
506  }
507 
508 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
509  m_filteredChain_computeStats = m_env->input()(m_option_filteredChain_computeStats, UQ_MH_SG_FILTERED_CHAIN_COMPUTE_STATS_ODV);
510 #endif
516 
517  // UQ_MH_SG_DR_LIST_OF_SCALES_FOR_EXTRA_STAGES_ODV is the empty set (string) by default
518  size = m_env->input().vector_variable_size(m_option_dr_listOfScalesForExtraStages);
519  for (unsigned int i = 0; i < size; i++) {
520  // We default to empty set, so the default values are actually never used
521  // here
522  unsigned int allowed = m_env->input()(m_option_dr_listOfScalesForExtraStages, i, i);
523  m_drScalesForExtraStages.push_back(allowed);
524  }
525 
534 
535  // UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOWED_SET_ODV is the empty set (string) by default
536  size = m_env->input().vector_variable_size(m_option_am_adaptedMatrices_dataOutputAllowedSet);
537  for (unsigned int i = 0; i < size; i++) {
538  // We default to empty set, so the default values are actually never used
539  // here
540  unsigned int allowed = m_env->input()(m_option_am_adaptedMatrices_dataOutputAllowedSet, i, i);
542  }
543 
553 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
554 
555  checkOptions(env);
556 }
#define UQ_MH_SG_TOTALLY_MUTE_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV
double m_filteredChainDiscardedPortion
What initial fraction of the filtered chain is discarded.
std::vector< double > m_drScalesForExtraStages
The vector of scale factors for the proposal covariance matrix to use for delayed rejection...
bool m_displayCandidates
Toggle to tell QUESO whether or not to write proposal (candidate) state to output file...
std::string m_rawChainDataOutputFileName
If not &quot;.&quot;, filename to write the Markov chain to.
#define UQ_MH_SG_RAW_CHAIN_GENERATE_EXTRA_ODV
bool m_totallyMute
If true, zero output is written to files. Default is false.
bool m_putOutOfBoundsInChain
Flag to tell QUESO how chains should be upon generating a proposal that is out of the problem domain...
std::set< unsigned int > m_amAdaptedMatricesDataOutputAllowedSet
This option is a no-op. The default is the empty set.
std::string m_option_rawChain_dataInputFileType
Option name for MhOptionsValues::m_rawChainDataInputFileType. Option name is m_prefix + &quot;mh_rawChain_...
std::string m_option_initialProposalCovMatrix_dataInputFileName
Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileName. Option name is m_prefix...
unsigned int m_rawChainDataOutputPeriod
The frequency with which to write chain output. Defaults to 0.
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_NAME_ODV
std::string m_filteredChainDataOutputFileName
If not &quot;.&quot;, file name to save the filtered chain to. Default is &quot;.&quot;.
std::string m_option_rawChain_measureRunTimes
Option name for MhOptionsValues::m_rawChainMeasureRunTimes. Option name is m_prefix + &quot;mh_rawChain_me...
std::string m_rawChainDataOutputFileType
The filetype of m_rawChainDataOutputFileName.
#define UQ_MH_SG_RAW_CHAIN_MEASURE_RUN_TIMES_ODV
#define UQ_MH_SG_LIST_OF_DISABLED_PARAMETERS_ODV
bool m_drDuringAmNonAdaptiveInt
Do delayed rejection during the initial non-adaptive part of sampling?
#define UQ_MH_SG_TK_USE_LOCAL_HESSIAN_ODV
void checkOptions(const BaseEnvironment *env)
const GetPot & input() const
The GetPot input file parser.
Definition: Environment.C:1148
std::string m_option_listOfDisabledParameters
Option name for MhOptionsValues::m_parameterDisabledSet. Option name is m_prefix + &quot;mh_listOfDisabled...
std::string m_option_BrooksGelmanLag
Option name for MhOptionsValues::m_BrooksGelmanLag. Option name is m_prefix + &quot;mh_BrooksGelmanLag&quot;.
std::string m_initialPositionDataInputFileName
If not &quot;.&quot;, reads the contents of the file and uses that to start the MCMC. Default is &quot;...
std::string m_option_dr_listOfScalesForExtraStages
Option name for MhOptionsValues::m_drScalesForExtraStages. Option name is m_prefix + &quot;mh_dr_listOfSca...
unsigned int m_BrooksGelmanLag
The lag with which to compute the Brooks-Gelman convergence statistic.
#define UQ_MH_SG_DR_MAX_NUM_EXTRA_STAGES_ODV
std::string m_option_putOutOfBoundsInChain
Option name for MhOptionsValues::m_putOutOfBoundsInChain. Option name is m_prefix + &quot;mh_putOutOfBound...
#define UQ_MH_SG_OUTPUT_LOG_TARGET
#define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_NAME_ODV
#define UQ_MH_SG_AM_ADAPT_INTERVAL_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV
bool m_outputLogTarget
Flag for deciding whether or not to dump log target values in output Default is true.
std::string m_option_totallyMute
Option name for MhOptionsValues::m_totallyMute. Option name is m_prefix + &quot;mh_totallyMute&quot;.
unsigned int m_rawChainDisplayPeriod
The frequency with which to output diagnostic information.
#define UQ_MH_SG_DR_LIST_OF_SCALES_FOR_EXTRA_STAGES_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_PERIOD_ODV
std::string m_initialProposalCovMatrixDataInputFileName
If not &quot;.&quot;, reads the contents of the file as the initial proposal covariance matrix.
#define UQ_MH_SG_FILTERED_CHAIN_LAG_ODV
std::string m_option_am_eta
Option name for MhOptionsValues::m_amEta. Option name is m_prefix + &quot;mh_am_eta&quot;.
unsigned int m_enableBrooksGelmanConvMonitor
The frequency with which to compute the Brooks-Gelman convergence statistic.
std::string m_option_rawChain_displayPeriod
Option name for MhOptionsValues::m_rawChainDisplayPeriod. Option name is m_prefix + &quot;mh_rawChain_disp...
std::string m_option_tk
Option name for MhOptionsValues::m_tk. Option name is m_prefix + &quot;mh_tk&quot;.
std::string m_option_algorithm
Option name for MhOptionsValues::m_algorithm. Option name is m_prefix + &quot;mh_algorithm&quot;.
std::string m_option_filteredChain_generate
Option name for MhOptionsValues::m_filteredChainGenerate. Option name is m_prefix + &quot;mh_filteredChain...
bool m_tkUseLocalHessian
Flag to tell QUESO whether or not to use Hessian information for the proposal covariance matrix...
std::string m_dataOutputFileName
The base name of output files where the chain (and related information) will be written.
std::string m_option_am_adaptedMatrices_dataOutputFileType
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileType. Option name is m_prefix + &quot;mh...
unsigned vector_variable_size(const char *VarName) const
Definition: getpot.h:2532
bool m_filteredChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write filtered Markov chain output to a file...
void getOption(std::string &name, T &value)
Get option name from the parser and set value to the parsed value.
std::set< unsigned int > m_parameterDisabledSet
Set of parameters that don&#39;t get sampled.
bool m_filteredChainGenerate
Toggle the option to save a filtered chain.
std::string m_option_help
Option name for MhOptionsValues::m_help. Option name is m_prefix + &quot;mh_help&quot;.
std::string m_option_rawChain_dataOutputAllowedSet
Option name for MhOptionsValues::m_rawChainDataOutputAllowedSet. Option name is m_prefix + &quot;mh_rawCha...
std::string m_option_enableBrooksGelmanConvMonitor
Option name for MhOptionsValues::m_enableBrooksGelmanConvMonitor. Option name is m_prefix + &quot;mh_enabl...
std::string m_option_outputLogTarget
Option name for MhOptionsValues::m_outputLogTarget. Option name is m_prefix + &quot;mh_outputLogTarget&quot;.
#define UQ_MH_SG_ALGORITHM
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_MH_SG_FILTERED_CHAIN_DISCARDED_PORTION_ODV
#define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_TYPE_ODV
#define UQ_MH_SG_DR_DURING_AM_NON_ADAPTIVE_INT_ODV
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_TYPE_ODV
std::string m_option_am_adaptedMatrices_dataOutputAllowAll
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll. Option name is m_prefix + &quot;mh...
std::string m_rawChainDataInputFileType
The filetype of m_rawChainDataInputFileName. Only &quot;m&quot; (matlab) is currently supported. Default is &quot;m&quot;.
std::string m_amAdaptedMatricesDataOutputFileName
If not &quot;.&quot;, this is the file to write adapted proposal covariance matrices to. Default is &quot;...
#define UQ_MH_SG_RAW_CHAIN_DISPLAY_PERIOD_ODV
std::string m_option_dataOutputFileName
Option name for MhOptionsValues::m_dataOutputFileName. Option name is m_prefix + &quot;mh_dataOutputFileNa...
std::string m_initialProposalCovMatrixDataInputFileType
The filetype of m_initialProposalCovMatrixDataInputFileName. Only &quot;m&quot; (matlab) is currently supported...
std::string m_option_filteredChain_dataOutputAllowAll
Option name for MhOptionsValues::m_filteredChainDataOutputAllowAll. Option name is m_prefix + &quot;mh_fil...
std::string m_option_rawChain_generateExtra
Option name for MhOptionsValues::m_rawChainGenerateExtra. Option name is m_prefix + &quot;mh_rawChain_gene...
std::string m_option_rawChain_dataOutputFileType
Option name for MhOptionsValues::m_rawChainDataOutputFileType. Option name is m_prefix + &quot;mh_rawChain...
#define UQ_MH_SG_DO_LOGIT_TRANSFORM
unsigned int m_amInitialNonAdaptInterval
The number of initial samples to do without adapting the proposal covariance matrix.
std::string m_option_tk_useLocalHessian
Option name for MhOptionsValues::m_tkUseLocalHessian. Option name is m_prefix + &quot;mh_tk_useLocalHessia...
std::string m_option_am_adaptedMatrices_dataOutputFileName
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileName. Option name is m_prefix + &quot;mh...
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_NAME_ODV
std::string m_option_doLogitTransform
Option name for MhOptionsValues::m_doLogitTransform. Option name is m_prefix + &quot;mh_doLogitTransform&quot;...
std::string m_option_dataOutputAllowAll
Option name for MhOptionsValues::m_dataOutputAllowAll. Option name is m_prefix + &quot;mh_dataOutputAllowA...
std::string m_tk
Which transition kernel to use for MCMC. Default is &quot;random_walk&quot;.
std::string m_option_dataOutputAllowedSet
Option name for MhOptionsValues::m_dataOutputAllowedSet. Option name is m_prefix + &quot;mh_dataOutputAllo...
#define UQ_MH_SG_HELP
void scanInputFile()
This is the method that parses the input file.
#define UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV
#define UQ_MH_SG_RAW_CHAIN_SIZE_ODV
std::string m_algorithm
Which algorithm to use for the MCMC. Default is &quot;random_walk&quot;.
std::string m_option_am_epsilon
Option name for MhOptionsValues::m_amEpsilon. Option name is m_prefix + &quot;mh_am_epsilon&quot;.
bool m_outputLogLikelihood
Flag for deciding whether or not to dump log likelihood values in output. Default is true...
unsigned int m_drMaxNumExtraStages
The number of delayed rejection stages to do. Default is 0.
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV
#define UQ_MH_SG_FILTERED_CHAIN_GENERATE_ODV
std::string m_option_displayCandidates
Option name for MhOptionsValues::m_displayCandidates. Option name is m_prefix + &quot;mh_displayCandidates...
#define UQ_MH_SG_DISPLAY_CANDIDATES_ODV
std::string m_help
If non-empty string, print options and values to the output file.
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV
std::string m_initialPositionDataInputFileType
The filetype of m_initialPositionDataInputFileName. Only &quot;m&quot; (matlab) is currently supported...
#define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_NAME_ODV
#define UQ_MH_SG_BROOKS_GELMAN_LAG
std::string m_rawChainDataInputFileName
Filename for reading an already-produced Markov chain.
std::string m_option_am_initialNonAdaptInterval
Option name for MhOptionsValues::m_amInitialNonAdaptInterval. Option name is m_prefix + &quot;mh_am_initia...
std::string m_prefix
Prefix for input file option names. Prepends all options for this class.
#define UQ_MH_SG_PUT_OUT_OF_BOUNDS_IN_CHAIN_ODV
std::string m_option_outputLogLikelihood
Option name for MhOptionsValues::m_outputLogLikelihood. Option name is m_prefix + &quot;mh_outputLogLikeli...
std::string m_filteredChainDataOutputFileType
The filetype of m_filteredChainDataOutputFileName. Only &quot;m&quot; (matlab) is currently supported...
std::string m_option_rawChain_dataOutputFileName
Option name for MhOptionsValues::m_rawChainDataOutputFileName. Option name is m_prefix + &quot;mh_rawChain...
std::string m_option_initialPosition_dataInputFileType
Option name for MhOptionsValues::m_initialPositionDataInputFileType. Option name is m_prefix + &quot;mh_in...
std::string m_option_filteredChain_dataOutputAllowedSet
Option name for MhOptionsValues::m_filteredChainDataOutputAllowedSet. Option name is m_prefix + &quot;mh_f...
std::string m_option_filteredChain_discardedPortion
Option name for MhOptionsValues::m_filteredChainDiscardedPortion. Option name is m_prefix + &quot;mh_filte...
bool m_dataOutputAllowAll
If true, all processes write output and m_dataOutputAllowedSet is ignored.
bool m_rawChainGenerateExtra
If true, extra chain information is computed/stored.
#define UQ_MH_SG_DATA_OUTPUT_ALLOWED_SET_ODV
std::string m_amAdaptedMatricesDataOutputFileType
The filetype of m_amAdaptedMatricesDataOutputFileName. Only &quot;m&quot; (matlab) is currently supported...
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_NAME_ODV
bool m_rawChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write Markov chain output to a file...
std::string m_option_tk_useNewtonComponent
Option name for MhOptionsValues::m_tkUseNewtonComponent. Option name is m_prefix + &quot;mh_tk_useNewtonCo...
#define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_TYPE_ODV
void registerOption(std::string name, T defaultValue, std::string description)
Call this to register an option with the parser.
#define UQ_MH_SG_AM_KEEP_INITIAL_MATRIX_ODV
std::string m_option_initialProposalCovMatrix_dataInputFileType
Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileType. Option name is m_prefix...
#define UQ_MH_SG_TK_USE_NEWTON_COMPONENT_ODV
std::string m_option_initialPosition_dataInputFileName
Option name for MhOptionsValues::m_initialPositionDataInputFileName. Option name is m_prefix + &quot;mh_in...
unsigned int m_filteredChainLag
Set the lag for the filtered chain. Default is 1.
double m_amEta
Proposal covariance scaling factor, usually 2.4 * 2.4 / d.
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOW_ALL_ODV
std::set< unsigned int > m_dataOutputAllowedSet
The set of MPI ranks that can write output. See m_dataOutputAllowAll.
bool m_tkUseNewtonComponent
This option is a no-op. Default is true.
#define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_NAME_ODV
unsigned int m_rawChainSize
The size of the chain (number of posterior samples) to generate. Default is 100.
std::string m_option_dr_maxNumExtraStages
Option name for MhOptionsValues::m_drMaxNumExtraStages. Option name is m_prefix + &quot;mh_dr_maxNumExtraS...
#define UQ_MH_SG_TK
BoostInputOptionsParser * m_parser
std::string m_option_dr_duringAmNonAdaptiveInt
Option name for MhOptionsValues::m_drDuringAmNonAdaptiveInt. Option name is m_prefix + &quot;mh_dr_duringA...
std::set< unsigned int > m_filteredChainDataOutputAllowedSet
The set of MPI ranks that will write filtered Markov chain output to a file. See also m_filteredChain...
#define UQ_MH_SG_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_MH_SG_AM_EPSILON_ODV
bool m_amAdaptedMatricesDataOutputAllowAll
This option is a no-op. The default is false.
std::string m_option_rawChain_dataOutputPeriod
Option name for MhOptionsValues::m_rawChainDataOutputPeriod. Option name is m_prefix + &quot;mh_rawChain_d...
#define UQ_MH_SG_AM_INIT_NON_ADAPT_INT_ODV
std::string m_option_rawChain_dataOutputAllowAll
Option name for MhOptionsValues::m_rawChainDataOutputAllowAll. Option name is m_prefix + &quot;mh_rawChain...
bool m_rawChainMeasureRunTimes
If true, measures timings spent in various chain computions and writes them to the output file...
#define UQ_MH_SG_AM_ETA_ODV
std::string m_option_am_adaptedMatrices_dataOutputPeriod
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod. Option name is m_prefix + &quot;mh_a...
#define UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR
double m_amEpsilon
Regularisation parameter for the DRAM covariance matrix.
bool m_doLogitTransform
Flag for deciding whether or not to do logit transform of bounded domains Default is true...
std::set< unsigned int > m_rawChainDataOutputAllowedSet
The set of MPI ranks that will write Markov chain output to a file. See also m_rawChainDataOutputAllo...
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_PERIOD_ODV
std::string m_option_am_keepInitialMatrix
Option name for MhOptionsValues::m_amKeepInitialMatrix. Option name is m_prefix + &quot;mh_am_keepInitialM...
std::string m_option_filteredChain_lag
Option name for MhOptionsValues::m_filteredChainLag. Option name is m_prefix + &quot;mh_filteredChain_lag&quot;...
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOWED_SET_ODV
unsigned int m_amAdaptInterval
The frequency at which to adapt the proposal covariance matrix.
std::string m_option_am_adaptedMatrices_dataOutputAllowedSet
Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet. Option name is m_prefix + &quot;...
std::string m_option_filteredChain_dataOutputFileType
Option name for MhOptionsValues::m_filteredChainDataOutputFileType. Option name is m_prefix + &quot;mh_fil...
bool m_amKeepInitialMatrix
This option is a no-op. The default is false.
std::string m_option_am_adaptInterval
Option name for MhOptionsValues::m_amAdaptInterval. Option name is m_prefix + &quot;mh_am_adaptInterval&quot;.
std::string m_option_rawChain_size
Option name for MhOptionsValues::m_rawChainSize. Option name is m_prefix + &quot;mh_rawChain_size&quot;.
#define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_TYPE_ODV
unsigned int m_amAdaptedMatricesDataOutputPeriod
The frequency (after m_amInitialNonAdaptInterval samples are done) of printing the last adapted propo...
std::string m_option_rawChain_dataInputFileName
Option name for MhOptionsValues::m_rawChainDataInputFileName. Option name is m_prefix + &quot;mh_rawChain_...
#define UQ_MH_SG_DATA_OUTPUT_ALLOW_ALL_ODV
std::string m_option_filteredChain_dataOutputFileName
Option name for MhOptionsValues::m_filteredChainDataOutputFileName. Option name is m_prefix + &quot;mh_fil...
QUESO::MhOptionsValues::MhOptionsValues ( const MhOptionsValues src)

Copy constructor.

It assigns the same options values from src to this.

Definition at line 558 of file MetropolisHastingsSGOptions.C.

References copy().

559 {
560  this->copy(src);
561 }
void copy(const MhOptionsValues &src)
Copies the option values from src to this.
QUESO::MhOptionsValues::~MhOptionsValues ( )
virtual

Destructor.

Definition at line 563 of file MetropolisHastingsSGOptions.C.

564 {
565 }

Member Function Documentation

void QUESO::MhOptionsValues::checkOptions ( const BaseEnvironment env)
private

Definition at line 575 of file MetropolisHastingsSGOptions.C.

References m_algorithm, m_amAdaptedMatricesDataOutputAllowAll, m_amAdaptedMatricesDataOutputAllowedSet, m_dataOutputAllowAll, m_dataOutputAllowedSet, m_doLogitTransform, m_drMaxNumExtraStages, m_drScalesForExtraStages, m_filteredChainDataOutputAllowAll, m_filteredChainDataOutputAllowedSet, m_filteredChainGenerate, m_filteredChainLag, m_option_filteredChain_lag, m_rawChainDataOutputAllowAll, m_rawChainDataOutputAllowedSet, m_tk, m_tkUseLocalHessian, queso_error_msg, queso_require_equal_to_msg, queso_require_greater_equal_msg, scale, and QUESO::BaseEnvironment::subId().

Referenced by MhOptionsValues().

576 {
577  if (m_dataOutputAllowAll) {
578  // So, ignore the 'set' option
579  m_dataOutputAllowedSet.clear();
580  m_dataOutputAllowedSet.insert(env->subId());
581  }
582 
584  // Again, ignore the set
586  m_rawChainDataOutputAllowedSet.insert(env->subId());
587  }
588 
589  if (m_filteredChainGenerate == true) {
590  queso_require_greater_equal_msg(m_filteredChainLag, 2, "option `" << m_option_filteredChain_lag << "` must be at least 2");
591  }
592 
595  m_filteredChainDataOutputAllowedSet.insert(env->subId());
596  }
597 
598  // If max is bigger than the list provided, then pad with ones
599  if (m_drMaxNumExtraStages > 0) {
600  unsigned int size = m_drScalesForExtraStages.size();
601  if (m_drMaxNumExtraStages > size) {
602  for (unsigned int i = size; i < m_drMaxNumExtraStages; i++) {
603  double scale = 1.0;
604  m_drScalesForExtraStages.push_back(scale);
605  }
606  }
607  }
608  else {
609  m_drScalesForExtraStages.clear();
610  }
611 
614  m_amAdaptedMatricesDataOutputAllowedSet.insert(env->subId());
615  }
616 
617  if ((m_tk == "random_walk") && (m_algorithm == "logit_random_walk")) {
618  queso_error_msg("random_walk transition kernel and logit_random_walk algorithm are incompatible options");
619  }
620 
621  if ((m_tk == "logit_random_walk") && (m_algorithm == "random_walk")) {
622  queso_error_msg("logit_random_walk transition kernel and random_walk algorithm are incompatible options");
623  }
624 
625  if (m_tk == "random_walk") {
628  0,
629  "logit transform must be off to use random_walk");
632  0,
633  "local Hessian must be off to use random_walk");
634  }
635 
636  if (m_tk == "logit_random_walk") {
639  1,
640  "logit transform must be on to use logit_random_walk");
643  0,
644  "local Hessian must be off to use logit_random_walk");
645  }
646 
647  if (m_tk == "stochastic_newton") {
650  0,
651  "logit transform must be off to use stochastic_newton");
654  1,
655  "local Hessian must be on to use stochastic_newton");
656  }
657 
658 }
std::vector< double > m_drScalesForExtraStages
The vector of scale factors for the proposal covariance matrix to use for delayed rejection...
std::set< unsigned int > m_amAdaptedMatricesDataOutputAllowedSet
This option is a no-op. The default is the empty set.
#define queso_require_greater_equal_msg(expr1, expr2, msg)
Definition: asserts.h:78
double scale
Definition: ann2fig.cpp:85
bool m_tkUseLocalHessian
Flag to tell QUESO whether or not to use Hessian information for the proposal covariance matrix...
bool m_filteredChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write filtered Markov chain output to a file...
bool m_filteredChainGenerate
Toggle the option to save a filtered chain.
#define queso_require_equal_to_msg(expr1, expr2, msg)
Definition: asserts.h:73
std::string m_tk
Which transition kernel to use for MCMC. Default is &quot;random_walk&quot;.
std::string m_algorithm
Which algorithm to use for the MCMC. Default is &quot;random_walk&quot;.
unsigned int m_drMaxNumExtraStages
The number of delayed rejection stages to do. Default is 0.
bool m_dataOutputAllowAll
If true, all processes write output and m_dataOutputAllowedSet is ignored.
bool m_rawChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write Markov chain output to a file...
unsigned int m_filteredChainLag
Set the lag for the filtered chain. Default is 1.
std::set< unsigned int > m_dataOutputAllowedSet
The set of MPI ranks that can write output. See m_dataOutputAllowAll.
#define queso_error_msg(msg)
Definition: asserts.h:47
std::set< unsigned int > m_filteredChainDataOutputAllowedSet
The set of MPI ranks that will write filtered Markov chain output to a file. See also m_filteredChain...
bool m_amAdaptedMatricesDataOutputAllowAll
This option is a no-op. The default is false.
bool m_doLogitTransform
Flag for deciding whether or not to do logit transform of bounded domains Default is true...
std::set< unsigned int > m_rawChainDataOutputAllowedSet
The set of MPI ranks that will write Markov chain output to a file. See also m_rawChainDataOutputAllo...
std::string m_option_filteredChain_lag
Option name for MhOptionsValues::m_filteredChainLag. Option name is m_prefix + &quot;mh_filteredChain_lag&quot;...
void QUESO::MhOptionsValues::copy ( const MhOptionsValues src)
private

Copies the option values from src to this.

Definition at line 661 of file MetropolisHastingsSGOptions.C.

References m_algorithm, m_amAdaptedMatricesDataOutputAllowAll, m_amAdaptedMatricesDataOutputAllowedSet, m_amAdaptedMatricesDataOutputFileName, m_amAdaptedMatricesDataOutputFileType, m_amAdaptedMatricesDataOutputPeriod, m_amAdaptInterval, m_amEpsilon, m_amEta, m_amInitialNonAdaptInterval, m_amKeepInitialMatrix, m_BrooksGelmanLag, m_dataOutputAllowAll, m_dataOutputAllowedSet, m_dataOutputFileName, m_displayCandidates, m_doLogitTransform, m_drDuringAmNonAdaptiveInt, m_drMaxNumExtraStages, m_drScalesForExtraStages, m_enableBrooksGelmanConvMonitor, m_filteredChainDataOutputAllowAll, m_filteredChainDataOutputAllowedSet, m_filteredChainDataOutputFileName, m_filteredChainDataOutputFileType, m_filteredChainDiscardedPortion, m_filteredChainGenerate, m_filteredChainLag, m_initialPositionDataInputFileName, m_initialPositionDataInputFileType, m_initialProposalCovMatrixDataInputFileName, m_initialProposalCovMatrixDataInputFileType, m_outputLogLikelihood, m_outputLogTarget, m_parameterDisabledSet, m_putOutOfBoundsInChain, m_rawChainDataInputFileName, m_rawChainDataInputFileType, m_rawChainDataOutputAllowAll, m_rawChainDataOutputAllowedSet, m_rawChainDataOutputFileName, m_rawChainDataOutputFileType, m_rawChainDataOutputPeriod, m_rawChainDisplayPeriod, m_rawChainGenerateExtra, m_rawChainMeasureRunTimes, m_rawChainSize, m_tk, m_tkUseLocalHessian, m_tkUseNewtonComponent, and m_totallyMute.

Referenced by MhOptionsValues(), and operator=().

662 {
663  m_dataOutputFileName = src.m_dataOutputFileName;
664  m_dataOutputAllowAll = src.m_dataOutputAllowAll;
665  m_dataOutputAllowedSet = src.m_dataOutputAllowedSet;
666  m_totallyMute = src.m_totallyMute;
667  m_initialPositionDataInputFileName = src.m_initialPositionDataInputFileName;
668  m_initialPositionDataInputFileType = src.m_initialPositionDataInputFileType;
669  m_initialProposalCovMatrixDataInputFileName = src.m_initialProposalCovMatrixDataInputFileName;
670  m_initialProposalCovMatrixDataInputFileType = src.m_initialProposalCovMatrixDataInputFileType;
671  m_parameterDisabledSet = src.m_parameterDisabledSet;
672  m_rawChainDataInputFileName = src.m_rawChainDataInputFileName;
673  m_rawChainDataInputFileType = src.m_rawChainDataInputFileType;
674  m_rawChainSize = src.m_rawChainSize;
675  m_rawChainGenerateExtra = src.m_rawChainGenerateExtra;
676  m_rawChainDisplayPeriod = src.m_rawChainDisplayPeriod;
677  m_rawChainMeasureRunTimes = src.m_rawChainMeasureRunTimes;
678  m_rawChainDataOutputPeriod = src.m_rawChainDataOutputPeriod;
679  m_rawChainDataOutputFileName = src.m_rawChainDataOutputFileName;
680  m_rawChainDataOutputFileType = src.m_rawChainDataOutputFileType;
681  m_rawChainDataOutputAllowAll = src.m_rawChainDataOutputAllowAll;
682  m_rawChainDataOutputAllowedSet = src.m_rawChainDataOutputAllowedSet;
683 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
684  m_rawChainComputeStats = src.m_rawChainComputeStats;
685 #endif
686 //m_rawChainStatisticalOptionsObj = src.m_rawChainStatisticalOptionsObj; // dakota
687 //m_rawChainStatOptsInstantiated = src.m_rawChainStatOptsInstantiated; // dakota
688  m_filteredChainGenerate = src.m_filteredChainGenerate;
689  m_filteredChainDiscardedPortion = src.m_filteredChainDiscardedPortion;
690  m_filteredChainLag = src.m_filteredChainLag;
691  m_filteredChainDataOutputFileName = src.m_filteredChainDataOutputFileName;
692  m_filteredChainDataOutputFileType = src.m_filteredChainDataOutputFileType;
693  m_filteredChainDataOutputAllowAll = src.m_filteredChainDataOutputAllowAll;
694  m_filteredChainDataOutputAllowedSet = src.m_filteredChainDataOutputAllowedSet;
695 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
696  m_filteredChainComputeStats = src.m_filteredChainComputeStats;
697 #endif
698 //m_filteredChainStatisticalOptionsObj = src.m_filteredChainStatisticalOptionsObj; // dakota
699 //m_filteredChainStatOptsInstantiated = src.m_filteredChainStatOptsInstantiated; // dakota
700  m_displayCandidates = src.m_displayCandidates;
701  m_putOutOfBoundsInChain = src.m_putOutOfBoundsInChain;
702  m_tkUseLocalHessian = src.m_tkUseLocalHessian;
703  m_tkUseNewtonComponent = src.m_tkUseNewtonComponent;
704  m_drMaxNumExtraStages = src.m_drMaxNumExtraStages;
705  m_drScalesForExtraStages = src.m_drScalesForExtraStages;
706  m_drDuringAmNonAdaptiveInt = src.m_drDuringAmNonAdaptiveInt;
707  m_amKeepInitialMatrix = src.m_amKeepInitialMatrix;
708  m_amInitialNonAdaptInterval = src.m_amInitialNonAdaptInterval;
709  m_amAdaptInterval = src.m_amAdaptInterval;
710  m_amAdaptedMatricesDataOutputPeriod = src.m_amAdaptedMatricesDataOutputPeriod;
711  m_amAdaptedMatricesDataOutputFileName = src.m_amAdaptedMatricesDataOutputFileName;
712  m_amAdaptedMatricesDataOutputFileType = src.m_amAdaptedMatricesDataOutputFileType;
713  m_amAdaptedMatricesDataOutputAllowAll = src.m_amAdaptedMatricesDataOutputAllowAll;
714  m_amAdaptedMatricesDataOutputAllowedSet = src.m_amAdaptedMatricesDataOutputAllowedSet;
715  m_amEta = src.m_amEta;
716  m_amEpsilon = src.m_amEpsilon;
717  m_enableBrooksGelmanConvMonitor = src.m_enableBrooksGelmanConvMonitor;
718  m_BrooksGelmanLag = src.m_BrooksGelmanLag;
719  m_outputLogLikelihood = src.m_outputLogLikelihood;
720  m_outputLogTarget = src.m_outputLogTarget;
721  m_doLogitTransform = src.m_doLogitTransform;
722  m_algorithm = src.m_algorithm;
723  m_tk = src.m_tk;
724 
725 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
726  m_alternativeRawSsOptionsValues = src.m_alternativeRawSsOptionsValues;
727  m_alternativeFilteredSsOptionsValues = src.m_alternativeFilteredSsOptionsValues;
728 #endif
729  return;
730 }
double m_filteredChainDiscardedPortion
What initial fraction of the filtered chain is discarded.
std::vector< double > m_drScalesForExtraStages
The vector of scale factors for the proposal covariance matrix to use for delayed rejection...
bool m_displayCandidates
Toggle to tell QUESO whether or not to write proposal (candidate) state to output file...
std::string m_rawChainDataOutputFileName
If not &quot;.&quot;, filename to write the Markov chain to.
bool m_totallyMute
If true, zero output is written to files. Default is false.
bool m_putOutOfBoundsInChain
Flag to tell QUESO how chains should be upon generating a proposal that is out of the problem domain...
std::set< unsigned int > m_amAdaptedMatricesDataOutputAllowedSet
This option is a no-op. The default is the empty set.
unsigned int m_rawChainDataOutputPeriod
The frequency with which to write chain output. Defaults to 0.
std::string m_filteredChainDataOutputFileName
If not &quot;.&quot;, file name to save the filtered chain to. Default is &quot;.&quot;.
std::string m_rawChainDataOutputFileType
The filetype of m_rawChainDataOutputFileName.
bool m_drDuringAmNonAdaptiveInt
Do delayed rejection during the initial non-adaptive part of sampling?
std::string m_initialPositionDataInputFileName
If not &quot;.&quot;, reads the contents of the file and uses that to start the MCMC. Default is &quot;...
unsigned int m_BrooksGelmanLag
The lag with which to compute the Brooks-Gelman convergence statistic.
bool m_outputLogTarget
Flag for deciding whether or not to dump log target values in output Default is true.
unsigned int m_rawChainDisplayPeriod
The frequency with which to output diagnostic information.
std::string m_initialProposalCovMatrixDataInputFileName
If not &quot;.&quot;, reads the contents of the file as the initial proposal covariance matrix.
unsigned int m_enableBrooksGelmanConvMonitor
The frequency with which to compute the Brooks-Gelman convergence statistic.
bool m_tkUseLocalHessian
Flag to tell QUESO whether or not to use Hessian information for the proposal covariance matrix...
std::string m_dataOutputFileName
The base name of output files where the chain (and related information) will be written.
bool m_filteredChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write filtered Markov chain output to a file...
std::set< unsigned int > m_parameterDisabledSet
Set of parameters that don&#39;t get sampled.
bool m_filteredChainGenerate
Toggle the option to save a filtered chain.
std::string m_rawChainDataInputFileType
The filetype of m_rawChainDataInputFileName. Only &quot;m&quot; (matlab) is currently supported. Default is &quot;m&quot;.
std::string m_amAdaptedMatricesDataOutputFileName
If not &quot;.&quot;, this is the file to write adapted proposal covariance matrices to. Default is &quot;...
std::string m_initialProposalCovMatrixDataInputFileType
The filetype of m_initialProposalCovMatrixDataInputFileName. Only &quot;m&quot; (matlab) is currently supported...
unsigned int m_amInitialNonAdaptInterval
The number of initial samples to do without adapting the proposal covariance matrix.
std::string m_tk
Which transition kernel to use for MCMC. Default is &quot;random_walk&quot;.
std::string m_algorithm
Which algorithm to use for the MCMC. Default is &quot;random_walk&quot;.
bool m_outputLogLikelihood
Flag for deciding whether or not to dump log likelihood values in output. Default is true...
unsigned int m_drMaxNumExtraStages
The number of delayed rejection stages to do. Default is 0.
std::string m_initialPositionDataInputFileType
The filetype of m_initialPositionDataInputFileName. Only &quot;m&quot; (matlab) is currently supported...
std::string m_rawChainDataInputFileName
Filename for reading an already-produced Markov chain.
std::string m_filteredChainDataOutputFileType
The filetype of m_filteredChainDataOutputFileName. Only &quot;m&quot; (matlab) is currently supported...
bool m_dataOutputAllowAll
If true, all processes write output and m_dataOutputAllowedSet is ignored.
bool m_rawChainGenerateExtra
If true, extra chain information is computed/stored.
std::string m_amAdaptedMatricesDataOutputFileType
The filetype of m_amAdaptedMatricesDataOutputFileName. Only &quot;m&quot; (matlab) is currently supported...
bool m_rawChainDataOutputAllowAll
Toggle for whether or not to allow all processes to write Markov chain output to a file...
unsigned int m_filteredChainLag
Set the lag for the filtered chain. Default is 1.
double m_amEta
Proposal covariance scaling factor, usually 2.4 * 2.4 / d.
std::set< unsigned int > m_dataOutputAllowedSet
The set of MPI ranks that can write output. See m_dataOutputAllowAll.
bool m_tkUseNewtonComponent
This option is a no-op. Default is true.
unsigned int m_rawChainSize
The size of the chain (number of posterior samples) to generate. Default is 100.
std::set< unsigned int > m_filteredChainDataOutputAllowedSet
The set of MPI ranks that will write filtered Markov chain output to a file. See also m_filteredChain...
bool m_amAdaptedMatricesDataOutputAllowAll
This option is a no-op. The default is false.
bool m_rawChainMeasureRunTimes
If true, measures timings spent in various chain computions and writes them to the output file...
double m_amEpsilon
Regularisation parameter for the DRAM covariance matrix.
bool m_doLogitTransform
Flag for deciding whether or not to do logit transform of bounded domains Default is true...
std::set< unsigned int > m_rawChainDataOutputAllowedSet
The set of MPI ranks that will write Markov chain output to a file. See also m_rawChainDataOutputAllo...
unsigned int m_amAdaptInterval
The frequency at which to adapt the proposal covariance matrix.
bool m_amKeepInitialMatrix
This option is a no-op. The default is false.
unsigned int m_amAdaptedMatricesDataOutputPeriod
The frequency (after m_amInitialNonAdaptInterval samples are done) of printing the last adapted propo...
MhOptionsValues & QUESO::MhOptionsValues::operator= ( const MhOptionsValues rhs)

Assignment operator; it copies rhs to this.

Definition at line 568 of file MetropolisHastingsSGOptions.C.

References copy().

569 {
570  this->copy(rhs);
571  return *this;
572 }
void copy(const MhOptionsValues &src)
Copies the option values from src to this.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const MhOptionsValues obj 
)
friend

Definition at line 732 of file MetropolisHastingsSGOptions.C.

733 {
734 #ifndef DISABLE_BOOST_PROGRAM_OPTIONS
735  os << (*(obj.m_parser)) << std::endl;
736 #endif // DISABLE_BOOST_PROGRAM_OPTIONS
737 
738  os << obj.m_option_dataOutputFileName << " = " << obj.m_dataOutputFileName
739  << "\n" << obj.m_option_dataOutputAllowAll << " = " << obj.m_dataOutputAllowAll
740  << "\n" << obj.m_option_dataOutputAllowedSet << " = ";
741  for (std::set<unsigned int>::iterator setIt = obj.m_dataOutputAllowedSet.begin(); setIt != obj.m_dataOutputAllowedSet.end(); ++setIt) {
742  os << *setIt << " ";
743  }
744  os << "\n" << obj.m_option_totallyMute << " = " << obj.m_totallyMute
745  << "\n" << obj.m_option_initialPosition_dataInputFileName << " = " << obj.m_initialPositionDataInputFileName
746  << "\n" << obj.m_option_initialPosition_dataInputFileType << " = " << obj.m_initialPositionDataInputFileType
747  << "\n" << obj.m_option_initialProposalCovMatrix_dataInputFileName << " = " << obj.m_initialProposalCovMatrixDataInputFileName
748  << "\n" << obj.m_option_initialProposalCovMatrix_dataInputFileType << " = " << obj.m_initialProposalCovMatrixDataInputFileType
749  << "\n" << obj.m_option_listOfDisabledParameters << " = ";
750  for (std::set<unsigned int>::iterator setIt = obj.m_parameterDisabledSet.begin(); setIt != obj.m_parameterDisabledSet.end(); ++setIt) {
751  os << *setIt << " ";
752  }
753  os << "\n" << obj.m_option_rawChain_dataInputFileName << " = " << obj.m_rawChainDataInputFileName
754  << "\n" << obj.m_option_rawChain_dataInputFileType << " = " << obj.m_rawChainDataInputFileType
755  << "\n" << obj.m_option_rawChain_size << " = " << obj.m_rawChainSize
756  << "\n" << obj.m_option_rawChain_generateExtra << " = " << obj.m_rawChainGenerateExtra
757  << "\n" << obj.m_option_rawChain_displayPeriod << " = " << obj.m_rawChainDisplayPeriod
758  << "\n" << obj.m_option_rawChain_measureRunTimes << " = " << obj.m_rawChainMeasureRunTimes
759  << "\n" << obj.m_option_rawChain_dataOutputPeriod << " = " << obj.m_rawChainDataOutputPeriod
760  << "\n" << obj.m_option_rawChain_dataOutputFileName << " = " << obj.m_rawChainDataOutputFileName
761  << "\n" << obj.m_option_rawChain_dataOutputFileType << " = " << obj.m_rawChainDataOutputFileType
762  << "\n" << obj.m_option_rawChain_dataOutputAllowAll << " = " << obj.m_rawChainDataOutputAllowAll
763  << "\n" << obj.m_option_rawChain_dataOutputAllowedSet << " = ";
764  for (std::set<unsigned int>::iterator setIt = obj.m_rawChainDataOutputAllowedSet.begin(); setIt != obj.m_rawChainDataOutputAllowedSet.end(); ++setIt) {
765  os << *setIt << " ";
766  }
767  os
768 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
769  << "\n" << obj.m_option_rawChain_computeStats << " = " << obj.m_rawChainComputeStats
770 #endif
771  << "\n" << obj.m_option_filteredChain_generate << " = " << obj.m_filteredChainGenerate
772  << "\n" << obj.m_option_filteredChain_discardedPortion << " = " << obj.m_filteredChainDiscardedPortion
773  << "\n" << obj.m_option_filteredChain_lag << " = " << obj.m_filteredChainLag
774  << "\n" << obj.m_option_filteredChain_dataOutputFileName << " = " << obj.m_filteredChainDataOutputFileName
775  << "\n" << obj.m_option_filteredChain_dataOutputFileType << " = " << obj.m_filteredChainDataOutputFileType
776  << "\n" << obj.m_option_filteredChain_dataOutputAllowAll << " = " << obj.m_filteredChainDataOutputAllowAll
777  << "\n" << obj.m_option_filteredChain_dataOutputAllowedSet << " = ";
778  for (std::set<unsigned int>::iterator setIt = obj.m_filteredChainDataOutputAllowedSet.begin(); setIt != obj.m_filteredChainDataOutputAllowedSet.end(); ++setIt) {
779  os << *setIt << " ";
780  }
781  os
782 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
783  << "\n" << obj.m_option_filteredChain_computeStats << " = " << obj.m_filteredChainComputeStats
784 #endif
785  << "\n" << obj.m_option_displayCandidates << " = " << obj.m_displayCandidates
786  << "\n" << obj.m_option_putOutOfBoundsInChain << " = " << obj.m_putOutOfBoundsInChain
787  << "\n" << obj.m_option_tk_useLocalHessian << " = " << obj.m_tkUseLocalHessian
788  << "\n" << obj.m_option_tk_useNewtonComponent << " = " << obj.m_tkUseNewtonComponent
789  << "\n" << obj.m_option_dr_maxNumExtraStages << " = " << obj.m_drMaxNumExtraStages
790  << "\n" << obj.m_option_dr_listOfScalesForExtraStages << " = ";
791  for (unsigned int i = 0; i < obj.m_drScalesForExtraStages.size(); ++i) {
792  os << obj.m_drScalesForExtraStages[i] << " ";
793  }
794  os << "\n" << obj.m_option_dr_duringAmNonAdaptiveInt << " = " << obj.m_drDuringAmNonAdaptiveInt
795  << "\n" << obj.m_option_am_keepInitialMatrix << " = " << obj.m_amKeepInitialMatrix
796  << "\n" << obj.m_option_am_initialNonAdaptInterval << " = " << obj.m_amInitialNonAdaptInterval
797  << "\n" << obj.m_option_am_adaptInterval << " = " << obj.m_amAdaptInterval
798  << "\n" << obj.m_option_am_adaptedMatrices_dataOutputPeriod << " = " << obj.m_amAdaptedMatricesDataOutputPeriod
799  << "\n" << obj.m_option_am_adaptedMatrices_dataOutputFileName << " = " << obj.m_amAdaptedMatricesDataOutputFileName
800  << "\n" << obj.m_option_am_adaptedMatrices_dataOutputFileType << " = " << obj.m_amAdaptedMatricesDataOutputFileType
801  << "\n" << obj.m_option_am_adaptedMatrices_dataOutputAllowAll << " = " << obj.m_amAdaptedMatricesDataOutputAllowAll
802  << "\n" << obj.m_option_am_adaptedMatrices_dataOutputAllowedSet << " = ";
803  for (std::set<unsigned int>::iterator setIt = obj.m_amAdaptedMatricesDataOutputAllowedSet.begin(); setIt != obj.m_amAdaptedMatricesDataOutputAllowedSet.end(); ++setIt) {
804  os << *setIt << " ";
805  }
806  os << "\n" << obj.m_option_am_eta << " = " << obj.m_amEta
807  << "\n" << obj.m_option_am_epsilon << " = " << obj.m_amEpsilon
808  << "\n" << obj.m_option_enableBrooksGelmanConvMonitor << " = " << obj.m_enableBrooksGelmanConvMonitor
809  << "\n" << obj.m_option_BrooksGelmanLag << " = " << obj.m_BrooksGelmanLag
810  << "\n" << obj.m_option_outputLogLikelihood << " = " << obj.m_outputLogLikelihood
811  << "\n" << obj.m_option_outputLogTarget << " = " << obj.m_outputLogTarget
812  << "\n" << obj.m_option_doLogitTransform << " = " << obj.m_doLogitTransform
813  << "\n" << obj.m_option_algorithm << " = " << obj.m_algorithm
814  << "\n" << obj.m_option_tk << " = " << obj.m_tk
815  << std::endl;
816 
817  return os;
818 }

Member Data Documentation

std::string QUESO::MhOptionsValues::m_algorithm
bool QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll
std::set<unsigned int> QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet
std::string QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputFileName

If not ".", this is the file to write adapted proposal covariance matrices to. Default is ".".

If ".", the adapted proposal covariance matrices are not written to a file

Definition at line 538 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputFileType

The filetype of m_amAdaptedMatricesDataOutputFileName. Only "m" (matlab) is currently supported. Default is "m".

Definition at line 541 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

unsigned int QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod

The frequency (after m_amInitialNonAdaptInterval samples are done) of printing the last adapted proposal covariance matrix.

Provided m_amAdaptedMatricesDataOutputFileName is not ".", the last adapted proposal covariance matrix will be written regardless of the value of this option if the current sampler iteration is exactly m_amInitialNonAdaptInterval.

Beyond m_amInitialNonAdaptInterval, the last adapted proposal covariance matrix will be printed to the output file every m_amAdaptedMatricesDataOutputPeriod samples.

If zero, no output is written.

The default is 0

Definition at line 532 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

unsigned int QUESO::MhOptionsValues::m_amAdaptInterval

The frequency at which to adapt the proposal covariance matrix.

If zero, no adaptive metropolis is done. If positive, the proposal covariance matrix will be adapted every m_amAdaptInterval samples after m_amInitialNonAdaptInterval have been done.

The default is 0

Definition at line 515 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

double QUESO::MhOptionsValues::m_amEpsilon

Regularisation parameter for the DRAM covariance matrix.

This is a parameter in the DRAM algorithm that regularises the proposal covariance matrix. Details can be found in Haario et al (2006).

The parameter defines how much the diagonal of the proposal covariance matrix is perturbed. Usually this is small, of order 1e-5.

The default is 1.e-5

Definition at line 572 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

double QUESO::MhOptionsValues::m_amEta

Proposal covariance scaling factor, usually 2.4 * 2.4 / d.

This is a parameter in the DRAM algorithm and can be found in Haario et al (2006).

The parameter defines how much the proposal covariance matrix is to be scaled by, and should usually be set to 2.4 * 2.4 / d, where d is the dimension of the state space being sampled.

The default is 1.0.

Definition at line 560 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

unsigned int QUESO::MhOptionsValues::m_amInitialNonAdaptInterval

The number of initial samples to do without adapting the proposal covariance matrix.

If positive and the current sampler iteration is <= m_amInitialNonAdaptInterval, then no delayed rejection is done if m_drDuringAmNonAdaptiveInt is false and m_tkUseLocalHessian is false and m_amAdaptInterval is > 0.

The default is 0.

Definition at line 505 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

bool QUESO::MhOptionsValues::m_amKeepInitialMatrix
unsigned int QUESO::MhOptionsValues::m_BrooksGelmanLag

The lag with which to compute the Brooks-Gelman convergence statistic.

The convergence statistic will be computed from sampler iteration m_BrooksGelmanLag to sampler iteration (current_sampler_iteration - m_BrooksGelmanLag).

The default is 100.

Definition at line 598 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

bool QUESO::MhOptionsValues::m_dataOutputAllowAll

If true, all processes write output and m_dataOutputAllowedSet is ignored.

If false, m_dataOutputAllowedSet determines the set of MPI ranks that can write output

Default is false

Definition at line 192 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::set<unsigned int> QUESO::MhOptionsValues::m_dataOutputAllowedSet
std::string QUESO::MhOptionsValues::m_dataOutputFileName

The base name of output files where the chain (and related information) will be written.

For multiple environments, the respective chains will append "_subN" where N is the environment number.

For log likelihood, log target, and log prior, a further "_loglikelihood", "_logtarget" and "_logprior" is appended respectively

Default value is "."

Definition at line 183 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

bool QUESO::MhOptionsValues::m_displayCandidates

Toggle to tell QUESO whether or not to write proposal (candidate) state to output file. Default is false.

Definition at line 396 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

bool QUESO::MhOptionsValues::m_doLogitTransform
bool QUESO::MhOptionsValues::m_drDuringAmNonAdaptiveInt

Do delayed rejection during the initial non-adaptive part of sampling?

This option interacts with the following other options:

m_tkUseLocalHessian m_amInitialNonAdaptInterval m_amAdaptInterval

The interaction is as follows. If this option is false, then as long as m_tkUseLocalHessian is false, m_amInitialNonAdaptInterval is > 0, m_amAdaptInterval is > 0, and the current sampler iteration is <= m_amInitialNonAdaptInterval NO delayed rejection is done.

If this option is true (regardless of the other above conditions) then delayed rejection is done (including the initial non-adaptive part of sampling).

The default is true.

Definition at line 491 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

unsigned int QUESO::MhOptionsValues::m_drMaxNumExtraStages

The number of delayed rejection stages to do. Default is 0.

Delayed rejection happens when a proposal is about to be rejected.

If m_drMaxNumExtraStages is zero, no delayed rejection is done.

Default is 0

Definition at line 450 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::vector<double> QUESO::MhOptionsValues::m_drScalesForExtraStages

The vector of scale factors for the proposal covariance matrix to use for delayed rejection.

Example:

Assume the user provides "2.0 3.0 5.0" as their list of scales. This means QUESO will multiply the proposal covariance matrix for delayed rejection stage 1 by 1.0 / (2.0 * 2.0). For delayed rejection stage 2 the proposal covariance matrix will be multiplied by 1.0 / (3.0 * 3.0). And for stage 3 it will be multiplied by 1.0 / (5.0 * 5.0).

Generally, the user-provided list of scales should be increasing, but this is not checked for.

QUESO will prepend a scale of 1.0 to the user-provided list.

The default is the empty list.

Definition at line 469 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

unsigned int QUESO::MhOptionsValues::m_enableBrooksGelmanConvMonitor

The frequency with which to compute the Brooks-Gelman convergence statistic.

If zero, it is not computed.

If positive, the Brooks-Gelman convergence statistic is computed every m_enableBrooksGelmanConvMonitor samples as long as the current sampler iteration is larger than m_BrooksGelmanLag + 1. The "+ 1" is to ensure there are at least two samples with which to compute the convergence statistic.

Needs at least 2 chains (sub environments) to be computed.

The default is 0

Definition at line 588 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

const BaseEnvironment* QUESO::MhOptionsValues::m_env
private

Definition at line 617 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues().

bool QUESO::MhOptionsValues::m_filteredChainDataOutputAllowAll

Toggle for whether or not to allow all processes to write filtered Markov chain output to a file.

If true, all processes write filtered Markov chain output and m_filteredChainDataOutputAllowedSet is ignored.

If false, m_filteredChainDataOutputAllowedSet determines the set of processor ranks that will write filtered Markov chain output to a file

Default is false

Definition at line 386 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::set<unsigned int> QUESO::MhOptionsValues::m_filteredChainDataOutputAllowedSet

The set of MPI ranks that will write filtered Markov chain output to a file. See also m_filteredChainDataOutputAllowAll. Default is empty set.

Definition at line 389 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_filteredChainDataOutputFileName

If not ".", file name to save the filtered chain to. Default is ".".

If ".", the filtered chain is not written to a file.

If m_totallyMute is true, then the chain is not written to a file regardless of the value of this option.

Definition at line 371 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_filteredChainDataOutputFileType

The filetype of m_filteredChainDataOutputFileName. Only "m" (matlab) is currently supported. Default is "m".

Definition at line 374 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

double QUESO::MhOptionsValues::m_filteredChainDiscardedPortion

What initial fraction of the filtered chain is discarded.

For example, if set to 0.2 then the first 20% of the filtered chain is discarded. Useful for discarding 'burn-in'.

Default is 0.0

Definition at line 355 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

bool QUESO::MhOptionsValues::m_filteredChainGenerate

Toggle the option to save a filtered chain.

A filtered chain is one where only every k-th sample is saved. Here k is called the 'lag' and can be set through m_filteredChainLag.

Default is false

Definition at line 346 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

unsigned int QUESO::MhOptionsValues::m_filteredChainLag

Set the lag for the filtered chain. Default is 1.

The lag is the number of samples to compute before saving. For example, if the lag is set to 20, then only every 20th sample is saved.

Definition at line 362 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_help

If non-empty string, print options and values to the output file.

Default is empty string

Definition at line 171 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues().

std::string QUESO::MhOptionsValues::m_initialPositionDataInputFileName

If not ".", reads the contents of the file and uses that to start the MCMC. Default is ".".

If ".", the input file is not read.

Definition at line 207 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_initialPositionDataInputFileType

The filetype of m_initialPositionDataInputFileName. Only "m" (matlab) is currently supported. Default is "m".

Definition at line 210 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_initialProposalCovMatrixDataInputFileName

If not ".", reads the contents of the file as the initial proposal covariance matrix.

To use this, m_tkUseLocalHessian must be false. If it is true, and this option is ".", no input file is read and the user-provided initial proposal covariance matrix is used.

If this option is ".", no input file is read.

Default is "."

Definition at line 222 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_initialProposalCovMatrixDataInputFileType

The filetype of m_initialProposalCovMatrixDataInputFileName. Only "m" (matlab) is currently supported. Default is "m".

Definition at line 225 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_option_algorithm
private

Option name for MhOptionsValues::m_algorithm. Option name is m_prefix + "mh_algorithm".

Definition at line 737 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_adaptedMatrices_dataOutputAllowAll
private

Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputAllowAll".

Definition at line 716 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_adaptedMatrices_dataOutputAllowedSet
private

Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputAllowedSet".

Definition at line 718 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_adaptedMatrices_dataOutputFileName
private

Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileName. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputFileName".

Definition at line 712 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_adaptedMatrices_dataOutputFileType
private

Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputFileType. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputFileType".

Definition at line 714 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_adaptedMatrices_dataOutputPeriod
private

Option name for MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod. Option name is m_prefix + "mh_am_adaptedMatrices_dataOutputPeriod".

Definition at line 710 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_adaptInterval
private

Option name for MhOptionsValues::m_amAdaptInterval. Option name is m_prefix + "mh_am_adaptInterval".

Definition at line 708 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_epsilon
private

Option name for MhOptionsValues::m_amEpsilon. Option name is m_prefix + "mh_am_epsilon".

Definition at line 723 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_eta
private

Option name for MhOptionsValues::m_amEta. Option name is m_prefix + "mh_am_eta".

Definition at line 721 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_initialNonAdaptInterval
private

Option name for MhOptionsValues::m_amInitialNonAdaptInterval. Option name is m_prefix + "mh_am_initialNonAdaptInterval".

Definition at line 706 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_am_keepInitialMatrix
private

Option name for MhOptionsValues::m_amKeepInitialMatrix. Option name is m_prefix + "mh_am_keepInitialMatrix".

Definition at line 704 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_BrooksGelmanLag
private

Option name for MhOptionsValues::m_BrooksGelmanLag. Option name is m_prefix + "mh_BrooksGelmanLag".

Definition at line 728 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_dataOutputAllowAll
private

Option name for MhOptionsValues::m_dataOutputAllowAll. Option name is m_prefix + "mh_dataOutputAllowAll".

Definition at line 629 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_dataOutputAllowedSet
private

Option name for MhOptionsValues::m_dataOutputAllowedSet. Option name is m_prefix + "mh_dataOutputAllowedSet".

Definition at line 631 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_dataOutputFileName
private

Option name for MhOptionsValues::m_dataOutputFileName. Option name is m_prefix + "mh_dataOutputFileName".

Definition at line 627 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_displayCandidates
private

Option name for MhOptionsValues::m_displayCandidates. Option name is m_prefix + "mh_displayCandidates".

Definition at line 690 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_doLogitTransform
private

Option name for MhOptionsValues::m_doLogitTransform. Option name is m_prefix + "mh_doLogitTransform".

Definition at line 735 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_dr_duringAmNonAdaptiveInt
private

Option name for MhOptionsValues::m_drDuringAmNonAdaptiveInt. Option name is m_prefix + "mh_dr_duringAmNonAdaptiveInt".

Definition at line 702 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_dr_listOfScalesForExtraStages
private

Option name for MhOptionsValues::m_drScalesForExtraStages. Option name is m_prefix + "mh_dr_listOfScalesForExtraStages".

Definition at line 700 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_dr_maxNumExtraStages
private

Option name for MhOptionsValues::m_drMaxNumExtraStages. Option name is m_prefix + "mh_dr_maxNumExtraStages".

Definition at line 698 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_enableBrooksGelmanConvMonitor
private

Option name for MhOptionsValues::m_enableBrooksGelmanConvMonitor. Option name is m_prefix + "mh_enableBrooksGelmanConvMonitor".

Definition at line 726 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_filteredChain_dataOutputAllowAll
private

Option name for MhOptionsValues::m_filteredChainDataOutputAllowAll. Option name is m_prefix + "mh_filteredChain_dataOutputAllowAll".

Definition at line 682 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_filteredChain_dataOutputAllowedSet
private

Option name for MhOptionsValues::m_filteredChainDataOutputAllowedSet. Option name is m_prefix + "mh_filteredChain_dataOutputAllowedSet".

Definition at line 684 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_filteredChain_dataOutputFileName
private

Option name for MhOptionsValues::m_filteredChainDataOutputFileName. Option name is m_prefix + "mh_filteredChain_dataOutputFileName".

Definition at line 678 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_filteredChain_dataOutputFileType
private

Option name for MhOptionsValues::m_filteredChainDataOutputFileType. Option name is m_prefix + "mh_filteredChain_dataOutputFileType".

Definition at line 680 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_filteredChain_discardedPortion
private

Option name for MhOptionsValues::m_filteredChainDiscardedPortion. Option name is m_prefix + "mh_filteredChain_discardedPortion".

Definition at line 674 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_filteredChain_generate
private

Option name for MhOptionsValues::m_filteredChainGenerate. Option name is m_prefix + "mh_filteredChain_generate".

Definition at line 672 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_filteredChain_lag
private

Option name for MhOptionsValues::m_filteredChainLag. Option name is m_prefix + "mh_filteredChain_lag".

Definition at line 676 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_help
private

Option name for MhOptionsValues::m_help. Option name is m_prefix + "mh_help".

Definition at line 624 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues().

std::string QUESO::MhOptionsValues::m_option_initialPosition_dataInputFileName
private

Option name for MhOptionsValues::m_initialPositionDataInputFileName. Option name is m_prefix + "mh_initialPosition_dataInputFileName".

Definition at line 636 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_initialPosition_dataInputFileType
private

Option name for MhOptionsValues::m_initialPositionDataInputFileType. Option name is m_prefix + "mh_initialPosition_dataInputFileType".

Definition at line 638 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_initialProposalCovMatrix_dataInputFileName
private

Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileName. Option name is m_prefix + "mh_initialProposalCovMatrix_dataInputFileName".

Definition at line 640 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_initialProposalCovMatrix_dataInputFileType
private

Option name for MhOptionsValues::m_initialProposalCovMatrixDataInputFileType. Option name is m_prefix + "mh_initialProposalCovMatrix_dataInputFileType".

Definition at line 642 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_listOfDisabledParameters
private

Option name for MhOptionsValues::m_parameterDisabledSet. Option name is m_prefix + "mh_listOfDisabledParameters".

Definition at line 644 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_outputLogLikelihood
private

Option name for MhOptionsValues::m_outputLogLikelihood. Option name is m_prefix + "mh_outputLogLikelihood".

Definition at line 731 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_outputLogTarget
private

Option name for MhOptionsValues::m_outputLogTarget. Option name is m_prefix + "mh_outputLogTarget".

Definition at line 733 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_putOutOfBoundsInChain
private

Option name for MhOptionsValues::m_putOutOfBoundsInChain. Option name is m_prefix + "mh_putOutOfBoundsInChain".

Definition at line 692 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_dataInputFileName
private

Option name for MhOptionsValues::m_rawChainDataInputFileName. Option name is m_prefix + "mh_rawChain_dataInputFileName".

Definition at line 646 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_dataInputFileType
private

Option name for MhOptionsValues::m_rawChainDataInputFileType. Option name is m_prefix + "mh_rawChain_dataInputFileType".

Definition at line 648 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_dataOutputAllowAll
private

Option name for MhOptionsValues::m_rawChainDataOutputAllowAll. Option name is m_prefix + "mh_rawChain_dataOutputAllowAll".

Definition at line 664 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_dataOutputAllowedSet
private

Option name for MhOptionsValues::m_rawChainDataOutputAllowedSet. Option name is m_prefix + "mh_rawChain_dataOutputAllowedSet".

Definition at line 666 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_dataOutputFileName
private

Option name for MhOptionsValues::m_rawChainDataOutputFileName. Option name is m_prefix + "mh_rawChain_dataOutputFileName".

Definition at line 660 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_dataOutputFileType
private

Option name for MhOptionsValues::m_rawChainDataOutputFileType. Option name is m_prefix + "mh_rawChain_dataOutputFileType".

Definition at line 662 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_dataOutputPeriod
private

Option name for MhOptionsValues::m_rawChainDataOutputPeriod. Option name is m_prefix + "mh_rawChain_dataOutputPeriod".

Definition at line 658 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_displayPeriod
private

Option name for MhOptionsValues::m_rawChainDisplayPeriod. Option name is m_prefix + "mh_rawChain_displayPeriod".

Definition at line 654 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_generateExtra
private

Option name for MhOptionsValues::m_rawChainGenerateExtra. Option name is m_prefix + "mh_rawChain_generateExtra".

Definition at line 652 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_measureRunTimes
private

Option name for MhOptionsValues::m_rawChainMeasureRunTimes. Option name is m_prefix + "mh_rawChain_measureRunTimes".

Definition at line 656 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_rawChain_size
private

Option name for MhOptionsValues::m_rawChainSize. Option name is m_prefix + "mh_rawChain_size".

Definition at line 650 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_tk
private

Option name for MhOptionsValues::m_tk. Option name is m_prefix + "mh_tk".

Definition at line 739 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_tk_useLocalHessian
private

Option name for MhOptionsValues::m_tkUseLocalHessian. Option name is m_prefix + "mh_tk_useLocalHessian".

Definition at line 694 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_tk_useNewtonComponent
private

Option name for MhOptionsValues::m_tkUseNewtonComponent. Option name is m_prefix + "mh_tk_useNewtonComponent".

Definition at line 696 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_option_totallyMute
private

Option name for MhOptionsValues::m_totallyMute. Option name is m_prefix + "mh_totallyMute".

Definition at line 634 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

bool QUESO::MhOptionsValues::m_outputLogLikelihood
bool QUESO::MhOptionsValues::m_outputLogTarget
std::set<unsigned int> QUESO::MhOptionsValues::m_parameterDisabledSet
BoostInputOptionsParser* QUESO::MhOptionsValues::m_parser
private

Definition at line 620 of file MetropolisHastingsSGOptions.h.

Referenced by MhOptionsValues(), and QUESO::operator<<().

std::string QUESO::MhOptionsValues::m_prefix

Prefix for input file option names. Prepends all options for this class.

Definition at line 165 of file MetropolisHastingsSGOptions.h.

bool QUESO::MhOptionsValues::m_putOutOfBoundsInChain

Flag to tell QUESO how chains should be upon generating a proposal that is out of the problem domain.

If true, the chain will reject any proposal states outside of the problem domain and the chain will advance to the next iteration, staying where it is.

If false, the chain will not do an accept-reject on a proposed state that is out of bounds. Instead, QUESO will regenerate proposal until it is in the domain. Only when a proposal is in the problem domain does QUESO do an accept-reject step.

The default is true

Definition at line 411 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_rawChainDataInputFileName

Filename for reading an already-produced Markov chain.

If ".", generates the Markov chain without reading anything. If not ".", this is the name of the file to read a Markov chain from instead of generating a chain. Filtering and MLE/MAP computations are still done.

Default is "."

Definition at line 242 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_rawChainDataInputFileType

The filetype of m_rawChainDataInputFileName. Only "m" (matlab) is currently supported. Default is "m".

Definition at line 245 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

bool QUESO::MhOptionsValues::m_rawChainDataOutputAllowAll

Toggle for whether or not to allow all processes to write Markov chain output to a file.

If true, all processes write Markov chain output and m_rawChainDataOutputAllowedSet is ignored.

If false, m_rawChainDataOutputAllowedSet determines the set of processor ranks that will write Markov chain output to a file

Default is false

Definition at line 330 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::set<unsigned int> QUESO::MhOptionsValues::m_rawChainDataOutputAllowedSet

The set of MPI ranks that will write Markov chain output to a file. See also m_rawChainDataOutputAllowAll. Default is empty set.

Definition at line 333 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_rawChainDataOutputFileName

If not ".", filename to write the Markov chain to.

If ".", the chain is not written to a file.

If m_totallyMute is true, the chain is not written regardless of the value of this option.

Default is "."

Definition at line 298 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

std::string QUESO::MhOptionsValues::m_rawChainDataOutputFileType

The filetype of m_rawChainDataOutputFileName.

Only "m" (matlab) and "txt" are currently supported.

If "m", the raw chain data that is written will be matlab-friendly. I.e., arrays will be set up with the correct dimensions. The first dimension is the sample dimension and the second dimension (for high-dimensional statistical inverse problems) is the parameter dimension.

If "txt", none of the matlab-specific information is written to the file. Instead, space-delimited column data is written. The first line specifies the dimensions of the saved array data. The first dimension is the sample dimension and the second dimension is the parameter dimension. For example, if the first line written is "12 34" then the following 12 lines are samples that live in a 34-dimensional space.

Default is "m"

Definition at line 318 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

unsigned int QUESO::MhOptionsValues::m_rawChainDataOutputPeriod
unsigned int QUESO::MhOptionsValues::m_rawChainDisplayPeriod

The frequency with which to output diagnostic information.

Diagnostics are current sample iteration and current rejection percentage.

Must be an integer.

Default is 500

Definition at line 267 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

bool QUESO::MhOptionsValues::m_rawChainGenerateExtra

If true, extra chain information is computed/stored.

The extra information written is: log target, acceptance ratio, number of rejected samples.

Default is false

Definition at line 257 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

bool QUESO::MhOptionsValues::m_rawChainMeasureRunTimes

If true, measures timings spent in various chain computions and writes them to the output file.

The measurements are:

time spent computing proposal time spent computing target time spent computing metropolis time spent computing hastings acceptance ratio time spent computing delayed rejection average time spent computing target total delayed rejection run time total adaptive metropolis run time

Default is true

Definition at line 284 of file MetropolisHastingsSGOptions.h.

Referenced by copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

unsigned int QUESO::MhOptionsValues::m_rawChainSize
std::string QUESO::MhOptionsValues::m_tk
bool QUESO::MhOptionsValues::m_tkUseLocalHessian

Flag to tell QUESO whether or not to use Hessian information for the proposal covariance matrix.

The interaction with delayed rejection:

If m_drDuringAmNonAdaptiveInt is false and m_tkUseLocalHessian is false and m_amInitialNonAdaptInterval > 0 and m_amAdaptInterval is > 0 and the current sampler iteration is <= m_amInitialNonAdaptInterval, then no delayed rejection is done.

The above is hard to parse, it essentially means that, unless you ask for it, no delayed rejection is dont in the initial phase of sampling when no adaptive Metropolis is happening.

The interaction with adaptive Metropolis:

If m_tkUseLocalHessian is true, no adaptive Metropolis is done. If it's false, then we also need that m_amInitialNonAdaptInterval > 0 and m_amAdaptInterval > 0 otherwise no adaptive Metropolis is done.

The default is false.

DM: I think m_tkUseLocalHessian == true is not supported, since we have no algorithms that leverage Hessian information right now.

Definition at line 437 of file MetropolisHastingsSGOptions.h.

Referenced by checkOptions(), copy(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions(), MhOptionsValues(), QUESO::operator<<(), and QUESO::MetropolisHastingsSGOptions::print().

bool QUESO::MhOptionsValues::m_tkUseNewtonComponent
bool QUESO::MhOptionsValues::m_totallyMute

The documentation for this class was generated from the following files:

Generated on Thu Dec 15 2016 13:23:15 for queso-0.56.1 by  doxygen 1.8.5