Changeset 1259:11a09f1319b3 in lemon0.x for src/work/athos/lp/lp_base.h
 Timestamp:
 03/25/05 13:58:52 (18 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@1686
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

src/work/athos/lp/lp_base.h
r1258 r1259 121 121 friend class LpSolverBase; 122 122 public: 123 typedef Value ExprValue; 123 124 typedef True LpSolverCol; 124 125 Col() {} … … 143 144 friend class LpSolverBase; 144 145 public: 146 typedef Value ExprValue; 145 147 typedef True LpSolverRow; 146 148 Row() {} … … 151 153 bool operator!=(Row c) const {return id==c.id;} 152 154 }; 153 154 typedef SparseLinExpr<Col, Value> Expr; 155 156 ///Linear expression 157 typedef SparseLinExpr<Col> Expr; 155 158 156 159 protected: … … 185 188 /// The lower bound of a variable (column) have to be given by an 186 189 /// extended number of type Value, i.e. a finite number of type 187 /// Value or  INF.190 /// Value or \ref INF. 188 191 virtual void _setColLowerBound(int i, Value value) = 0; 189 192 /// \e … … 191 194 /// The upper bound of a variable (column) have to be given by an 192 195 /// extended number of type Value, i.e. a finite number of type 193 /// Value or INF.196 /// Value or \ref INF. 194 197 virtual void _setColUpperBound(int i, Value value) = 0; 195 198 /// \e … … 197 200 /// The lower bound of a linear expression (row) have to be given by an 198 201 /// extended number of type Value, i.e. a finite number of type 199 /// Value or  INF.202 /// Value or \ref INF. 200 203 virtual void _setRowLowerBound(int i, Value value) = 0; 201 204 /// \e … … 203 206 /// The upper bound of a linear expression (row) have to be given by an 204 207 /// extended number of type Value, i.e. a finite number of type 205 /// Value or INF.208 /// Value or \ref INF. 206 209 virtual void _setRowUpperBound(int i, Value value) = 0; 207 210 … … 268 271 269 272 ///\param r is the row to be modified 270 ///\param l is lower bound ( INF means no bound)273 ///\param l is lower bound (\ref INF means no bound) 271 274 ///\param e is a linear expression (see \ref Expr) 272 ///\param u is the upper bound ( INF means no bound)275 ///\param u is the upper bound (\ref INF means no bound) 273 276 ///\bug This is a temportary function. The interface will change to 274 277 ///a better one. … … 291 294 ///Add a new row (i.e a new constaint) to the LP 292 295 293 ///\param l is the lower bound ( INF means no bound)296 ///\param l is the lower bound (\ref INF means no bound) 294 297 ///\param e is a linear expression (see \ref Expr) 295 ///\param u is the upper bound ( INF means no bound)298 ///\param u is the upper bound (\ref INF means no bound) 296 299 ///\return The created row. 297 300 ///\bug This is a temportary function. The interface will change to … … 307 310 /// The upper bound of a variable (column) have to be given by an 308 311 /// extended number of type Value, i.e. a finite number of type 309 /// Value or  INF.312 /// Value or \ref INF. 310 313 virtual void setColLowerBound(Col c, Value value) { 311 314 _setColLowerBound(cols.floatingId(c.id),value); … … 315 318 /// The upper bound of a variable (column) have to be given by an 316 319 /// extended number of type Value, i.e. a finite number of type 317 /// Value or INF.320 /// Value or \ref INF. 318 321 virtual void setColUpperBound(Col c, Value value) { 319 322 _setColUpperBound(cols.floatingId(c.id),value); … … 323 326 /// The lower bound of a linear expression (row) have to be given by an 324 327 /// extended number of type Value, i.e. a finite number of type 325 /// Value or  INF.328 /// Value or \ref INF. 326 329 virtual void setRowLowerBound(Row r, Value value) { 327 330 _setRowLowerBound(rows.floatingId(r.id),value); … … 331 334 /// The upper bound of a linear expression (row) have to be given by an 332 335 /// extended number of type Value, i.e. a finite number of type 333 /// Value or INF.336 /// Value or \ref INF. 334 337 virtual void setRowUpperBound(Row r, Value value) { 335 338 _setRowUpperBound(rows.floatingId(r.id),value);
Note: See TracChangeset
for help on using the changeset viewer.