1.1 --- a/lemon/lp_cplex.cc Thu Feb 15 14:22:08 2007 +0000
1.2 +++ b/lemon/lp_cplex.cc Thu Feb 15 19:15:14 2007 +0000
1.3 @@ -109,13 +109,13 @@
1.4 }
1.5
1.6 ///\warning Data at index 0 is ignored in the arrays.
1.7 - void LpCplex::_setRowCoeffs(int i, LpRowIterator b, LpRowIterator e)
1.8 + void LpCplex::_setRowCoeffs(int i, ConstRowIterator b, ConstRowIterator e)
1.9 {
1.10 std::vector<int> indices;
1.11 std::vector<int> rowlist;
1.12 std::vector<Value> values;
1.13
1.14 - for(LpRowIterator it=b; it!=e; ++it) {
1.15 + for(ConstRowIterator it=b; it!=e; ++it) {
1.16 indices.push_back(it->first);
1.17 values.push_back(it->second);
1.18 rowlist.push_back(i);
1.19 @@ -124,14 +124,18 @@
1.20 status = CPXchgcoeflist(env, lp, values.size(),
1.21 &rowlist[0], &indices[0], &values[0]);
1.22 }
1.23 +
1.24 + void LpSoplex::_getRowCoeffs(int i, RowIterator b) {
1.25 + /// \todo implement
1.26 + }
1.27
1.28 - void LpCplex::_setColCoeffs(int i, LpColIterator b, LpColIterator e)
1.29 + void LpCplex::_setColCoeffs(int i, ConstColIterator b, ConstColIterator e)
1.30 {
1.31 std::vector<int> indices;
1.32 std::vector<int> collist;
1.33 std::vector<Value> values;
1.34
1.35 - for(LpColIterator it=b; it!=e; ++it) {
1.36 + for(ConstColIterator it=b; it!=e; ++it) {
1.37 indices.push_back(it->first);
1.38 values.push_back(it->second);
1.39 collist.push_back(i);
1.40 @@ -140,6 +144,10 @@
1.41 status = CPXchgcoeflist(env, lp, values.size(),
1.42 &indices[0], &collist[0], &values[0]);
1.43 }
1.44 +
1.45 + void LpSoplex::_getColCoeffs(int i, ColIterator b) {
1.46 + /// \todo implement
1.47 + }
1.48
1.49 void LpCplex::_setCoeff(int row, int col, Value value)
1.50 {