Changeset 2144:cd8897f67c26 in lemon-0.x for lemon/lp_base.h
- Timestamp:
- 07/17/06 11:00:21 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2858
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_base.h
r2085 r2144 176 176 int id; 177 177 friend class LpSolverBase; 178 friend class MipSolverBase; 178 179 public: 179 180 typedef Value ExprValue; … … 1157 1158 }; 1158 1159 1159 ///\e 1160 1161 ///Common base class for ILP solvers 1162 ///\todo Much more docs 1163 ///\ingroup gen_opt_group 1164 class MipSolverBase : virtual public LpSolverBase{ 1165 public: 1166 1167 ///Set the type of the given Col to integer or remove that property. 1168 /// 1169 ///Set the type of the given Col to integer or remove that property. 1170 void integer(Col c, bool enable) { 1171 _integer(cols.floatingId(c.id),enable); 1172 } 1173 1174 ///Gives back the type of the column. 1175 /// 1176 ///Gives back the type of the column. 1177 ///\return true if the column has integer type and false if not. 1178 bool integer(Col c){ 1179 return _integer(cols.floatingId(c.id)); 1180 } 1181 1182 protected: 1183 1184 virtual bool _integer(int col) = 0; 1185 virtual void _integer(int col, bool enable) = 0; 1186 }; 1160 1187 1161 1188 ///\relates LpSolverBase::Expr
Note: See TracChangeset
for help on using the changeset viewer.