src/lemon/lp_base.h
changeset 1377 bfbb5b30c5b8
parent 1376 8de0c1aeeb32
child 1379 96a34c0904dd
     1.1 --- a/src/lemon/lp_base.h	Wed Apr 20 14:29:23 2005 +0000
     1.2 +++ b/src/lemon/lp_base.h	Wed Apr 20 15:06:42 2005 +0000
     1.3 @@ -434,9 +434,10 @@
     1.4      virtual void _setRowLowerBound(int i, Value value) = 0;
     1.5      virtual void _setRowUpperBound(int i, Value value) = 0;
     1.6      virtual void _setObjCoeff(int i, Value obj_coef) = 0;
     1.7 -    virtual void _setObj(int length,
     1.8 -                         int  const * indices, 
     1.9 -                         Value  const * values ) = 0;
    1.10 +    virtual void _clearObj()=0;
    1.11 +//     virtual void _setObj(int length,
    1.12 +//                          int  const * indices, 
    1.13 +//                          Value  const * values ) = 0;
    1.14      virtual SolveExitStatus _solve() = 0;
    1.15      virtual Value _getPrimal(int i) = 0;
    1.16      virtual Value _getPrimalValue() = 0;
    1.17 @@ -449,10 +450,8 @@
    1.18      //Constant component of the objective function
    1.19      Value obj_const_comp;
    1.20      
    1.21 -    ///\e
    1.22 -    
    1.23 -    ///\bug Unimplemented
    1.24 -    void clearObj() {}
    1.25 +
    1.26 +
    1.27      
    1.28    public:
    1.29  
    1.30 @@ -667,7 +666,7 @@
    1.31      ///\param e is a linear expression of type \ref Expr.
    1.32      ///\bug The previous objective function is not cleared!
    1.33      void setObj(Expr e) {
    1.34 -      clearObj();
    1.35 +      _clearObj();
    1.36        for (Expr::iterator i=e.begin(); i!=e.end(); ++i)
    1.37  	objCoeff((*i).first,(*i).second);
    1.38        obj_const_comp=e.constComp();