Google OR-Tools: ortools/linear_solver/model_exporter.h Source File
Go to the documentation of this file.
14#ifndef ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_
15#define ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_
19#include "absl/status/status.h"
20#include "absl/status/statusor.h"
21#include "absl/strings/string_view.h"
107 absl::string_view filename, const MPModelProto& model,
absl::Status WriteModelToMpsFile(absl::string_view filename, const MPModelProto &model, const MPModelExportOptions &options)
absl::StatusOr< std::string > ExportModelAsLpFormat(const MPModelProto &model, const MPModelExportOptions &options)
absl::StatusOr< std::string > ExportModelAsMpsFormat(const MPModelProto &model, const MPModelExportOptions &options)
Export options.
Definition model_exporter.h:27
bool show_unused_variables
Definition model_exporter.h:37
bool log_invalid_names
Whether to log invalid variable and constraint names.
Definition model_exporter.h:31
int max_line_length
Definition model_exporter.h:43