Changeset 2386:81b47fc5c444 in lemon-0.x for lemon/lp_base.h
- Timestamp:
- 03/02/07 19:04:28 (17 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3217
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lemon/lp_base.h
r2370 r2386 200 200 protected: 201 201 202 int _lpId(const Col& c ol) const {203 return cols.floatingId(id(c ol));204 } 205 206 int _lpId(const Row& r ow) const {207 return rows.floatingId(id(r ow));208 } 209 210 Col _item(int i d, Col) const {211 return Col(cols.fixId(i d));212 } 213 214 Row _item(int i d, Row) const {215 return Row(rows.fixId(i d));202 int _lpId(const Col& c) const { 203 return cols.floatingId(id(c)); 204 } 205 206 int _lpId(const Row& r) const { 207 return rows.floatingId(id(r)); 208 } 209 210 Col _item(int i, Col) const { 211 return Col(cols.fixId(i)); 212 } 213 214 Row _item(int i, Row) const { 215 return Row(rows.fixId(i)); 216 216 } 217 217 … … 892 892 ///function. It is 0 by default. 893 893 ///\return The created column. 894 Col addCol(const DualExpr &e, Value o bj=0) {894 Col addCol(const DualExpr &e, Value o = 0) { 895 895 Col c=addCol(); 896 896 col(c,e); 897 objCoeff(c,o bj);897 objCoeff(c,o); 898 898 return c; 899 899 }
Note: See TracChangeset
for help on using the changeset viewer.