74#ifndef OR_TOOLS_LP_DATA_LP_PARSER_H_
75#define OR_TOOLS_LP_DATA_LP_PARSER_H_
80#include "absl/base/attributes.h"
81#include "absl/base/port.h"
82#include "absl/status/statusor.h"
83#include "absl/strings/string_view.h"
121absl::StatusOr<ParsedConstraint>
ParseConstraint(absl::string_view constraint);
bool ParseLp(absl::string_view model, LinearProgram *lp)
Like ModelProtoFromLpFormat(), but outputs a glop::LinearProgram.
StatusOr< ParsedConstraint > ParseConstraint(absl::string_view constraint)
In SWIG mode, we don't want anything besides these top-level includes.
absl::StatusOr< MPModelProto > ModelProtoFromLpFormat(absl::string_view model)
This calls ParseLp() under the hood. See below.
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