lemon/soplex.cc
changeset 793 e4554cd6b2bf
parent 623 745e182d0139
child 956 141f9c0db4a3
     1.1 --- a/lemon/soplex.cc	Fri Oct 02 17:03:43 2009 +0200
     1.2 +++ b/lemon/soplex.cc	Sun Oct 04 00:28:42 2009 +0200
     1.3 @@ -91,6 +91,19 @@
     1.4      return soplex->nRows() - 1;
     1.5    }
     1.6  
     1.7 +  int SoplexLp::_addRow(Value l, ExprIterator b, ExprIterator e, Value u) {
     1.8 +    soplex::DSVector v;
     1.9 +    for (ExprIterator it = b; it != e; ++it) {
    1.10 +      v.add(it->first, it->second);
    1.11 +    }
    1.12 +    soplex::LPRow r(l, v, u);
    1.13 +    soplex->addRow(r);
    1.14 +
    1.15 +    _row_names.push_back(std::string());
    1.16 +
    1.17 +    return soplex->nRows() - 1;
    1.18 +  }
    1.19 +
    1.20  
    1.21    void SoplexLp::_eraseCol(int i) {
    1.22      soplex->removeCol(i);