queso-0.51.1
Public Attributes | Private Member Functions | Private Attributes | List of all members
QUESO::MetropolisHastingsSGOptions Class Reference

This class reads the options for the Metropolis-Hastings generator of samples from an input file. More...

#include <MetropolisHastingsSGOptions.h>

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

Public Member Functions

Constructor/Destructor methods
 MetropolisHastingsSGOptions (const BaseEnvironment &env, const char *prefix)
 Constructor: reads options from the input file. More...
 
 MetropolisHastingsSGOptions (const BaseEnvironment &env, const char *prefix, const MhOptionsValues &alternativeOptionsValues)
 Constructor: with alternative option values. More...
 
 MetropolisHastingsSGOptions (const MLSamplingLevelOptions &mlOptions)
 Copy constructor. More...
 
 ~MetropolisHastingsSGOptions ()
 Destructor. More...
 
I/O methods
void scanOptionsValues ()
 It scans the option values from the options input file. More...
 
void print (std::ostream &os) const
 It prints the option values. More...
 

Public Attributes

MhOptionsValues m_ov
 This class is where the actual options are stored. More...
 
std::string m_prefix
 

Private Member Functions

void defineMyOptions (po::options_description &optionsDesc) const
 Defines the options for the Metropolis-Hastings generator of samples as the default options. More...
 
void getMyOptionValues (po::options_description &optionsDesc)
 Gets the sequence options defined to the Metropolis-Hastings algorithm. More...
 

Private Attributes

const BaseEnvironmentm_env
 
po::options_description * m_optionsDesc
 
std::string m_option_help
 
std::string m_option_dataOutputFileName
 
std::string m_option_dataOutputAllowAll
 
std::string m_option_dataOutputAllowedSet
 
std::string m_option_totallyMute
 
std::string m_option_initialPosition_dataInputFileName
 
std::string m_option_initialPosition_dataInputFileType
 
std::string m_option_initialProposalCovMatrix_dataInputFileName
 
std::string m_option_initialProposalCovMatrix_dataInputFileType
 
std::string m_option_listOfDisabledParameters
 
std::string m_option_rawChain_dataInputFileName
 
std::string m_option_rawChain_dataInputFileType
 
std::string m_option_rawChain_size
 
std::string m_option_rawChain_generateExtra
 
std::string m_option_rawChain_displayPeriod
 
std::string m_option_rawChain_measureRunTimes
 
std::string m_option_rawChain_dataOutputPeriod
 
std::string m_option_rawChain_dataOutputFileName
 
std::string m_option_rawChain_dataOutputFileType
 
std::string m_option_rawChain_dataOutputAllowAll
 
std::string m_option_rawChain_dataOutputAllowedSet
 
std::string m_option_filteredChain_generate
 
std::string m_option_filteredChain_discardedPortion
 
std::string m_option_filteredChain_lag
 
std::string m_option_filteredChain_dataOutputFileName
 
std::string m_option_filteredChain_dataOutputFileType
 
std::string m_option_filteredChain_dataOutputAllowAll
 
std::string m_option_filteredChain_dataOutputAllowedSet
 
std::string m_option_displayCandidates
 
std::string m_option_putOutOfBoundsInChain
 
std::string m_option_tk_useLocalHessian
 
std::string m_option_tk_useNewtonComponent
 
std::string m_option_dr_maxNumExtraStages
 
std::string m_option_dr_listOfScalesForExtraStages
 
std::string m_option_dr_duringAmNonAdaptiveInt
 
std::string m_option_am_keepInitialMatrix
 
std::string m_option_am_initialNonAdaptInterval
 
std::string m_option_am_adaptInterval
 
std::string m_option_am_adaptedMatrices_dataOutputPeriod
 
std::string m_option_am_adaptedMatrices_dataOutputFileName
 
std::string m_option_am_adaptedMatrices_dataOutputFileType
 
std::string m_option_am_adaptedMatrices_dataOutputAllowAll
 
std::string m_option_am_adaptedMatrices_dataOutputAllowedSet
 
std::string m_option_am_eta
 See MhOptionsValues::m_amEta. More...
 
std::string m_option_am_epsilon
 See MhOptionsValues::m_amEpsilon. More...
 
std::string m_option_enableBrooksGelmanConvMonitor
 
std::string m_option_BrooksGelmanLag
 
std::string m_option_outputLogLikelihood
 
std::string m_option_outputLogTarget
 
std::string m_option_doLogitTransform
 

Detailed Description

This class reads the options for the Metropolis-Hastings generator of samples from an input file.

This class implements a Metropolis-Hastings generator of samples. 'SG' stands for 'Sequence Generator'. Metropolis-Hastings generator of samples expects some options to be fully defined. This class reads the options for the Metropolis-Hastings generator of samples from an input file provided by the user. The class expects the prefix '<prefix>_mh_'. For instance, if 'prefix' is 'foo_775_fp_', then the constructor will read all options that begin with 'foo_775_fp_mh_'. Options reading is hpandled by class 'MetropolisHastingsOptions'. To set options by hand, use the MhOptionsValues class.

Definition at line 251 of file MetropolisHastingsSGOptions.h.

Constructor & Destructor Documentation

QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions ( const BaseEnvironment env,
const char *  prefix 
)

Constructor: reads options from the input file.

Definition at line 200 of file MetropolisHastingsSGOptions.C.

References m_env, QUESO::BaseEnvironment::optionsInputFileName(), UQ_FATAL_TEST_MACRO, and QUESO::BaseEnvironment::worldRank().

203  :
204 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
205  m_ov (NULL,NULL), // dakota
206  m_rawChainStatisticalOptionsObj (NULL),
207  m_rawChainStatOptsInstantiated (false),
208  m_filteredChainStatisticalOptionsObj (NULL),
209  m_filteredChainStatOptsInstantiated (false),
210 #else
211  m_ov (),
212 #endif
213  m_prefix ((std::string)(prefix) + "mh_"),
214  m_env (env),
215  m_optionsDesc (new po::options_description("Bayesian Metropolis-Hastings options")),
216  m_option_help (m_prefix + "help" ),
217  m_option_dataOutputFileName (m_prefix + "dataOutputFileName" ),
218  m_option_dataOutputAllowAll (m_prefix + "dataOutputAllowAll" ),
219  m_option_dataOutputAllowedSet (m_prefix + "dataOutputAllowedSet" ),
220  m_option_totallyMute (m_prefix + "totallyMute" ),
221  m_option_initialPosition_dataInputFileName (m_prefix + "initialPosition_dataInputFileName" ),
222  m_option_initialPosition_dataInputFileType (m_prefix + "initialPosition_dataInputFileType" ),
223  m_option_initialProposalCovMatrix_dataInputFileName(m_prefix + "initialProposalCovMatrix_dataInputFileName"),
224  m_option_initialProposalCovMatrix_dataInputFileType(m_prefix + "initialProposalCovMatrix_dataInputFileType"),
225  m_option_listOfDisabledParameters (m_prefix + "listOfDisabledParameters" ),
226  m_option_rawChain_dataInputFileName (m_prefix + "rawChain_dataInputFileName" ),
227  m_option_rawChain_dataInputFileType (m_prefix + "rawChain_dataInputFileType" ),
228  m_option_rawChain_size (m_prefix + "rawChain_size" ),
229  m_option_rawChain_generateExtra (m_prefix + "rawChain_generateExtra" ),
230  m_option_rawChain_displayPeriod (m_prefix + "rawChain_displayPeriod" ),
231  m_option_rawChain_measureRunTimes (m_prefix + "rawChain_measureRunTimes" ),
232  m_option_rawChain_dataOutputPeriod (m_prefix + "rawChain_dataOutputPeriod" ),
233  m_option_rawChain_dataOutputFileName (m_prefix + "rawChain_dataOutputFileName" ),
234  m_option_rawChain_dataOutputFileType (m_prefix + "rawChain_dataOutputFileType" ),
235  m_option_rawChain_dataOutputAllowAll (m_prefix + "rawChain_dataOutputAllowAll" ),
236  m_option_rawChain_dataOutputAllowedSet (m_prefix + "rawChain_dataOutputAllowedSet" ),
237 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
238  m_option_rawChain_computeStats (m_prefix + "rawChain_computeStats" ),
239 #endif
240  m_option_filteredChain_generate (m_prefix + "filteredChain_generate" ),
241  m_option_filteredChain_discardedPortion (m_prefix + "filteredChain_discardedPortion" ),
242  m_option_filteredChain_lag (m_prefix + "filteredChain_lag" ),
243  m_option_filteredChain_dataOutputFileName (m_prefix + "filteredChain_dataOutputFileName" ),
244  m_option_filteredChain_dataOutputFileType (m_prefix + "filteredChain_dataOutputFileType" ),
245  m_option_filteredChain_dataOutputAllowAll (m_prefix + "filteredChain_dataOutputAllowAll" ),
246  m_option_filteredChain_dataOutputAllowedSet (m_prefix + "filteredChain_dataOutputAllowedSet" ),
247 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
248  m_option_filteredChain_computeStats (m_prefix + "filteredChain_computeStats" ),
249 #endif
250  m_option_displayCandidates (m_prefix + "displayCandidates" ),
251  m_option_putOutOfBoundsInChain (m_prefix + "putOutOfBoundsInChain" ),
252  m_option_tk_useLocalHessian (m_prefix + "tk_useLocalHessian" ),
253  m_option_tk_useNewtonComponent (m_prefix + "tk_useNewtonComponent" ),
254  m_option_dr_maxNumExtraStages (m_prefix + "dr_maxNumExtraStages" ),
255  m_option_dr_listOfScalesForExtraStages (m_prefix + "dr_listOfScalesForExtraStages" ),
256  m_option_dr_duringAmNonAdaptiveInt (m_prefix + "dr_duringAmNonAdaptiveInt" ),
257  m_option_am_keepInitialMatrix (m_prefix + "am_keepInitialMatrix" ),
258  m_option_am_initialNonAdaptInterval (m_prefix + "am_initialNonAdaptInterval" ),
259  m_option_am_adaptInterval (m_prefix + "am_adaptInterval" ),
260  m_option_am_adaptedMatrices_dataOutputPeriod (m_prefix + "am_adaptedMatrices_dataOutputPeriod" ),
261  m_option_am_adaptedMatrices_dataOutputFileName (m_prefix + "am_adaptedMatrices_dataOutputFileName" ),
262  m_option_am_adaptedMatrices_dataOutputFileType (m_prefix + "am_adaptedMatrices_dataOutputFileType" ),
263  m_option_am_adaptedMatrices_dataOutputAllowAll (m_prefix + "am_adaptedMatrices_dataOutputAllowAll" ),
264  m_option_am_adaptedMatrices_dataOutputAllowedSet (m_prefix + "am_adaptedMatrices_dataOutputAllowedSet" ),
265  m_option_am_eta (m_prefix + "am_eta" ),
266  m_option_am_epsilon (m_prefix + "am_epsilon" ),
267  m_option_enableBrooksGelmanConvMonitor (m_prefix + "enableBrooksGelmanConvMonitor" ),
268  m_option_BrooksGelmanLag (m_prefix + "BrooksGelmanLag" ),
269  m_option_outputLogLikelihood (m_prefix + "outputLogLikelihood" ),
270  m_option_outputLogTarget (m_prefix + "outputLogTarget" ),
271  m_option_doLogitTransform (m_prefix + "doLogitTransform" )
272 {
274  m_env.worldRank(),
275  "MetropolisHastingsSGOptions::constructor(1)",
276  "this constructor is incompatible with the absence of an options input file");
277 }
std::string m_option_am_eta
See MhOptionsValues::m_amEta.
int worldRank() const
Returns the process world rank.
Definition: Environment.C:235
std::string optionsInputFileName() const
Access to the attribute m_optionsInputFileName, which stores the name of the input file passed by the...
Definition: Environment.C:341
std::string m_option_am_epsilon
See MhOptionsValues::m_amEpsilon.
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223
MhOptionsValues m_ov
This class is where the actual options are stored.
QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions ( const BaseEnvironment env,
const char *  prefix,
const MhOptionsValues alternativeOptionsValues 
)

