15 #ifndef GAP_INSTANCE_INCLUDED
16 #define GAP_INSTANCE_INCLUDED
19 #include "UtilMacros.h"
81 void readInstance(
string& filename);
82 void readBestKnown(
string& fileName,
83 string& instanceName);
91 m_isProvenOptimal =
false;
92 m_bestKnownLB = -1.e20;
93 m_bestKnownUB = 1.e20;
98 return (i * m_nTasks) + j;
102 return make_pair(index / m_nTasks, index % m_nTasks);
106 return m_bestKnownLB;
109 return m_bestKnownUB;
123 readInstance(fileName);
pair< int, int > getIndexInv(const int index) const
~GAP_Instance()
Default constructor.
const int getNTasks() const
const int * getWeight() const
GAP_Instance(string &fileName)
Default constructor.
GAP_Instance()
Default constructor.
const double getBestKnownLB() const
const int getIndexIJ(const int i, const int j) const
const int getNMachines() const
const int * getProfit() const
bool m_isProvenOptimal
GAP_Instance best known LB/UB.
int m_nTasks
GAP_Instance problem instance data.
const double getBestKnownUB() const
const int * getCapacity() const