Changeset 2324:18fc834761d9 in lemon0.x for lemon/lp_base.h
 Timestamp:
 12/04/06 17:48:13 (14 years ago)
 Branch:
 default
 Phase:
 public
 Convert:
 svn:c9d7d8f590d60310b91f818b3a526b0e/lemon/trunk@3100
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

lemon/lp_base.h
r2312 r2324 704 704 virtual void _setColCoeffs(int i, LpColIterator b, LpColIterator e) = 0; 705 705 virtual void _setCoeff(int row, int col, Value value) = 0; 706 virtual Value _getCoeff(int row, int col) = 0; 707 706 708 virtual void _setColLowerBound(int i, Value value) = 0; 707 709 virtual void _setColUpperBound(int i, Value value) = 0; … … 710 712 virtual void _setRowBounds(int i, Value lower, Value upper) = 0; 711 713 virtual void _setObjCoeff(int i, Value obj_coef) = 0; 714 virtual Value _getObjCoeff(int i) = 0; 712 715 virtual void _clearObj()=0; 713 716 … … 726 729 virtual void _setMin() = 0; 727 730 731 732 virtual bool _isMax() = 0; 733 728 734 //Own protected stuff 729 735 … … 1001 1007 } 1002 1008 1009 /// Get an element of the coefficient matrix of the LP 1010 1011 ///\param r is the row of the element in question 1012 ///\param c is the coloumn of the element in question 1013 ///\return the corresponding coefficient 1014 1015 Value coeff(Row r, Col c){ 1016 return _getCoeff(_lpId(r),_lpId(c)); 1017 } 1018 1003 1019 /// Set the lower bound of a column (i.e a variable) 1004 1020 … … 1172 1188 ///Set an element of the objective function 1173 1189 void objCoeff(Col c, Value v) {_setObjCoeff(_lpId(c),v); }; 1190 1191 ///Get an element of the objective function 1192 Value objCoeff(Col c) {return _getObjCoeff(_lpId(c)); }; 1193 1174 1194 ///Set the objective function 1175 1195 1176 1196 ///\param e is a linear expression of type \ref Expr. 1177 1197 ///\bug Is should be called obj() … … 1188 1208 void min() { _setMin(); } 1189 1209 1210 ///Query function: is this a maximization problem? 1211 bool is_max() {return _isMax(); } 1212 1213 ///Query function: is this a minimization problem? 1214 bool is_min() {return !is_max(); } 1190 1215 1191 1216 ///@}
Note: See TracChangeset
for help on using the changeset viewer.