diff -r 2aabce558574 -r 3a5e67bd42d2 lemon/lp_cplex.cc --- a/lemon/lp_cplex.cc Thu Feb 15 14:22:08 2007 +0000 +++ b/lemon/lp_cplex.cc Thu Feb 15 19:15:14 2007 +0000 @@ -109,13 +109,13 @@ } ///\warning Data at index 0 is ignored in the arrays. - void LpCplex::_setRowCoeffs(int i, LpRowIterator b, LpRowIterator e) + void LpCplex::_setRowCoeffs(int i, ConstRowIterator b, ConstRowIterator e) { std::vector indices; std::vector rowlist; std::vector values; - for(LpRowIterator it=b; it!=e; ++it) { + for(ConstRowIterator it=b; it!=e; ++it) { indices.push_back(it->first); values.push_back(it->second); rowlist.push_back(i); @@ -124,14 +124,18 @@ status = CPXchgcoeflist(env, lp, values.size(), &rowlist[0], &indices[0], &values[0]); } + + void LpSoplex::_getRowCoeffs(int i, RowIterator b) { + /// \todo implement + } - void LpCplex::_setColCoeffs(int i, LpColIterator b, LpColIterator e) + void LpCplex::_setColCoeffs(int i, ConstColIterator b, ConstColIterator e) { std::vector indices; std::vector collist; std::vector values; - for(LpColIterator it=b; it!=e; ++it) { + for(ConstColIterator it=b; it!=e; ++it) { indices.push_back(it->first); values.push_back(it->second); collist.push_back(i); @@ -140,6 +144,10 @@ status = CPXchgcoeflist(env, lp, values.size(), &indices[0], &collist[0], &values[0]); } + + void LpSoplex::_getColCoeffs(int i, ColIterator b) { + /// \todo implement + } void LpCplex::_setCoeff(int row, int col, Value value) {