COIN-OR::LEMON - Graph Library

Changeset 816:e746fb14e680 in lemon for lemon/hartmann_orlin.h


Ignore:
Timestamp:
08/18/09 10:08:28 (15 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Add tolerance() functions for MMC classes (#179)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/hartmann_orlin.h

    r815 r816  
    281281      _cycle_path = &path;
    282282      return *this;
     283    }
     284
     285    /// \brief Set the tolerance used by the algorithm.
     286    ///
     287    /// This function sets the tolerance object used by the algorithm.
     288    ///
     289    /// \return <tt>(*this)</tt>
     290    HartmannOrlin& tolerance(const Tolerance& tolerance) {
     291      _tolerance = tolerance;
     292      return *this;
     293    }
     294
     295    /// \brief Return a const reference to the tolerance.
     296    ///
     297    /// This function returns a const reference to the tolerance object
     298    /// used by the algorithm.
     299    const Tolerance& tolerance() const {
     300      return _tolerance;
    283301    }
    284302
Note: See TracChangeset for help on using the changeset viewer.