src/work/athos/lp/lp_base.h
changeset 1246 925002e098e7
child 1247 60708e1475ae
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/work/athos/lp/lp_base.h	Wed Mar 23 10:35:36 2005 +0000
     1.3 @@ -0,0 +1,32 @@
     1.4 +// -*- c++ -*-
     1.5 +#ifndef LEMON_LP_BASE_H
     1.6 +#define LEMON_LP_BASE_H
     1.7 +
     1.8 +///\file
     1.9 +///\brief The interface of the LP solver interface.
    1.10 +namespace lemon {
    1.11 +  class LpSolverBase {
    1.12 +  protected:
    1.13 +
    1.14 +    //MATRIX MANIPULATING FUNCTIONS
    1.15 +
    1.16 +    /// \e
    1.17 +    virtual int _addCol() = 0;
    1.18 +    /// \e
    1.19 +    virtual int _addRow() = 0;
    1.20 +    /// \e
    1.21 +    /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
    1.22 +    virtual void _setRowCoeffs(int i, 
    1.23 +                               int  * &indices, 
    1.24 +                               double  * &doubles ) = 0;
    1.25 +    /// \e
    1.26 +    /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
    1.27 +    virtual void _setColCoeffs(int i, 
    1.28 +                               int  * &indices, 
    1.29 +                               double  * &doubles ) = 0;
    1.30 +    
    1.31 +  }  
    1.32 +
    1.33 +} //namespace lemon
    1.34 +
    1.35 +#endif //LEMON_LP_BASE_H