Debug format 0 of the ubqp evaluation
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2563 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
7a668a645d
commit
95203c6b1b
1 changed files with 6 additions and 1 deletions
|
|
@ -115,7 +115,12 @@ public:
|
|||
if (format == 0) {
|
||||
for(unsigned int k = 0; k < nbNonZero; k++) {
|
||||
file >> i >> j >> v;
|
||||
Q[i - 1][j - 1] = v;
|
||||
if (i > 0 && j > 0)
|
||||
Q[i - 1][j - 1] = v;
|
||||
else {
|
||||
std::string str = "UbqpEval: some indices are 0 in the instance file (in format 0), please check." ;
|
||||
throw std::runtime_error(str);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for(unsigned int i = 0; i < nbVar; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue