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

#include <AP3_Instance.h>

Public Member Functions

void readOptimalBound (const char *fileName)
 Read the optimal bound from file. More...
 
void index3Inv (const int index, int &ind1, int &ind2, int &ind3) const
 
void readInstance (const char *fileName)
 Read in an instance from data file. More...
 
Constructor and Destructor
 AP3_Instance ()
 Default constructor. More...
 
 AP3_Instance (const char *fileName)
 Constructor. More...
 
virtual ~AP3_Instance ()
 Default constructor. More...
 

Public Attributes

int m_dimension
 The dimension of the instance. More...
 
int m_ncolsFull
 The number of cols in full formulation. More...
 
int m_nrowsFull
 The number of rows in full formulation. More...
 
double * m_assigncost
 Cost of assignment (size = dimension^3). More...
 
string m_instance
 Name of AP3 instance. More...
 
double m_optBound
 Known optimal bound (for debugging) More...
 

Detailed Description

Stores an instance of 3-Indexed Assignment Problem (AP3)

Todo:
Instance reader is not very robust.

Definition at line 32 of file AP3_Instance.h.

Constructor & Destructor Documentation

AP3_Instance::AP3_Instance ( )
inline

Default constructor.

Definition at line 131 of file AP3_Instance.h.

AP3_Instance::AP3_Instance ( const char *  fileName)
inline

Constructor.

Construct an instance from data file

Definition at line 140 of file AP3_Instance.h.

virtual AP3_Instance::~AP3_Instance ( )
inlinevirtual

Default constructor.

Definition at line 150 of file AP3_Instance.h.

References UTIL_DELARR.

Member Function Documentation

void AP3_Instance::readOptimalBound ( const char *  fileName)
inline

Read the optimal bound from file.

Definition at line 54 of file AP3_Instance.h.

References UtilOpenFile().

void AP3_Instance::index3Inv ( const int  index,
int &  ind1,
int &  ind2,
int &  ind3 
) const
inline

Definition at line 71 of file AP3_Instance.h.

void AP3_Instance::readInstance ( const char *  fileName)
inline

Read in an instance from data file.

Definition at line 86 of file AP3_Instance.h.

References CoinAssert, CoinAssertHint, and UtilOpenFile().

Member Data Documentation

int AP3_Instance::m_dimension
int AP3_Instance::m_ncolsFull

The number of cols in full formulation.

Definition at line 38 of file AP3_Instance.h.

int AP3_Instance::m_nrowsFull

The number of rows in full formulation.

Definition at line 41 of file AP3_Instance.h.

double* AP3_Instance::m_assigncost

Cost of assignment (size = dimension^3).

Definition at line 44 of file AP3_Instance.h.

string AP3_Instance::m_instance

Name of AP3 instance.

Definition at line 47 of file AP3_Instance.h.

Referenced by AP3_DecompApp::getInstanceName().

double AP3_Instance::m_optBound

Known optimal bound (for debugging)

Definition at line 50 of file AP3_Instance.h.

Referenced by AP3_DecompApp::getKnownOptimalBound(), and AP3_DecompApp::getOptBound().


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