14#ifndef PDLP_QUADRATIC_PROGRAM_IO_H_
15#define PDLP_QUADRATIC_PROGRAM_IO_H_
21#include "absl/container/flat_hash_map.h"
22#include "absl/status/status.h"
23#include "absl/status/statusor.h"
34 bool include_names =
false);
37 bool include_names =
false);
40 const std::string& lp_file,
bool include_names =
false);
45 const std::string& mpmodel_proto_file,
bool include_names =
false);
50 const std::string& mps_file);
52 const QuadraticProgram& quadratic_program,
53 const std::string& mpmodel_proto_file);
Validation utilities for solvers.proto.
QuadraticProgram ReadMPModelProtoFileOrDie(const std::string &mpmodel_proto_file, bool include_names)
QuadraticProgram ReadQuadraticProgramOrDie(const std::string &filename, bool include_names)
absl::Status WriteLinearProgramToMps(const QuadraticProgram &linear_program, const std::string &mps_file)
QuadraticProgram ReadMpsLinearProgramOrDie(const std::string &lp_file, bool include_names)
absl::Status WriteQuadraticProgramToMPModelProto(const QuadraticProgram &quadratic_program, const std::string &mpmodel_proto_file)
absl::StatusOr< QuadraticProgram > ReadMpsLinearProgram(const std::string &lp_file, bool include_names)