Constructor: with alternative option values.

In this constructor, the input options are given by alternativeOptionsValues.

Definition at line 279 of file MetropolisHastingsSGOptions.C.

References m_env, m_ov, m_prefix, QUESO::MhOptionsValues::m_totallyMute, QUESO::BaseEnvironment::optionsInputFileName(), QUESO::BaseEnvironment::subDisplayFile(), UQ_FATAL_TEST_MACRO, and QUESO::BaseEnvironment::worldRank().

283  :
284  m_ov (alternativeOptionsValues),
285 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
286  m_rawChainStatisticalOptionsObj (NULL),
287  m_rawChainStatOptsInstantiated (false),
288  m_filteredChainStatisticalOptionsObj (NULL),
289  m_filteredChainStatOptsInstantiated (false),
290 #endif
291  m_prefix ((std::string)(prefix) + "mh_"),
292  m_env (env),
293  m_optionsDesc (NULL),
294  m_option_help (m_prefix + "help" ),
295  m_option_dataOutputFileName (m_prefix + "dataOutputFileName" ),
296  m_option_dataOutputAllowAll (m_prefix + "dataOutputAllowAll" ),
297  m_option_dataOutputAllowedSet (m_prefix + "dataOutputAllowedSet" ),
298  m_option_totallyMute (m_prefix + "totallyMute" ),
299  m_option_initialPosition_dataInputFileName (m_prefix + "initialPosition_dataInputFileName" ),
300  m_option_initialPosition_dataInputFileType (m_prefix + "initialPosition_dataInputFileType" ),
301  m_option_initialProposalCovMatrix_dataInputFileName(m_prefix + "initialProposalCovMatrix_dataInputFileName"),
302  m_option_initialProposalCovMatrix_dataInputFileType(m_prefix + "initialProposalCovMatrix_dataInputFileType"),
303  m_option_listOfDisabledParameters (m_prefix + "listOfDisabledParameters" ),
304  m_option_rawChain_dataInputFileName (m_prefix + "rawChain_dataInputFileName" ),
305  m_option_rawChain_dataInputFileType (m_prefix + "rawChain_dataInputFileType" ),
306  m_option_rawChain_size (m_prefix + "rawChain_size" ),
307  m_option_rawChain_generateExtra (m_prefix + "rawChain_generateExtra" ),
308  m_option_rawChain_displayPeriod (m_prefix + "rawChain_displayPeriod" ),
309  m_option_rawChain_measureRunTimes (m_prefix + "rawChain_measureRunTimes" ),
310  m_option_rawChain_dataOutputPeriod (m_prefix + "rawChain_dataOutputPeriod" ),
311  m_option_rawChain_dataOutputFileName (m_prefix + "rawChain_dataOutputFileName" ),
312  m_option_rawChain_dataOutputFileType (m_prefix + "rawChain_dataOutputFileType" ),
313  m_option_rawChain_dataOutputAllowAll (m_prefix + "rawChain_dataOutputAllowAll" ),
314  m_option_rawChain_dataOutputAllowedSet (m_prefix + "rawChain_dataOutputAllowedSet" ),
315 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
316  m_option_rawChain_computeStats (m_prefix + "rawChain_computeStats" ),
317 #endif
318  m_option_filteredChain_generate (m_prefix + "filteredChain_generate" ),
319  m_option_filteredChain_discardedPortion (m_prefix + "filteredChain_discardedPortion" ),
320  m_option_filteredChain_lag (m_prefix + "filteredChain_lag" ),
321  m_option_filteredChain_dataOutputFileName (m_prefix + "filteredChain_dataOutputFileName" ),
322  m_option_filteredChain_dataOutputFileType (m_prefix + "filteredChain_dataOutputFileType" ),
323  m_option_filteredChain_dataOutputAllowAll (m_prefix + "filteredChain_dataOutputAllowAll" ),
324  m_option_filteredChain_dataOutputAllowedSet (m_prefix + "filteredChain_dataOutputAllowedSet" ),
325 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
326  m_option_filteredChain_computeStats (m_prefix + "filteredChain_computeStats" ),
327 #endif
328  m_option_displayCandidates (m_prefix + "displayCandidates" ),
329  m_option_putOutOfBoundsInChain (m_prefix + "putOutOfBoundsInChain" ),
330  m_option_tk_useLocalHessian (m_prefix + "tk_useLocalHessian" ),
331  m_option_tk_useNewtonComponent (m_prefix + "tk_useNewtonComponent" ),
332  m_option_dr_maxNumExtraStages (m_prefix + "dr_maxNumExtraStages" ),
333  m_option_dr_listOfScalesForExtraStages (m_prefix + "dr_listOfScalesForExtraStages" ),
334  m_option_dr_duringAmNonAdaptiveInt (m_prefix + "dr_duringAmNonAdaptiveInt" ),
335  m_option_am_keepInitialMatrix (m_prefix + "am_keepInitialMatrix" ),
336  m_option_am_initialNonAdaptInterval (m_prefix + "am_initialNonAdaptInterval" ),
337  m_option_am_adaptInterval (m_prefix + "am_adaptInterval" ),
338  m_option_am_adaptedMatrices_dataOutputPeriod (m_prefix + "am_adaptedMatrices_dataOutputPeriod" ),
339  m_option_am_adaptedMatrices_dataOutputFileName (m_prefix + "am_adaptedMatrices_dataOutputFileName" ),
340  m_option_am_adaptedMatrices_dataOutputFileType (m_prefix + "am_adaptedMatrices_dataOutputFileType" ),
341  m_option_am_adaptedMatrices_dataOutputAllowAll (m_prefix + "am_adaptedMatrices_dataOutputAllowAll" ),
342  m_option_am_adaptedMatrices_dataOutputAllowedSet (m_prefix + "am_adaptedMatrices_dataOutputAllowedSet" ),
343  m_option_am_eta (m_prefix + "am_eta" ),
344  m_option_am_epsilon (m_prefix + "am_epsilon" ),
345  m_option_enableBrooksGelmanConvMonitor (m_prefix + "enableBrooksGelmanConvMonitor" ),
346  m_option_BrooksGelmanLag (m_prefix + "BrooksGelmanLag" ),
347  m_option_outputLogLikelihood (m_prefix + "outputLogLikelihood" ),
348  m_option_outputLogTarget (m_prefix + "outputLogTarget" ),
349  m_option_doLogitTransform (m_prefix + "doLogitTransform" )
350 {
352  m_env.worldRank(),
353  "MetropolisHastingsSGOptions::constructor(2)",
354  "this constructor is incompatible with the existence of an options input file");
355 
356  if ((m_env.subDisplayFile() != NULL ) &&
357  (m_ov.m_totallyMute == false)) {
358  *m_env.subDisplayFile() << "In MetropolisHastingsSGOptions::constructor(2)"
359  << ": after setting values of options with prefix '" << m_prefix
360  << "', state of object is:"
361  << "\n" << *this
362  << std::endl;
363  }
364 
365 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
366  if (m_ov.m_rawChainComputeStats) {
367  m_rawChainStatisticalOptionsObj = new SequenceStatisticalOptions(m_env,m_prefix + "rawChain_",m_ov.m_alternativeRawSsOptionsValues);
368  m_rawChainStatOptsInstantiated = true;
369  }
370  if (m_ov.m_filteredChainComputeStats) {
371  m_filteredChainStatisticalOptionsObj = new SequenceStatisticalOptions(m_env,m_prefix + "filteredChain_",m_ov.m_alternativeFilteredSsOptionsValues);
372  m_filteredChainStatOptsInstantiated = true;
373  }
374 #endif
375 }
std::string m_option_am_eta
See MhOptionsValues::m_amEta.
int worldRank() const
Returns the process world rank.
Definition: Environment.C:235
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:305
std::string optionsInputFileName() const
Access to the attribute m_optionsInputFileName, which stores the name of the input file passed by the...
Definition: Environment.C:341
std::string m_option_am_epsilon
See MhOptionsValues::m_amEpsilon.
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223
MhOptionsValues m_ov
This class is where the actual options are stored.
QUESO::MetropolisHastingsSGOptions::MetropolisHastingsSGOptions ( const MLSamplingLevelOptions mlOptions)

Copy constructor.

Definition at line 377 of file MetropolisHastingsSGOptions.C.

References QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll, QUESO::MLSamplingLevelOptions::m_amAdaptedMatricesDataOutputAllowAll, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet, QUESO::MLSamplingLevelOptions::m_amAdaptedMatricesDataOutputAllowedSet, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputFileName, QUESO::MLSamplingLevelOptions::m_amAdaptedMatricesDataOutputFileName, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputFileType, QUESO::MLSamplingLevelOptions::m_amAdaptedMatricesDataOutputFileType, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod, QUESO::MLSamplingLevelOptions::m_amAdaptedMatricesDataOutputPeriod, QUESO::MhOptionsValues::m_amAdaptInterval, QUESO::MLSamplingLevelOptions::m_amAdaptInterval, QUESO::MhOptionsValues::m_amEpsilon, QUESO::MLSamplingLevelOptions::m_amEpsilon, QUESO::MhOptionsValues::m_amEta, QUESO::MLSamplingLevelOptions::m_amEta, QUESO::MhOptionsValues::m_amInitialNonAdaptInterval, QUESO::MLSamplingLevelOptions::m_amInitialNonAdaptInterval, QUESO::MhOptionsValues::m_amKeepInitialMatrix, QUESO::MLSamplingLevelOptions::m_amKeepInitialMatrix, QUESO::MhOptionsValues::m_BrooksGelmanLag, QUESO::MhOptionsValues::m_dataOutputAllowAll, QUESO::MLSamplingLevelOptions::m_dataOutputAllowAll, QUESO::MhOptionsValues::m_dataOutputAllowedSet, QUESO::MLSamplingLevelOptions::m_dataOutputAllowedSet, QUESO::MhOptionsValues::m_dataOutputFileName, QUESO::MLSamplingLevelOptions::m_dataOutputFileName, QUESO::MhOptionsValues::m_displayCandidates, QUESO::MLSamplingLevelOptions::m_displayCandidates, QUESO::MhOptionsValues::m_doLogitTransform, QUESO::MLSamplingLevelOptions::m_doLogitTransform, QUESO::MhOptionsValues::m_drDuringAmNonAdaptiveInt, QUESO::MLSamplingLevelOptions::m_drDuringAmNonAdaptiveInt, QUESO::MhOptionsValues::m_drMaxNumExtraStages, QUESO::MLSamplingLevelOptions::m_drMaxNumExtraStages, QUESO::MhOptionsValues::m_drScalesForExtraStages, QUESO::MLSamplingLevelOptions::m_drScalesForExtraStages, QUESO::MhOptionsValues::m_enableBrooksGelmanConvMonitor, m_env, QUESO::MhOptionsValues::m_filteredChainDataOutputAllowAll, QUESO::MLSamplingLevelOptions::m_filteredChainDataOutputAllowAll, QUESO::MhOptionsValues::m_filteredChainDataOutputAllowedSet, QUESO::MLSamplingLevelOptions::m_filteredChainDataOutputAllowedSet, QUESO::MhOptionsValues::m_filteredChainDataOutputFileName, QUESO::MLSamplingLevelOptions::m_filteredChainDataOutputFileName, QUESO::MhOptionsValues::m_filteredChainDataOutputFileType, QUESO::MLSamplingLevelOptions::m_filteredChainDataOutputFileType, QUESO::MhOptionsValues::m_filteredChainDiscardedPortion, QUESO::MLSamplingLevelOptions::m_filteredChainDiscardedPortion, QUESO::MhOptionsValues::m_filteredChainGenerate, QUESO::MLSamplingLevelOptions::m_filteredChainGenerate, QUESO::MhOptionsValues::m_filteredChainLag, QUESO::MLSamplingLevelOptions::m_filteredChainLag, QUESO::MhOptionsValues::m_initialPositionDataInputFileName, QUESO::MLSamplingLevelOptions::m_initialPositionDataInputFileName, QUESO::MhOptionsValues::m_initialPositionDataInputFileType, QUESO::MLSamplingLevelOptions::m_initialPositionDataInputFileType, QUESO::MhOptionsValues::m_initialProposalCovMatrixDataInputFileName, QUESO::MLSamplingLevelOptions::m_initialProposalCovMatrixDataInputFileName, QUESO::MhOptionsValues::m_initialProposalCovMatrixDataInputFileType, QUESO::MLSamplingLevelOptions::m_initialProposalCovMatrixDataInputFileType, QUESO::MhOptionsValues::m_outputLogLikelihood, QUESO::MhOptionsValues::m_outputLogTarget, m_ov, QUESO::MhOptionsValues::m_parameterDisabledSet, QUESO::MLSamplingLevelOptions::m_parameterDisabledSet, m_prefix, QUESO::MhOptionsValues::m_putOutOfBoundsInChain, QUESO::MLSamplingLevelOptions::m_putOutOfBoundsInChain, QUESO::MhOptionsValues::m_rawChainDataInputFileName, QUESO::MLSamplingLevelOptions::m_rawChainDataInputFileName, QUESO::MhOptionsValues::m_rawChainDataInputFileType, QUESO::MLSamplingLevelOptions::m_rawChainDataInputFileType, QUESO::MhOptionsValues::m_rawChainDataOutputAllowAll, QUESO::MLSamplingLevelOptions::m_rawChainDataOutputAllowAll, QUESO::MhOptionsValues::m_rawChainDataOutputAllowedSet, QUESO::MLSamplingLevelOptions::m_rawChainDataOutputAllowedSet, QUESO::MhOptionsValues::m_rawChainDataOutputFileName, QUESO::MLSamplingLevelOptions::m_rawChainDataOutputFileName, QUESO::MhOptionsValues::m_rawChainDataOutputFileType, QUESO::MLSamplingLevelOptions::m_rawChainDataOutputFileType, QUESO::MhOptionsValues::m_rawChainDataOutputPeriod, QUESO::MLSamplingLevelOptions::m_rawChainDataOutputPeriod, QUESO::MhOptionsValues::m_rawChainDisplayPeriod, QUESO::MLSamplingLevelOptions::m_rawChainDisplayPeriod, QUESO::MhOptionsValues::m_rawChainGenerateExtra, QUESO::MLSamplingLevelOptions::m_rawChainGenerateExtra, QUESO::MhOptionsValues::m_rawChainMeasureRunTimes, QUESO::MLSamplingLevelOptions::m_rawChainMeasureRunTimes, QUESO::MhOptionsValues::m_rawChainSize, QUESO::MLSamplingLevelOptions::m_rawChainSize, QUESO::MhOptionsValues::m_tkUseLocalHessian, QUESO::MLSamplingLevelOptions::m_tkUseLocalHessian, QUESO::MhOptionsValues::m_tkUseNewtonComponent, QUESO::MLSamplingLevelOptions::m_tkUseNewtonComponent, QUESO::MhOptionsValues::m_totallyMute, QUESO::MLSamplingLevelOptions::m_totallyMute, QUESO::BaseEnvironment::subDisplayFile(), UQ_MH_SG_BROOKS_GELMAN_LAG, UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR, UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD, and UQ_MH_SG_OUTPUT_LOG_TARGET.

