diff --git a/examples/tests/visitor_test.cc b/examples/tests/visitor_test.cc deleted file mode 100644 index db5363bd69..0000000000 --- a/examples/tests/visitor_test.cc +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright 2011-2012 Google -// 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. - - -#include "ortools/base/hash.h" -#include "ortools/base/map_util.h" -#include "ortools/base/stl_util.h" -#include "ortools/base/random.h" -#include "ortools/constraint_solver/constraint_solveri.h" -#include "ortools/constraint_solver/constraint_solver.h" -#include "ortools/util/string_array.h" - -namespace operations_research { -void TestVisitSumEqual() { - LOG(INFO) << "----- Test Visit Sum Equal -----"; - Solver solver("BinPacking"); - const int total_items = 10; - const int total_bins = 3; - - // create the variables - // Index des lignes => bins - // Index des colonnes => items - std::vector vars; - solver.MakeBoolVarArray(total_items * total_bins, "", &vars); - - //Contrainte ct1 : un item appartient qu'à un seul bin - for (int i = 0; i < total_items; ++i) { - std::vector item_column(total_bins); - for(int j = 0; j < total_bins; ++j) { - item_column[j] = vars[j + i * total_bins]; - } - solver.AddConstraint(solver.MakeSumEquality(item_column, 1)); - ////////////////////////////////Constraint - } - - std::vector primary_integer_variables; - std::vector secondary_integer_variables; - std::vector sequence_variables; - std::vector interval_variables; - - solver.CollectDecisionVariables(&primary_integer_variables, - &secondary_integer_variables, - &sequence_variables, - &interval_variables); -} - -} // namespace operations_research - - -int main(int argc, char** argv) { - gflags::ParseCommandLineFlags(&argc, &argv, true); - operations_research::TestVisitSumEqual(); - return 0; -} diff --git a/makefiles/Makefile.cpp.mk b/makefiles/Makefile.cpp.mk index 6d5d5a0b7e..c33118dfab 100755 --- a/makefiles/Makefile.cpp.mk +++ b/makefiles/Makefile.cpp.mk @@ -413,8 +413,7 @@ test_cc_tests: \ rcc_cpp11_test \ rcc_forbidden_intervals_test \ rcc_issue57 \ - rcc_min_max_test \ - rcc_visitor_test + rcc_min_max_test # $(MAKE) rcc_issue173 # error: too long .PHONY: test_cc_contrib # Build and Run all C++ Contrib (located in ortools/examples/contrib)