MergedConstraints Class Reference

the merged data view. More...

Inheritance diagram for MergedConstraints:

Constraints List of all members.

Public Member Functions

 MergedConstraints ()
 default constructor
 MergedConstraints (const ProblemDescDB &problem_db, const pair< short, short > &view)
 standard constructor
 ~MergedConstraints ()
 destructor
const RealVectorcontinuous_lower_bounds () const
 return the active continuous variable lower bounds
void continuous_lower_bounds (const RealVector &c_l_bnds)
 set the active continuous variable lower bounds
const RealVectorcontinuous_upper_bounds () const
 return the active continuous variable upper bounds
void continuous_upper_bounds (const RealVector &c_u_bnds)
 set the active continuous variable upper bounds
const RealVectorinactive_continuous_lower_bounds () const
 return the inactive continuous lower bounds
void inactive_continuous_lower_bounds (const RealVector &i_c_l_bnds)
 set the inactive continuous lower bounds
const RealVectorinactive_continuous_upper_bounds () const
 return the inactive continuous upper bounds
void inactive_continuous_upper_bounds (const RealVector &i_c_u_bnds)
 set the inactive continuous upper bounds
RealVector all_continuous_lower_bounds () const
 returns a single array with all continuous lower bounds
void all_continuous_lower_bounds (const RealVector &a_c_l_bnds)
 sets all continuous lower bounds using a single array
RealVector all_continuous_upper_bounds () const
 returns a single array with all continuous upper bounds
void all_continuous_upper_bounds (const RealVector &a_c_u_bnds)
 sets all continuous upper bounds using a single array
void write (ostream &s) const
 write a variable constraints object to an ostream
void read (istream &s)
 read a variable constraints object from an istream

Protected Member Functions

void copy_rep (const Constraints *con_rep)
 Used by copy() to copy the contents of a letter class.
void reshape_rep (const Sizet2DArray &vars_comps)
 Used by reshape(Sizet2DArray&) to rehape the contents of a letter class.

Private Attributes

RealVector mergedDesignLowerBnds
 domains (integer values promoted to reals)
RealVector mergedDesignUpperBnds
 domains (integer values promoted to reals)
RealVector uncertainLowerBnds
 uncertain to merge)
RealVector uncertainUpperBnds
 uncertain to merge)
RealVector mergedStateLowerBnds
 domains (integer values promoted to reals)
RealVector mergedStateUpperBnds
 domains (integer values promoted to reals)

Detailed Description

the merged data view.

Derived variable constraints classes take different views of the design, uncertain, and state variable types and the continuous and discrete domain types. The MergedConstraints derived class combines continuous and discrete domain types but separates design, uncertain, and state variable types. The result is merged design bounds arrays (mergedDesignLowerBnds, mergedDesignUpperBnds), uncertain distribution bounds arrays (uncertainLowerBnds, uncertainUpperBnds), and merged state bounds arrays (mergedStateLowerBnds, mergedStateUpperBnds). The branch and bound strategy uses this approach (see Variables::get_variables(problem_db) for variables type selection; variables type is passed to the Constraints constructor in Model).


Constructor & Destructor Documentation

MergedConstraints ( const ProblemDescDB problem_db,
const pair< short, short > &  view 
)

standard constructor

In this class, a merged 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 lower and upper bounds and merge continuous and discrete domains to create mergedDesignLowerBnds, mergedDesignUpperBnds, mergedStateLowerBnds, and mergedStateUpperBnds.


The documentation for this class was generated from the following files:
Generated on Wed Nov 5 19:54:06 2008 for DAKOTA by  doxygen 1.5.1