COIN-OR::LEMON - Graph Library

Changeset 1377:bfbb5b30c5b8 in lemon-0.x for src/lemon/lp_base.h


Ignore:
Timestamp:
04/20/05 17:06:42 (15 years ago)
Author:
athos
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1822
Message:

_clearObj instead of _setObj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/lp_base.h

    r1376 r1377  
    435435    virtual void _setRowUpperBound(int i, Value value) = 0;
    436436    virtual void _setObjCoeff(int i, Value obj_coef) = 0;
    437     virtual void _setObj(int length,
    438                          int  const * indices,
    439                          Value  const * values ) = 0;
     437    virtual void _clearObj()=0;
     438//     virtual void _setObj(int length,
     439//                          int  const * indices,
     440//                          Value  const * values ) = 0;
    440441    virtual SolveExitStatus _solve() = 0;
    441442    virtual Value _getPrimal(int i) = 0;
     
    450451    Value obj_const_comp;
    451452   
    452     ///\e
    453    
    454     ///\bug Unimplemented
    455     void clearObj() {}
     453
     454
    456455   
    457456  public:
     
    668667    ///\bug The previous objective function is not cleared!
    669668    void setObj(Expr e) {
    670       clearObj();
     669      _clearObj();
    671670      for (Expr::iterator i=e.begin(); i!=e.end(); ++i)
    672671        objCoeff((*i).first,(*i).second);
Note: See TracChangeset for help on using the changeset viewer.