Defines nested pits.
More...
#include <nestedpit.h>
|
static const unsigned int | NO_INDEX = numeric_limits<unsigned int>::max() |
| Index of nonexistent Pit.
|
|
Create new nested pits.
- Parameters
-
pi | The nested pit instance the nested pits refers to. |
Returns the pit of given index.
- Parameters
-
pitindex | The Pit index of returned pit. |
pitindex vary from 0 to GetSize()-1
Returns the pit of given revenue factor.
- Parameters
-
rf | The revenue factor of returned pit. |
unsigned int delphos::NestedPits::GetPitId |
( |
const delphos::Block & |
block | ) |
const |
Returns the index of the Pit minimum that contains given block.
- Parameters
-
block | The block for which the index of minimum pit that contains it is returned. |
unsigned int delphos::NestedPits::GetPitId |
( |
const BlockIndexType & |
blockid | ) |
const |
Returns the index of the Pit minimum that contains given block id.
- Parameters
-
blockid | The block id for which the index of minimum pit that contains it is returned. |
double delphos::NestedPits::GetRF |
( |
const delphos::Block & |
block | ) |
const |
Returns the Revenue factor of the Pit minimum that contains given block.
- Parameters
-
block | The block for which the revenue factor of minimum pit that containt it is returned. |
double delphos::NestedPits::GetRF |
( |
BlockIndexType |
blockid | ) |
const |
Returns the Revenue factor of the Pit minimum that contains given block id.
- Parameters
-
blockid | The block id for which the revenue factor of minimum pit that containt it is returned. |
void delphos::NestedPits::StorePitsAsAttribute |
( |
const string & |
attribute, |
|
|
const bool & |
multiattr = true |
|
) |
| |
Saves the nested pits as an attribute or as attributes in the block model.
- Parameters
-
attribute | Name of the attribute the nested pits will be saved into. |
multiattr | boolean equal to FALSE only if the nested pits will be saved into only 1 attribute. |
This method creates an attribute in the block model and stores the nested pit in this attribute or these attributes.
The documentation for this class was generated from the following files:
- /home/gmorales/dev/MineLink/BlockScheduling/core/trunk/problems/nestedpits/nestedpit.h
- /home/gmorales/dev/MineLink/BlockScheduling/core/trunk/problems/nestedpits/nestedpit.cpp