lemon/lp_base.h
changeset 1905 b0b3fa857d72
parent 1899 2d4835f5a86a
child 1908 e225719bde6b
equal deleted inserted replaced
23:37aa346b1b06 24:857e83c9f7d0
   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