![]() |
Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
|
#include <lp_parser.h>
Public Attributes | |
std::string | name |
The name of the constraint. Empty if the constraint has no name. | |
std::vector< std::string > | variable_names |
std::vector< Fractional > | coefficients |
Fractional | lower_bound |
Fractional | upper_bound |
Represents a constraint parsed from the LP file format (used by LinearProgram::Dump()).
Definition at line 100 of file lp_parser.h.
std::vector<Fractional> operations_research::glop::ParsedConstraint::coefficients |
Contains the coefficients of the variables used in the constraint. Note that variable_names and coefficients are parallel arrays, i.e. coefficients[i] is the coefficient for variable_names[i].
Definition at line 109 of file lp_parser.h.
Fractional operations_research::glop::ParsedConstraint::lower_bound |
The lower bound of the constraint. Set to -infinity when the constraint has no lower bound.
Definition at line 112 of file lp_parser.h.
std::string operations_research::glop::ParsedConstraint::name |
The name of the constraint. Empty if the constraint has no name.
Definition at line 102 of file lp_parser.h.
Fractional operations_research::glop::ParsedConstraint::upper_bound |
The upper bound of the constraint. Set to +infinity when the constraint has no upper bound.
Definition at line 115 of file lp_parser.h.
std::vector<std::string> operations_research::glop::ParsedConstraint::variable_names |
Contains the names of the variables used in the constraint, in the order in which they appear in the string representation.
Definition at line 105 of file lp_parser.h.