rework ortools samples (#4590)

This commit is contained in:
Corentin Le Molgat
2025-05-16 14:34:40 +02:00
parent 17498776bf
commit fdfc6af03e
62 changed files with 343 additions and 93 deletions

View File

@@ -16,6 +16,9 @@
#include <iostream>
#include <memory>
#include "absl/base/log_severity.h"
#include "absl/log/globals.h"
#include "ortools/base/init_google.h"
#include "ortools/linear_solver/linear_solver.h"
// [END import]
@@ -89,7 +92,9 @@ void IntegerProgrammingExample() {
}
} // namespace operations_research
int main(int argc, char** argv) {
int main(int argc, char* argv[]) {
InitGoogle(argv[0], &argc, &argv, true);
absl::SetStderrThreshold(absl::LogSeverityAtLeast::kInfo);
operations_research::IntegerProgrammingExample();
return EXIT_SUCCESS;
}