379  :
380 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
381  m_ov (NULL,NULL), // dakota
382  m_rawChainStatisticalOptionsObj (NULL),
383  m_rawChainStatOptsInstantiated (false),
384  m_filteredChainStatisticalOptionsObj (NULL),
385  m_filteredChainStatOptsInstantiated (false),
386 #else
387  m_ov (),
388 #endif
389  m_prefix (mlOptions.m_prefix),
390  m_env (mlOptions.env()),
391  m_optionsDesc (NULL),
392  m_option_help (m_prefix + "help" ),
393  m_option_dataOutputFileName (m_prefix + "dataOutputFileName" ),
394  m_option_dataOutputAllowAll (m_prefix + "dataOutputAllowAll" ),
395  m_option_dataOutputAllowedSet (m_prefix + "dataOutputAllowedSet" ),
396  m_option_totallyMute (m_prefix + "totallyMute" ),
397  m_option_initialPosition_dataInputFileName (m_prefix + "initialPosition_dataInputFileName" ),
398  m_option_initialPosition_dataInputFileType (m_prefix + "initialPosition_dataInputFileType" ),
399  m_option_initialProposalCovMatrix_dataInputFileName(m_prefix + "initialProposalCovMatrix_dataInputFileName"),
400  m_option_initialProposalCovMatrix_dataInputFileType(m_prefix + "initialProposalCovMatrix_dataInputFileType"),
401  m_option_listOfDisabledParameters (m_prefix + "listOfDisabledParameters" ),
402  m_option_rawChain_dataInputFileName (m_prefix + "rawChain_dataInputFileName" ),
403  m_option_rawChain_dataInputFileType (m_prefix + "rawChain_dataInputFileType" ),
404  m_option_rawChain_size (m_prefix + "rawChain_size" ),
405  m_option_rawChain_generateExtra (m_prefix + "rawChain_generateExtra" ),
406  m_option_rawChain_displayPeriod (m_prefix + "rawChain_displayPeriod" ),
407  m_option_rawChain_measureRunTimes (m_prefix + "rawChain_measureRunTimes" ),
408  m_option_rawChain_dataOutputPeriod (m_prefix + "rawChain_dataOutputPeriod" ),
409  m_option_rawChain_dataOutputFileName (m_prefix + "rawChain_dataOutputFileName" ),
410  m_option_rawChain_dataOutputFileType (m_prefix + "rawChain_dataOutputFileType" ),
411  m_option_rawChain_dataOutputAllowAll (m_prefix + "rawChain_dataOutputAllowAll" ),
412  m_option_rawChain_dataOutputAllowedSet (m_prefix + "rawChain_dataOutputAllowedSet" ),
413 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
414  m_option_rawChain_computeStats (m_prefix + "rawChain_computeStats" ),
415 #endif
416  m_option_filteredChain_generate (m_prefix + "filteredChain_generate" ),
417  m_option_filteredChain_discardedPortion (m_prefix + "filteredChain_discardedPortion" ),
418  m_option_filteredChain_lag (m_prefix + "filteredChain_lag" ),
419  m_option_filteredChain_dataOutputFileName (m_prefix + "filteredChain_dataOutputFileName" ),
420  m_option_filteredChain_dataOutputFileType (m_prefix + "filteredChain_dataOutputFileType" ),
421  m_option_filteredChain_dataOutputAllowAll (m_prefix + "filteredChain_dataOutputAllowAll" ),
422  m_option_filteredChain_dataOutputAllowedSet (m_prefix + "filteredChain_dataOutputAllowedSet" ),
423 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
424  m_option_filteredChain_computeStats (m_prefix + "filteredChain_computeStats" ),
425 #endif
426  m_option_displayCandidates (m_prefix + "displayCandidates" ),
427  m_option_putOutOfBoundsInChain (m_prefix + "putOutOfBoundsInChain" ),
428  m_option_tk_useLocalHessian (m_prefix + "tk_useLocalHessian" ),
429  m_option_tk_useNewtonComponent (m_prefix + "tk_useNewtonComponent" ),
430  m_option_dr_maxNumExtraStages (m_prefix + "dr_maxNumExtraStages" ),
431  m_option_dr_listOfScalesForExtraStages (m_prefix + "dr_listOfScalesForExtraStages" ),
432  m_option_dr_duringAmNonAdaptiveInt (m_prefix + "dr_duringAmNonAdaptiveInt" ),
433  m_option_am_keepInitialMatrix (m_prefix + "am_keepInitialMatrix" ),
434  m_option_am_initialNonAdaptInterval (m_prefix + "am_initialNonAdaptInterval" ),
435  m_option_am_adaptInterval (m_prefix + "am_adaptInterval" ),
436  m_option_am_adaptedMatrices_dataOutputPeriod (m_prefix + "am_adaptedMatrices_dataOutputPeriod" ),
437  m_option_am_adaptedMatrices_dataOutputFileName (m_prefix + "am_adaptedMatrices_dataOutputFileName" ),
438  m_option_am_adaptedMatrices_dataOutputFileType (m_prefix + "am_adaptedMatrices_dataOutputFileType" ),
439  m_option_am_adaptedMatrices_dataOutputAllowAll (m_prefix + "am_adaptedMatrices_dataOutputAllowAll" ),
440  m_option_am_adaptedMatrices_dataOutputAllowedSet (m_prefix + "am_adaptedMatrices_dataOutputAllowedSet" ),
441  m_option_am_eta (m_prefix + "am_eta" ),
442  m_option_am_epsilon (m_prefix + "am_epsilon" ),
443  m_option_enableBrooksGelmanConvMonitor (m_prefix + "enableBrooksGelmanConvMonitor" ),
444  m_option_BrooksGelmanLag (m_prefix + "BrooksGelmanLag" ),
445  m_option_outputLogLikelihood (m_prefix + "outputLogLikelihood" ),
446  m_option_outputLogTarget (m_prefix + "outputLogTarget" ),
447  m_option_doLogitTransform (m_prefix + "doLogitTransform" )
448 {
449  m_ov.m_dataOutputFileName = mlOptions.m_dataOutputFileName;
450  m_ov.m_dataOutputAllowAll = mlOptions.m_dataOutputAllowAll;
451  m_ov.m_dataOutputAllowedSet = mlOptions.m_dataOutputAllowedSet;
452  m_ov.m_totallyMute = mlOptions.m_totallyMute;
453  m_ov.m_initialPositionDataInputFileName = mlOptions.m_initialPositionDataInputFileName;
454  m_ov.m_initialPositionDataInputFileType = mlOptions.m_initialPositionDataInputFileType;
455  m_ov.m_initialProposalCovMatrixDataInputFileName = mlOptions.m_initialProposalCovMatrixDataInputFileName;
456  m_ov.m_initialProposalCovMatrixDataInputFileType = mlOptions.m_initialProposalCovMatrixDataInputFileType;
457  m_ov.m_parameterDisabledSet = mlOptions.m_parameterDisabledSet;
458  m_ov.m_rawChainDataInputFileName = mlOptions.m_rawChainDataInputFileName;
459  m_ov.m_rawChainDataInputFileType = mlOptions.m_rawChainDataInputFileType;
460  m_ov.m_rawChainSize = mlOptions.m_rawChainSize;
461  m_ov.m_rawChainGenerateExtra = mlOptions.m_rawChainGenerateExtra;
462  m_ov.m_rawChainDisplayPeriod = mlOptions.m_rawChainDisplayPeriod;
463  m_ov.m_rawChainMeasureRunTimes = mlOptions.m_rawChainMeasureRunTimes;
464  m_ov.m_rawChainDataOutputPeriod = mlOptions.m_rawChainDataOutputPeriod;
465  m_ov.m_rawChainDataOutputFileName = mlOptions.m_rawChainDataOutputFileName;
466  m_ov.m_rawChainDataOutputFileType = mlOptions.m_rawChainDataOutputFileType;
467  m_ov.m_rawChainDataOutputAllowAll = mlOptions.m_rawChainDataOutputAllowAll;
468  m_ov.m_rawChainDataOutputAllowedSet = mlOptions.m_rawChainDataOutputAllowedSet;
469 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
470  m_ov.m_rawChainComputeStats = mlOptions.m_rawChainComputeStats;
471 #endif
472  m_ov.m_filteredChainGenerate = mlOptions.m_filteredChainGenerate;
473  m_ov.m_filteredChainDiscardedPortion = mlOptions.m_filteredChainDiscardedPortion;
474  m_ov.m_filteredChainLag = mlOptions.m_filteredChainLag;
475  m_ov.m_filteredChainDataOutputFileName = mlOptions.m_filteredChainDataOutputFileName;
476  m_ov.m_filteredChainDataOutputFileType = mlOptions.m_filteredChainDataOutputFileType;
477  m_ov.m_filteredChainDataOutputAllowAll = mlOptions.m_filteredChainDataOutputAllowAll;
478  m_ov.m_filteredChainDataOutputAllowedSet = mlOptions.m_filteredChainDataOutputAllowedSet;
479 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
480  m_ov.m_filteredChainComputeStats = mlOptions.m_filteredChainComputeStats;
481 #endif
482  m_ov.m_displayCandidates = mlOptions.m_displayCandidates;
483  m_ov.m_putOutOfBoundsInChain = mlOptions.m_putOutOfBoundsInChain;
484  m_ov.m_tkUseLocalHessian = mlOptions.m_tkUseLocalHessian;
485  m_ov.m_tkUseNewtonComponent = mlOptions.m_tkUseNewtonComponent;
486  m_ov.m_drMaxNumExtraStages = mlOptions.m_drMaxNumExtraStages;
487  m_ov.m_drScalesForExtraStages = mlOptions.m_drScalesForExtraStages;
488  m_ov.m_drDuringAmNonAdaptiveInt = mlOptions.m_drDuringAmNonAdaptiveInt;
489  m_ov.m_amKeepInitialMatrix = mlOptions.m_amKeepInitialMatrix;
490  m_ov.m_amInitialNonAdaptInterval = mlOptions.m_amInitialNonAdaptInterval;
491  m_ov.m_amAdaptInterval = mlOptions.m_amAdaptInterval;
492  m_ov.m_amAdaptedMatricesDataOutputPeriod = mlOptions.m_amAdaptedMatricesDataOutputPeriod;
493  m_ov.m_amAdaptedMatricesDataOutputFileName = mlOptions.m_amAdaptedMatricesDataOutputFileName;
494  m_ov.m_amAdaptedMatricesDataOutputFileType = mlOptions.m_amAdaptedMatricesDataOutputFileType;
495  m_ov.m_amAdaptedMatricesDataOutputAllowAll = mlOptions.m_amAdaptedMatricesDataOutputAllowAll;
496  m_ov.m_amAdaptedMatricesDataOutputAllowedSet = mlOptions.m_amAdaptedMatricesDataOutputAllowedSet;
497  m_ov.m_amEta = mlOptions.m_amEta;
498  m_ov.m_amEpsilon = mlOptions.m_amEpsilon;
503  m_ov.m_doLogitTransform = mlOptions.m_doLogitTransform;
504 
505 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
506 //m_ov.m_alternativeRawSsOptionsValues = mlOptions.; // dakota
507 //m_ov.m_alternativeFilteredSsOptionsValues = mlOptions.; // dakota
508 #endif
509 
510 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
511  m_rawChainStatisticalOptionsObj = mlOptions.m_rawChainStatisticalOptionsObj; // dakota
512  m_rawChainStatOptsInstantiated = false;
513  m_filteredChainStatisticalOptionsObj = mlOptions.m_filteredChainStatisticalOptionsObj; // dakota
514  m_filteredChainStatOptsInstantiated = false;
515 #endif
516  if ((m_env.subDisplayFile() != NULL ) &&
517  (m_ov.m_totallyMute == false)) {
518  *m_env.subDisplayFile() << "In MetropolisHastingsSGOptions::constructor(3)"
519  << ": after copying values of options with prefix '" << m_prefix
520  << "', state of object is:"
521  << "\n" << *this
522  << std::endl;
523  }
524 }
std::string m_option_am_eta
See MhOptionsValues::m_amEta.
#define UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD
bool m_doLogitTransform
Flag for deciding whether or not to do logit transform of bounded domains.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:305
bool m_outputLogTarget
Flag for deciding whether or not to dump log target values in output.
std::set< unsigned int > m_dataOutputAllowedSet
#define UQ_MH_SG_OUTPUT_LOG_TARGET
double m_amEta
Proposal covariance scaling factor, usually 2.4 * 2.4 / d.
std::set< unsigned int > m_filteredChainDataOutputAllowedSet
double m_amEpsilon
Regularisation parameter for the DRAM covariance matrix.
std::string m_option_am_epsilon
See MhOptionsValues::m_amEpsilon.
std::vector< double > m_drScalesForExtraStages
std::set< unsigned int > m_parameterDisabledSet
bool m_outputLogLikelihood
Flag for deciding whether or not to dump log likelihood values in output.
#define UQ_MH_SG_BROOKS_GELMAN_LAG
std::set< unsigned int > m_amAdaptedMatricesDataOutputAllowedSet
std::string m_initialProposalCovMatrixDataInputFileName
std::set< unsigned int > m_rawChainDataOutputAllowedSet
#define UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR
std::string m_initialProposalCovMatrixDataInputFileType
MhOptionsValues m_ov
This class is where the actual options are stored.
QUESO::MetropolisHastingsSGOptions::~MetropolisHastingsSGOptions ( )

Destructor.

Definition at line 526 of file MetropolisHastingsSGOptions.C.

References m_optionsDesc.

527 {
528 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
529  if (m_filteredChainStatOptsInstantiated) delete m_filteredChainStatisticalOptionsObj;
530  if (m_rawChainStatOptsInstantiated ) delete m_rawChainStatisticalOptionsObj;
531 #endif
532  if (m_optionsDesc ) delete m_optionsDesc;
533 }

Member Function Documentation

void QUESO::MetropolisHastingsSGOptions::defineMyOptions ( po::options_description &  optionsDesc) const
private

Defines the options for the Metropolis-Hastings generator of samples as the default options.

Definition at line 656 of file MetropolisHastingsSGOptions.C.

References 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_useLocalHessian, m_option_tk_useNewtonComponent, m_option_totallyMute, 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_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_USE_LOCAL_HESSIAN_ODV, UQ_MH_SG_TK_USE_NEWTON_COMPONENT_ODV, and UQ_MH_SG_TOTALLY_MUTE_ODV.

Referenced by scanOptionsValues().

