cplexlpcompare
Compares two LP files created in cplex format and dumps differences to files.
|
Represents a constraint composed of terms, a sign and a right-hand side. More...
#include <Constraint.h>
Public Member Functions | |
bool | operator== (const Constraint &other) const |
Compares two Constraint instances for equality. More... | |
bool | operator!= (const Constraint &other) const |
Compares two Constraint instances for equality. More... | |
bool | operator< (const Constraint &other) const |
Compares two Constraint instances. More... | |
Static Public Member Functions | |
static Constraint * | Parse (std::string &line) |
Parses a line of the LP file representing a Constraint. More... | |
static void | dump (const Constraint &cons, std::ostream &out) |
Dumps a Constraint instance to an ostream in a text format. More... | |
Public Attributes | |
std::string | Name |
Friends | |
std::ostream & | operator<< (std::ostream &output, const Constraint &cons) |
Represents a constraint composed of terms, a sign and a right-hand side.
Definition at line 52 of file Constraint.h.
|
static |
Dumps a Constraint instance to an ostream in a text format.
cons | Constraint to dump. |
out |
Definition at line 294 of file Constraint.cpp.
bool lpcompare::Constraint::operator!= | ( | const Constraint & | other | ) | const |
Compares two Constraint instances for equality.
other | Other instance to compare self to. |
Definition at line 234 of file Constraint.cpp.
bool lpcompare::Constraint::operator< | ( | const Constraint & | other | ) | const |
Compares two Constraint instances.
other | Other instance to compare self to. |
Definition at line 262 of file Constraint.cpp.
bool lpcompare::Constraint::operator== | ( | const Constraint & | other | ) | const |
Compares two Constraint instances for equality.
other | Other instance to compare self to. |
Definition at line 220 of file Constraint.cpp.
|
static |
Parses a line of the LP file representing a Constraint.
line | Single line of an LP file. |
Definition at line 136 of file Constraint.cpp.
|
friend |
Definition at line 65 of file Constraint.h.
std::string lpcompare::Constraint::Name |
Definition at line 57 of file Constraint.h.