COIN-OR::LEMON - Graph Library

Changeset 2364:3a5e67bd42d2 in lemon-0.x for lemon/lp_cplex.cc


Ignore:
Timestamp:
02/15/07 20:15:14 (17 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3175
Message:

Lp row and col getter function
lp section reader and writer for lemon IO

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_cplex.cc

    r2363 r2364  
    110110 
    111111  ///\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)
    113113  {
    114114    std::vector<int> indices;
     
    116116    std::vector<Value> values;
    117117
    118     for(LpRowIterator it=b; it!=e; ++it) {
     118    for(ConstRowIterator it=b; it!=e; ++it) {
    119119      indices.push_back(it->first);
    120120      values.push_back(it->second);
     
    125125                            &rowlist[0], &indices[0], &values[0]);
    126126  }
    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)
    129133  {
    130134    std::vector<int> indices;
     
    132136    std::vector<Value> values;
    133137
    134     for(LpColIterator it=b; it!=e; ++it) {
     138    for(ConstColIterator it=b; it!=e; ++it) {
    135139      indices.push_back(it->first);
    136140      values.push_back(it->second);
     
    140144    status = CPXchgcoeflist(env, lp, values.size(),
    141145                            &indices[0], &collist[0], &values[0]);
     146  }
     147
     148  void LpSoplex::_getColCoeffs(int i, ColIterator b) {
     149    /// \todo implement
    142150  }
    143151 
Note: See TracChangeset for help on using the changeset viewer.