657 {
658  optionsDesc.add_options()
659  (m_option_help.c_str(), "produce help msg for Bayesian Metropolis-Hastings" )
660  (m_option_dataOutputFileName.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_DATA_OUTPUT_FILE_NAME_ODV ), "name of generic output file" )
661  (m_option_dataOutputAllowAll.c_str(), po::value<bool >()->default_value(UQ_MH_SG_DATA_OUTPUT_ALLOW_ALL_ODV ), "allow all subEnvs write to a generic output file" )
662  (m_option_dataOutputAllowedSet.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_DATA_OUTPUT_ALLOWED_SET_ODV ), "subEnvs that will write to generic output file" )
663  (m_option_totallyMute.c_str(), po::value<bool >()->default_value(UQ_MH_SG_TOTALLY_MUTE_ODV ), "totally mute (no printout msg)" )
664  (m_option_initialPosition_dataInputFileName.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_NAME_ODV ), "name of input file for raw chain " )
665  (m_option_initialPosition_dataInputFileType.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_TYPE_ODV ), "type of input file for raw chain " )
666  (m_option_initialProposalCovMatrix_dataInputFileName.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_NAME_ODV), "name of input file for raw chain " )
667  (m_option_initialProposalCovMatrix_dataInputFileType.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_TYPE_ODV), "type of input file for raw chain " )
668  (m_option_listOfDisabledParameters.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_LIST_OF_DISABLED_PARAMETERS_ODV ), "list of disabled parameters" )
669  (m_option_rawChain_dataInputFileName.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_NAME_ODV ), "name of input file for raw chain " )
670  (m_option_rawChain_dataInputFileType.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_TYPE_ODV ), "type of input file for raw chain " )
671  (m_option_rawChain_size.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_RAW_CHAIN_SIZE_ODV ), "size of raw chain" )
672  (m_option_rawChain_generateExtra.c_str(), po::value<bool >()->default_value(UQ_MH_SG_RAW_CHAIN_GENERATE_EXTRA_ODV ), "generate extra information about raw chain" )
673  (m_option_rawChain_displayPeriod.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_RAW_CHAIN_DISPLAY_PERIOD_ODV ), "period of msg display during raw chain generation" )
674  (m_option_rawChain_measureRunTimes.c_str(), po::value<bool >()->default_value(UQ_MH_SG_RAW_CHAIN_MEASURE_RUN_TIMES_ODV ), "measure run times" )
675  (m_option_rawChain_dataOutputPeriod.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_PERIOD_ODV ), "period of msg display during raw chain generation" )
676  (m_option_rawChain_dataOutputFileName.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_NAME_ODV ), "name of output file for raw chain " )
677  (m_option_rawChain_dataOutputFileType.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV ), "type of output file for raw chain " )
678  (m_option_rawChain_dataOutputAllowAll.c_str(), po::value<bool >()->default_value(UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV ), "allow all subEnvs to write raw chain to an output file" )
679  (m_option_rawChain_dataOutputAllowedSet.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV ), "subEnvs that will write raw chain to output file" )
680 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
681  (m_option_rawChain_computeStats.c_str(), po::value<bool >()->default_value(UQ_MH_SG_RAW_CHAIN_COMPUTE_STATS_ODV ), "compute statistics on raw chain" )
682 #endif
683  (m_option_filteredChain_generate.c_str(), po::value<bool >()->default_value(UQ_MH_SG_FILTERED_CHAIN_GENERATE_ODV ), "generate filtered chain" )
684  (m_option_filteredChain_discardedPortion.c_str(), po::value<double >()->default_value(UQ_MH_SG_FILTERED_CHAIN_DISCARDED_PORTION_ODV ), "initial discarded portion for chain filtering" )
685  (m_option_filteredChain_lag.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_FILTERED_CHAIN_LAG_ODV ), "spacing for chain filtering" )
686  (m_option_filteredChain_dataOutputFileName.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_NAME_ODV ), "name of output file for filtered chain" )
687  (m_option_filteredChain_dataOutputFileType.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV ), "type of output file for filtered chain" )
688  (m_option_filteredChain_dataOutputAllowAll.c_str(), po::value<bool >()->default_value(UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV ), "allow all subEnvs to write filt chain to an output file" )
689  (m_option_filteredChain_dataOutputAllowedSet.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV ), "subEnvs that will write filt chain to output file" )
690 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
691  (m_option_filteredChain_computeStats.c_str(), po::value<bool >()->default_value(UQ_MH_SG_FILTERED_CHAIN_COMPUTE_STATS_ODV ), "compute statistics on filtered chain" )
692 #endif
693  (m_option_displayCandidates.c_str(), po::value<bool >()->default_value(UQ_MH_SG_DISPLAY_CANDIDATES_ODV ), "display candidates in the core MH algorithm" )
694  (m_option_putOutOfBoundsInChain.c_str(), po::value<bool >()->default_value(UQ_MH_SG_PUT_OUT_OF_BOUNDS_IN_CHAIN_ODV ), "put 'out of bound' candidates in chain as well" )
695  (m_option_tk_useLocalHessian.c_str(), po::value<bool >()->default_value(UQ_MH_SG_TK_USE_LOCAL_HESSIAN_ODV ), "'proposal' use local Hessian" )
696  (m_option_tk_useNewtonComponent.c_str(), po::value<bool >()->default_value(UQ_MH_SG_TK_USE_NEWTON_COMPONENT_ODV ), "'proposal' use Newton component" )
697  (m_option_dr_maxNumExtraStages.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_DR_MAX_NUM_EXTRA_STAGES_ODV ), "'dr' maximum number of extra stages" )
698  (m_option_dr_listOfScalesForExtraStages.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_DR_LIST_OF_SCALES_FOR_EXTRA_STAGES_ODV ), "'dr' scales for prop cov matrices from 2nd stage on" )
699  (m_option_dr_duringAmNonAdaptiveInt.c_str(), po::value<bool >()->default_value(UQ_MH_SG_DR_DURING_AM_NON_ADAPTIVE_INT_ODV ), "'dr' used during 'am' non adaptive interval" )
700  (m_option_am_keepInitialMatrix.c_str(), po::value<bool >()->default_value(UQ_MH_SG_AM_KEEP_INITIAL_MATRIX_ODV ), "'am' keep initial (given) matrix" )
701  (m_option_am_initialNonAdaptInterval.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_AM_INIT_NON_ADAPT_INT_ODV ), "'am' initial non adaptation interval" )
702  (m_option_am_adaptInterval.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_AM_ADAPT_INTERVAL_ODV ), "'am' adaptation interval" )
703  (m_option_am_adaptedMatrices_dataOutputPeriod.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_PERIOD_ODV ), "period for outputting 'am' adapted matrices" )
704  (m_option_am_adaptedMatrices_dataOutputFileName.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_NAME_ODV ), "name of output file for 'am' adapted matrices" )
705  (m_option_am_adaptedMatrices_dataOutputFileType.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_TYPE_ODV ), "type of output file for 'am' adapted matrices" )
706  (m_option_am_adaptedMatrices_dataOutputAllowAll.c_str(), po::value<bool >()->default_value(UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOW_ALL_ODV ), "type of output file for 'am' adapted matrices" )
707  (m_option_am_adaptedMatrices_dataOutputAllowedSet.c_str(), po::value<std::string >()->default_value(UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOWED_SET_ODV ), "type of output file for 'am' adapted matrices" )
708  (m_option_am_eta.c_str(), po::value<double >()->default_value(UQ_MH_SG_AM_ETA_ODV ), "'am' eta" )
709  (m_option_am_epsilon.c_str(), po::value<double >()->default_value(UQ_MH_SG_AM_EPSILON_ODV ), "'am' epsilon" )
710  (m_option_enableBrooksGelmanConvMonitor.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR ), "assess convergence using Brooks-Gelman metric" )
711  (m_option_BrooksGelmanLag.c_str(), po::value<unsigned int>()->default_value(UQ_MH_SG_BROOKS_GELMAN_LAG ), "number of chain positions before starting to compute metric")
712  (m_option_outputLogLikelihood.c_str(), po::value<bool >()->default_value(UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD ), "flag to toggle output of log likelihood values" )
713  (m_option_outputLogTarget.c_str(), po::value<bool >()->default_value(UQ_MH_SG_OUTPUT_LOG_TARGET ), "flag to toggle output of log target values" )
714  (m_option_doLogitTransform.c_str(), po::value<bool >()->default_value(UQ_MH_SG_DO_LOGIT_TRANSFORM ), "flag to toggle logit transform for bounded domains" )
715  ;
716 
717  return;
718 }
#define UQ_MH_SG_FILTERED_CHAIN_LAG_ODV
#define UQ_MH_SG_RAW_CHAIN_SIZE_ODV
std::string m_option_am_eta
See MhOptionsValues::m_amEta.
#define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_TYPE_ODV
#define UQ_MH_SG_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_MH_SG_OUTPUT_LOG_LIKELIHOOD
#define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_TYPE_ODV
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV
#define UQ_MH_SG_TK_USE_LOCAL_HESSIAN_ODV
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_PERIOD_ODV
#define UQ_MH_SG_PUT_OUT_OF_BOUNDS_IN_CHAIN_ODV
#define UQ_MH_SG_OUTPUT_LOG_TARGET
#define UQ_MH_SG_DATA_OUTPUT_ALLOWED_SET_ODV
#define UQ_MH_SG_DISPLAY_CANDIDATES_ODV
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOWED_SET_ODV
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_MH_SG_LIST_OF_DISABLED_PARAMETERS_ODV
#define UQ_MH_SG_DR_MAX_NUM_EXTRA_STAGES_ODV
#define UQ_MH_SG_AM_ADAPT_INTERVAL_ODV
#define UQ_MH_SG_TK_USE_NEWTON_COMPONENT_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_TYPE_ODV
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOWED_SET_ODV
#define UQ_MH_SG_DR_DURING_AM_NON_ADAPTIVE_INT_ODV
#define UQ_MH_SG_RAW_CHAIN_DISPLAY_PERIOD_ODV
std::string m_option_am_epsilon
See MhOptionsValues::m_amEpsilon.
#define UQ_MH_SG_AM_INIT_NON_ADAPT_INT_ODV
#define UQ_MH_SG_DO_LOGIT_TRANSFORM
#define UQ_MH_SG_INITIAL_PROPOSAL_COV_MATRIX_DATA_INPUT_FILE_NAME_ODV
#define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_TYPE_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_ALLOW_ALL_ODV
#define UQ_MH_SG_AM_EPSILON_ODV
#define UQ_MH_SG_BROOKS_GELMAN_LAG
#define UQ_MH_SG_FILTERED_CHAIN_DATA_OUTPUT_FILE_NAME_ODV
#define UQ_MH_SG_RAW_CHAIN_MEASURE_RUN_TIMES_ODV
#define UQ_MH_SG_INITIAL_POSITION_DATA_INPUT_FILE_NAME_ODV
#define UQ_MH_SG_AM_KEEP_INITIAL_MATRIX_ODV
#define UQ_MH_SG_TOTALLY_MUTE_ODV
#define UQ_MH_SG_DR_LIST_OF_SCALES_FOR_EXTRA_STAGES_ODV
#define UQ_MH_SG_FILTERED_CHAIN_GENERATE_ODV
#define UQ_MH_SG_RAW_CHAIN_GENERATE_EXTRA_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_OUTPUT_PERIOD_ODV
#define UQ_MH_SG_ENABLE_BROOKS_GELMAN_CONV_MONITOR
#define UQ_MH_SG_AM_ETA_ODV
#define UQ_MH_SG_AM_ADAPTED_MATRICES_DATA_OUTPUT_FILE_TYPE_ODV
#define UQ_MH_SG_RAW_CHAIN_DATA_INPUT_FILE_NAME_ODV
#define UQ_MH_SG_FILTERED_CHAIN_DISCARDED_PORTION_ODV
#define UQ_MH_SG_DATA_OUTPUT_ALLOW_ALL_ODV
void QUESO::MetropolisHastingsSGOptions::getMyOptionValues ( po::options_description &  optionsDesc)
private

