ROC++  v1.2
Automatic Robust Optimization in C++
PartitionConverter Class Reference

Partition converter. More...

#include <PWDecisionRule.hpp>

Public Member Functions

 PartitionConverter (uint numEls)
 Constructor of the PartitionConverter class. More...
 
 ~PartitionConverter ()
 Destructor of the PartitionConverter class. More...
 
string convertPartitionToString (uint partition) const
 
string convertPartitionToString (const map< string, uint > &partitionIn, ROCPPOptModelIF_Ptr pModel) const
 Convert the partition of the uncertainty in the input map to a string based on the order of each uncertainty in the uncertainty container in the input model. More...
 
string getBasicPartition (const map< string, uint > &partitionIn, uint t, ROCPPOptModelIF_Ptr pModel, uint memory) const
 Get the basic partition to reduce the amount of euqal constraints. More...
 
uint getNumEls () const
 

Private Attributes

uint m_numEls
 

Detailed Description

Partition converter.

Class for converting partition to a string

Constructor & Destructor Documentation

◆ PartitionConverter()

PartitionConverter::PartitionConverter ( uint  numEls)
inline

Constructor of the PartitionConverter class.

◆ ~PartitionConverter()

PartitionConverter::~PartitionConverter ( )
inline

Destructor of the PartitionConverter class.

Member Function Documentation

◆ convertPartitionToString() [1/2]

string PartitionConverter::convertPartitionToString ( const map< string, uint > &  partitionIn,
ROCPPOptModelIF_Ptr  pModel 
) const

Convert the partition of the uncertainty in the input map to a string based on the order of each uncertainty in the uncertainty container in the input model.

◆ convertPartitionToString() [2/2]

string PartitionConverter::convertPartitionToString ( uint  partition) const

◆ getBasicPartition()

string PartitionConverter::getBasicPartition ( const map< string, uint > &  partitionIn,
uint  t,
ROCPPOptModelIF_Ptr  pModel,
uint  memory 
) const

Get the basic partition to reduce the amount of euqal constraints.

◆ getNumEls()

uint PartitionConverter::getNumEls ( ) const
inline

Member Data Documentation

◆ m_numEls

uint PartitionConverter::m_numEls
private