1.1 --- a/lemon/soplex.cc Fri Aug 09 11:07:27 2013 +0200
1.2 +++ b/lemon/soplex.cc Sun Aug 11 15:28:12 2013 +0200
1.3 @@ -2,7 +2,7 @@
1.4 *
1.5 * This file is a part of LEMON, a generic C++ optimization library.
1.6 *
1.7 - * Copyright (C) 2003-2008
1.8 + * Copyright (C) 2003-2010
1.9 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
1.10 * (Egervary Research Group on Combinatorial Optimization, EGRES).
1.11 *
1.12 @@ -91,6 +91,19 @@
1.13 return soplex->nRows() - 1;
1.14 }
1.15
1.16 + int SoplexLp::_addRow(Value l, ExprIterator b, ExprIterator e, Value u) {
1.17 + soplex::DSVector v;
1.18 + for (ExprIterator it = b; it != e; ++it) {
1.19 + v.add(it->first, it->second);
1.20 + }
1.21 + soplex::LPRow r(l, v, u);
1.22 + soplex->addRow(r);
1.23 +
1.24 + _row_names.push_back(std::string());
1.25 +
1.26 + return soplex->nRows() - 1;
1.27 + }
1.28 +
1.29
1.30 void SoplexLp::_eraseCol(int i) {
1.31 soplex->removeCol(i);
1.32 @@ -274,7 +287,7 @@
1.33 SoplexLp::SolveExitStatus SoplexLp::_solve() {
1.34
1.35 _clear_temporals();
1.36 -
1.37 +
1.38 _applyMessageLevel();
1.39
1.40 soplex::SPxSolver::Status status = soplex->solve();