DistinctConstraints Class Reference

the default data view (no variable or domain type array merging). More...

Inheritance diagram for DistinctConstraints:

Constraints List of all members.

Public Member Functions

 DistinctConstraints ()
 default constructor
 DistinctConstraints (const ProblemDescDB &problem_db, const pair< short, short > &view)
 standard constructor
 ~DistinctConstraints ()
 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
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
const IntVectorinactive_discrete_lower_bounds () const
 return the inactive discrete lower bounds
void inactive_discrete_lower_bounds (const IntVector &i_d_l_bnds)
 set the inactive discrete lower bounds
const IntVectorinactive_discrete_upper_bounds () const
 return the inactive discrete upper bounds
void inactive_discrete_upper_bounds (const IntVector &i_d_u_bnds)
 set the inactive discrete 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 continuousDesignLowerBnds
 the continuous design lower bounds array
RealVector continuousDesignUpperBnds
 the continuous design upper bounds array
IntVector discreteDesignLowerBnds
 the discrete design lower bounds array
IntVector discreteDesignUpperBnds
 the discrete design upper bounds array
RealVector uncertainLowerBnds
 the uncertain distribution lower bounds array
RealVector uncertainUpperBnds
 the uncertain distribution upper bounds array
RealVector continuousStateLowerBnds
 the continuous state lower bounds array
RealVector continuousStateUpperBnds
 the continuous state upper bounds array
IntVector discreteStateLowerBnds
 the discrete state lower bounds array
IntVector discreteStateUpperBnds
 the discrete state upper bounds array

Detailed Description

the default data view (no variable or domain type array merging).

Derived variable constraints classes take different views of the design, uncertain, and state variable types and the continuous and discrete domain types. The DistinctConstraints derived class separates the design, uncertain, and state variable types as well as the continuous and discrete domain types. The result is separate lower and upper bounds arrays for continuous design, discrete design, uncertain, continuous state, and discrete state variables. This is the default approach, so all iterators and strategies not specifically utilizing the All or Merged views use 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

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

standard constructor

In this class, the distinct approach (design, uncertain, and state types are distinct) is used. Most iterators/strategies use this approach, which is the default in Constraints::get_constraints().


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