author
int64
658
755k
date
stringlengths
19
19
timezone
int64
-46,800
43.2k
hash
stringlengths
40
40
message
stringlengths
5
490
mods
list
language
stringclasses
20 values
license
stringclasses
3 values
repo
stringlengths
5
68
original_message
stringlengths
12
491
261,230
05.12.2021 12:15:27
-3,600
d54ed8f29e3acdba104a8174dae045d0474b158f
[ROUTING] remove old gtl:: obsolete code; fix overflow error
[ { "change_type": "MODIFY", "old_path": "ortools/constraint_solver/constraint_solver.cc", "new_path": "ortools/constraint_solver/constraint_solver.cc", "diff": "#include \"ortools/base/recordio.h\"\n#include \"ortools/base/stl_util.h\"\n#include \"ortools/base/sysinfo.h\"\n+#include \"ortools/base/ti...
C++
Apache License 2.0
google/or-tools
[ROUTING] remove old gtl:: obsolete code; fix overflow error
261,230
05.12.2021 12:55:50
-3,600
529849e58aa90a284341871585c9d5eb683429ed
add missing swig deps
[ { "change_type": "MODIFY", "old_path": "ortools/constraint_solver/csharp/routing.i", "new_path": "ortools/constraint_solver/csharp/routing.i", "diff": "%include \"ortools/constraint_solver/csharp/constraint_solver.i\"\n%include \"ortools/constraint_solver/csharp/routing_types.i\"\n%include \"ortools...
C++
Apache License 2.0
google/or-tools
add missing swig deps
261,230
05.12.2021 15:33:21
-3,600
7d3120d644de9bbea6ab796329842604880274d0
Fix C# swig imports
[ { "change_type": "MODIFY", "old_path": "ortools/constraint_solver/csharp/routing.i", "new_path": "ortools/constraint_solver/csharp/routing.i", "diff": "// See the License for the specific language governing permissions and\n// limitations under the License.\n+%typemap(csimports) SWIGTYPE %{\n+using ...
C++
Apache License 2.0
google/or-tools
Fix C# swig imports
261,218
03.12.2021 11:16:13
-3,600
07127d463c9ef2e34c16ec74898540e2f0c29935
dotnet: bump TFM net5.0 -> net6.0 LTS
[ { "change_type": "MODIFY", "old_path": "cmake/samples/dotnet/Google.Sample.csproj", "new_path": "cmake/samples/dotnet/Google.Sample.csproj", "diff": "<Project Sdk=\"Microsoft.NET.Sdk\">\n<PropertyGroup>\n<OutputType>Exe</OutputType>\n- <LangVersion>7.3</LangVersion>\n- <TargetFramework>netcoreapp3.1...
C++
Apache License 2.0
google/or-tools
dotnet: bump TFM net5.0 -> net6.0 LTS
261,218
06.12.2021 12:02:40
-3,600
a6408ddb3bf8374c80e767fff4f6fd076cee6525
dotnet: Use multiple TFM in samples
[ { "change_type": "MODIFY", "old_path": "cmake/dotnet.cmake", "new_path": "cmake/dotnet.cmake", "diff": "@@ -350,7 +350,7 @@ function(add_dotnet_sample FILE_NAME)\nif(BUILD_TESTING)\nadd_test(\nNAME dotnet_${COMPONENT_NAME}_${SAMPLE_NAME}\n- COMMAND ${DOTNET_EXECUTABLE} run --no-build -c Release\n+ C...
C++
Apache License 2.0
google/or-tools
dotnet: Use multiple TFM in samples
261,230
06.12.2021 13:00:07
-3,600
6acc63def1ad8601f9d3d720feb44aa535a8e737
minor improvement in DCHECK
[ { "change_type": "MODIFY", "old_path": "ortools/constraint_solver/routing_lp_scheduling.cc", "new_path": "ortools/constraint_solver/routing_lp_scheduling.cc", "diff": "@@ -509,7 +509,7 @@ DimensionSchedulingStatus DimensionCumulOptimizerCore::OptimizeSingleRoute(\nInitOptimizer(solver);\n// Make sur...
C++
Apache License 2.0
google/or-tools
minor improvement in DCHECK
261,218
06.12.2021 14:00:03
-3,600
046c153e36c12ff845035146ae277420b9720b0e
cmake(ci): Update .Net docker
[ { "change_type": "MODIFY", "old_path": "cmake/docker/alpine/dotnet.Dockerfile", "new_path": "cmake/docker/alpine/dotnet.Dockerfile", "diff": "@@ -6,19 +6,21 @@ RUN apk add --no-cache wget icu-libs libintl \\\n&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet\n# see: https://dotnet.microsoft.com/down...
C++
Apache License 2.0
google/or-tools
cmake(ci): Update .Net docker
261,218
06.12.2021 14:01:10
-3,600
33ac01904cf71f34a4bb46bb160fb5eb0b168556
make(ci): Update dockers
[ { "change_type": "MODIFY", "old_path": "makefiles/docker/alpine/dotnet.Dockerfile", "new_path": "makefiles/docker/alpine/dotnet.Dockerfile", "diff": "@@ -6,19 +6,21 @@ RUN apk add --no-cache wget icu-libs libintl \\\n&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet\n# see: https://dotnet.microsoft....
C++
Apache License 2.0
google/or-tools
make(ci): Update dockers
261,218
06.12.2021 14:04:22
-3,600
641c625c5899c2e6561933173c728c8ede3777c7
release: Update docker
[ { "change_type": "MODIFY", "old_path": "tools/release/Dockerfile", "new_path": "tools/release/Dockerfile", "diff": "@@ -51,7 +51,7 @@ ENV JAVA_HOME=/usr/lib/jvm/java\n# see https://docs.microsoft.com/en-us/dotnet/core/install/linux-centos#centos-7-\nRUN rpm -Uvh https://packages.microsoft.com/config...
C++
Apache License 2.0
google/or-tools
release: Update docker
261,218
06.12.2021 14:46:06
-3,600
193390c6c04dda4b7eceb380e6714d27019d008c
ubuntu: revert docker to microsoft 21.04 feed for dotnet-sdk feed 21.10 not available yet > The .NET 6 packages haven't yet been published for Ubuntu 21.10. The following wget command uses the Ubuntu 21.04 repository. ref:
[ { "change_type": "MODIFY", "old_path": "cmake/docker/ubuntu/dotnet.Dockerfile", "new_path": "cmake/docker/ubuntu/dotnet.Dockerfile", "diff": "@@ -2,7 +2,7 @@ FROM ortools/cmake:ubuntu_swig AS env\n# see: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu\nRUN apt-get update -qq \\\n&&...
C++
Apache License 2.0
google/or-tools
ubuntu: revert docker to microsoft 21.04 feed for dotnet-sdk feed 21.10 not available yet > The .NET 6 packages haven't yet been published for Ubuntu 21.10. The following wget command uses the Ubuntu 21.04 repository. ref: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2110-
261,218
06.12.2021 14:47:04
-3,600
e4167b03e92922610a6d043784c0e161e22cc6eb
opensuse: fix sha512sum
[ { "change_type": "MODIFY", "old_path": "cmake/docker/opensuse/dotnet.Dockerfile", "new_path": "cmake/docker/opensuse/dotnet.Dockerfile", "diff": "@@ -11,7 +11,7 @@ RUN mkdir -p /usr/share/dotnet \\\nRUN dotnet_sdk_version=3.1.415 \\\n&& wget -qO dotnet.tar.gz \\\n\"https://dotnetcli.azureedge.net/do...
C++
Apache License 2.0
google/or-tools
opensuse: fix sha512sum
261,230
06.12.2021 15:39:18
-3,600
5f03dc499343be955b493a89ba64cf3088870c42
reformat BUILD files
[ { "change_type": "MODIFY", "old_path": "ortools/bop/BUILD.bazel", "new_path": "ortools/bop/BUILD.bazel", "diff": "@@ -102,7 +102,7 @@ cc_library(\n\"//ortools/util:bitset\",\n\"//ortools/util:stats\",\n\"//ortools/util:time_limit\",\n- \"@com_google_absl//absl/random:random\",\n+ \"@com_google_absl/...
C++
Apache License 2.0
google/or-tools
reformat BUILD files
261,218
06.12.2021 16:32:48
-3,600
1115798cd715179d8cd76f3061af01203ebba94d
cmake: WORKING_DIRECTORY Fixup
[ { "change_type": "MODIFY", "old_path": "cmake/dotnet.cmake", "new_path": "cmake/dotnet.cmake", "diff": "@@ -27,6 +27,28 @@ else()\nmessage(STATUS \"Found dotnet Program: ${DOTNET_EXECUTABLE}\")\nendif()\n+# Needed by dotnet/CMakeLists.txt\n+set(DOTNET_PACKAGE Google.OrTools)\n+set(DOTNET_PACKAGES_DI...
C++
Apache License 2.0
google/or-tools
cmake: WORKING_DIRECTORY Fixup
261,218
06.12.2021 16:37:05
-3,600
81c5901be11dfb615851840d1cd21af59be148d9
ci: Fix .Net workflows
[ { "change_type": "MODIFY", "old_path": ".github/workflows/cmake_linux_dotnet.yml", "new_path": ".github/workflows/cmake_linux_dotnet.yml", "diff": "@@ -12,6 +12,15 @@ jobs:\nrun: sudo apt install -y swig\n- name: Check swig\nrun: swig -version\n+ # Install .NET SDKs\n+ - name: Setup .NET Core 3.1\n+...
C++
Apache License 2.0
google/or-tools
ci: Fix .Net workflows
261,230
06.12.2021 16:43:35
-3,600
2a7c41c64f5e62a39b33a5ed741d918bc053d5f7
[CP-SAT] improve int_prod presolve code; fix bug in square propagator
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model_presolve.cc", "new_path": "ortools/sat/cp_model_presolve.cc", "diff": "@@ -937,24 +937,40 @@ bool CpModelPresolver::PresolveIntProd(ConstraintProto* ct) {\nchanged |= CanonicalizeLinearExpression(*ct, &exp);\n}\n- // Remove constant terms....
C++
Apache License 2.0
google/or-tools
[CP-SAT] improve int_prod presolve code; fix bug in square propagator
261,230
08.12.2021 13:26:59
-3,600
62d940f1e22ee5497b4d83588076e5f4271c5ffa
[GLOP] improve resilience of presolve
[ { "change_type": "MODIFY", "old_path": "ortools/glop/preprocessor.cc", "new_path": "ortools/glop/preprocessor.cc", "diff": "@@ -2474,7 +2474,9 @@ void SingletonUndo::ZeroCostSingletonColumnUndo(\nconst GlopParameters& parameters, const SparseColumn& saved_row,\nProblemSolution* solution) const {\n//...
C++
Apache License 2.0
google/or-tools
[GLOP] improve resilience of presolve
261,230
08.12.2021 15:26:17
-3,600
7e74268ded8f4ba53850898fc15e32b56fcf1056
[CP-SAT] another overflow fix; remove AddLinMin/Max in favor of AddMin/Max
[ { "change_type": "MODIFY", "old_path": "ortools/java/com/google/ortools/sat/CpModel.java", "new_path": "ortools/java/com/google/ortools/sat/CpModel.java", "diff": "@@ -803,7 +803,7 @@ public final class CpModel {\n}\n/** Adds {@code target == Min(exprs)}. */\n- public Constraint addLinMinEquality(Li...
C++
Apache License 2.0
google/or-tools
[CP-SAT] another overflow fix; remove AddLinMin/Max in favor of AddMin/Max
261,230
08.12.2021 16:29:40
-3,600
2d22667f30981b11e078957a3214156d6d1eba15
[CP-SAT] deprecate BooleanSum and BooleanScalProd in favor of Sum and ScalProd
[ { "change_type": "MODIFY", "old_path": "examples/cpp/costas_array_sat.cc", "new_path": "examples/cpp/costas_array_sat.cc", "diff": "@@ -158,8 +158,8 @@ void CostasBool(const int dim) {\n}\nfor (int i = 0; i < dim; ++i) {\n- cp_model.AddEquality(LinearExpr::BooleanSum(vars[i]), 1);\n- cp_model.AddEqu...
C++
Apache License 2.0
google/or-tools
[CP-SAT] deprecate BooleanSum and BooleanScalProd in favor of Sum and ScalProd
261,230
09.12.2021 16:08:02
-3,600
3bb97cf894932d126c0dfa045ca7df51bc534909
fix overflow in cuts
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cuts.cc", "new_path": "ortools/sat/cuts.cc", "diff": "@@ -1150,12 +1150,18 @@ void IntegerRoundingCutHelper::ComputeCut(\ncoeff = f(coeff);\nif (coeff == 0) continue;\nif (change_sign_at_postprocessing_[i]) {\n- cut->ub = IntegerValue(\n- CapAdd((c...
C++
Apache License 2.0
google/or-tools
fix overflow in cuts
261,218
10.12.2021 09:00:35
0
518ac7ace762f078c89c79f3512973ecd76052a4
make: Fix windows archive
[ { "change_type": "MODIFY", "old_path": "makefiles/Makefile.archive.mk", "new_path": "makefiles/Makefile.archive.mk", "diff": "@@ -149,6 +149,8 @@ $$(TEMP_ARCHIVE_DIR)/$$(INSTALL_DIR)/examples/dotnet/%/plop: \\\n$$(TEMP_ARCHIVE_DIR)$$S$$(INSTALL_DIR)$$Sexamples$$Sdotnet$$S$$*\n$$(COPY) $$(TEMP_DOTNET...
C++
Apache License 2.0
google/or-tools
make: Fix windows archive
261,218
10.12.2021 13:35:15
-3,600
3e36f4f0bb60d5ff7e6783ba61322b074787fb98
release: Add Python 3.10
[ { "change_type": "MODIFY", "old_path": "tools/release/build_delivery_mac.sh", "new_path": "tools/release/build_delivery_mac.sh", "diff": "@@ -253,7 +253,7 @@ function build_python() {\ncommand -v swig\ncommand -v swig | xargs echo \"swig: \" | tee -a build.log\n- PY=(3.6 3.7 3.8 3.9)\n+ PY=(3.6 3.7 ...
C++
Apache License 2.0
google/or-tools
release: Add Python 3.10
261,218
06.12.2021 10:30:39
-3,600
c28108a779e1c7b190e193bd94af732377158cd5
remove generate_dotnet_proj.sh
[ { "change_type": "DELETE", "old_path": "tools/generate_dotnet_proj.sh", "new_path": null, "diff": "-#!/usr/bin/env bash\n-# usage: ./tools/generate_dotnet_proj.sh ortools/sat/samples/SimpleSatProgram.cs\n-set -e\n-\n-declare -r FILE=\"${1}\"\n-[[ -e \"$FILE\" ]] || exit 128\n-\n-declare -r FILE_PROJ...
C++
Apache License 2.0
google/or-tools
remove generate_dotnet_proj.sh
261,218
10.12.2021 17:54:00
-3,600
013d680e4dfd9cf94d047bec0fe609790053da68
make(dotnet): Fix dotnet_examples_archive
[ { "change_type": "MODIFY", "old_path": "makefiles/Makefile.dotnet.mk", "new_path": "makefiles/Makefile.dotnet.mk", "diff": "@@ -1007,6 +1007,12 @@ $$(TEMP_DOTNET_DIR)/ortools_examples/examples/dotnet/%.csproj: \\\n$$(COPY) ortools$$Sdotnet$$SSample.csproj.in \\\n$$(TEMP_DOTNET_DIR)$$Sortools_example...
C++
Apache License 2.0
google/or-tools
make(dotnet): Fix dotnet_examples_archive
261,218
10.12.2021 18:24:15
-3,600
338b27790edf46ccd976653d29c574a92ba322b4
tools/docker: Fixup for opensuse-leqp
[ { "change_type": "MODIFY", "old_path": "tools/docker/amd64/opensuse-leap.Dockerfile", "new_path": "tools/docker/amd64/opensuse-leap.Dockerfile", "diff": "@@ -5,7 +5,7 @@ LABEL maintainer=\"corentinl@google.com\"\n# Install system build dependencies\nENV PATH=/usr/local/bin:$PATH\nRUN zypper update -...
C++
Apache License 2.0
google/or-tools
tools/docker: Fixup for opensuse-leqp
261,230
11.12.2021 11:59:48
-3,600
2aa804579052b86dbe3d16eb682e3885dc44a676
try to debug crash on windows
[ { "change_type": "MODIFY", "old_path": ".github/workflows/cmake_windows_python.yml", "new_path": ".github/workflows/cmake_windows_python.yml", "diff": "@@ -29,6 +29,6 @@ jobs:\n- name: Build\nrun: cmake --build build --config Release --target ALL_BUILD -v -- /maxcpucount\n- name: Test\n- run: cmake ...
C++
Apache License 2.0
google/or-tools
try to debug crash on windows
261,230
13.12.2021 10:45:53
-3,600
6f5052f668d36d8b8b1643ffe15ab71d4fa5266c
simplify sat runner
[ { "change_type": "MODIFY", "old_path": "examples/cpp/sat_runner.cc", "new_path": "examples/cpp/sat_runner.cc", "diff": "@@ -219,14 +219,14 @@ int Run() {\nresponse.set_status(CpSolverStatus::MODEL_INVALID);\nreturn EXIT_SUCCESS;\n}\n- if (absl::GetFlag(FLAGS_use_cp_model) && cp_model.variables_size(...
C++
Apache License 2.0
google/or-tools
simplify sat runner
261,230
13.12.2021 10:46:45
-3,600
93934e3660e0f2f0691bca506598e6296bb597a2
improve rcpsp_sat.py; add optional model to knapsack_2d_sat.py; minor change to hidato_sat.p
[ { "change_type": "MODIFY", "old_path": "examples/python/hidato_sat.py", "new_path": "examples/python/hidato_sat.py", "diff": "# limitations under the License.\n\"\"\"Solves the Hidato problem with the CP-SAT solver.\"\"\"\n+from absl import app\nfrom ortools.sat.python import visualization\nfrom ort...
C++
Apache License 2.0
google/or-tools
improve rcpsp_sat.py; add optional model to knapsack_2d_sat.py; minor change to hidato_sat.p
261,230
13.12.2021 10:47:57
-3,600
dbe177a0fb26d861810ddd3e68929fa50c8a4c01
[CP-SAT] Support optional intervals in no_overlap_2d; add energetic cut to no_overlap_2d; disable cumulative relaxation of no_overlap_2d by default; fix
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model_loader.cc", "new_path": "ortools/sat/cp_model_loader.cc", "diff": "@@ -1213,7 +1213,9 @@ void LoadNoOverlap2dConstraint(const ConstraintProto& ct, Model* m) {\nmapping->Intervals(ct.no_overlap_2d().y_intervals());\nm->Add(NonOverlappingRec...
C++
Apache License 2.0
google/or-tools
[CP-SAT] Support optional intervals in no_overlap_2d; add energetic cut to no_overlap_2d; disable cumulative relaxation of no_overlap_2d by default; fix #3012
261,218
13.12.2021 10:39:23
-3,600
6a58dcd465f7864092817df2ff1caa81f962d687
cmake(ci): Fix alpine Python Dockerfile
[ { "change_type": "MODIFY", "old_path": "cmake/docker/alpine/python.Dockerfile", "new_path": "cmake/docker/alpine/python.Dockerfile", "diff": "FROM ortools/cmake:alpine_swig AS env\nENV PATH=/root/.local/bin:$PATH\n-RUN apk add --no-cache python3-dev py3-pip \\\n+RUN apk add --no-cache python3-dev py...
C++
Apache License 2.0
google/or-tools
cmake(ci): Fix alpine Python Dockerfile
261,218
13.12.2021 10:39:39
-3,600
683679b6969df09b41216cea941b7cb3c706e00e
tools/docker: Fix Python Alpine
[ { "change_type": "MODIFY", "old_path": "tools/docker/python/amd64/alpine.Dockerfile", "new_path": "tools/docker/python/amd64/alpine.Dockerfile", "diff": "@@ -12,7 +12,8 @@ CMD [\"/bin/sh\"]\nRUN apk add --no-cache swig\n# Python\n-RUN apk add --no-cache python3-dev py3-pip py3-wheel\n+RUN apk add --...
C++
Apache License 2.0
google/or-tools
tools/docker: Fix Python Alpine
261,230
13.12.2021 11:42:38
-3,600
683565613e4c073b1ec2e865951f0d82212b5ae1
[CP-SAT] CpModel::AddAllDifferentExpr -> AddAllDifferent
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model.cc", "new_path": "ortools/sat/cp_model.cc", "diff": "@@ -922,8 +922,16 @@ Constraint CpModelBuilder::AddAllDifferent(absl::Span<const IntVar> vars) {\nreturn Constraint(proto);\n}\n-Constraint CpModelBuilder::AddAllDifferentExpr(\n- absl::...
C++
Apache License 2.0
google/or-tools
[CP-SAT] CpModel::AddAllDifferentExpr -> AddAllDifferent
261,230
13.12.2021 14:24:41
-3,600
3e398ad25eb1923954f7f6953bde04d386dc1f87
[CP-SAT] prepare removal of implicit cast BoolVar -> IntVar
[ { "change_type": "MODIFY", "old_path": "ortools/sat/samples/multiple_knapsack_sat.cc", "new_path": "ortools/sat/samples/multiple_knapsack_sat.cc", "diff": "@@ -49,7 +49,7 @@ void MultipleKnapsackSat() {\n// Variables.\n// [START variables]\n// x[i, b] = 1 if item i is packed in bin b.\n- std::map<st...
C++
Apache License 2.0
google/or-tools
[CP-SAT] prepare removal of implicit cast BoolVar -> IntVar
261,230
13.12.2021 14:24:57
-3,600
99893236615a0a369113fe6bae0dad03366b5eb5
[CP-SAT] Polish NoOverlap2d new code
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model_loader.cc", "new_path": "ortools/sat/cp_model_loader.cc", "diff": "@@ -1214,8 +1214,7 @@ void LoadNoOverlap2dConstraint(const ConstraintProto& ct, Model* m) {\nm->Add(NonOverlappingRectangles(\nx_intervals, y_intervals,\n!ct.no_overlap_2d(...
C++
Apache License 2.0
google/or-tools
[CP-SAT] Polish NoOverlap2d new code
261,218
13.12.2021 15:27:26
-3,600
689160bfe166512c8bcc1694f2c09f80b389c3a9
python: use system-site-packages for venv on Alpine pillow package from pip can't be built
[ { "change_type": "MODIFY", "old_path": "cmake/python.cmake", "new_path": "cmake/python.cmake", "diff": "@@ -290,7 +290,7 @@ if(BUILD_TESTING)\nadd_custom_command(TARGET python_package POST_BUILD\n# Clean previous install otherwise pip install may do nothing\nCOMMAND ${CMAKE_COMMAND} -E remove_direct...
C++
Apache License 2.0
google/or-tools
python: use system-site-packages for venv on Alpine pillow package from pip can't be built
261,218
13.12.2021 18:05:04
-3,600
1610d4a33a05b45734bed1a42c1e3ca294cdae98
tools/docker: Fix python alpine export recipe
[ { "change_type": "MODIFY", "old_path": "tools/docker/Makefile", "new_path": "tools/docker/Makefile", "diff": "@@ -300,8 +300,8 @@ ${alpine_export_targets}: python_%_alpine_export: python_%_alpine_build | export\n${DOCKER_RUN_CMD} \\\n-v `pwd`/export:/export \\\n-it \\\n- --name ortools_$$< \\\n- ${I...
C++
Apache License 2.0
google/or-tools
tools/docker: Fix python alpine export recipe
261,218
14.12.2021 12:06:52
-3,600
f52a61051c75c7577ddf92a6b859ca7666aeb1c4
macos: Fix python release
[ { "change_type": "MODIFY", "old_path": "tools/release/build_delivery_mac.sh", "new_path": "tools/release/build_delivery_mac.sh", "diff": "@@ -253,7 +253,7 @@ function build_python() {\ncommand -v swig\ncommand -v swig | xargs echo \"swig: \" | tee -a build.log\n- PY=(3.6 3.7 3.8 3.9, 3.10)\n+ PY=(3....
C++
Apache License 2.0
google/or-tools
macos: Fix python release
261,283
13.12.2021 10:50:48
28,800
2c72297c74ef57e28ee36e4845fba53993363e0e
Add astar.cc to shortestpaths target Without this, using the AStarShortestPath function from //ortools/graph/shortestpaths.h results in a linker error because the function definition is not included in the build. I also fixed some reorder compiler warnings in astar.cc.
[ { "change_type": "MODIFY", "old_path": "ortools/graph/BUILD.bazel", "new_path": "ortools/graph/BUILD.bazel", "diff": "@@ -75,6 +75,7 @@ cc_library(\ncc_library(\nname = \"shortestpaths\",\nsrcs = [\n+ \"astar.cc\",\n\"bellman_ford.cc\",\n\"dijkstra.cc\",\n\"shortestpaths.cc\",\n" }, { "chang...
C++
Apache License 2.0
google/or-tools
Add astar.cc to shortestpaths target Without this, using the AStarShortestPath function from //ortools/graph/shortestpaths.h results in a linker error because the function definition is not included in the build. I also fixed some reorder compiler warnings in astar.cc.
261,230
17.12.2021 10:28:41
-3,600
20d1e17ab2402823f946caf3398b206cd072a5c0
add base macros
[ { "change_type": "MODIFY", "old_path": "ortools/base/logging.h", "new_path": "ortools/base/logging.h", "diff": "#define QCHECK CHECK\n#define QCHECK_EQ CHECK_EQ\n#define QCHECK_GE CHECK_GE\n+#define QCHECK_GT CHECK_GT\n#define ABSL_DIE_IF_NULL CHECK_NOTNULL\n#define CHECK_OK(x) CHECK((x).ok())\n#def...
C++
Apache License 2.0
google/or-tools
add base macros
261,230
18.12.2021 18:16:52
-3,600
c352c1c39152cf68f077ef67ba32e077d9557a61
[Packing] Parser and protobuf for 2bp files; add example to solve then as a binpacking or as a knapsack example
[ { "change_type": "MODIFY", "old_path": "examples/cpp/BUILD.bazel", "new_path": "examples/cpp/BUILD.bazel", "diff": "+cc_binary(\n+ name = \"binpacking_2d_sat\",\n+ srcs = [\n+ \"binpacking_2d_sat.cc\",\n+ ],\n+ deps = [\n+ \"//ortools/base\",\n+ \"@com_google_protobuf//:protobuf\",\n+ \"@com_google_...
C++
Apache License 2.0
google/or-tools
[Packing] Parser and protobuf for 2bp files; add example to solve then as a binpacking or as a knapsack example
261,230
18.12.2021 18:28:22
-3,600
d6ac6c0fbb257e0a53250f368055821664da6051
fix makefile.gen.mk part 1
[ { "change_type": "MODIFY", "old_path": "makefiles/Makefile.cpp.mk", "new_path": "makefiles/Makefile.cpp.mk", "diff": "@@ -176,6 +176,7 @@ $(GEN_DIR)/ortools/constraint_solver/solver_parameters.pb.h \\\n$(GEN_DIR)/ortools/glop/parameters.pb.h \\\n$(GEN_DIR)/ortools/graph/flow_problem.pb.h \\\n$(GEN_D...
C++
Apache License 2.0
google/or-tools
fix makefile.gen.mk part 1
261,230
18.12.2021 18:32:27
-3,600
b905ed2c6c492f66c87cc60885605c840e047e05
fix makefile.gen.mk, part 2
[ { "change_type": "MODIFY", "old_path": "makefiles/Makefile.gen.mk", "new_path": "makefiles/Makefile.gen.mk", "diff": "@@ -3225,6 +3225,16 @@ objs/packing/arc_flow_solver.$O: ortools/packing/arc_flow_solver.cc \\\nortools/packing/arc_flow_builder.h | $(OBJ_DIR)/packing\n$(CCC) $(CFLAGS) -c $(SRC_DIR)...
C++
Apache License 2.0
google/or-tools
fix makefile.gen.mk, part 2
261,230
19.12.2021 22:48:51
-3,600
b9dd3e47d45ff50a1207da26b82965be47ebfb42
support vmodule
[ { "change_type": "MODIFY", "old_path": "ortools/base/vlog_is_on.cc", "new_path": "ortools/base/vlog_is_on.cc", "diff": "#include <errno.h>\n#include <stdlib.h>\n-#include <string.h>\n#include <cstdio>\n+#include <cstring>\n#include <string>\n#include \"absl/synchronization/mutex.h\"\n#include \"orto...
C++
Apache License 2.0
google/or-tools
support vmodule
261,218
20.12.2021 15:49:07
-3,600
701b00914bfc727e16fe96a802874fe52ef0b7b6
Add AssignmentLinearAssignment in all supported languages
[ { "change_type": "ADD", "old_path": null, "new_path": "ortools/graph/samples/AssignmentLinearAssignment.cs", "diff": "+// Copyright 2010-2021 Google LLC\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// Y...
C++
Apache License 2.0
google/or-tools
Add AssignmentLinearAssignment in all supported languages
261,230
22.12.2021 09:53:33
-3,600
9d794840583000b5f9a704a9f79b3f6764b4c318
improve knapsack_2d_sat.cc and binpacking_2d_sat.cc code
[ { "change_type": "MODIFY", "old_path": "examples/cpp/binpacking_2d_sat.cc", "new_path": "examples/cpp/binpacking_2d_sat.cc", "diff": "@@ -46,68 +46,75 @@ namespace sat {\nvoid LoadAndSolve(const std::string& file_name, int instance) {\npacking::BinPacking2dParser parser;\nif (!parser.Load2BPFile(fil...
C++
Apache License 2.0
google/or-tools
improve knapsack_2d_sat.cc and binpacking_2d_sat.cc code
261,218
22.12.2021 11:05:53
-3,600
35cf1ed9cba164f05b393dabf814ff9f2d256430
Rework LinearSumAssignment sample
[ { "change_type": "MODIFY", "old_path": "makefiles/Makefile.cpp.mk", "new_path": "makefiles/Makefile.cpp.mk", "diff": "@@ -415,6 +415,9 @@ test_cc_algorithms_samples: \\\n.PHONY: test_cc_graph_samples # Build and Run all C++ Graph Samples (located in ortools/graph/samples)\ntest_cc_graph_samples: \\\...
C++
Apache License 2.0
google/or-tools
Rework LinearSumAssignment sample
261,230
22.12.2021 15:15:56
-3,600
dc20902b04bee1457465615ea3c3b3a3afd5efb4
[CP-SAT] better fix fo constant intervals presolve
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model_presolve.cc", "new_path": "ortools/sat/cp_model_presolve.cc", "diff": "@@ -3682,7 +3682,7 @@ bool CpModelPresolver::PresolveNoOverlap(ConstraintProto* ct) {\nNoOverlapConstraintProto* proto = ct->mutable_no_overlap();\nbool changed = false...
C++
Apache License 2.0
google/or-tools
[CP-SAT] better fix fo constant intervals presolve
261,218
22.12.2021 16:19:31
-3,600
d577c536130b75090d5f3e7a52b226b04720d29a
Fixup assignment_teams_sat.cc
[ { "change_type": "MODIFY", "old_path": "ortools/sat/samples/assignment_teams_sat.cc", "new_path": "ortools/sat/samples/assignment_teams_sat.cc", "diff": "// [START program]\n// Solve a simple assignment problem.\n// [START import]\n+#include <cstdint>\n#include <numeric>\n#include <vector>\nnamespac...
C++
Apache License 2.0
google/or-tools
Fixup assignment_teams_sat.cc
261,218
22.12.2021 16:21:41
-3,600
4811569711313fea322af0223f2015155e38e94a
Port AssignmentTeamsMip to all languages
[ { "change_type": "ADD", "old_path": null, "new_path": "ortools/linear_solver/samples/AssignmentTeamsMip.cs", "diff": "+// Copyright 2010-2021 Google LLC\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// Y...
C++
Apache License 2.0
google/or-tools
Port AssignmentTeamsMip to all languages
261,218
27.12.2021 15:45:06
-3,600
6644f1e0f654e7a67467e79d6097a6309afc459f
Fix tag in sample
[ { "change_type": "MODIFY", "old_path": "ortools/linear_solver/samples/AssignmentGroupsMip.cs", "new_path": "ortools/linear_solver/samples/AssignmentGroupsMip.cs", "diff": "@@ -66,9 +66,9 @@ public class AssignmentGroupsMip\n// [END allowed_groups]\n// Model.\n- // [START model]\n+ // [START solver]\...
C++
Apache License 2.0
google/or-tools
Fix tag in sample
261,230
29.12.2021 13:12:44
-3,600
b0a655983590aca50817253f95982048e2168395
[CP-SAT] add multiple circuit constraint to the python cp_model
[ { "change_type": "MODIFY", "old_path": "ortools/sat/python/cp_model.py", "new_path": "ortools/sat/python/cp_model.py", "diff": "@@ -1129,6 +1129,44 @@ class CpModel(object):\nmodel_ct.circuit.literals.append(lit)\nreturn ct\n+ def AddMultipleCircuit(self, arcs):\n+ \"\"\"Adds a multiple circuit cons...
C++
Apache License 2.0
google/or-tools
[CP-SAT] add multiple circuit constraint to the python cp_model
261,230
29.12.2021 13:13:17
-3,600
a50c3c697f1362147e45fbd2e3fd9cbf2518317b
[CP-SAT] Remove deprecated methods from the C++ layer
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model.cc", "new_path": "ortools/sat/cp_model.cc", "diff": "@@ -126,10 +126,6 @@ std::string IntVar::Name() const {\nreturn builder_->Proto().variables(index_).name();\n}\n-LinearExpr IntVar::AddConstant(int64_t value) const {\n- return LinearExp...
C++
Apache License 2.0
google/or-tools
[CP-SAT] Remove deprecated methods from the C++ layer
261,230
30.12.2021 09:05:01
-3,600
5c564ca0ed5008aea0b57c6f11a1a464becf26c0
second tentative fix
[ { "change_type": "MODIFY", "old_path": "examples/tests/SatSolverTest.java", "new_path": "examples/tests/SatSolverTest.java", "diff": "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations un...
C++
Apache License 2.0
google/or-tools
second tentative fix
261,230
30.12.2021 09:53:47
-3,600
2f86d7a2b0e566e2452641b12186df2221446562
[CP-SAT] fix C++ CpModel operator
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model.h", "new_path": "ortools/sat/cp_model.h", "diff": "@@ -1177,18 +1177,14 @@ inline LinearExpr operator-(LinearExpr&& lhs, const LinearExpr& rhs) {\nreturn std::move(lhs);\n}\ninline LinearExpr operator-(const LinearExpr& lhs, LinearExpr&& r...
C++
Apache License 2.0
google/or-tools
[CP-SAT] fix C++ CpModel operator
261,230
30.12.2021 18:58:07
-3,600
ce6aadde735d7cfef577c590acf212bbbf3320ff
[CP-SAT] int_square presolve
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model_presolve.cc", "new_path": "ortools/sat/cp_model_presolve.cc", "diff": "@@ -1096,17 +1096,37 @@ bool CpModelPresolver::PresolveIntProd(ConstraintProto* ct) {\n// Restrict the target domain if possible.\nDomain implied(1);\n+ bool is_square ...
C++
Apache License 2.0
google/or-tools
[CP-SAT] int_square presolve
261,230
30.12.2021 18:58:49
-3,600
2b2ca9877aa4baad80e373426c71c4bf7772a240
[CP-SAT] remove gap message when gap is 0
[ { "change_type": "MODIFY", "old_path": "ortools/sat/synchronization.cc", "new_path": "ortools/sat/synchronization.cc", "diff": "@@ -116,7 +116,8 @@ std::string ProgressMessage(const std::string& event_or_solution_count,\ndouble obj_lb, double obj_ub,\nconst std::string& solution_info) {\nconst std::...
C++
Apache License 2.0
google/or-tools
[CP-SAT] remove gap message when gap is 0
261,230
30.12.2021 18:59:09
-3,600
0a822872edea660a08a65dd244af4c6df668b5a1
fix binpacking_2d_sat model
[ { "change_type": "MODIFY", "old_path": "examples/cpp/binpacking_2d_sat.cc", "new_path": "examples/cpp/binpacking_2d_sat.cc", "diff": "@@ -38,6 +38,10 @@ ABSL_FLAG(std::string, params, \"\", \"Sat parameters in text proto format.\");\nABSL_FLAG(int, max_bins, 0,\n\"Maximum number of bins. The 0 defau...
C++
Apache License 2.0
google/or-tools
fix binpacking_2d_sat model
261,230
31.12.2021 11:12:22
-3,600
b9cd938c16a92dfe493af674742579b560eb60ba
[CP-SAT] add AddAtLeastOne/AtMostOne/ExactlyOne API in all languages
[ { "change_type": "MODIFY", "old_path": "ortools/java/com/google/ortools/sat/CpModel.java", "new_path": "ortools/java/com/google/ortools/sat/CpModel.java", "diff": "@@ -121,12 +121,42 @@ public final class CpModel {\nreturn ct;\n}\n+ /** Same as addBoolOr. {@code Sum(literals) >= 1}. */\n+ public Con...
C++
Apache License 2.0
google/or-tools
[CP-SAT] add AddAtLeastOne/AtMostOne/ExactlyOne API in all languages
261,218
03.01.2022 09:48:24
-3,600
3b05c5400d0d4a06868b7eb6890f49cc18faaf0b
constraint_solver: remove usage of gtl:ContainsKey
[ { "change_type": "MODIFY", "old_path": "ortools/constraint_solver/assignment.cc", "new_path": "ortools/constraint_solver/assignment.cc", "diff": "@@ -384,19 +384,19 @@ void SequenceVarElement::SetUnperformed(const std::vector<int>& unperformed) {\nbool SequenceVarElement::CheckClassInvariants() {\na...
C++
Apache License 2.0
google/or-tools
constraint_solver: remove usage of gtl:ContainsKey
261,218
03.01.2022 09:49:12
-3,600
db143cadc1db86e6ef4b6e4211532be9032a672d
Sat: sync code
[ { "change_type": "MODIFY", "old_path": "ortools/sat/linear_constraint.cc", "new_path": "ortools/sat/linear_constraint.cc", "diff": "@@ -264,6 +264,7 @@ double LinearExpression::LpValue(\nIntegerValue LinearExpression::LevelZeroMin(IntegerTrail* integer_trail) const {\nIntegerValue result = offset;\n...
C++
Apache License 2.0
google/or-tools
Sat: sync code
261,218
03.01.2022 09:49:29
-3,600
ba8fa0dcbd42a7642e77720862ac654781975c82
sat: Cleanup doc
[ { "change_type": "MODIFY", "old_path": "ortools/sat/doc/README.md", "new_path": "ortools/sat/doc/README.md", "diff": "@@ -14,8 +14,6 @@ https://developers.google.com/optimization/cp/cp_solver\n* [C code samples](#c-code-samples)\n* [Java code samples](#java-code-samples)\n* [C# code samples](#c-code...
C++
Apache License 2.0
google/or-tools
sat: Cleanup doc
261,230
03.01.2022 10:27:24
-3,600
08b3a7a022e1236f28b3ddd922cb6e83fb679f7d
fix java makefile
[ { "change_type": "MODIFY", "old_path": "makefiles/Makefile.java.mk", "new_path": "makefiles/Makefile.java.mk", "diff": "@@ -355,20 +355,28 @@ $(JAVA_ORTOOLS_JAR): \\\n$(SRC_DIR)/ortools/java/com/google/ortools/constraintsolver/JavaDecisionBuilder.java \\\n$(SRC_DIR)/ortools/java/com/google/ortools/c...
C++
Apache License 2.0
google/or-tools
fix java makefile
261,230
03.01.2022 14:22:37
-3,600
b137c5b0dddc8bb1979420b8cfa4d6b620c07c75
fix java CP-SAT tests
[ { "change_type": "MODIFY", "old_path": "examples/tests/CpModelTest.java", "new_path": "examples/tests/CpModelTest.java", "diff": "@@ -95,6 +95,48 @@ public final class CpModelTest {\nassertThat(model.model().getConstraints(0).getBoolOr().getLiteralsCount()).isEqualTo(3);\n}\n+ @Test\n+ public void t...
C++
Apache License 2.0
google/or-tools
fix java CP-SAT tests
261,230
03.01.2022 14:49:52
-3,600
7da0f7abd75b33fe9ffad67318e7ce307f9ef4e7
[CP-SAT] Polish java code
[ { "change_type": "MODIFY", "old_path": "ortools/java/com/google/ortools/sat/AffineExpression.java", "new_path": "ortools/java/com/google/ortools/sat/AffineExpression.java", "diff": "package com.google.ortools.sat;\n-/** A linear expression interface that can be parsed. */\n+/** A specialized linear ...
C++
Apache License 2.0
google/or-tools
[CP-SAT] Polish java code
261,230
08.01.2022 14:26:18
-3,600
da153ce40d23d9be1c66213fd0359febabe2210c
[CP-SAT] speedup simple int_var creation
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpModel.cs", "new_path": "ortools/sat/csharp/CpModel.cs", "diff": "@@ -46,7 +46,7 @@ public class CpModel\npublic IntVar NewIntVar(long lb, long ub, string name)\n{\n- return new IntVar(model_, new Domain(lb, ub), name);\n+ return new IntVar...
C++
Apache License 2.0
google/or-tools
[CP-SAT] speedup simple int_var creation
261,230
08.01.2022 14:44:59
-3,600
a1b369d4c8c1604a8e5affbf8f815cd569bf0606
[CP-SAT] speedup presolve; fix platform non determinism fix add symmetry detection for model with scheduling constraints
[ { "change_type": "MODIFY", "old_path": "ortools/sat/clause.cc", "new_path": "ortools/sat/clause.cc", "diff": "@@ -1544,12 +1544,19 @@ bool BinaryImplicationGraph::TransformIntoMaxCliques(\nimplications_.size());\n// We starts by processing larger constraints first.\n- std::sort(at_most_ones->begin()...
C++
Apache License 2.0
google/or-tools
[CP-SAT] speedup presolve; fix platform non determinism fix @2056; add symmetry detection for model with scheduling constraints
261,230
08.01.2022 14:45:16
-3,600
0cab5e45efa104b73d9bc9cbeaea3edfee9d3175
[UTIL] speedup domains
[ { "change_type": "MODIFY", "old_path": "ortools/util/sorted_interval_list.cc", "new_path": "ortools/util/sorted_interval_list.cc", "diff": "@@ -65,14 +65,19 @@ std::string IntervalsAsString(const Intervals& intervals) {\n// IntervalsAreSortedAndNonAdjacent() would return true.\nvoid UnionOfSortedInt...
C++
Apache License 2.0
google/or-tools
[UTIL] speedup domains
261,230
08.01.2022 14:45:38
-3,600
6f5643a07f48e9df12f0fc92fdc5cc2eeef60523
[BASE] extend status builder
[ { "change_type": "MODIFY", "old_path": "ortools/base/status_builder.h", "new_path": "ortools/base/status_builder.h", "diff": "#define OR_TOOLS_BASE_STATUS_BUILDER_H_\n#include <sstream>\n+#include <string>\n#include \"absl/status/status.h\"\n@@ -22,6 +23,8 @@ namespace util {\nclass StatusBuilder {\...
C++
Apache License 2.0
google/or-tools
[BASE] extend status builder
261,230
08.01.2022 14:45:54
-3,600
58a32b051078ad02141167a017c9484b00051017
improve binpacking_2d_sat.cc example
[ { "change_type": "MODIFY", "old_path": "examples/cpp/binpacking_2d_sat.cc", "new_path": "examples/cpp/binpacking_2d_sat.cc", "diff": "@@ -38,10 +38,12 @@ ABSL_FLAG(std::string, params, \"\", \"Sat parameters in text proto format.\");\nABSL_FLAG(int, max_bins, 0,\n\"Maximum number of bins. The 0 defa...
C++
Apache License 2.0
google/or-tools
improve binpacking_2d_sat.cc example
261,230
08.01.2022 15:09:25
-3,600
d6878fdc056bd8a8573d0b8ad60744de24dba318
[CP-SAT] speedup bool_var creation
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpModel.cs", "new_path": "ortools/sat/csharp/CpModel.cs", "diff": "@@ -68,7 +68,7 @@ public class CpModel\npublic IntVar NewBoolVar(string name)\n{\n- return new IntVar(model_, new Domain(0, 1), name);\n+ return new IntVar(model_, 0, 1, name...
C++
Apache License 2.0
google/or-tools
[CP-SAT] speedup bool_var creation
261,230
10.01.2022 13:38:27
-3,600
f82a67375d1e2aee54bace2202524b6213b2cef0
Rewrite LinearExpression part in CP-SAT C# interface
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpModel.cs", "new_path": "ortools/sat/csharp/CpModel.cs", "diff": "@@ -53,12 +53,10 @@ public class CpModel\n{\nreturn new IntVar(model_, domain, name);\n}\n- // Constants (named or not).\n- // TODO: Cache constant.\npublic IntVar NewConstan...
C++
Apache License 2.0
google/or-tools
Rewrite LinearExpression part in CP-SAT C# interface
261,230
10.01.2022 18:44:12
-3,600
4036cde59e629ada3ff99f9977a78ffc6bdfe12f
C# CP-SAT: test new expression; reformat examples/tests/*cs
[ { "change_type": "MODIFY", "old_path": "examples/tests/ConstraintSolverTests.cs", "new_path": "examples/tests/ConstraintSolverTests.cs", "diff": "@@ -864,7 +864,8 @@ namespace Google.OrTools.Tests\nOptimizeVar objective = solver.MakeMinimize(var, 1);\nint count = 0;\nSearchMonitor searchlog = solver...
C++
Apache License 2.0
google/or-tools
C# CP-SAT: test new expression; reformat examples/tests/*cs
261,230
10.01.2022 19:24:53
-3,600
7b477b008238594b509108e79935aec5639d446c
add cp-sat C# test; reformat code
[ { "change_type": "MODIFY", "old_path": "examples/tests/SatSolverTests.cs", "new_path": "examples/tests/SatSolverTests.cs", "diff": "@@ -431,6 +431,18 @@ public class SatSolverTest\nConsole.WriteLine(e8.ToString());\nLinearExpr e9 = LinearExpr.NewBuilder().AddWeightedSum(new BoolVar[] { b1, b2 }, c2)...
C++
Apache License 2.0
google/or-tools
add cp-sat C# test; reformat code
261,230
10.01.2022 19:29:22
-3,600
30fe883e9cc04fbea7610d2efba948806113738f
[GLOP] Fix bug in presolve
[ { "change_type": "MODIFY", "old_path": "ortools/glop/preprocessor.cc", "new_path": "ortools/glop/preprocessor.cc", "diff": "@@ -2344,8 +2344,7 @@ void SingletonUndo::SingletonRowUndo(const SparseColumn& saved_column,\nDCHECK_EQ(0, solution->dual_values[e_.row]);\n// If the variable is basic or free,...
C++
Apache License 2.0
google/or-tools
[GLOP] Fix bug in presolve
261,230
10.01.2022 19:29:40
-3,600
badb2189f1729e2edb5853d0beb690e6ca2fcc64
[CP-SAT] update doc files
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/IntegerExpressions.cs", "new_path": "ortools/sat/csharp/IntegerExpressions.cs", "diff": "@@ -116,7 +116,6 @@ public class LinearExpr\nreturn NewBuilder().AddTerm(expr, coeff).Add(offset);\n}\n-\npublic static LinearExpr Affine(ILiteral liter...
C++
Apache License 2.0
google/or-tools
[CP-SAT] update doc files
261,230
10.01.2022 21:24:54
-3,600
2aba48589e85fdb4f03c83dc29ab068ed0ee2679
port csharp sat examples
[ { "change_type": "MODIFY", "old_path": "examples/dotnet/BalanceGroupSat.cs", "new_path": "examples/dotnet/BalanceGroupSat.cs", "diff": "@@ -59,7 +59,7 @@ public class BalanceGroupSat\nvar model = new CpModel();\n- var itemInGroup = new IntVar[numberItems, numberGroups];\n+ var itemInGroup = new Bool...
C++
Apache License 2.0
google/or-tools
port csharp sat examples
261,230
11.01.2022 12:42:43
-3,600
c22032a7feb08eb108bfebf0855f6965611ed493
[CP-SAT] fix permission in new java API
[ { "change_type": "MODIFY", "old_path": "ortools/java/com/google/ortools/sat/CircuitConstraint.java", "new_path": "ortools/java/com/google/ortools/sat/CircuitConstraint.java", "diff": "@@ -17,10 +17,9 @@ import com.google.ortools.sat.CircuitConstraintProto;\nimport com.google.ortools.sat.CpModelProto...
C++
Apache License 2.0
google/or-tools
[CP-SAT] fix permission in new java API
261,230
11.01.2022 15:25:23
-3,600
43532a8d497df34b33d0a57a2b1bee871a57d9ae
add incremental constraint creation in CP-SAT C#
[ { "change_type": "MODIFY", "old_path": "examples/dotnet/GateSchedulingSat.cs", "new_path": "examples/dotnet/GateSchedulingSat.cs", "diff": "@@ -89,11 +89,7 @@ public class GateSchedulingSat\n}\n// Max Length constraint (modeled as a cumulative)\n- CumulativeConstraint cumul = model.AddCumulative(max...
C++
Apache License 2.0
google/or-tools
add incremental constraint creation in CP-SAT C#
261,230
11.01.2022 15:26:30
-3,600
79865d02cb2c0c774a0d2e73559d4dd5b131b1df
add TableConstraint.addTuples in java CP-SAT
[ { "change_type": "MODIFY", "old_path": "ortools/java/com/google/ortools/sat/TableConstraint.java", "new_path": "ortools/java/com/google/ortools/sat/TableConstraint.java", "diff": "@@ -62,4 +62,44 @@ public class TableConstraint extends Constraint {\ntable.addValues(value);\n}\n}\n+\n+ /**\n+ * Adds ...
C++
Apache License 2.0
google/or-tools
add TableConstraint.addTuples in java CP-SAT
261,230
11.01.2022 17:52:27
-3,600
be8c2f9c79b3214bbb19a3f9a0a2299fe800552d
[CP-SAT] improve C++ modeling layer; allow chaining incremental constraint filling methods in C#/Java
[ { "change_type": "MODIFY", "old_path": "ortools/java/com/google/ortools/sat/AutomatonConstraint.java", "new_path": "ortools/java/com/google/ortools/sat/AutomatonConstraint.java", "diff": "@@ -26,11 +26,12 @@ public class AutomatonConstraint extends Constraint {\n}\n/// Adds a transitions to the auto...
C++
Apache License 2.0
google/or-tools
[CP-SAT] improve C++ modeling layer; allow chaining incremental constraint filling methods in C#/Java
261,230
12.01.2022 10:31:55
-3,600
a130b9aad5590689007097bd596f0a1f84ba07a5
[CP-SAT] remove unused API
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model.h", "new_path": "ortools/sat/cp_model.h", "diff": "@@ -269,11 +269,6 @@ class LinearExpr {\nstatic LinearExpr WeightedSum(absl::Span<const BoolVar> vars,\nabsl::Span<const int64_t> coeffs);\n- /// Constructs the scalar product of variables...
C++
Apache License 2.0
google/or-tools
[CP-SAT] remove unused API
261,230
12.01.2022 10:32:17
-3,600
e25b39a3d1fb72e43761601bd4d6c86d9562de11
[CP-SAT] optimize C# modeling layer
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpModel.cs", "new_path": "ortools/sat/csharp/CpModel.cs", "diff": "@@ -85,7 +85,19 @@ public class CpModel\npublic Constraint AddLinearConstraint(LinearExpr linear_expr, long lb, long ub)\n{\n- return AddLinearExpressionInDomain(linear_expr,...
C++
Apache License 2.0
google/or-tools
[CP-SAT] optimize C# modeling layer
261,230
12.01.2022 11:12:03
-3,600
5d3ccd288196697510c4d684defd3e3822d65644
[CP-SAT] Tweak C# linear API
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpModel.cs", "new_path": "ortools/sat/csharp/CpModel.cs", "diff": "@@ -61,7 +61,7 @@ public class CpModel\npublic IntVar NewConstant(long value, string name)\n{\n- return new IntVar(model_, new Domain(value), name);\n+ return new IntVar(mode...
C++
Apache License 2.0
google/or-tools
[CP-SAT] Tweak C# linear API
261,230
12.01.2022 12:05:12
-3,600
23e3a7b9891ecf44e7ec6b9d97b82a66832ba7df
[CP-SAT] relax model validation requirement on scheduling constraints
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model.proto", "new_path": "ortools/sat/cp_model.proto", "diff": "@@ -113,9 +113,6 @@ message ElementConstraintProto {\n// This is not really a constraint. It is there so it can be referred by other\n// constraints using this \"interval\" concept...
C++
Apache License 2.0
google/or-tools
[CP-SAT] relax model validation requirement on scheduling constraints
261,282
11.01.2022 23:31:53
-3,600
e2054b3cb5fe7828edb98faeb508330418300594
only use domain object if really needed upgrade to C# 9 replace some null checks with "is (not) null"
[ { "change_type": "MODIFY", "old_path": "ortools/constraint_solver/csharp/IntVarArrayHelper.cs", "new_path": "ortools/constraint_solver/csharp/IntVarArrayHelper.cs", "diff": "@@ -76,7 +76,7 @@ public static class IntVarArrayHelper\n// get solver from array of integer variables\nprivate static Solver ...
C++
Apache License 2.0
google/or-tools
- only use domain object if really needed - upgrade to C# 9 - replace some null checks with "is (not) null"
261,282
12.01.2022 22:27:29
-3,600
b1bfb2e641f7106acbc0eee85123a9e548f63737
C# use var in is type check seal classes that have no derived class simplify AddOrIncrement function
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpModel.cs", "new_path": "ortools/sat/csharp/CpModel.cs", "diff": "@@ -636,10 +636,10 @@ public class CpModel\nobjective.Offset = 0L;\nobjective.ScalingFactor = minimize ? 1L : -1;\n}\n- else if (obj is IntVar)\n+ else if (obj is IntVar intV...
C++
Apache License 2.0
google/or-tools
C# - use var in is type check - seal classes that have no derived class - simplify AddOrIncrement function
261,282
14.01.2022 17:56:54
-3,600
e3c427a9508268e9b2029d6754fc78aab97791c8
improve allocation on some tests
[ { "change_type": "MODIFY", "old_path": "examples/tests/SatSolverTests.cs", "new_path": "examples/tests/SatSolverTests.cs", "diff": "@@ -20,6 +20,8 @@ namespace Google.OrTools.Tests\n{\npublic class SatSolverTest\n{\n+ private const int LargeCount = 100000;\n+\nstatic IntegerVariableProto NewIntegerV...
C++
Apache License 2.0
google/or-tools
improve allocation on some tests
261,282
14.01.2022 23:21:02
-3,600
1eb93136dd7d6fb68d58de07a3ba7d0e2054be92
set capacity before adding if size is known
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpModel.cs", "new_path": "ortools/sat/csharp/CpModel.cs", "diff": "@@ -84,6 +84,9 @@ public class CpModel\nlinear = new LinearConstraintProto();\nDictionary<IntVar, long> dict = new Dictionary<IntVar, long>();\nlong constant = LinearExpr.Get...
C++
Apache License 2.0
google/or-tools
set capacity before adding if size is known
261,230
16.01.2022 09:31:40
-3,600
32e92e6aaf2190fd5e4ad0e52f2d7f6d03e82310
add cpp format
[ { "change_type": "MODIFY", "old_path": ".clang-format", "new_path": ".clang-format", "diff": "---\n-Language: Cpp\n-BasedOnStyle: Google\n-# Force pointer to align on the type for C++\n+Language: CSharp\n+# BasedOnStyle: Microsoft\n+AccessModifierOffset: -2\n+AlignAfterOpenBracket: Align\n+AlignArra...
C++
Apache License 2.0
google/or-tools
add cpp format
261,230
16.01.2022 17:37:42
-3,600
ef0e93637de6a8865f156f1f579b823be7bde7d0
reformat c# code
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpModel.cs", "new_path": "ortools/sat/csharp/CpModel.cs", "diff": "@@ -396,8 +396,8 @@ public class CpModel\n* contains the final states. </para>\n*\n* <para>Between two consecutive phases i and i + 1, the automaton creates a set of arcs. Fo...
C++
Apache License 2.0
google/or-tools
reformat c# code
261,218
14.01.2022 16:11:05
-3,600
b7ed2f5355709ffbe75934a57e82c88bbacf7314
cp: Update doc
[ { "change_type": "MODIFY", "old_path": "ortools/constraint_solver/doc/routing_svg.py", "new_path": "ortools/constraint_solver/doc/routing_svg.py", "diff": "+#!/usr/bin/env python3\n# Copyright 2010-2021 Google LLC\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not us...
C++
Apache License 2.0
google/or-tools
cp: Update doc
261,218
14.01.2022 17:15:11
-3,600
fc1c7e271840da4a40b673baf6b6fa9b2e6d6a5a
routing: make python sample executable
[ { "change_type": "MODIFY", "old_path": "ortools/constraint_solver/samples/cvrp.py", "new_path": "ortools/constraint_solver/samples/cvrp.py", "diff": "-#!/usr/bin/env python\n+#!/usr/bin/env python3\n# This Python file uses the following encoding: utf-8\n# Copyright 2015 Tin Arm Engineering AB\n# Cop...
C++
Apache License 2.0
google/or-tools
routing: make python sample executable
261,218
12.01.2022 16:05:15
-3,600
1cefc4cbeef4b2c593cc949259b27ab009be7738
Bump ortools/base
[ { "change_type": "MODIFY", "old_path": "ortools/base/BUILD.bazel", "new_path": "ortools/base/BUILD.bazel", "diff": "@@ -347,6 +347,14 @@ cc_library(\ndeps = [\":base\"],\n)\n+cc_library(\n+ name = \"source_location\",\n+ hdrs = [\"source_location.h\"],\n+ deps = [\n+ \"@com_google_absl//absl/base:co...
C++
Apache License 2.0
google/or-tools
Bump ortools/base
261,218
17.01.2022 09:27:54
-3,600
63da2871fcb7757f837d7295a6540a33c36f455f
sync constraint_solver doc
[ { "change_type": "MODIFY", "old_path": "ortools/constraint_solver/doc/routing_svg.py", "new_path": "ortools/constraint_solver/doc/routing_svg.py", "diff": "@@ -442,8 +442,7 @@ class SVGPrinter(object): # pylint: disable=too-many-instance-attributes\nprint(r'<!-- Print depot -->')\ncolor = self._colo...
C++
Apache License 2.0
google/or-tools
sync constraint_solver doc
261,218
17.01.2022 09:28:11
-3,600
5d7b310bda86116083bd852b25b753e7e2611fc1
sync linear_solver
[ { "change_type": "MODIFY", "old_path": "ortools/linear_solver/BUILD.bazel", "new_path": "ortools/linear_solver/BUILD.bazel", "diff": "@@ -59,7 +59,6 @@ cc_library(\n\"linear_solver_callback.cc\",\n\"linear_solver.cc\",\n\"lpi_glop.cpp\",\n- \"model_exporter.cc\",\n\"model_validator.cc\",\n\"sat_inte...
C++
Apache License 2.0
google/or-tools
sync linear_solver
261,218
17.01.2022 11:01:32
-3,600
6a1559f0a97cf1b5b07be8663055e810be586e06
linear_solver: Fix indentation
[ { "change_type": "ADD", "old_path": null, "new_path": ".clang-format", "diff": "+---\n+Language: Cpp\n+BasedOnStyle: Google\n+# Force pointer to align on the type for C++\n+DerivePointerAlignment: false\n+PointerAlignment: Left\n+---\n+Language: Java\n+BasedOnStyle: Google\n+---\n+Language: CSharp\n...
C++
Apache License 2.0
google/or-tools
linear_solver: Fix indentation
261,230
17.01.2022 11:17:08
-3,600
e6e15cb57e481deb3a117071f9f278057f2928ef
partial pull of PR 3086
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpSolver.cs", "new_path": "ortools/sat/csharp/CpSolver.cs", "diff": "@@ -148,6 +148,18 @@ public class CpSolver\n}\n}\n+ /**\n+ * <summary>\n+ * Returns the value of an integer variable in the last solution found.\n+ * </summary>\n+ */\n+ pu...
C++
Apache License 2.0
google/or-tools
partial pull of PR 3086
261,230
17.01.2022 11:44:54
-3,600
a425d6ab8e5c378220d8458b9413dfbf859a5986
use model queue for expression getvarvaluemap
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpModel.cs", "new_path": "ortools/sat/csharp/CpModel.cs", "diff": "@@ -26,6 +26,7 @@ public class CpModel\n{\nmodel_ = new CpModelProto();\nconstant_map_ = new Dictionary<long, int>();\n+ terms_ = new Queue<Term>();\n}\n// Getters.\n@@ -122,...
C++
Apache License 2.0
google/or-tools
use model queue for expression getvarvaluemap
261,230
17.01.2022 16:31:41
-3,600
641d3d2c5eb2b5f88ce770c7f8bbe559b3af7d5d
[CP-SAT] reuse vectors in cuts; remove dead code; fix bug in abs(x) in domain presolve; fix
[ { "change_type": "MODIFY", "old_path": "ortools/sat/cp_model_presolve.cc", "new_path": "ortools/sat/cp_model_presolve.cc", "diff": "@@ -1826,7 +1826,8 @@ bool CpModelPresolver::PresolveLinearOfSizeOne(ConstraintProto* ct) {\n// replace x by abs_arg and hopefully remove the variable x later.\nint abs...
C++
Apache License 2.0
google/or-tools
[CP-SAT] reuse vectors in cuts; remove dead code; fix bug in abs(x) in domain presolve; fix #3084
261,218
17.01.2022 17:12:10
-3,600
074930f6f3190a0a1e1f26d202db83fed60d66dd
fix mps_reader.h include
[ { "change_type": "MODIFY", "old_path": "ortools/lp_data/mps_reader.h", "new_path": "ortools/lp_data/mps_reader.h", "diff": "#include \"absl/status/status.h\"\n#include \"absl/status/statusor.h\"\n#include \"absl/strings/numbers.h\"\n-#include \"ortools/base/filelineiter.h\"\n+#include \"ortools/util...
C++
Apache License 2.0
google/or-tools
fix mps_reader.h include
261,230
17.01.2022 21:42:03
-3,600
7e7542fb57808fbc9e8d10e0d03d7c0ae9a70d19
reduce visibility of CP-SAT C# internal methods
[ { "change_type": "MODIFY", "old_path": "ortools/sat/csharp/CpSolver.cs", "new_path": "ortools/sat/csharp/CpSolver.cs", "diff": "@@ -22,7 +22,7 @@ namespace Google.OrTools.Sat\n* Wrapper around the SAT solver.\n* </summary>\n*\n- * <remarks>This class proposes a <code>Solve()</code> method, as well a...
C++
Apache License 2.0
google/or-tools
reduce visibility of CP-SAT C# internal methods