Skip to content

Commit

Permalink
print ortools version
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Mar 20, 2024
1 parent 33facdd commit a719ed8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions main/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ cc_binary(
srcs = ["template.cc"],
deps = [
"@com_google_ortools//ortools/base",
"@com_google_ortools//ortools/init",
"@com_google_ortools//ortools/linear_solver",
"@com_google_ortools//ortools/linear_solver:linear_solver_cc_proto",
],
Expand Down
2 changes: 2 additions & 0 deletions main/template.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
// Minimal example to call the GLOP solver.
// [START program]
// [START import]
#include "ortools/init/init.h"
#include "ortools/linear_solver/linear_solver.h"
// [END import]

namespace operations_research {
void SimpleLpProgram() {
LOG(INFO) << "Google OR-Tools version : " << OrToolsVersion::VersionString();
// [START solver]
// Create the linear solver with the GLOP backend.
MPSolver* solver = MPSolver::CreateSolver("GLOP");
Expand Down

0 comments on commit a719ed8

Please sign in to comment.