$extrastylesheet
Dakota  Version 6.2
Public Member Functions | Protected Member Functions
RelaxedVariables Class Reference

Derived class within the Variables hierarchy which employs the relaxation of discrete variables. More...

Inheritance diagram for RelaxedVariables:
Variables

List of all members.

Public Member Functions

 RelaxedVariables (const ProblemDescDB &problem_db, const std::pair< short, short > &view)
 standard constructor
 RelaxedVariables (const SharedVariablesData &svd)
 lightweight constructor
 ~RelaxedVariables ()
 destructor

Protected Member Functions

void read (std::istream &s)
 read a variables object from an std::istream
void write (std::ostream &s) const
 write a variables object to an std::ostream
void write_aprepro (std::ostream &s) const
 write a variables object to an std::ostream in aprepro format
void read_tabular (std::istream &s, bool active_only=false)
void write_tabular (std::ostream &s, bool active_only=false) const
 write a variables object in tabular format to an std::ostream

Detailed Description

Derived class within the Variables hierarchy which employs the relaxation of discrete variables.

Derived variables classes take different views of the design, uncertain, and state variable types and the continuous and discrete domain types. The RelaxedVariables derived class combines continuous and discrete domain types but separates design, uncertain, and state variable types. The branch and bound method uses this approach (see Variables::get_variables(problem_db)).


Constructor & Destructor Documentation

RelaxedVariables ( const ProblemDescDB problem_db,
const std::pair< short, short > &  view 
)

standard constructor

In this class, a relaxed data approach is used in which continuous and discrete arrays are combined into a single continuous array (integrality is relaxed; the converse of truncating reals is not currently supported but could be in the future if needed). Iterators/strategies which use this class include: BranchBndOptimizer. Extract fundamental variable types and labels and merge continuous and discrete domains to create aggregate arrays and views.

References SharedVariablesData::all_relaxed_discrete_int(), SharedVariablesData::all_relaxed_discrete_real(), Variables::allContinuousVars, Variables::allDiscreteIntVars, Variables::allDiscreteRealVars, Variables::allDiscreteStringVars, Dakota::copy_data_partial(), ProblemDescDB::get_iv(), ProblemDescDB::get_rv(), ProblemDescDB::get_sa(), Variables::sharedVarsData, and SharedVariablesData::view().


Member Function Documentation

void read_tabular ( std::istream &  s,
bool  active_only = false 
) [protected, virtual]

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