33#ifndef OR_TOOLS_MATH_OPT_TOOLS_FILE_FORMAT_FLAGS_H_
34#define OR_TOOLS_MATH_OPT_TOOLS_FILE_FORMAT_FLAGS_H_
41#include "absl/container/flat_hash_map.h"
42#include "absl/status/status.h"
43#include "absl/status/statusor.h"
44#include "absl/strings/string_view.h"
45#include "absl/types/span.h"
46#include "ortools/math_opt/model.pb.h"
47#include "ortools/math_opt/model_parameters.pb.h"
145 std::optional<FileFormat> format_flag_value, absl::string_view file_path);
149absl::StatusOr<std::pair<ModelProto, std::optional<SolutionHintProto>>>
158 const ModelProto& model_proto,
159 const std::optional<SolutionHintProto>& hint_proto,
An object oriented wrapper for quadratic constraints in ModelStorage.
std::optional< FileFormat > FormatFromFlagOrFilePath(const std::optional< FileFormat > format_flag_value, const absl::string_view file_path)
bool AbslParseFlag(const absl::string_view text, SolverType *const value, std::string *const error)
absl::flat_hash_map< absl::string_view, FileFormat > ExtensionToFileFormat()
std::ostream & operator<<(std::ostream &ostr, const IndicatorConstraint &constraint)
std::string OptionalFormatFlagPossibleValuesList()
absl::Status WriteModel(const absl::string_view file_path, const ModelProto &model_proto, const std::optional< SolutionHintProto > &hint_proto, const FileFormat format)
absl::StatusOr< std::pair< ModelProto, std::optional< SolutionHintProto > > > ReadModel(const absl::string_view file_path, const FileFormat format)
std::optional< FileFormat > FormatFromFilePath(absl::string_view file_path)
std::string AbslUnparseFlag(const SolverType value)
absl::Span< const FileFormat > AllFileFormats()
std::string FormatFlagPossibleValuesList()