AllConstraints Class Reference

employs the all data view. More...

Inheritance diagram for AllConstraints:

Constraints List of all members.

Public Member Functions

 AllConstraints ()
 default constructor
 AllConstraints (const ProblemDescDB &problem_db, const pair< short, short > &view)
 standard constructor
 ~AllConstraints ()
 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 IntVectordiscrete_lower_bounds () const
 return the active discrete variable lower bounds
void discrete_lower_bounds (const IntVector &d_l_bnds)
 set the active discrete variable lower bounds
const IntVectordiscrete_upper_bounds () const
 return the active discrete variable upper bounds
void discrete_upper_bounds (const IntVector &d_u_bnds)
 set the active discrete variable 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
IntVector all_discrete_lower_bounds () const
 returns a single array with all discrete lower bounds
void all_discrete_lower_bounds (const IntVector &a_d_l_bnds)
 sets all discrete lower bounds using a single array
IntVector all_discrete_upper_bounds () const
 returns a single array with all discrete upper bounds
void all_discrete_upper_bounds (const IntVector &a_d_u_bnds)
 sets all discrete 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 allContinuousLowerBnds
 uncertain, and continuous state variable types (all view).
RealVector allContinuousUpperBnds
 uncertain, and continuous state variable types (all view).
IntVector allDiscreteLowerBnds
 discrete state variable types (all view).
IntVector allDiscreteUpperBnds
 discrete state variable types (all view).
size_t numCDV
 number of continuous design variables
size_t numDDV
 number of discrete design variables

Detailed Description

employs the all 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 AllConstraints derived class combines design, uncertain, and state variable types but separates continuous and discrete domain types. The result is combined continuous bounds arrays (allContinuousLowerBnds, allContinuousUpperBnds) and combined discrete bounds arrays (allDiscreteLowerBnds, allDiscreteUpperBnds). Parameter and DACE studies currently use this approach (see Variables::get_variables(problem_db) for variables view selection; variables view is passed to the Constraints constructor in Model).


Constructor & Destructor Documentation

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

standard constructor

In this class, the all data approach (design, uncertain, and state types are combined) is used. Iterators/strategies which use this class include: parameter studies, dace, and nond_sampling in all_variables mode. Extract fundamental lower and upper bounds and combine them into allContinuousLowerBnds, allContinuousUpperBnds, allDiscreteLowerBnds, and allDiscreteUpperBnds.


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