Google OR-Tools: ortools/linear_solver/model_exporter.h Source File

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_

15#define ORTOOLS_LINEAR_SOLVER_MODEL_EXPORTER_H_

16

17#include <string>

18

19#include "absl/status/status.h"

20#include "absl/status/statusor.h"

21#include "absl/strings/string_view.h"

23

25

45

70

99

107 absl::string_view filename, const MPModelProto& model,

109

110}

111

112#endif

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

bool obfuscate

Obfuscates variable and constraint names.

Definition model_exporter.h:29