Gets the sequence options defined to the Metropolis-Hastings algorithm.

Definition at line 721 of file MetropolisHastingsSGOptions.C.

References QUESO::BaseEnvironment::allOptionsMap(), QUESO::BaseEnvironment::fullRank(), QUESO::BaseEnvironment::inter0Rank(), QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputFileName, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputFileType, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod, QUESO::MhOptionsValues::m_amAdaptInterval, QUESO::MhOptionsValues::m_amEpsilon, QUESO::MhOptionsValues::m_amEta, QUESO::MhOptionsValues::m_amInitialNonAdaptInterval, QUESO::MhOptionsValues::m_amKeepInitialMatrix, QUESO::MhOptionsValues::m_BrooksGelmanLag, QUESO::MhOptionsValues::m_dataOutputAllowAll, QUESO::MhOptionsValues::m_dataOutputAllowedSet, QUESO::MhOptionsValues::m_dataOutputFileName, QUESO::MhOptionsValues::m_displayCandidates, QUESO::MhOptionsValues::m_doLogitTransform, QUESO::MhOptionsValues::m_drDuringAmNonAdaptiveInt, QUESO::MhOptionsValues::m_drMaxNumExtraStages, QUESO::MhOptionsValues::m_drScalesForExtraStages, QUESO::MhOptionsValues::m_enableBrooksGelmanConvMonitor, m_env, QUESO::MhOptionsValues::m_filteredChainDataOutputAllowAll, QUESO::MhOptionsValues::m_filteredChainDataOutputAllowedSet, QUESO::MhOptionsValues::m_filteredChainDataOutputFileName, QUESO::MhOptionsValues::m_filteredChainDataOutputFileType, QUESO::MhOptionsValues::m_filteredChainDiscardedPortion, QUESO::MhOptionsValues::m_filteredChainGenerate, QUESO::MhOptionsValues::m_filteredChainLag, QUESO::MhOptionsValues::m_initialPositionDataInputFileName, QUESO::MhOptionsValues::m_initialPositionDataInputFileType, QUESO::MhOptionsValues::m_initialProposalCovMatrixDataInputFileName, QUESO::MhOptionsValues::m_initialProposalCovMatrixDataInputFileType, 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_useLocalHessian, m_option_tk_useNewtonComponent, m_option_totallyMute, QUESO::MhOptionsValues::m_outputLogLikelihood, QUESO::MhOptionsValues::m_outputLogTarget, m_ov, QUESO::MhOptionsValues::m_parameterDisabledSet, QUESO::MhOptionsValues::m_putOutOfBoundsInChain, QUESO::MhOptionsValues::m_rawChainDataInputFileName, QUESO::MhOptionsValues::m_rawChainDataInputFileType, QUESO::MhOptionsValues::m_rawChainDataOutputAllowAll, QUESO::MhOptionsValues::m_rawChainDataOutputAllowedSet, QUESO::MhOptionsValues::m_rawChainDataOutputFileName, QUESO::MhOptionsValues::m_rawChainDataOutputFileType, QUESO::MhOptionsValues::m_rawChainDataOutputPeriod, QUESO::MhOptionsValues::m_rawChainDisplayPeriod, QUESO::MhOptionsValues::m_rawChainGenerateExtra, QUESO::MhOptionsValues::m_rawChainMeasureRunTimes, QUESO::MhOptionsValues::m_rawChainSize, QUESO::MhOptionsValues::m_tkUseLocalHessian, QUESO::MhOptionsValues::m_tkUseNewtonComponent, QUESO::MhOptionsValues::m_totallyMute, QUESO::MiscReadDoublesFromString(), QUESO::BaseEnvironment::subDisplayFile(), QUESO::BaseEnvironment::subId(), QUESO::BaseEnvironment::subRank(), and QUESO::BaseEnvironment::worldRank().

Referenced by scanOptionsValues().

