COIN-OR::LEMON - Graph Library

Changeset 1259:11a09f1319b3 in lemon-0.x for src/work/athos/lp/lp_base.h


Ignore:
Timestamp:
03/25/05 13:58:52 (20 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1686
Message:
  • Largely extended linear expressions
  • Better docs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/work/athos/lp/lp_base.h

    r1258 r1259  
    121121      friend class LpSolverBase;
    122122    public:
     123      typedef Value ExprValue;
    123124      typedef True LpSolverCol;
    124125      Col() {}
     
    143144      friend class LpSolverBase;
    144145    public:
     146      typedef Value ExprValue;
    145147      typedef True LpSolverRow;
    146148      Row() {}
     
    151153      bool operator!=(Row c) const  {return id==c.id;}
    152154   };
    153 
    154     typedef SparseLinExpr<Col, Value> Expr;
     155   
     156    ///Linear expression
     157    typedef SparseLinExpr<Col> Expr;
    155158
    156159  protected:
     
    185188    /// The lower bound of a variable (column) have to be given by an
    186189    /// extended number of type Value, i.e. a finite number of type
    187     /// Value or -INF.
     190    /// Value or -\ref INF.
    188191    virtual void _setColLowerBound(int i, Value value) = 0;
    189192    /// \e
     
    191194    /// The upper bound of a variable (column) have to be given by an
    192195    /// extended number of type Value, i.e. a finite number of type
    193     /// Value or INF.
     196    /// Value or \ref INF.
    194197    virtual void _setColUpperBound(int i, Value value) = 0;
    195198    /// \e
     
    197200    /// The lower bound of a linear expression (row) have to be given by an
    198201    /// extended number of type Value, i.e. a finite number of type
    199     /// Value or -INF.
     202    /// Value or -\ref INF.
    200203    virtual void _setRowLowerBound(int i, Value value) = 0;
    201204    /// \e
     
    203206    /// The upper bound of a linear expression (row) have to be given by an
    204207    /// extended number of type Value, i.e. a finite number of type
    205     /// Value or INF.
     208    /// Value or \ref INF.
    206209    virtual void _setRowUpperBound(int i, Value value) = 0;
    207210
     
    268271
    269272    ///\param r is the row to be modified
    270     ///\param l is lower bound (-INF means no bound)
     273    ///\param l is lower bound (-\ref INF means no bound)
    271274    ///\param e is a linear expression (see \ref Expr)
    272     ///\param u is the upper bound (INF means no bound)
     275    ///\param u is the upper bound (\ref INF means no bound)
    273276    ///\bug This is a temportary function. The interface will change to
    274277    ///a better one.
     
    291294    ///Add a new row (i.e a new constaint) to the LP
    292295
    293     ///\param l is the lower bound (-INF means no bound)
     296    ///\param l is the lower bound (-\ref INF means no bound)
    294297    ///\param e is a linear expression (see \ref Expr)
    295     ///\param u is the upper bound (INF means no bound)
     298    ///\param u is the upper bound (\ref INF means no bound)
    296299    ///\return The created row.
    297300    ///\bug This is a temportary function. The interface will change to
     
    307310    /// The upper bound of a variable (column) have to be given by an
    308311    /// extended number of type Value, i.e. a finite number of type
    309     /// Value or -INF.
     312    /// Value or -\ref INF.
    310313    virtual void setColLowerBound(Col c, Value value) {
    311314      _setColLowerBound(cols.floatingId(c.id),value);
     
    315318    /// The upper bound of a variable (column) have to be given by an
    316319    /// extended number of type Value, i.e. a finite number of type
    317     /// Value or INF.
     320    /// Value or \ref INF.
    318321    virtual void setColUpperBound(Col c, Value value) {
    319322      _setColUpperBound(cols.floatingId(c.id),value);
     
    323326    /// The lower bound of a linear expression (row) have to be given by an
    324327    /// extended number of type Value, i.e. a finite number of type
    325     /// Value or -INF.
     328    /// Value or -\ref INF.
    326329    virtual void setRowLowerBound(Row r, Value value) {
    327330      _setRowLowerBound(rows.floatingId(r.id),value);
     
    331334    /// The upper bound of a linear expression (row) have to be given by an
    332335    /// extended number of type Value, i.e. a finite number of type
    333     /// Value or INF.
     336    /// Value or \ref INF.
    334337    virtual void setRowUpperBound(Row r, Value value) {
    335338      _setRowUpperBound(rows.floatingId(r.id),value);
Note: See TracChangeset for help on using the changeset viewer.