equal
deleted
inserted
replaced
174 public: |
174 public: |
175 typedef Value ExprValue; |
175 typedef Value ExprValue; |
176 typedef True LpSolverCol; |
176 typedef True LpSolverCol; |
177 Col() {} |
177 Col() {} |
178 Col(const Invalid&) : id(-1) {} |
178 Col(const Invalid&) : id(-1) {} |
179 bool operator<(Col c) const {return id<c.id;} |
179 bool operator< (Col c) const {return id< c.id;} |
|
180 bool operator> (Col c) const {return id> c.id;} |
180 bool operator==(Col c) const {return id==c.id;} |
181 bool operator==(Col c) const {return id==c.id;} |
181 bool operator!=(Col c) const {return id==c.id;} |
182 bool operator!=(Col c) const {return id!=c.id;} |
182 }; |
183 }; |
183 |
184 |
184 ///Refer to a row of the LP. |
185 ///Refer to a row of the LP. |
185 |
186 |
186 ///This type is used to refer to a row of the LP. |
187 ///This type is used to refer to a row of the LP. |
198 typedef Value ExprValue; |
199 typedef Value ExprValue; |
199 typedef True LpSolverRow; |
200 typedef True LpSolverRow; |
200 Row() {} |
201 Row() {} |
201 Row(const Invalid&) : id(-1) {} |
202 Row(const Invalid&) : id(-1) {} |
202 |
203 |
203 bool operator<(Row c) const {return id<c.id;} |
204 bool operator< (Row c) const {return id< c.id;} |
|
205 bool operator> (Row c) const {return id> c.id;} |
204 bool operator==(Row c) const {return id==c.id;} |
206 bool operator==(Row c) const {return id==c.id;} |
205 bool operator!=(Row c) const {return id==c.id;} |
207 bool operator!=(Row c) const {return id!=c.id;} |
206 }; |
208 }; |
207 |
209 |
208 ///Linear expression of variables and a constant component |
210 ///Linear expression of variables and a constant component |
209 |
211 |
210 ///This data structure strores a linear expression of the variables |
212 ///This data structure strores a linear expression of the variables |