dlinear
0.0.1
Delta-complete SMT solver for linear programming
|
Namespace for the MPS parser of the dlinear library. More...
Classes | |
class | MpsDriver |
The MpsDriver class brings together all components. More... | |
class | MpsScanner |
MpsScanner is a derived class to add some extra function to the scanner class. More... | |
Enumerations | |
enum class | BoundType |
Bound type. More... | |
enum class | Sense { L , E , G , N } |
Sense of a constraint row. More... | |
Functions | |
BoundType | ParseBoundType (const std::string &bound_type) |
Parse a bound type from a string. | |
BoundType | ParseBoundType (const char bound_type[]) |
Parse a bound type from a C-string. | |
Sense | ParseSense (const std::string &sense) |
Parse a sense from a string. | |
Sense | ParseSense (const char sense[]) |
Parse a sense from a C-style string. | |
Sense | ParseSense (char sense) |
Parse a sense from a character. | |
Namespace for the MPS parser of the dlinear library.
The bound type is used to specify the type of a variable bound. It is indicated in the MPS file format. The supported values are 'LO', 'LI', 'UP', 'UI', 'FX', 'FR', 'MI', 'PL', or 'BV'. They represent, respectively, lower bound, lower bound integer, upper bound, upper bound integer, fixed bound (lower and upper bound are equal), free bound (lower and upper bound are -/+ infinity), minus infinity (lower bound is -infinity), plus infinity (upper bound is +infinity), or binary variable (either 0 or 1).
The driver puts in communication the parser and the scanner. In the end, it produces a context that can be used to solve the problem.
The sense indicates the type or relation a contraint row has with respect to its right-hand side. The supported values are 'L', 'E', 'G', or 'N'. They represent, respectively, less than, equal to, greater than, or no constraint, usually applied to the objective function.
|
strong |
Bound type.
The bound type is used to specify the type of a variable bound. The bound type is used in the MPS file format.
Definition at line 27 of file BoundType.h.
|
strong |
BoundType dlinear::mps::ParseBoundType | ( | const char | bound_type[] | ) |
Parse a bound type from a C-string.
The string must be one of the following:
Any leading or trailing spaces are ignored. The input is case-insensitive.
bound_type | C-string representation of the bound type |
Definition at line 17 of file BoundType.cpp.
BoundType dlinear::mps::ParseBoundType | ( | const std::string & | bound_type | ) |
Parse a bound type from a string.
The string must be one of the following:
Any leading or trailing spaces are ignored. The input is case-insensitive.
bound_type | string representation of the bound type |
Definition at line 15 of file BoundType.cpp.
Sense dlinear::mps::ParseSense | ( | char | sense | ) |
Sense dlinear::mps::ParseSense | ( | const char | sense[] | ) |
Sense dlinear::mps::ParseSense | ( | const std::string & | sense | ) |