C++ Reference
C++ Reference: Linear solver
model_exporter.h
absl::StatusOr< std::string > ExportModelAsMpsFormat(const MPModelProto &model, const MPModelExportOptions &options=MPModelExportOptions())
Outputs the current model (variables, constraints, objective) as a string encoded in MPS file format,...
Definition: linear_expr.h:84
absl::StatusOr< std::string > ExportModelAsLpFormat(const MPModelProto &model, const MPModelExportOptions &options=MPModelExportOptions())
Outputs the current model (variables, constraints, objective) as a string encoded in the so-called "C...
bool log_invalid_names
Whether to log invalid variable and constraint names.
Definition: model_exporter.h:35
MPModelExportOptions()
Definition: model_exporter.h:30