COIN-OR::LEMON - Graph Library

Ticket #205: fb5af0411793.patch

File fb5af0411793.patch, 800 bytes (added by Balazs Dezso, 16 years ago)

Fix

  • lemon/lp_base.h

    # HG changeset patch
    # User Balazs Dezso <deba@inf.elte.hu>
    # Date 1232297348 -3600
    # Node ID fb5af0411793f29be076eb0ef6945d8b77ea3c1b
    # Parent  81627fa1b0070a8175724f70868125203730fec9
    Fix lp indexing bug (#205)
    
    diff -r 81627fa1b007 -r fb5af0411793 lemon/lp_base.h
    a b  
    10671067    ///a better one.
    10681068    void col(Col c, const DualExpr &e) {
    10691069      e.simplify();
    1070       _setColCoeffs(cols(id(c)), ExprIterator(e.comps.begin(), cols),
    1071                     ExprIterator(e.comps.end(), cols));
     1070      _setColCoeffs(cols(id(c)), ExprIterator(e.comps.begin(), rows),
     1071                    ExprIterator(e.comps.end(), rows));
    10721072    }
    10731073
    10741074    ///Get a column (i.e a dual constraint) of the LP