Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
operations_research::glop::ParsedConstraint Struct Reference

#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< Fractionalcoefficients
Fractional lower_bound
Fractional upper_bound

Detailed Description

Represents a constraint parsed from the LP file format (used by LinearProgram::Dump()).

Definition at line 100 of file lp_parser.h.

Member Data Documentation

◆ coefficients

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.

◆ lower_bound

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.

◆ name

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.

◆ upper_bound

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.

◆ variable_names

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.


The documentation for this struct was generated from the following file: