#include <optional>
#include <string>
#include "absl/flags/flag.h"
#include "absl/log/log.h"
#include "absl/status/status.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/string_view.h"
#include "ortools/base/init_google.h"
#include "ortools/base/status_macros.h"
#include "ortools/math_opt/io/names_removal.h"
#include "ortools/math_opt/tools/file_format_flags.h"
#include "ortools/util/status_macros.h"
Go to the source code of this file.
|
| input_format linear_solver_txt output_file model mps output_file model_linear_solver pb output_format linear_solver output_file model lp nonames output_file anonymous model pb | ABSL_FLAG (std::string, input_file, "", "the file containing the model to solve; use --input_format to specify" " the file format") |
| | ABSL_FLAG (std::optional< operations_research::math_opt::FileFormat >, input_format, std::nullopt, absl::StrCat("the format of the --input_file; possible values:", operations_research::math_opt::OptionalFormatFlagPossibleValuesList())) |
| | ABSL_FLAG (std::string, output_file, "", "the file to write to; use --output_format to specify" " the file format") |
| | ABSL_FLAG (std::optional< operations_research::math_opt::FileFormat >, output_format, std::nullopt, absl::StrCat("the format of the --output_file; possible values:", operations_research::math_opt::OptionalFormatFlagPossibleValuesList())) |
| | ABSL_FLAG (bool, names, true, "use the names in the input models; ignoring names is useful when " "the input contains duplicates or if the model must be anonymized") |
| int | main (int argc, char *argv[]) |
◆ ABSL_FLAG() [1/5]
| ABSL_FLAG |
( |
bool | , |
|
|
names | , |
|
|
true | , |
|
|
"use the names in the input models; ignoring names is useful when " "the input contains duplicates or if the model must be anonymized" | ) |
◆ ABSL_FLAG() [2/5]
◆ ABSL_FLAG() [3/5]
◆ ABSL_FLAG() [4/5]
| input_format linear_solver_txt output_file model mps output_file model_linear_solver pb output_format linear_solver output_file model lp nonames output_file anonymous model pb ABSL_FLAG |
( |
std::string | , |
|
|
input_file | , |
|
|
"" | , |
|
|
"the file containing the model to solve; use --input_format to specify" " the file format" | ) |
◆ ABSL_FLAG() [5/5]
| ABSL_FLAG |
( |
std::string | , |
|
|
output_file | , |
|
|
"" | , |
|
|
"the file to write to; use --output_format to specify" " the file format" | ) |
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |