18#include "absl/status/statusor.h"
19#include "absl/strings/string_view.h"
21#include "ortools/linear_solver/linear_solver.pb.h"
25#include "ortools/math_opt/model.pb.h"
33 {.show_unused_variables =
true});
36absl::StatusOr<ModelProto>
ReadMpsFile(
const absl::string_view filename) {
37 glop::MPSReader mps_reader;
38 MPModelProto mp_model;
#define ASSIGN_OR_RETURN(lhs, rexpr)
#define RETURN_IF_ERROR(expr)
absl::StatusOr< MPModelProto > MpsDataToMPModelProto(absl::string_view mps_data)
Parses an MPS model from a string.
An object oriented wrapper for quadratic constraints in ModelStorage.
absl::StatusOr< ModelProto > MpsToModelProto(absl::string_view mps_data)
Converts a string with the contents of an MPS file into a ModelProto.
absl::StatusOr<::operations_research::MPModelProto > MathOptModelToMPModelProto(const ::operations_research::math_opt::ModelProto &model)
absl::StatusOr< ModelProto > ReadMpsFile(const absl::string_view filename)
absl::StatusOr< std::string > ModelProtoToMps(const ModelProto &model)
absl::StatusOr<::operations_research::math_opt::ModelProto > MPModelProtoToMathOptModel(const ::operations_research::MPModelProto &model)
absl::StatusOr< std::string > ExportModelAsMpsFormat(const MPModelProto &model, const MPModelExportOptions &options)