#include <cstdio>
#include <string>
#include "absl/log/check.h"
#include "absl/strings/match.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/io/zero_copy_stream_impl_lite.h"
#include "google/protobuf/message.h"
#include "google/protobuf/text_format.h"
#include "ortools/base/commandlineflags.h"
#include "ortools/base/file.h"
#include "ortools/base/helpers.h"
#include "ortools/base/init_google.h"
#include "ortools/linear_solver/linear_solver.pb.h"
#include "ortools/linear_solver/model_exporter.h"
#include "ortools/util/file_util.h"
Go to the source code of this file.
|
| | ABSL_FLAG (std::string, input, "", "REQUIRED: Input file name") |
| | ABSL_FLAG (std::string, output, "", "REQUIRED: Output file name") |
| | ABSL_FLAG (bool, input_is_mp_model_request, false, "Whether the input is a MPModelRequest proto.") |
| | ABSL_FLAG (bool, obfuscate, false, "Whether variable and constaint names should be obfuscated.") |
| int | main (int argc, char **argv) |
◆ ABSL_FLAG() [1/4]
| ABSL_FLAG |
( |
bool | , |
|
|
input_is_mp_model_request | , |
|
|
false | , |
|
|
"Whether the input is a MPModelRequest proto." | ) |
◆ ABSL_FLAG() [2/4]
| ABSL_FLAG |
( |
bool | , |
|
|
obfuscate | , |
|
|
false | , |
|
|
"Whether variable and constaint names should be obfuscated." | ) |
◆ ABSL_FLAG() [3/4]
| ABSL_FLAG |
( |
std::string | , |
|
|
input | , |
|
|
"" | , |
|
|
"REQUIRED: Input file name" | ) |
◆ ABSL_FLAG() [4/4]
| ABSL_FLAG |
( |
std::string | , |
|
|
output | , |
|
|
"" | , |
|
|
"REQUIRED: Output file name" | ) |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
◆ kUsageStr
Initial value:=
"Convert an operations_research::MPModelProto or"
" operations_research::MPModelRequest file (containing a single"
" proto, in ascii or wire format, possibly gzipped)"
" into a .lp or .mps file."
Definition at line 40 of file model_exporter_main.cc.