diff -r 994c7df296c9 -r 1b89e29c9fc7 lemon/clp.cc --- a/lemon/clp.cc Thu Dec 10 17:05:35 2009 +0100 +++ b/lemon/clp.cc Thu Dec 10 17:18:25 2009 +0100 @@ -78,6 +78,19 @@ return _prob->numberRows() - 1; } + int ClpLp::_addRow(Value l, ExprIterator b, ExprIterator e, Value u) { + std::vector indexes; + std::vector values; + + for(ExprIterator it = b; it != e; ++it) { + indexes.push_back(it->first); + values.push_back(it->second); + } + + _prob->addRow(values.size(), &indexes.front(), &values.front(), l, u); + return _prob->numberRows() - 1; + } + void ClpLp::_eraseCol(int c) { _col_names_ref.erase(_prob->getColumnName(c));