COIN-OR::LEMON - Graph Library

Changeset 1140:8d281761dea4 in lemon for lemon


Ignore:
Timestamp:
05/05/12 10:22:44 (8 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Children:
1141:c3a7ca108705, 1142:4764031c082c, 1143:38e1d4383262, 1144:7440937d154b
Phase:
public
Message:

Fix buggy reinitialization in _solver_bits::VarIndex::clear() (#441)

  • In addition, rows.clear() and cols.clear() are moved up to LpBase::clear()
Location:
lemon
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/solver_bits.h

    r566 r1140  
    4545      void clear() {
    4646        first_item = -1;
     47        last_item = -1;
    4748        first_free_item = -1;
    4849        items.clear();
  • lemon/cbc.cc

    r1120 r1140  
    424424
    425425    _prob = new CoinModel();
    426     rows.clear();
    427     cols.clear();
    428426  }
    429427
  • lemon/clp.cc

    r623 r1140  
    425425    delete _prob;
    426426    _prob = new ClpSimplex();
    427     rows.clear();
    428     cols.clear();
    429427    _col_names_ref.clear();
    430428    _clear_temporals();
  • lemon/cplex.cc

    r623 r1140  
    438438    int status;
    439439    _prob = CPXcreateprob(cplexEnv(), &status, "Cplex problem");
    440     rows.clear();
    441     cols.clear();
    442440  }
    443441
  • lemon/glpk.cc

    r623 r1140  
    521521  void GlpkBase::_clear() {
    522522    glp_erase_prob(lp);
    523     rows.clear();
    524     cols.clear();
    525523  }
    526524
  • lemon/lp_base.h

    r1092 r1140  
    15431543
    15441544    ///Clears the problem
    1545     void clear() { _clear(); }
     1545    void clear() { _clear(); rows.clear(); cols.clear(); }
    15461546
    15471547    /// Sets the message level of the solver
Note: See TracChangeset for help on using the changeset viewer.