Changeset 2218:50f1a780a5ff in lemon-0.x for lemon/lp_base.h
- Timestamp:
- 09/21/06 16:46:28 (18 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2952
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_base.h
r2185 r2218 76 76 return cross[n]; 77 77 } 78 ///\todo Create an own exception type. 79 else throw LogicError(); //floatingId-s must form a continuous range; 78 else { 79 ///\todo Create an own exception type. 80 throw LogicError(); //floatingId-s must form a continuous range; 81 } 80 82 } 81 83 ///Remove a fix id. … … 1170 1172 REAL = 0, 1171 1173 ///Integer variable 1172 INTEGER = 1 1174 1175 ///Unfortunately, cplex 7.5 somewhere writes something like 1176 ///#define INTEGER 'I' 1177 LEMON_INTEGER = 1 1173 1178 ///\todo No support for other types yet. 1174 1179 }; … … 1193 1198 void integer(Col c, bool enable) { 1194 1199 if (enable) 1195 colType(c, INTEGER);1200 colType(c,LEMON_INTEGER); 1196 1201 else 1197 1202 colType(c,REAL); … … 1203 1208 ///\return true if the column has integer type and false if not. 1204 1209 bool integer(Col c){ 1205 return (colType(c)== INTEGER);1210 return (colType(c)==LEMON_INTEGER); 1206 1211 } 1207 1212
Note: See TracChangeset
for help on using the changeset viewer.