Changeset 1264:92ba3e62825d in lemon0.x for src/work/athos/lp/lp_base.h
 Timestamp:
 03/25/05 19:56:07 (19 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1691
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/work/athos/lp/lp_base.h
r1263 r1264 117 117 ///The infinity constant 118 118 static const Value INF; 119 ///The not a number constant 120 static const Value NaN; 119 121 120 122 ///Refer to a column of the LP. … … 168 170 ///Linear expression 169 171 typedef SparseLinExpr<Col> Expr; 172 ///Linear constraint 173 typedef LinConstr<Expr> Constr; 170 174 171 175 protected: … … 319 323 } 320 324 325 ///Set a row (i.e a constaint) of the LP 326 327 ///\param r is the row to be modified 328 ///\param c is a linear expression (see \ref Constr) 329 ///\bug This is a temportary function. The interface will change to 330 ///a better one. 331 void setRow(Row r, const Constr &c) { 332 Value lb= c.lb==NaN?INF:lb; 333 Value ub= c.ub==NaN?INF:lb; 334 setRow(r,lb,c.expr,ub); 335 } 336 321 337 ///Add a new row (i.e a new constaint) to the LP 322 338 … … 333 349 } 334 350 351 ///Add a new row (i.e a new constaint) to the LP 352 353 ///\param c is a linear expression (see \ref Constr) 354 ///\return The created row. 355 ///\bug This is a temportary function. The interface will change to 356 ///a better one. 357 Row addRow(const Constr &c) { 358 Row r=addRow(); 359 setRow(r,c); 360 return r; 361 } 362 335 363 /// Set the lower bound of a column (i.e a variable) 336 364
Note: See TracChangeset
for help on using the changeset viewer.