722 {
723  if (m_env.allOptionsMap().count(m_option_help)) {
724  if ((m_env.subDisplayFile()) &&
725  (m_ov.m_totallyMute == false)) {
726  *m_env.subDisplayFile() << optionsDesc
727  << std::endl;
728  }
729  }
730 
732  m_ov.m_dataOutputFileName = ((const po::variable_value&) m_env.allOptionsMap()[m_option_dataOutputFileName]).as<std::string>();
733  }
734 
735  if (m_env.allOptionsMap().count(m_option_dataOutputAllowAll.c_str())) {
737  }
738 
741  }
744  std::vector<double> tmpAllow(0,0.);
745  std::string inputString = m_env.allOptionsMap()[m_option_dataOutputAllowedSet].as<std::string>();
746  MiscReadDoublesFromString(inputString,tmpAllow);
747 
748  if (tmpAllow.size() > 0) {
749  for (unsigned int i = 0; i < tmpAllow.size(); ++i) {
750  m_ov.m_dataOutputAllowedSet.insert((unsigned int) tmpAllow[i]);
751  }
752  }
753  }
754 
756  m_ov.m_totallyMute = ((const po::variable_value&) m_env.allOptionsMap()[m_option_totallyMute]).as<bool>();
757  }
758 
761  }
762 
765  }
766 
769  }
770 
773  }
774 
777  std::vector<double> tmpAllow(0,0.);
778  std::string inputString = m_env.allOptionsMap()[m_option_listOfDisabledParameters].as<std::string>();
779  MiscReadDoublesFromString(inputString,tmpAllow);
780  if (tmpAllow.size() > 0) {
781  for (unsigned int i = 0; i < tmpAllow.size(); ++i) {
782  m_ov.m_parameterDisabledSet.insert((unsigned int) tmpAllow[i]);
783  }
784  }
785  }
786 
788  m_ov.m_rawChainDataInputFileName = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_dataInputFileName]).as<std::string>();
789  }
790 
792  m_ov.m_rawChainDataInputFileType = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_dataInputFileType]).as<std::string>();
793  }
794 
796  m_ov.m_rawChainSize = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_size]).as<unsigned int>();
797  }
798 
800  m_ov.m_rawChainDisplayPeriod = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_displayPeriod]).as<unsigned int>();
801  }
802 
804  m_ov.m_rawChainMeasureRunTimes = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_measureRunTimes]).as<bool>();
805  }
806 
808  m_ov.m_rawChainDataOutputPeriod = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_dataOutputPeriod]).as<unsigned int>();
809  }
810 
812  m_ov.m_rawChainDataOutputFileName = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_dataOutputFileName]).as<std::string>();
813  }
814 
816  m_ov.m_rawChainDataOutputFileType = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_dataOutputFileType]).as<std::string>();
817  }
818 
821  }
822 
825  }
828  std::vector<double> tmpAllow(0,0.);
829  std::string inputString = m_env.allOptionsMap()[m_option_rawChain_dataOutputAllowedSet].as<std::string>();
830  MiscReadDoublesFromString(inputString,tmpAllow);
831 
832  if (tmpAllow.size() > 0) {
833  for (unsigned int i = 0; i < tmpAllow.size(); ++i) {
834  m_ov.m_rawChainDataOutputAllowedSet.insert((unsigned int) tmpAllow[i]);
835  }
836  }
837  }
838 
839 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
840  if (m_env.allOptionsMap().count(m_option_rawChain_computeStats)) {
841  m_ov.m_rawChainComputeStats = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_computeStats]).as<bool>();
842  }
843 #endif
845  m_ov.m_rawChainGenerateExtra = ((const po::variable_value&) m_env.allOptionsMap()[m_option_rawChain_generateExtra]).as<bool>();
846  }
847 
849  m_ov.m_filteredChainGenerate = ((const po::variable_value&) m_env.allOptionsMap()[m_option_filteredChain_generate]).as<bool>();
850  }
851 
854  }
855 
857  m_ov.m_filteredChainLag = ((const po::variable_value&) m_env.allOptionsMap()[m_option_filteredChain_lag]).as<unsigned int>();
858  }
859  if ((m_ov.m_filteredChainGenerate == true) &&
860  (m_ov.m_filteredChainLag < 2 )) {
861  std::cerr << "WARNING In MetropolisHastingsSG<P_V,P_M>::getMyOptionsValues()"
862  << ", worldRank " << m_env.worldRank()
863  << ", fullRank " << m_env.fullRank()
864  << ", subEnvironment " << m_env.subId()
865  << ", subRank " << m_env.subRank()
866  << ", inter0Rank " << m_env.inter0Rank()
867  << ": forcing the value of '" << m_option_filteredChain_lag
868  << "' from " << m_ov.m_filteredChainLag
869  << " to " << 2
870  << std::endl;
872  }
873 
875  m_ov.m_filteredChainDataOutputFileName = ((const po::variable_value&) m_env.allOptionsMap()[m_option_filteredChain_dataOutputFileName]).as<std::string>();
876  }
877 
879  m_ov.m_filteredChainDataOutputFileType = ((const po::variable_value&) m_env.allOptionsMap()[m_option_filteredChain_dataOutputFileType]).as<std::string>();
880  }
881 
884  }
885 
888  }
891  std::vector<double> tmpAllow(0,0.);
892  std::string inputString = m_env.allOptionsMap()[m_option_filteredChain_dataOutputAllowedSet].as<std::string>();
893  MiscReadDoublesFromString(inputString,tmpAllow);
894 
895  if (tmpAllow.size() > 0) {
896  for (unsigned int i = 0; i < tmpAllow.size(); ++i) {
897  m_ov.m_filteredChainDataOutputAllowedSet.insert((unsigned int) tmpAllow[i]);
898  }
899  }
900  }
901 
902 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
903  if (m_env.allOptionsMap().count(m_option_filteredChain_computeStats)) {
904  m_ov.m_filteredChainComputeStats = ((const po::variable_value&) m_env.allOptionsMap()[m_option_filteredChain_computeStats]).as<bool>();
905  }
906 #endif
908  m_ov.m_displayCandidates = ((const po::variable_value&) m_env.allOptionsMap()[m_option_displayCandidates]).as<bool>();
909  }
910 
912  m_ov.m_putOutOfBoundsInChain = ((const po::variable_value&) m_env.allOptionsMap()[m_option_putOutOfBoundsInChain]).as<bool>();
913  }
914 
916  m_ov.m_tkUseLocalHessian = ((const po::variable_value&) m_env.allOptionsMap()[m_option_tk_useLocalHessian]).as<bool>();
917  }
918 
920  m_ov.m_tkUseNewtonComponent = ((const po::variable_value&) m_env.allOptionsMap()[m_option_tk_useNewtonComponent]).as<bool>();
921  }
922 
924  m_ov.m_drMaxNumExtraStages = ((const po::variable_value&) m_env.allOptionsMap()[m_option_dr_maxNumExtraStages]).as<unsigned int>();
925  }
926 
927  std::vector<double> tmpScales(0,0.);
929  std::string inputString = ((const po::variable_value&) m_env.allOptionsMap()[m_option_dr_listOfScalesForExtraStages]).as<std::string>();
930  MiscReadDoublesFromString(inputString,tmpScales);
931  //if (m_env.subDisplayFile()) {
932  // *m_env.subDisplayFile() << "In MetropolisHastingsSG<P_V,P_M>::getMyOptionValues(): scales =";
933  // for (unsigned int i = 0; i < tmpScales.size(); ++i) {
934  // *m_env.subDisplayFile() << " " << tmpScales[i];
935  // }
936  // *m_env.subDisplayFile() << std::endl;
937  //}
938  }
939 
940  if (m_ov.m_drMaxNumExtraStages > 0) {
941  double scale = 1.0;
942  unsigned int tmpSize = tmpScales.size();
943 
946  for (unsigned int i = 0; i < m_ov.m_drMaxNumExtraStages; ++i) {
947  if (i < tmpSize) scale = tmpScales[i];
948  m_ov.m_drScalesForExtraStages[i] = scale;
949  }
950  //updateTK();
951  }
952 
954  m_ov.m_drDuringAmNonAdaptiveInt = ((const po::variable_value&) m_env.allOptionsMap()[m_option_dr_duringAmNonAdaptiveInt]).as<bool>();
955  }
956 
958  m_ov.m_amKeepInitialMatrix = ((const po::variable_value&) m_env.allOptionsMap()[m_option_am_keepInitialMatrix]).as<bool>();
959  }
960 
962  m_ov.m_amInitialNonAdaptInterval = ((const po::variable_value&) m_env.allOptionsMap()[m_option_am_initialNonAdaptInterval]).as<unsigned int>();
963  }
964 
966  m_ov.m_amAdaptInterval = ((const po::variable_value&) m_env.allOptionsMap()[m_option_am_adaptInterval]).as<unsigned int>();
967  }
968 
971  }
972 
975  }
976 
979  }
980 
983  }
984 
987  }
990  std::vector<double> tmpAllow(0,0.);
991  std::string inputString = m_env.allOptionsMap()[m_option_am_adaptedMatrices_dataOutputAllowedSet].as<std::string>();
992  MiscReadDoublesFromString(inputString,tmpAllow);
993 
994  if (tmpAllow.size() > 0) {
995  for (unsigned int i = 0; i < tmpAllow.size(); ++i) {
996  m_ov.m_amAdaptedMatricesDataOutputAllowedSet.insert((unsigned int) tmpAllow[i]);
997  }
998  }
999  }
1000 
1001  if (m_env.allOptionsMap().count(m_option_am_eta)) {
1002  m_ov.m_amEta = ((const po::variable_value&) m_env.allOptionsMap()[m_option_am_eta]).as<double>();
1003  }
1004 
1005  if (m_env.allOptionsMap().count(m_option_am_epsilon)) {
1006  m_ov.m_amEpsilon = ((const po::variable_value&) m_env.allOptionsMap()[m_option_am_epsilon]).as<double>();
1007  }
1008 
1010  m_ov.m_enableBrooksGelmanConvMonitor = ((const po::variable_value&) m_env.allOptionsMap()[m_option_enableBrooksGelmanConvMonitor]).as<unsigned int>();
1011  }
1012 
1014  m_ov.m_BrooksGelmanLag = ((const po::variable_value&) m_env.allOptionsMap()[m_option_BrooksGelmanLag]).as<unsigned int>();
1015  }
1016 
1018  m_ov.m_outputLogLikelihood = ((const po::variable_value&) m_env.allOptionsMap()[m_option_outputLogLikelihood]).as<bool>();
1019  }
1020 
1022  m_ov.m_outputLogTarget = ((const po::variable_value&) m_env.allOptionsMap()[m_option_outputLogTarget]).as<bool>();
1023  }
1024 
1026  m_ov.m_doLogitTransform = ((const po::variable_value&) m_env.allOptionsMap()[m_option_doLogitTransform]).as<bool>();
1027  }
1028 }
int subRank() const
Access function for sub-rank.
Definition: Environment.C:263
std::string m_option_am_eta
See MhOptionsValues::m_amEta.
int inter0Rank() const
Returns the process inter0 rank.
Definition: Environment.C:289
int worldRank() const
Returns the process world rank.
Definition: Environment.C:235
bool m_doLogitTransform
Flag for deciding whether or not to do logit transform of bounded domains.
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:305
bool m_outputLogTarget
Flag for deciding whether or not to dump log target values in output.
std::set< unsigned int > m_dataOutputAllowedSet
po::variables_map & allOptionsMap() const
Definition: Environment.C:368
double m_amEta
Proposal covariance scaling factor, usually 2.4 * 2.4 / d.
std::set< unsigned int > m_filteredChainDataOutputAllowedSet
double m_amEpsilon
Regularisation parameter for the DRAM covariance matrix.
void MiscReadDoublesFromString(const std::string &inputString, std::vector< double > &outputDoubles)
Definition: Miscellaneous.C:39
std::string m_option_am_epsilon
See MhOptionsValues::m_amEpsilon.
std::vector< double > m_drScalesForExtraStages
std::set< unsigned int > m_parameterDisabledSet
bool m_outputLogLikelihood
Flag for deciding whether or not to dump log likelihood values in output.
int fullRank() const
Returns the process full rank.
Definition: Environment.C:241
std::set< unsigned int > m_amAdaptedMatricesDataOutputAllowedSet
std::string m_initialProposalCovMatrixDataInputFileName
std::set< unsigned int > m_rawChainDataOutputAllowedSet
std::string m_initialProposalCovMatrixDataInputFileType
unsigned int subId() const
Access function to the number of each sub-environment Id: m_subId.
Definition: Environment.C:329
MhOptionsValues m_ov
This class is where the actual options are stored.
void QUESO::MetropolisHastingsSGOptions::print ( std::ostream &  os) const

It prints the option values.

Definition at line 572 of file MetropolisHastingsSGOptions.C.

References QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputAllowAll, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputAllowedSet, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputFileName, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputFileType, QUESO::MhOptionsValues::m_amAdaptedMatricesDataOutputPeriod, QUESO::MhOptionsValues::m_amAdaptInterval, QUESO::MhOptionsValues::m_amEpsilon, QUESO::MhOptionsValues::m_amEta, QUESO::MhOptionsValues::m_amInitialNonAdaptInterval, QUESO::MhOptionsValues::m_amKeepInitialMatrix, QUESO::MhOptionsValues::m_BrooksGelmanLag, QUESO::MhOptionsValues::m_dataOutputAllowAll, QUESO::MhOptionsValues::m_dataOutputAllowedSet, QUESO::MhOptionsValues::m_dataOutputFileName, QUESO::MhOptionsValues::m_displayCandidates, QUESO::MhOptionsValues::m_doLogitTransform, QUESO::MhOptionsValues::m_drDuringAmNonAdaptiveInt, QUESO::MhOptionsValues::m_drMaxNumExtraStages, QUESO::MhOptionsValues::m_drScalesForExtraStages, QUESO::MhOptionsValues::m_enableBrooksGelmanConvMonitor, QUESO::MhOptionsValues::m_filteredChainDataOutputAllowAll, QUESO::MhOptionsValues::m_filteredChainDataOutputAllowedSet, QUESO::MhOptionsValues::m_filteredChainDataOutputFileName, QUESO::MhOptionsValues::m_filteredChainDataOutputFileType, QUESO::MhOptionsValues::m_filteredChainDiscardedPortion, QUESO::MhOptionsValues::m_filteredChainGenerate, QUESO::MhOptionsValues::m_filteredChainLag, QUESO::MhOptionsValues::m_initialPositionDataInputFileName, QUESO::MhOptionsValues::m_initialPositionDataInputFileType, QUESO::MhOptionsValues::m_initialProposalCovMatrixDataInputFileName, QUESO::MhOptionsValues::m_initialProposalCovMatrixDataInputFileType, 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_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_useLocalHessian, m_option_tk_useNewtonComponent, m_option_totallyMute, QUESO::MhOptionsValues::m_outputLogLikelihood, QUESO::MhOptionsValues::m_outputLogTarget, m_ov, QUESO::MhOptionsValues::m_parameterDisabledSet, QUESO::MhOptionsValues::m_putOutOfBoundsInChain, QUESO::MhOptionsValues::m_rawChainDataInputFileName, QUESO::MhOptionsValues::m_rawChainDataInputFileType, QUESO::MhOptionsValues::m_rawChainDataOutputAllowAll, QUESO::MhOptionsValues::m_rawChainDataOutputAllowedSet, QUESO::MhOptionsValues::m_rawChainDataOutputFileName, QUESO::MhOptionsValues::m_rawChainDataOutputFileType, QUESO::MhOptionsValues::m_rawChainDataOutputPeriod, QUESO::MhOptionsValues::m_rawChainDisplayPeriod, QUESO::MhOptionsValues::m_rawChainGenerateExtra, QUESO::MhOptionsValues::m_rawChainMeasureRunTimes, QUESO::MhOptionsValues::m_rawChainSize, QUESO::MhOptionsValues::m_tkUseLocalHessian, QUESO::MhOptionsValues::m_tkUseNewtonComponent, and QUESO::MhOptionsValues::m_totallyMute.

