MMKP_MCKnap Class Reference

#include <MMKP_MCKnap.h>

Collaboration diagram for MMKP_MCKnap:
Collaboration graph
[legend]

List of all members.

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


Constructor & Destructor Documentation

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

Definition at line 96 of file MMKP_MCKnap.h.

References m_cost, m_costDbl, m_nCols, and m_weight.

MMKP_MCKnap::~MMKP_MCKnap (  )  [inline]

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 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 
)

Member Data Documentation

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().

Definition at line 62 of file MMKP_MCKnap.h.

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.


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

Generated on 12 Feb 2015 for Dip-All by  doxygen 1.6.1