Commit Graph

407 Commits

Author SHA1 Message Date
Laurent Perron
99ede3bbde [CP-SAT] more polishing on the python API; fix #4733; improve linear2 processing 2025-07-28 10:34:04 -07:00
Laurent Perron
374cc3e596 polish code 2025-07-27 15:29:20 -07:00
Laurent Perron
8b4c79dd75 [CP-SAT] Python: rewrite support for variable numbers of arguments 2025-07-26 21:29:09 +02:00
Laurent Perron
f2cf147e79 [CP-SAT] rewrite and speed up the python layer; extend support for enforcement literals to more constraints 2025-07-24 23:51:00 +02:00
Guillaume Chatelet
6759325e87 Fix load statements 2025-07-24 16:37:06 +00:00
Guillaume Chatelet
447ce0b3e2 Fix bazel load rules 2025-07-23 09:05:10 +00:00
Guillaume Chatelet
8098080ff3 Merge pull request #4735 from google/backport_string_view_migration
Backport string_view_migration.h
2025-07-21 10:01:20 +02:00
Guillaume Chatelet
924ba73402 Fix
* Re-introduce it in base/ BUILD.bazel
* Add explicit deps in every target using it
2025-07-18 16:18:11 +00:00
Guillaume Chatelet
7db9c0e956 Backport string_view_migration.h 2025-07-18 11:59:34 +00:00
Guillaume Chatelet
d869a1fd4c Backport trivial changes 2025-07-18 08:11:03 +00:00
Laurent Perron
04d0dbc606 [CP-SAT] optimize the python layer 2025-07-17 17:51:53 +02:00
Laurent Perron
0720713896 [CP-SAT] simplify python proto generation workflow 2025-07-17 12:55:17 +02:00
Laurent Perron
ed8f74273c fix python cp-sat under bazel 2025-07-16 17:41:50 +02:00
Laurent Perron
e5dc796ef6 [CP-SAT] remove the use of python protobufs; use proxies to C++ protobufs instead; this changes slightly the API of these proto for parameters 2025-07-16 16:55:49 +02:00
Laurent Perron
8ed3f8d995 [CP-SAT] more tuning on shared tree workers; add parameter to limit linear2 efforts on restarts 2025-06-24 21:08:27 +02:00
Laurent Perron
0ac20dfcd7 [CP-SAT] improve precedences; fix #4693; tweak shared tree workers 2025-06-23 17:33:30 +02:00
Laurent Perron
8abc6da4dd cleanup python expression code for cp-sat and model-builder 2025-06-13 13:13:26 +02:00
Laurent Perron
b1d5100c3b improve python exprs 2025-06-12 14:04:51 +02:00
Laurent Perron
7d58c118f6 improve python exprs 2025-06-12 11:52:00 +02:00
Laurent Perron
43c874a733 fix 2025-06-12 11:18:26 +02:00
Laurent Perron
c229e9facd [CP-SAT] improve python layer for += and -= operators 2025-06-12 11:11:12 +02:00
Laurent Perron
9ca57ad2cd [CP-SAT] more precedence handling; minor python improvements 2025-06-11 15:03:52 +02:00
Laurent Perron
64fcba4be7 [CP-SAT] work on precedences; fix bug in scheduling cuts 2025-06-10 17:25:55 +02:00
Mizux Seiha
ed1b05d1d8 bazel: update deps
* don't use repo name
* Bump abseil-cpp to 20250512.0
* Bump Protobuf to 31.0
* Bump benchmark to 1.9.2
* Bump googletest to 1.17.0
2025-05-22 03:12:46 +02:00
Laurent Perron
6dc688876d fix #4654 2025-05-21 12:37:44 +02:00
Laurent Perron
f91b091050 fix #4641 2025-05-07 13:28:48 +02:00
Laurent Perron
e037f914f9 more work on sat 2025-03-27 06:40:55 -07:00
Laurent Perron
71d308078f [CP-SAT] more cleanups; routing cuts experiments 2025-03-26 15:03:38 -07:00
Corentin Le Molgat
05e3190929 bazel: rename com_google_absl to abseil-cpp 2025-03-24 18:21:42 +01:00
Laurent Perron
3f0a93e3e2 change cp-sat python cloning example to use deepcopy 2025-03-07 10:30:10 +01:00
Laurent Perron
e179143414 [CP-SAT] fix #4851; improve routing cuts 2025-03-06 15:15:12 +01:00
Laurent Perron
a99e7c833c [CP-SAT] fix #4568 2025-02-25 19:33:33 +01:00
Laurent Perron
dd433e2d1c [CP-SAT] hash python variables 2025-02-19 13:32:31 +01:00
Laurent Perron
766be56171 [CP-SAT] add float value to the CpSolver and solution callback classes 2025-02-17 14:25:29 +01:00
Laurent Perron
446f853ed9 [CP-SAT] fix diffn cut; more tests 2025-01-29 11:44:58 +01:00
Laurent Perron
757cdeb5e1 [CP-SAT] add experimental routing constraint; more no_overlap_2d presolve; add random_half branching heuristics 2025-01-28 13:34:07 +01:00
Laurent Perron
fab05c81d2 [CP-SAT] regroup hint code; fix more fuzzer bugs 2025-01-21 15:33:35 +01:00
Laurent Perron
8733308ecc [CP-SAT] regroup all hint preservation code in a SolutionCrunch class; more work on no_overlap_2d propagator; add exception processing if an exceptions is raised in a python callback (solution, log, best_bound) 2025-01-20 14:59:53 +01:00
Laurent Perron
e600bc348f do not create new expressions on no-op modifications 2025-01-19 12:01:56 +01:00
Laurent Perron
807dccf538 remove unconventional using in pybind11 code 2025-01-19 11:37:49 +01:00
Laurent Perron
67efef00fc [CP-SAT] cleanup python layer 2025-01-19 08:49:52 +01:00
Laurent Perron
8e9930b43f [CP-SAT] more bug fixes; rewrite the memory management of the python layer using shared_ptr; add inprocessing to no_overlap_2d for fixed arrays 2025-01-18 18:45:03 +01:00
Laurent Perron
b3a9359ca5 [CP-SAT] fix python layer when an exception is thrown in a callback; bug fixes 2025-01-16 17:41:52 +01:00
Laurent Perron
718794cd2e test floats that print reliably 2025-01-14 18:27:28 +01:00
Laurent Perron
4b26c84b48 [CP-SAT] more on scheduling reorg; polish python layer 2025-01-14 16:00:07 +01:00
Laurent Perron
1cc4f5a931 fix 2025-01-13 14:16:46 +01:00
Laurent Perron
492fca39b3 [CP-SAT] polish python API and add more tests 2025-01-13 11:35:10 +01:00
Laurent Perron
11c8be75fe minor optim 2025-01-11 07:13:08 +01:00
Laurent Perron
d448cbe973 fix 2025-01-10 23:01:54 +01:00
Laurent Perron
21f425f99e more work on CP-SAT python; lots of fixes for bugs found by fuzzer 2025-01-10 22:25:44 +01:00