Changeset 2364:3a5e67bd42d2 in lemon-0.x for lemon/lp_cplex.cc
- Timestamp:
- 02/15/07 20:15:14 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3175
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_cplex.cc
r2363 r2364 110 110 111 111 ///\warning Data at index 0 is ignored in the arrays. 112 void LpCplex::_setRowCoeffs(int i, LpRowIterator b, LpRowIterator e)112 void LpCplex::_setRowCoeffs(int i, ConstRowIterator b, ConstRowIterator e) 113 113 { 114 114 std::vector<int> indices; … … 116 116 std::vector<Value> values; 117 117 118 for( LpRowIterator it=b; it!=e; ++it) {118 for(ConstRowIterator it=b; it!=e; ++it) { 119 119 indices.push_back(it->first); 120 120 values.push_back(it->second); … … 125 125 &rowlist[0], &indices[0], &values[0]); 126 126 } 127 128 void LpCplex::_setColCoeffs(int i, LpColIterator b, LpColIterator e) 127 128 void LpSoplex::_getRowCoeffs(int i, RowIterator b) { 129 /// \todo implement 130 } 131 132 void LpCplex::_setColCoeffs(int i, ConstColIterator b, ConstColIterator e) 129 133 { 130 134 std::vector<int> indices; … … 132 136 std::vector<Value> values; 133 137 134 for( LpColIterator it=b; it!=e; ++it) {138 for(ConstColIterator it=b; it!=e; ++it) { 135 139 indices.push_back(it->first); 136 140 values.push_back(it->second); … … 140 144 status = CPXchgcoeflist(env, lp, values.size(), 141 145 &indices[0], &collist[0], &values[0]); 146 } 147 148 void LpSoplex::_getColCoeffs(int i, ColIterator b) { 149 /// \todo implement 142 150 } 143 151
Note: See TracChangeset
for help on using the changeset viewer.