COIN-OR::LEMON - Graph Library

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


Ignore:
Timestamp:
02/16/07 20:11:31 (13 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_soplex.h

    r2364 r2366  
    3535namespace lemon {
    3636
     37  /// \ingroup gen_opt_group
     38  ///
    3739  /// \brief Interface for the SOPLEX solver
    3840  ///
    39   /// This class implements an interface for the SOPLEX LP solver.
     41  /// This class implements an interface for the SoPlex LP solver.
     42  /// The SoPlex library is an object oriented lp solver library
     43  /// developed at the Konrad-Zuse-Zentrum für Informationstechnik
     44  /// Berlin (ZIB). You can find detailed information about it at the
     45  /// <tt>http://soplex.zib.de</tt> address.
    4046  class LpSoplex :virtual public LpSolverBase {
    4147  protected:
     
    4753
    4854    std::vector<std::string> colNames;
     55    std::map<std::string, int> invColNames;
    4956
    5057    std::vector<Value> primal_value;
     
    7178    virtual void _eraseCol(int i);
    7279    virtual void _eraseRow(int i);
    73     virtual void _getColName(int col, std::string & name);
     80    virtual void _getColName(int col, std::string & name) const;
    7481    virtual void _setColName(int col, const std::string & name);
     82    virtual int _colByName(const std::string& name) const;
    7583    virtual void _setRowCoeffs(int i, ConstRowIterator b, ConstRowIterator e);
    76     virtual void _getRowCoeffs(int i, RowIterator b);
     84    virtual void _getRowCoeffs(int i, RowIterator b) const;
    7785    virtual void _setColCoeffs(int i, ConstColIterator b, ConstColIterator e);
    78     virtual void _getColCoeffs(int i, ColIterator b);
     86    virtual void _getColCoeffs(int i, ColIterator b) const;
    7987    virtual void _setCoeff(int row, int col, Value value);
    80     virtual Value _getCoeff(int row, int col);
     88    virtual Value _getCoeff(int row, int col) const;
    8189    virtual void _setColLowerBound(int i, Value value);
    82     virtual Value _getColLowerBound(int i);
     90    virtual Value _getColLowerBound(int i) const;
    8391    virtual void _setColUpperBound(int i, Value value);
    84     virtual Value _getColUpperBound(int i);
     92    virtual Value _getColUpperBound(int i) const;
    8593    virtual void _setRowBounds(int i, Value lower, Value upper);
    86     virtual void _getRowBounds(int i, Value &lower, Value &upper);
     94    virtual void _getRowBounds(int i, Value &lower, Value &upper) const;
    8795    virtual void _setObjCoeff(int i, Value obj_coef);
    88     virtual Value _getObjCoeff(int i);
     96    virtual Value _getObjCoeff(int i) const;
    8997    virtual void _clearObj();
    9098   
    9199    virtual SolveExitStatus _solve();
    92     virtual Value _getPrimal(int i);
    93     virtual Value _getDual(int i);
    94     virtual Value _getPrimalValue();
    95     virtual bool _isBasicCol(int i);
     100    virtual Value _getPrimal(int i) const;
     101    virtual Value _getDual(int i) const;
     102    virtual Value _getPrimalValue() const;
     103    virtual bool _isBasicCol(int i) const;
    96104   
    97     virtual SolutionStatus _getPrimalStatus();
    98     virtual SolutionStatus _getDualStatus();
    99     virtual ProblemTypes _getProblemType();
     105    virtual SolutionStatus _getPrimalStatus() const;
     106    virtual SolutionStatus _getDualStatus() const;
     107    virtual ProblemTypes _getProblemType() const;
    100108
    101109   
    102110    virtual void _setMax();
    103111    virtual void _setMin();
    104     virtual bool _isMax();
     112    virtual bool _isMax() const;
    105113
    106114  };
Note: See TracChangeset for help on using the changeset viewer.