Referenced by QUESO::operator<<().

573 {
576  << "\n" << m_option_dataOutputAllowedSet << " = ";
577  for (std::set<unsigned int>::iterator setIt = m_ov.m_dataOutputAllowedSet.begin(); setIt != m_ov.m_dataOutputAllowedSet.end(); ++setIt) {
578  os << *setIt << " ";
579  }
580  os << "\n" << m_option_totallyMute << " = " << m_ov.m_totallyMute
585  << "\n" << m_option_listOfDisabledParameters << " = ";
586  for (std::set<unsigned int>::iterator setIt = m_ov.m_parameterDisabledSet.begin(); setIt != m_ov.m_parameterDisabledSet.end(); ++setIt) {
587  os << *setIt << " ";
588  }
591  << "\n" << m_option_rawChain_size << " = " << m_ov.m_rawChainSize
599  << "\n" << m_option_rawChain_dataOutputAllowedSet << " = ";
600  for (std::set<unsigned int>::iterator setIt = m_ov.m_rawChainDataOutputAllowedSet.begin(); setIt != m_ov.m_rawChainDataOutputAllowedSet.end(); ++setIt) {
601  os << *setIt << " ";
602  }
603  os
604 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
605  << "\n" << m_option_rawChain_computeStats << " = " << m_ov.m_rawChainComputeStats
606 #endif
609  << "\n" << m_option_filteredChain_lag << " = " << m_ov.m_filteredChainLag
614  for (std::set<unsigned int>::iterator setIt = m_ov.m_filteredChainDataOutputAllowedSet.begin(); setIt != m_ov.m_filteredChainDataOutputAllowedSet.end(); ++setIt) {
615  os << *setIt << " ";
616  }
617  os
618 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
619  << "\n" << m_option_filteredChain_computeStats << " = " << m_ov.m_filteredChainComputeStats
620 #endif
626  << "\n" << m_option_dr_listOfScalesForExtraStages << " = ";
627  for (unsigned int i = 0; i < m_ov.m_drScalesForExtraStages.size(); ++i) {
628  os << m_ov.m_drScalesForExtraStages[i] << " ";
629  }
633  << "\n" << m_option_am_adaptInterval << " = " << m_ov.m_amAdaptInterval
639  for (std::set<unsigned int>::iterator setIt = m_ov.m_amAdaptedMatricesDataOutputAllowedSet.begin(); setIt != m_ov.m_amAdaptedMatricesDataOutputAllowedSet.end(); ++setIt) {
640  os << *setIt << " ";
641  }
642  os << "\n" << m_option_am_eta << " = " << m_ov.m_amEta
643  << "\n" << m_option_am_epsilon << " = " << m_ov.m_amEpsilon
645  << "\n" << m_option_BrooksGelmanLag << " = " << m_ov.m_BrooksGelmanLag
647  << "\n" << m_option_outputLogTarget << " = " << m_ov.m_outputLogTarget
648  << "\n" << m_option_doLogitTransform << " = " << m_ov.m_doLogitTransform
649  << std::endl;
650 
651  return;
652 }
std::string m_option_am_eta
See MhOptionsValues::m_amEta.
bool m_doLogitTransform
Flag for deciding whether or not to do logit transform of bounded domains.
bool m_outputLogTarget
Flag for deciding whether or not to dump log target values in output.
std::set< unsigned int > m_dataOutputAllowedSet
double m_amEta
Proposal covariance scaling factor, usually 2.4 * 2.4 / d.
std::set< unsigned int > m_filteredChainDataOutputAllowedSet
double m_amEpsilon
Regularisation parameter for the DRAM covariance matrix.
std::string m_option_am_epsilon
See MhOptionsValues::m_amEpsilon.
std::vector< double > m_drScalesForExtraStages
std::set< unsigned int > m_parameterDisabledSet
bool m_outputLogLikelihood
Flag for deciding whether or not to dump log likelihood values in output.
std::set< unsigned int > m_amAdaptedMatricesDataOutputAllowedSet
std::string m_initialProposalCovMatrixDataInputFileName
std::set< unsigned int > m_rawChainDataOutputAllowedSet
std::string m_initialProposalCovMatrixDataInputFileType
MhOptionsValues m_ov
This class is where the actual options are stored.
void QUESO::MetropolisHastingsSGOptions::scanOptionsValues ( )

It scans the option values from the options input file.

Definition at line 537 of file MetropolisHastingsSGOptions.C.

References defineMyOptions(), getMyOptionValues(), m_env, m_optionsDesc, m_ov, m_prefix, QUESO::MhOptionsValues::m_totallyMute, QUESO::BaseEnvironment::scanInputFileForMyOptions(), QUESO::BaseEnvironment::subDisplayFile(), UQ_FATAL_TEST_MACRO, and QUESO::BaseEnvironment::worldRank().

538 {
540  m_env.worldRank(),
541  "MetropolisHastingsSGOptions::scanOptionsValues()",
542  "m_optionsDesc variable is NULL");
543 
547 
548  if ((m_env.subDisplayFile() != NULL) &&
549  (m_ov.m_totallyMute == false )) {
550  *m_env.subDisplayFile() << "In MetropolisHastingsSGOptions::scanOptionsValues()"
551  << ": after reading values of options with prefix '" << m_prefix
552  << "', state of object is:"
553  << "\n" << *this
554  << std::endl;
555  }
556 
557 #ifdef QUESO_USES_SEQUENCE_STATISTICAL_OPTIONS
558  if (m_ov.m_rawChainComputeStats) {
559  m_rawChainStatisticalOptionsObj = new SequenceStatisticalOptions(m_env,m_prefix + "rawChain_");
560  m_rawChainStatOptsInstantiated = true;
561  }
562  if (m_ov.m_filteredChainComputeStats) {
563  m_filteredChainStatisticalOptionsObj = new SequenceStatisticalOptions(m_env,m_prefix + "filteredChain_");
564  m_filteredChainStatOptsInstantiated = true;
565  }
566 #endif
567 
568  return;
569 }
void defineMyOptions(po::options_description &optionsDesc) const
Defines the options for the Metropolis-Hastings generator of samples as the default options...
int worldRank() const
Returns the process world rank.
Definition: Environment.C:235
std::ofstream * subDisplayFile() const
Access function for m_subDisplayFile (displays file on stream).
Definition: Environment.C:305
void getMyOptionValues(po::options_description &optionsDesc)
Gets the sequence options defined to the Metropolis-Hastings algorithm.
#define UQ_FATAL_TEST_MACRO(test, givenRank, where, what)
Definition: Defines.h:223
MhOptionsValues m_ov
This class is where the actual options are stored.
void scanInputFileForMyOptions(const po::options_description &optionsDesc) const
This method scans the input file provided by the user to QUESO.
Definition: Environment.C:378

Member Data Documentation

const BaseEnvironment& QUESO::MetropolisHastingsSGOptions::m_env
private
std::string QUESO::MetropolisHastingsSGOptions::m_option_am_adaptedMatrices_dataOutputAllowAll
private

Definition at line 349 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_am_adaptedMatrices_dataOutputAllowedSet
private

Definition at line 350 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_am_adaptedMatrices_dataOutputFileName
private

Definition at line 347 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_am_adaptedMatrices_dataOutputFileType
private

Definition at line 348 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_am_adaptedMatrices_dataOutputPeriod
private

Definition at line 346 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_am_adaptInterval
private

Definition at line 345 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_am_epsilon
private
std::string QUESO::MetropolisHastingsSGOptions::m_option_am_eta
private
std::string QUESO::MetropolisHastingsSGOptions::m_option_am_initialNonAdaptInterval
private

Definition at line 344 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_am_keepInitialMatrix
private

Definition at line 343 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_BrooksGelmanLag
private

Definition at line 358 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_dataOutputAllowAll
private

Definition at line 303 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_dataOutputAllowedSet
private

Definition at line 304 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_dataOutputFileName
private

Definition at line 302 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_displayCandidates
private

Definition at line 336 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_doLogitTransform
private

Definition at line 362 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_dr_duringAmNonAdaptiveInt
private

Definition at line 342 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_dr_listOfScalesForExtraStages
private

Definition at line 341 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_dr_maxNumExtraStages
private

Definition at line 340 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_enableBrooksGelmanConvMonitor
private

Definition at line 357 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_filteredChain_dataOutputAllowAll
private

Definition at line 331 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_filteredChain_dataOutputAllowedSet
private

Definition at line 332 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_filteredChain_dataOutputFileName
private

Definition at line 329 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_filteredChain_dataOutputFileType
private

Definition at line 330 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_filteredChain_discardedPortion
private

Definition at line 327 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_filteredChain_generate
private

Definition at line 326 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_filteredChain_lag
private

Definition at line 328 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_help
private

Definition at line 300 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), and getMyOptionValues().

std::string QUESO::MetropolisHastingsSGOptions::m_option_initialPosition_dataInputFileName
private

Definition at line 307 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_initialPosition_dataInputFileType
private

Definition at line 308 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_initialProposalCovMatrix_dataInputFileName
private

Definition at line 309 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_initialProposalCovMatrix_dataInputFileType
private

Definition at line 310 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_listOfDisabledParameters
private

Definition at line 311 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_outputLogLikelihood
private

Definition at line 360 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_outputLogTarget
private

Definition at line 361 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_putOutOfBoundsInChain
private

Definition at line 337 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_dataInputFileName
private

Definition at line 312 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_dataInputFileType
private

Definition at line 313 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_dataOutputAllowAll
private

Definition at line 321 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_dataOutputAllowedSet
private

Definition at line 322 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_dataOutputFileName
private

Definition at line 319 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_dataOutputFileType
private

Definition at line 320 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_dataOutputPeriod
private

Definition at line 318 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_displayPeriod
private

Definition at line 316 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_generateExtra
private

Definition at line 315 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_measureRunTimes
private

Definition at line 317 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_rawChain_size
private

Definition at line 314 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_tk_useLocalHessian
private

Definition at line 338 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_tk_useNewtonComponent
private

Definition at line 339 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

std::string QUESO::MetropolisHastingsSGOptions::m_option_totallyMute
private

Definition at line 306 of file MetropolisHastingsSGOptions.h.

Referenced by defineMyOptions(), getMyOptionValues(), and print().

po::options_description* QUESO::MetropolisHastingsSGOptions::m_optionsDesc
private
MhOptionsValues QUESO::MetropolisHastingsSGOptions::m_ov
std::string QUESO::MetropolisHastingsSGOptions::m_prefix

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

Generated on Thu Apr 23 2015 19:26:18 for queso-0.51.1 by  doxygen 1.8.5