Inheritance diagram for MergedConstraints:

Public Member Functions | |
| MergedConstraints () | |
| default constructor | |
| MergedConstraints (const ProblemDescDB &problem_db, const pair< short, short > &view) | |
| standard constructor | |
| ~MergedConstraints () | |
| destructor | |
| const RealVector & | continuous_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 RealVector & | continuous_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 RealVector & | inactive_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 RealVector & | inactive_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) | |
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).
| 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.
1.5.1