[PPL-devel] [GIT] ppl/ppl(master): MIP_Problem: fix typos in some debug messages and comments, in OK().
Marco Poletti
poletti.marco at gmail.com
Tue Sep 7 18:48:36 CEST 2010
Module: ppl/ppl
Branch: master
Commit: 8df25ad97af26345ee7d77a65120abee159ceede
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=8df25ad97af26345ee7d77a65120abee159ceede
Author: Marco Poletti <poletti.marco at gmail.com>
Date: Tue Sep 7 18:49:40 2010 +0200
MIP_Problem: fix typos in some debug messages and comments, in OK().
---
src/MIP_Problem.cc | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/MIP_Problem.cc b/src/MIP_Problem.cc
index 3d94007..f603f4a 100644
--- a/src/MIP_Problem.cc
+++ b/src/MIP_Problem.cc
@@ -2330,13 +2330,13 @@ PPL::MIP_Problem::OK() const {
matrix_type::row_type::const_iterator itr = tableau_j.begin();
matrix_type::row_type::const_iterator itr_end = tableau_j.end();
for ( ; i != i_end && itr != itr_end; ++i) {
- // tableau[i][base[i] must be different from zero.
- // tableau[i][base[j], with i different from j, must not be a zero.
+ // tableau[i][base[i]] must be different from zero.
+ // tableau[i][base[j]], with i different from j, must not be a zero.
if (itr.index() < i->first)
itr = tableau_j.lower_bound(itr, itr.index());
if (i->second != j && itr.index() == i->first && *itr != 0) {
#ifndef NDEBUG
- cerr << "tableau[i][base[i] must be different from zero" << endl;
+ cerr << "tableau[i][base[i]] must be different from zero" << endl;
ascii_dump(cerr);
#endif
return false;
@@ -2347,7 +2347,7 @@ PPL::MIP_Problem::OK() const {
for (dimension_type i = base.size(); i-- > 0; ) {
if (tableau[i].get(base[i]) == 0) {
#ifndef NDEBUG
- cerr << "tableau[i][base[j], with i different from j, must not be "
+ cerr << "tableau[i][base[j]], with i different from j, must not be "
<< "a zero" << endl;
ascii_dump(cerr);
#endif
More information about the PPL-devel
mailing list