#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") |
| See kUsageStr below, and ./model_exporter.h.
|
|
| 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" | ) |
See kUsageStr below, and ./model_exporter.h.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
◆ 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.