#include <cstddef>
#include <cstdlib>
#include <string>
#include "absl/flags/flag.h"
#include "absl/log/globals.h"
#include "absl/log/log.h"
#include "absl/strings/match.h"
#include "absl/strings/string_view.h"
#include "ortools/base/helpers.h"
#include "ortools/base/init_google.h"
#include "ortools/base/logging.h"
#include "ortools/base/options.h"
#include "ortools/linear_solver/linear_solver.h"
#include "ortools/packing/arc_flow_solver.h"
#include "ortools/packing/vector_bin_packing.pb.h"
#include "ortools/packing/vector_bin_packing_parser.h"
Go to the source code of this file.
|
| | ABSL_FLAG (std::string, input, "", "Vector Bin Packing (.vpb) data file name.") |
| | ABSL_FLAG (std::string, params, "", "Parameters in solver specific text format.") |
| | ABSL_FLAG (std::string, solver, "sat", "Solver to use: sat, scip") |
| | ABSL_FLAG (double, time_limit, 900.0, "Time limit in seconds") |
| | ABSL_FLAG (int, threads, 1, "Number of threads") |
| | ABSL_FLAG (bool, display_proto, false, "Print the input protobuf") |
| | ABSL_FLAG (int, max_bins, -1, "Maximum number of bins: default = -1 meaning no limits") |
| void | operations_research::ParseAndSolve (const std::string &filename, absl::string_view solver, const std::string ¶ms) |
| int | main (int argc, char **argv) |
◆ ABSL_FLAG() [1/7]
| ABSL_FLAG |
( |
bool | , |
|
|
display_proto | , |
|
|
false | , |
|
|
"Print the input protobuf" | ) |
◆ ABSL_FLAG() [2/7]
| ABSL_FLAG |
( |
double | , |
|
|
time_limit | , |
|
|
900. | 0, |
|
|
"Time limit in seconds" | ) |
◆ ABSL_FLAG() [3/7]
| ABSL_FLAG |
( |
int | , |
|
|
max_bins | , |
|
|
- | 1 ) |
◆ ABSL_FLAG() [4/7]
| ABSL_FLAG |
( |
int | , |
|
|
threads | , |
|
|
1 | , |
|
|
"Number of threads" | ) |
◆ ABSL_FLAG() [5/7]
| ABSL_FLAG |
( |
std::string | , |
|
|
input | , |
|
|
"" | , |
|
|
"Vector Bin Packing (.vpb) data file name." | ) |
◆ ABSL_FLAG() [6/7]
| ABSL_FLAG |
( |
std::string | , |
|
|
params | , |
|
|
"" | , |
|
|
"Parameters in solver specific text format." | ) |
◆ ABSL_FLAG() [7/7]
| ABSL_FLAG |
( |
std::string | , |
|
|
solver | , |
|
|
"sat" | , |
|
|
"Solver to use: | sat, |
|
|
scip" | ) |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |