#include <MMKP_MCKnap.h>

Public Member Functions | |
| void | solveTrivialMaxSum (const double *redCost, const double *origCost, vector< int > &solInd, double &varRedCost, double &varOrigCost) |
| const int | getIndexIJ (const int i, const int j) const |
| pair< int, int > | getIndexInv (const int index) const |
| void | setMCKnapData (const double capacity, const double *weight) |
| void | solveMCKnap (const double *redCost, const double *origCost, vector< int > &solInd, vector< double > &solEls, double &varRedCost, double &varOrigCost) |
| MMKP_MCKnap (const int nGroupRows, const int nGroupCols) | |
| ~MMKP_MCKnap () | |
Private Attributes | |
| isetset * | m_setset |
| double * | m_costDbl |
| int * | m_cost |
| int * | m_weight |
| int | m_nCols |
| int | m_nGroupRows |
| int | m_nGroupCols |
| int | m_capacity |
| int | m_cscale |
| int | m_wscale |
Definition at line 42 of file MMKP_MCKnap.h.
| MMKP_MCKnap::MMKP_MCKnap | ( | const int | nGroupRows, | |
| const int | nGroupCols | |||
| ) | [inline] |
| MMKP_MCKnap::~MMKP_MCKnap | ( | ) | [inline] |
Definition at line 114 of file MMKP_MCKnap.h.
References itemset::fset, isetset::fset, m_cost, m_costDbl, m_setset, m_weight, isetset::size, and UTIL_DELARR.
| void MMKP_MCKnap::solveTrivialMaxSum | ( | const double * | redCost, | |
| const double * | origCost, | |||
| vector< int > & | solInd, | |||
| double & | varRedCost, | |||
| double & | varOrigCost | |||
| ) |
| const int MMKP_MCKnap::getIndexIJ | ( | const int | i, | |
| const int | j | |||
| ) | const [inline] |
Definition at line 76 of file MMKP_MCKnap.h.
References m_nGroupCols.
| pair<int,int> MMKP_MCKnap::getIndexInv | ( | const int | index | ) | const [inline] |
Definition at line 81 of file MMKP_MCKnap.h.
References m_nGroupCols.
| void MMKP_MCKnap::setMCKnapData | ( | const double | capacity, | |
| const double * | weight | |||
| ) |
| void MMKP_MCKnap::solveMCKnap | ( | const double * | redCost, | |
| const double * | origCost, | |||
| vector< int > & | solInd, | |||
| vector< double > & | solEls, | |||
| double & | varRedCost, | |||
| double & | varOrigCost | |||
| ) |
isetset* MMKP_MCKnap::m_setset [private] |
Definition at line 57 of file MMKP_MCKnap.h.
Referenced by ~MMKP_MCKnap().
double* MMKP_MCKnap::m_costDbl [private] |
Definition at line 58 of file MMKP_MCKnap.h.
Referenced by MMKP_MCKnap(), and ~MMKP_MCKnap().
int* MMKP_MCKnap::m_cost [private] |
Definition at line 59 of file MMKP_MCKnap.h.
Referenced by MMKP_MCKnap(), and ~MMKP_MCKnap().
int* MMKP_MCKnap::m_weight [private] |
Definition at line 60 of file MMKP_MCKnap.h.
Referenced by MMKP_MCKnap(), and ~MMKP_MCKnap().
int MMKP_MCKnap::m_nCols [private] |
Definition at line 61 of file MMKP_MCKnap.h.
Referenced by MMKP_MCKnap().
int MMKP_MCKnap::m_nGroupRows [private] |
Definition at line 62 of file MMKP_MCKnap.h.
int MMKP_MCKnap::m_nGroupCols [private] |
Definition at line 63 of file MMKP_MCKnap.h.
Referenced by getIndexIJ(), and getIndexInv().
int MMKP_MCKnap::m_capacity [private] |
Definition at line 64 of file MMKP_MCKnap.h.
int MMKP_MCKnap::m_cscale [private] |
Definition at line 65 of file MMKP_MCKnap.h.
int MMKP_MCKnap::m_wscale [private] |
Definition at line 66 of file MMKP_MCKnap.h.
1.6.1