74#ifndef OR_TOOLS_LP_DATA_LP_PARSER_H_
75#define OR_TOOLS_LP_DATA_LP_PARSER_H_
77#if defined(USE_LP_PARSER)
82#include "absl/base/attributes.h"
83#include "absl/base/port.h"
84#include "absl/status/statusor.h"
85#include "absl/strings/string_view.h"
86#include "ortools/linear_solver/linear_solver.pb.h"
93absl::StatusOr<MPModelProto> ModelProtoFromLpFormat(absl::string_view
model);
98ABSL_MUST_USE_RESULT
bool ParseLp(absl::string_view
model, LinearProgram* lp);
102struct ParsedConstraint {
107 std::vector<std::string> variable_names;
123absl::StatusOr<ParsedConstraint> ParseConstraint(absl::string_view constraint);
const std::string name
A name for logging purposes.
absl::Span< const double > coefficients
In SWIG mode, we don't want anything besides these top-level includes.