[PPL-devel] [GIT] ppl/ppl(sparse_matrices): MIP_Problem: use matrix_row_const_iterator instead of matrix_row_iterator in erase_artificials ().
Marco Poletti
poletti.marco at gmail.com
Wed Mar 17 22:39:52 CET 2010
Module: ppl/ppl
Branch: sparse_matrices
Commit: d4414b4f8f43ec0decc00a580b54a7354ab2689b
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=d4414b4f8f43ec0decc00a580b54a7354ab2689b
Author: Marco Poletti <poletti.marco at gmail.com>
Date: Wed Mar 17 22:40:02 2010 +0100
MIP_Problem: use matrix_row_const_iterator instead of matrix_row_iterator in erase_artificials().
---
src/MIP_Problem.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/MIP_Problem.cc b/src/MIP_Problem.cc
index 1d04ebf..fb44001 100644
--- a/src/MIP_Problem.cc
+++ b/src/MIP_Problem.cc
@@ -1657,8 +1657,8 @@ PPL::MIP_Problem::erase_artificials(const dimension_type begin_artificials,
// Search for a non-zero element to enter the base.
matrix_row_reference_type tableau_i = tableau[i];
bool redundant = true;
- matrix_row_iterator j = tableau_i.begin();
- matrix_row_iterator j_end = tableau_i.end();
+ matrix_row_const_iterator j = tableau_i.begin();
+ matrix_row_const_iterator j_end = tableau_i.end();
// Skip the first element
if (j != j_end && (*j).first == 0)
++j;
More information about the PPL-devel
mailing list