COIN-OR::LEMON - Graph Library

Changeset 1294:2dec219d9ca2 in lemon-0.x for src/work/athos/lp/lp_base.h


Ignore:
Timestamp:
04/03/05 12:20:49 (15 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1727
Message:

Documentation of abstract functions is in lp_solver_skeleton.h

File:
1 edited

Legend:

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

    r1293 r1294  
    362362    _FixId cols;
    363363
    364     /// \e
    365364    virtual int _addCol() = 0;
    366     /// \e
    367365    virtual int _addRow() = 0;
    368     /// \e
    369 
    370     /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
    371     ///
    372366    virtual void _setRowCoeffs(int i,
    373367                               int length,
    374368                               int  const * indices,
    375369                               Value  const * values ) = 0;
    376     /// \e
    377 
    378     /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
    379     ///
    380370    virtual void _setColCoeffs(int i,
    381371                               int length,
    382372                               int  const * indices,
    383373                               Value  const * values ) = 0;
    384    
    385     /// \e
    386 
    387     /// The lower bound of a variable (column) have to be given by an
    388     /// extended number of type Value, i.e. a finite number of type
    389     /// Value or -\ref INF.
    390374    virtual void _setColLowerBound(int i, Value value) = 0;
    391     /// \e
    392 
    393     /// The upper bound of a variable (column) have to be given by an
    394     /// extended number of type Value, i.e. a finite number of type
    395     /// Value or \ref INF.
    396375    virtual void _setColUpperBound(int i, Value value) = 0;
    397     /// \e
    398 
    399     /// The lower bound of a linear expression (row) have to be given by an
    400     /// extended number of type Value, i.e. a finite number of type
    401     /// Value or -\ref INF.
    402376    virtual void _setRowLowerBound(int i, Value value) = 0;
    403     /// \e
    404 
    405     /// The upper bound of a linear expression (row) have to be given by an
    406     /// extended number of type Value, i.e. a finite number of type
    407     /// Value or \ref INF.
    408377    virtual void _setRowUpperBound(int i, Value value) = 0;
    409 
    410     /// \e
    411378    virtual void _setObjCoeff(int i, Value obj_coef) = 0;
    412 
    413     ///\e
    414    
    415     ///\bug Wrong interface
    416     ///
    417379    virtual SolutionStatus _solve() = 0;
    418 
    419     ///\e
    420 
    421     ///\bug Wrong interface
    422     ///
    423380    virtual Value _getPrimal(int i) = 0;
    424     ///\e
    425 
    426     ///\bug unimplemented!!!!
     381    virtual SolutionType _getPrimalType() = 0;
     382
     383
    427384    void clearObj() {}
    428385  public:
     
    432389    virtual ~LpSolverBase() {}
    433390
    434     ///\name Building up and modification of the LP
     391    ///\name Build up and modify of the LP
    435392
    436393    ///@{
     
    439396    Col addCol() { Col c; c.id=cols.insert(_addCol()); return c;}
    440397
    441     ///\brief Fill the elements of a container with newly created columns
    442     ///(i.e a new variables)
     398    ///\brief Adds several new columns
     399    ///(i.e a variables) at once
    443400    ///
    444401    ///This magic function takes a container as its argument
     
    639596
    640597
    641     ///\name Solving the LP
     598    ///\name Solve the LP
    642599
    643600    ///@{
     
    648605    ///@}
    649606   
    650     ///\name Obtaining the solution LP
     607    ///\name Obtain the solution
    651608
    652609    ///@{
     610
     611    ///\e
     612    SolutionType primalType() {
     613      return _getPrimalType();
     614    }
    653615
    654616    ///\e
Note: See TracChangeset for help on using the changeset viewer.