Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
file_format_flags.cc File Reference
#include "ortools/math_opt/tools/file_format_flags.h"
#include <optional>
#include <ostream>
#include <string>
#include <utility>
#include <vector>
#include "absl/algorithm/container.h"
#include "absl/container/flat_hash_map.h"
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/match.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_join.h"
#include "absl/strings/string_view.h"
#include "absl/types/span.h"
#include "ortools/base/helpers.h"
#include "ortools/base/logging.h"
#include "ortools/base/options.h"
#include "ortools/base/status_macros.h"
#include "ortools/linear_solver/linear_solver.pb.h"
#include "ortools/math_opt/io/lp_converter.h"
#include "ortools/math_opt/io/lp_parser.h"
#include "ortools/math_opt/io/mps_converter.h"
#include "ortools/math_opt/io/proto_converter.h"
#include "ortools/math_opt/model.pb.h"
#include "ortools/math_opt/model_parameters.pb.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 
namespace  operations_research::math_opt
 An object oriented wrapper for quadratic constraints in ModelStorage.
 

Functions

absl::Span< const FileFormatoperations_research::math_opt::AllFileFormats ()
 
std::string operations_research::math_opt::AbslUnparseFlag (const FileFormat f)
 
std::ostream & operations_research::math_opt::operator<< (std::ostream &out, const FileFormat f)
 
bool operations_research::math_opt::AbslParseFlag (const absl::string_view text, FileFormat *const f, std::string *const error)
 
absl::flat_hash_map< absl::string_view, FileFormatoperations_research::math_opt::ExtensionToFileFormat ()
 
std::optional< FileFormatoperations_research::math_opt::FormatFromFilePath (absl::string_view file_path)
 
std::optional< FileFormatoperations_research::math_opt::FormatFromFlagOrFilePath (const std::optional< FileFormat > format_flag_value, const absl::string_view file_path)
 
std::string operations_research::math_opt::OptionalFormatFlagPossibleValuesList ()
 
std::string operations_research::math_opt::FormatFlagPossibleValuesList ()
 
absl::StatusOr< std::pair< ModelProto, std::optional< SolutionHintProto > > > operations_research::math_opt::ReadModel (const absl::string_view file_path, const FileFormat format)
 
absl::Status operations_research::math_opt::WriteModel (const absl::string_view file_path, const ModelProto &model_proto, const std::optional< SolutionHintProto > &hint_proto, const FileFormat format)