Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
vector_bin_packing_main.cc File Reference
#include <cstddef>
#include <cstdlib>
#include <string>
#include "absl/flags/flag.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.

Namespaces

namespace  operations_research
 In SWIG mode, we don't want anything besides these top-level includes.
 

Functions

 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 &params)
 
int main (int argc, char **argv)
 

Function Documentation

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

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

http://www.apache.org/licenses/LICENSE-2.0

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() [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 )

Definition at line 96 of file vector_bin_packing_main.cc.