diff -r 70b199792735 -r ad40f7d32846 lemon/cbc.cc --- a/lemon/cbc.cc Fri Aug 09 11:07:27 2013 +0200 +++ b/lemon/cbc.cc Sun Aug 11 15:28:12 2013 +0200 @@ -89,6 +89,18 @@ return _prob->numberRows() - 1; } + int CbcMip::_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 CbcMip::_eraseCol(int i) { _prob->deleteColumn(i);