Changeset 540:9db62975c32b in lemon-1.2 for lemon/lp_base.h
- Timestamp:
- 02/26/09 08:39:16 (16 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_base.h
r514 r540 919 919 920 920 //Abstract virtual functions 921 virtual LpBase* _newSolver() const = 0;922 virtual LpBase* _cloneSolver() const = 0;923 921 924 922 virtual int _addColId(int col) { return cols.addIndex(col); } … … 987 985 /// Virtual destructor 988 986 virtual ~LpBase() {} 989 990 ///Creates a new LP problem991 LpBase* newSolver() {return _newSolver();}992 ///Makes a copy of the LP problem993 LpBase* cloneSolver() {return _cloneSolver();}994 987 995 988 ///Gives back the name of the solver. … … 1822 1815 public: 1823 1816 1817 ///Allocate a new LP problem instance 1818 virtual LpSolver* newSolver() const = 0; 1819 ///Make a copy of the LP problem 1820 virtual LpSolver* cloneSolver() const = 0; 1821 1824 1822 ///\name Solve the LP 1825 1823 … … 1936 1934 ///@} 1937 1935 1938 LpSolver* newSolver() {return _newSolver();}1939 LpSolver* cloneSolver() {return _cloneSolver();}1940 1941 1936 protected: 1942 1937 1943 virtual LpSolver* _newSolver() const = 0;1944 virtual LpSolver* _cloneSolver() const = 0;1945 1938 }; 1946 1939 … … 1976 1969 }; 1977 1970 1971 ///Allocate a new MIP problem instance 1972 virtual MipSolver* newSolver() const = 0; 1973 ///Make a copy of the MIP problem 1974 virtual MipSolver* cloneSolver() const = 0; 1975 1978 1976 ///\name Solve the MIP 1979 1977 … … 2063 2061 virtual Value _getSolValue() const = 0; 2064 2062 2065 public:2066 2067 MipSolver* newSolver() {return _newSolver();}2068 MipSolver* cloneSolver() {return _cloneSolver();}2069 2070 protected:2071 2072 virtual MipSolver* _newSolver() const = 0;2073 virtual MipSolver* _cloneSolver() const = 0;2074 2063 }; 2075 2064
Note: See TracChangeset
for help on using the changeset viewer.