COIN-OR::LEMON - Graph Library

Changeset 2366:bfbdded3763a in lemon-0.x for lemon/lp_skeleton.h


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

Using const in lp interface
colByName functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lp_skeleton.h

    r2364 r2366  
    4545    virtual void _eraseRow(int i);
    4646    /// \e
    47     virtual void _getColName(int col, std::string & name);
     47    virtual void _getColName(int col, std::string & name) const;
    4848    /// \e
    4949    virtual void _setColName(int col, const std::string & name);
     50    /// \e
     51    virtual int _colByName(const std::string& name) const;
    5052
    5153    /// \e
    5254    virtual void _setRowCoeffs(int i, ConstRowIterator b, ConstRowIterator e);
    5355    /// \e
    54     virtual void _getRowCoeffs(int i, RowIterator b);
     56    virtual void _getRowCoeffs(int i, RowIterator b) const;
    5557    /// \e
    5658    virtual void _setColCoeffs(int i, ConstColIterator b, ConstColIterator e);
    5759    /// \e
    58     virtual void _getColCoeffs(int i, ColIterator b);
     60    virtual void _getColCoeffs(int i, ColIterator b) const;
    5961   
    6062    /// Set one element of the coefficient matrix
     
    6264
    6365    /// Get one element of the coefficient matrix
    64     virtual Value _getCoeff(int row, int col);
     66    virtual Value _getCoeff(int row, int col) const;
    6567
    6668    /// The lower bound of a variable (column) have to be given by an
     
    7375    /// extended number of type Value, i.e. a finite number of type
    7476    /// Value or -\ref INF.
    75     virtual Value _getColLowerBound(int i);
     77    virtual Value _getColLowerBound(int i) const;
    7678
    7779    /// The upper bound of a variable (column) have to be given by an
     
    8486    /// extended number of type Value, i.e. a finite number of type
    8587    /// Value or \ref INF.
    86     virtual Value _getColUpperBound(int i);
     88    virtual Value _getColUpperBound(int i) const;
    8789
    8890//     /// The lower bound of a linear expression (row) have to be given by an
     
    109111    /// extended numbers of type Value, i.e.  finite numbers of type
    110112    /// Value, -\ref INF or \ref INF.
    111     virtual void _getRowBounds(int i, Value &lb, Value &ub);
     113    virtual void _getRowBounds(int i, Value &lb, Value &ub) const;
    112114    /// \e
    113115
     
    119121
    120122    /// \e
    121     virtual Value _getObjCoeff(int i);
     123    virtual Value _getObjCoeff(int i) const;
    122124
    123125    ///\e
     
    131133    ///\bug Wrong interface
    132134    ///
    133     virtual Value _getPrimal(int i);
     135    virtual Value _getPrimal(int i) const;
    134136
    135137    ///\e
     
    137139    ///\bug Wrong interface
    138140    ///
    139     virtual Value _getDual(int i);
     141    virtual Value _getDual(int i) const;
    140142
    141143    ///\e
     
    143145    ///\bug Wrong interface
    144146    ///
    145     virtual Value _getPrimalValue();
     147    virtual Value _getPrimalValue() const;
    146148
    147149    ///\e
     
    149151    ///\bug Wrong interface
    150152    ///
    151     virtual SolutionStatus _getPrimalStatus();
     153    virtual SolutionStatus _getPrimalStatus() const;
    152154
    153155    ////e
    154     virtual SolutionStatus _getDualStatus();
     156    virtual SolutionStatus _getDualStatus() const;
    155157
    156158
    157159    ///\e
    158     virtual ProblemTypes _getProblemType();
     160    virtual ProblemTypes _getProblemType() const;
    159161
    160162    ///\e
     
    164166
    165167    ///\e
    166     virtual bool _isMax();
     168    virtual bool _isMax() const;
    167169
    168170
    169171
    170172    ///\e
    171     virtual bool _isBasicCol(int i);
     173    virtual bool _isBasicCol(int i) const;
    172174
    173175   
Note: See TracChangeset for help on using the changeset viewer.