fix examples
This commit is contained in:
@@ -87,8 +87,8 @@ void RunAllExamples() {
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_logtostderr), true);
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_log_prefix), false);
|
||||
absl::SetFlag(&FLAGS_logtostderr, true);
|
||||
absl::SetFlag(&FLAGS_log_prefix, false);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
operations_research::RunAllExamples();
|
||||
return 0;
|
||||
|
||||
@@ -384,7 +384,7 @@ void Solve(const JsspInputProblem &problem) {
|
||||
} // namespace operations_research
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_logtostderr), true);
|
||||
absl::SetFlag(&FLAGS_logtostderr, true);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
if (absl::GetFlag(FLAGS_input).empty()) {
|
||||
LOG(FATAL) << "Please supply a data file with --input=";
|
||||
|
||||
@@ -113,8 +113,8 @@ void RunAllExamples() {
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_logtostderr), true);
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_log_prefix), false);
|
||||
absl::SetFlag(&FLAGS_logtostderr, true);
|
||||
absl::SetFlag(&FLAGS_log_prefix, false);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
operations_research::RunAllExamples();
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
@@ -93,7 +93,7 @@ void MagicSquare(int size) {
|
||||
} // namespace operations_research
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_logtostderr), true);
|
||||
absl::SetFlag(&FLAGS_logtostderr, true);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
operations_research::sat::MagicSquare(absl::GetFlag(FLAGS_size));
|
||||
return EXIT_SUCCESS;
|
||||
|
||||
@@ -109,7 +109,7 @@ void MultiKnapsackSat(int scaling, const std::string ¶ms) {
|
||||
} // namespace operations_research
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_logtostderr), true);
|
||||
absl::SetFlag(&FLAGS_logtostderr, true);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
operations_research::sat::MultiKnapsackSat(absl::GetFlag(FLAGS_size),
|
||||
absl::GetFlag(FLAGS_params));
|
||||
|
||||
@@ -396,7 +396,7 @@ bool LoadAndSolve(const std::string &pdp_file,
|
||||
} // namespace operations_research
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_logtostderr), true);
|
||||
absl::SetFlag(&FLAGS_logtostderr, true);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
operations_research::RoutingModelParameters model_parameters =
|
||||
operations_research::DefaultRoutingModelParameters();
|
||||
|
||||
@@ -453,7 +453,7 @@ int main(int argc, char **argv) {
|
||||
// By default, we want to show how the solver progress. Note that this needs
|
||||
// to be set before InitGoogle() which has the nice side-effect of allowing
|
||||
// the user to override it.
|
||||
// absl::SetFlag(&absl::GetFlag(FLAGS_vmodule), "*cp_model*=1");
|
||||
// absl::SetFlag(&FLAGS_vmodule, "*cp_model*=1");
|
||||
gflags::SetUsageMessage(kUsage);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
|
||||
@@ -310,7 +310,7 @@ void LoadAndSolve(const std::string &file_name) {
|
||||
} // namespace operations_research
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_logtostderr), true);
|
||||
absl::SetFlag(&FLAGS_logtostderr, true);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
if (absl::GetFlag(FLAGS_input).empty()) {
|
||||
LOG(FATAL) << "Please supply a data file with --input=";
|
||||
|
||||
@@ -254,7 +254,7 @@ void ParseAndSolve() {
|
||||
} // namespace operations_research
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
absl::SetFlag(&absl::GetFlag(FLAGS_logtostderr), true);
|
||||
absl::SetFlag(&FLAGS_logtostderr, true);
|
||||
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
||||
if (absl::GetFlag(FLAGS_input).empty()) {
|
||||
LOG(FATAL) << "Please supply a data file with --input=";
|
||||
|
||||
Reference in New Issue
Block a user