Skip to content

Commit 47d2259

Browse files
authored
Merge pull request #5 from scipopt/fix-solution-checking
use correct counter of the for loop to check solutions
2 parents c83f4c2 + 529aa30 commit 47d2259

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

CHANGELOG

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@page RN11 Release notes for VIPR 1.1
2+
3+
Features:
4+
-----------
5+
- handling of incomplete derivations (see Certificate Version 1.1)
6+
7+
Build system
8+
------------
9+
10+
Fixed bugs
11+
-----------
12+
- all constraints are now considered for checking the feasibility of solutions
13+
- improved error messages
14+
15+
Data structures
16+
-----------
17+
18+
19+
@page RN10 Release notes for VIPR 1.0
20+
21+
Features:
22+
-----------
23+
- verify the correctness of results computed by mixed-integer linear programming solvers by verifying the certificates in VIPR 1.0 format

code/viprchk.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -760,9 +760,9 @@ bool processSOL()
760760

761761
for( int j = 0; j < numberOfConstraints; ++j )
762762
{
763-
if( !satisfies(constraint[i], solutionSpecified) )
763+
if( !satisfies(constraint[j], solutionSpecified) )
764764
{
765-
cerr << "Constraint " << i << " not satisfied." << endl;
765+
cerr << "Constraint " << j << " not satisfied." << endl;
766766
goto TERMINATE;
767767
}
768768
}

0 commit comments

Comments
 (0)