Dip  0.92.4
Public Member Functions | Private Attributes | List of all members
MMKP_MCKnap Class Reference

#include <MMKP_MCKnap.h>

Collaboration diagram for MMKP_MCKnap:
Collaboration graph
[legend]

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

isetsetm_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
 

Detailed Description

Definition at line 44 of file MMKP_MCKnap.h.

Constructor & Destructor Documentation

MMKP_MCKnap::MMKP_MCKnap ( const int  nGroupRows,
const int  nGroupCols 
)
inline

Definition at line 98 of file MMKP_MCKnap.h.

MMKP_MCKnap::~MMKP_MCKnap ( )
inline

Definition at line 116 of file MMKP_MCKnap.h.

References itemset::fset, and UTIL_DELARR.

Member Function Documentation

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 78 of file MMKP_MCKnap.h.

pair<int,int> MMKP_MCKnap::getIndexInv ( const int  index) const
inline

Definition at line 83 of file MMKP_MCKnap.h.

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 
)

Member Data Documentation

isetset* MMKP_MCKnap::m_setset
private

Definition at line 59 of file MMKP_MCKnap.h.

double* MMKP_MCKnap::m_costDbl
private

Definition at line 60 of file MMKP_MCKnap.h.

int* MMKP_MCKnap::m_cost
private

Definition at line 61 of file MMKP_MCKnap.h.

int* MMKP_MCKnap::m_weight
private

Definition at line 62 of file MMKP_MCKnap.h.

int MMKP_MCKnap::m_nCols
private

Definition at line 63 of file MMKP_MCKnap.h.

int MMKP_MCKnap::m_nGroupRows
private

Definition at line 64 of file MMKP_MCKnap.h.

int MMKP_MCKnap::m_nGroupCols
private

Definition at line 65 of file MMKP_MCKnap.h.

int MMKP_MCKnap::m_capacity
private

Definition at line 66 of file MMKP_MCKnap.h.

int MMKP_MCKnap::m_cscale
private

Definition at line 67 of file MMKP_MCKnap.h.

int MMKP_MCKnap::m_wscale
private

Definition at line 68 of file MMKP_MCKnap.h.


The documentation for this class was generated from the following file: