Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
model_exporter_main.cc File Reference
#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.

Functions

 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)

Variables

static const char kUsageStr []

Function Documentation

◆ 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 )

Definition at line 46 of file model_exporter_main.cc.

Variable Documentation

◆ kUsageStr

const char kUsageStr[]
static
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.