Partition constructor interface. More...
#include <PWDecisionRule.hpp>

Public Types | |
| typedef map< string, map< string, uint > >::const_iterator | const_iterator |
| Constant iterator of the partition map. More... | |
| typedef vector< ROCPPConstraintIF_Ptr >::const_iterator | usconstraints_iterator |
| Constant iterator of the vector of uncertainty set constraints. More... | |
| typedef vector< ROCPPConstraintIF_Ptr >::const_iterator | addconstraints_iterator |
| Constant iterator of the vector of additional constraints. More... | |
Public Member Functions | |
| PartitionConstructorIF (const map< string, uint > &numPartitionsMap) | |
| ~PartitionConstructorIF () | |
| const_iterator | begin () const |
| Return a constant iterator pointing to the beginning of m_partitionsMap. More... | |
| const_iterator | end () const |
| Return a constant iterator pointing to the end of m_partitionsMap. More... | |
| usconstraints_iterator | USCbegin (string partition) const |
| Return a constant iterator pointing to the beginning of constraints defining the uncertainty set on the given partition. More... | |
| usconstraints_iterator | USCend (string partition) const |
| Return a constant iterator pointing to the end of constraints defining the uncertainty set on the given partition. More... | |
| ROCPPUnc_Ptr | getUncOnPartition (string partition, string origUncName) const |
| Get the uncertain parameter on the the given subset of the partition for the given original uncertain parameter. More... | |
| addconstraints_iterator | ACbegin () const |
| Return a constant iterator pointing to the beginning of m_additionalConstraints. More... | |
| addconstraints_iterator | ACend () const |
| Return a constant iterator pointing to the end of m_additionalConstraints. More... | |
| void | getReady (ROCPPOptModelIF_Ptr pIn, ROCPPParConverter_Ptr pPartConverter, ROCPPMItoMB_Ptr pMIMBConverter, map< string, pair< double, double > > &margSupp, const map< string, pair< double, double > > &OAmargSupp, string solver="gurobi") |
| Calculate the upper and lower bounds for each uncertainty. More... | |
| void | Reset () |
| Reset all maps in this container. More... | |
| virtual void | constructUncToBreakpointMap (const map< string, pair< double, double > > &margSupp)=0 |
| Decide on the breakpoint of each uncertainty and store the information in the maps. More... | |
| ROCPPconstdvContainer_Ptr | getBPDVContainer () const |
| size_t | getNumSubsets () const |
| Get the total number of subsets. More... | |
| uint | getNumSubsets (string uncNme) const |
| Get the number of subsets for the given uncertainty. More... | |
| uint | getPos (string partition, string uncNme) const |
| bool | hasPartition (string uncNme) const |
| ROCPPExpr_Ptr | getBp (pair< string, uint > uncOnPartition) const |
| map< string, uint > | getNumPartitionsMap () const |
Protected Member Functions | |
| void | constructPartitionsMap (ROCPPOptModelIF_Ptr pIn, ROCPPParConverter_Ptr pPartConverter) |
Protected Attributes | |
| map< string, uint > | m_numPartitionsMap |
| Map from uncertainty to number of breakpoints in this direction. More... | |
| map< string, map< string, uint > > | m_partitionsMap |
| Map from partition_name to map from unc name to element of parition associated with this uncertainty. More... | |
| map< string, vector< ROCPPConstraintIF_Ptr > > | m_partitionUSconstraints |
| Map from partition name to the vector of constraints specific to this partition. More... | |
| map< pair< string, uint >, ROCPPExpr_Ptr > | m_uncToBreakpointMap |
| Map from pair<unc name,breakpoint number> to dv modeling the breakpoint. More... | |
| vector< ROCPPConstraintIF_Ptr > | m_additionalConstraints |
| Vector of additional constraints. More... | |
| ROCPPdvContainer_Ptr | m_bpdvs |
| Container of breakpoint variables. More... | |
Partition constructor interface.
Class for constructing partitions of uncertainty set
| typedef vector< ROCPPConstraintIF_Ptr>::const_iterator PartitionConstructorIF::addconstraints_iterator |
Constant iterator of the vector of additional constraints.
| typedef map<string, map<string,uint> >::const_iterator PartitionConstructorIF::const_iterator |
Constant iterator of the partition map.
| typedef vector<ROCPPConstraintIF_Ptr>::const_iterator PartitionConstructorIF::usconstraints_iterator |
Constant iterator of the vector of uncertainty set constraints.
| PartitionConstructorIF::PartitionConstructorIF | ( | const map< string, uint > & | numPartitionsMap | ) |
| numPartitionsMap | Map from uncertainty name to number of break points in this direction |
|
inline |
|
inline |
Return a constant iterator pointing to the beginning of m_additionalConstraints.
|
inline |
Return a constant iterator pointing to the end of m_additionalConstraints.
|
inline |
Return a constant iterator pointing to the beginning of m_partitionsMap.
|
protected |
|
pure virtual |
Decide on the breakpoint of each uncertainty and store the information in the maps.
Implemented in AdaptivePartitionConstructor, and StaticPartitionConstructor.
|
inline |
Return a constant iterator pointing to the end of m_partitionsMap.
| ROCPPExpr_Ptr PartitionConstructorIF::getBp | ( | pair< string, uint > | uncOnPartition | ) | const |
|
inline |
|
inline |
|
inline |
Get the total number of subsets.
| uint PartitionConstructorIF::getNumSubsets | ( | string | uncNme | ) | const |
Get the number of subsets for the given uncertainty.
| uint PartitionConstructorIF::getPos | ( | string | partition, |
| string | uncNme | ||
| ) | const |
| void PartitionConstructorIF::getReady | ( | ROCPPOptModelIF_Ptr | pIn, |
| ROCPPParConverter_Ptr | pPartConverter, | ||
| ROCPPMItoMB_Ptr | pMIMBConverter, | ||
| map< string, pair< double, double > > & | margSupp, | ||
| const map< string, pair< double, double > > & | OAmargSupp, | ||
| string | solver = "gurobi" |
||
| ) |
Calculate the upper and lower bounds for each uncertainty.
| ROCPPUnc_Ptr PartitionConstructorIF::getUncOnPartition | ( | string | partition, |
| string | origUncName | ||
| ) | const |
Get the uncertain parameter on the the given subset of the partition for the given original uncertain parameter.
| bool PartitionConstructorIF::hasPartition | ( | string | uncNme | ) | const |
|
inline |
Reset all maps in this container.
| PartitionConstructorIF::usconstraints_iterator PartitionConstructorIF::USCbegin | ( | string | partition | ) | const |
Return a constant iterator pointing to the beginning of constraints defining the uncertainty set on the given partition.
| PartitionConstructorIF::usconstraints_iterator PartitionConstructorIF::USCend | ( | string | partition | ) | const |
Return a constant iterator pointing to the end of constraints defining the uncertainty set on the given partition.
|
protected |
Vector of additional constraints.
|
protected |
Container of breakpoint variables.
|
protected |
Map from uncertainty to number of breakpoints in this direction.
|
protected |
Map from partition_name to map from unc name to element of parition associated with this uncertainty.
|
protected |
Map from partition name to the vector of constraints specific to this partition.
|
protected |
Map from pair<unc name,breakpoint number> to dv modeling the breakpoint.