Commit Graph

310 Commits

Author SHA1 Message Date
Laurent Perron
bcf7a00a27 [CP-SAT] add test; change default parameters; fix crash on shared workers 2024-07-19 16:29:33 +02:00
Laurent Perron
21a75638c2 partial sync with main (without the routing part) 2024-07-12 13:56:11 +02:00
Laurent Perron
0670c8ab7b fix python typing 2024-05-30 10:52:46 +02:00
Laurent Perron
d28edd701c [CP-SAT] code cleanup; more pseudo-cost experimental code; add objective best bound callback 2024-05-30 10:52:46 +02:00
Laurent Perron
fa2473affe [CP-SAT] improve presolve for affine_max, improve work sharing; improved linear code 2024-05-30 10:52:44 +02:00
Laurent Perron
4cbd27dae9 sync with main 2024-05-30 10:52:42 +02:00
Laurent Perron
382ab5d35b [CP-SAT] do not add the linear part of an interval in the model, create it when copying the model for presolve; improve work sharing in shared_tree_mode 2024-05-30 10:51:55 +02:00
Laurent Perron
5828741c75 [CP-SAT] improve no_overlap_2d propagation; improve linear propagator + precedences + disjunctive connection; change the way maximization is implemented in python 2024-05-30 10:51:55 +02:00
Laurent Perron
6e8189608a [CP-SAT] polish typing 2024-05-30 10:51:54 +02:00
Laurent Perron
f92d236fbf [CP-SAT] experimental lin_max expand; improve python typing 2024-05-30 10:51:54 +02:00
Laurent Perron
07fa7ddc9e [CP-SAT] update python typing for mypy 2024-05-30 10:51:54 +02:00
Laurent Perron
511bf047a7 backport cp-sat code from main 2024-05-30 10:51:53 +02:00
Laurent Perron
eb4e996cf3 [CP-SAT] improve python doc 2024-02-20 20:18:10 +01:00
Laurent Perron
eeba7d9fb8 fix #4084 2024-02-16 23:27:08 +01:00
Corentin Le Molgat
75f197409a cmake: rework add_python_test()
* Add FILE_NAME option
* add optional COMPONENT_NAME option
  note: needed if test.py is not in a ortools/<component>/python/ dir
2024-01-15 13:33:49 +01:00
Mizux Seiha
a76bf1c5dd bump license boilerplate 2024-01-04 13:43:15 +01:00
Laurent Perron
3b167f11dd fix 2023-12-21 09:37:04 +01:00
Laurent Perron
88ef192a2f remove log 2023-12-21 07:16:53 +01:00
Laurent Perron
234024ab74 [CP-SAT] improve python typing; speed up no_overlap_2d; simplofy lns utilities; fix bug in probing 2023-12-19 15:04:12 +01:00
Laurent Perron
5b911b1169 [CP-SAT] add ~operator for the logical negation in C++ and Python; fix a bug in C# 2023-12-15 14:10:44 +01:00
Laurent Perron
5bd09c376e [CP-SAT] fix c++ decision strategy API; fix #4013; tweak in processing and its parameters; tweak energetic diffn code 2023-12-12 16:20:02 +01:00
Laurent Perron
64b7db74ef fix typechecking code 2023-12-08 17:30:46 +01:00
Laurent Perron
3219d12658 [CP-SAT] support linear expressions in decision strategies 2023-12-08 14:50:21 +01:00
Laurent Perron
30976f1018 [CP-SAT] fix python typing in objective expression 2023-12-06 14:12:11 +01:00
Laurent Perron
240488f4a9 fix 2023-12-04 16:53:54 +01:00
Laurent Perron
8cb49eb87a more cp_model.py typing 2023-11-27 11:35:06 +01:00
Laurent Perron
ddf88f35a9 improve cp-sat python types 2023-11-22 17:33:01 +01:00
Laurent Perron
e0b7582637 improve python typing 2023-11-22 14:47:35 +01:00
Laurent Perron
6136a47c99 improvement to PDLP, remove most GLPK from tests, add py.typed for CP-SAT and model_builder python modules: fix #3993 2023-11-22 11:43:44 +01:00
Laurent Perron
a8cf3195d2 more PEP8 work 2023-11-17 11:56:36 +01:00
Laurent Perron
5b6c803db3 [CP-SAT] convert to PEP8 convention 2023-11-16 19:46:56 +01:00
Laurent Perron
08e53974c7 [CP-SAT] tweak model cloning API; implement it in java; merge pure sat presolve with normal presolve 2023-10-25 15:38:57 +02:00
Laurent Perron
6d1a1b455c [CP-SAT] add pandas support for intervals; new sample that uses them; improve the meta-heuristics in feasibility_jump 2023-10-09 18:07:11 +02:00
Laurent Perron
9e2770f8bd [CP-SAT] extensive work on scheduling; add new cumulative with profile example 2023-10-08 11:21:00 +02:00
Laurent Perron
7d0d173a0f [CP-SAT] optimize feasibility jump; optimize linear presolve; better presolve logging; fix #3917; rewrite and simplify search heuristics code 2023-09-13 18:16:28 +02:00
Laurent Perron
6d8495f423 [CP-SAT] improve core based search with more core reduction 2023-07-27 08:49:46 -07:00
Laurent Perron
4ade94b960 [CP-SAT] remove unused pure sat code; cleanup sat_runner 2023-07-24 07:09:47 -07:00
Laurent Perron
9a5c7e8dad use python3.7+ typing in model_builder and cp_model 2023-07-21 16:42:55 -07:00
Laurent Perron
eea10fb7b9 [CP-SAT] test pandas code; typing tweaks 2023-07-11 06:57:06 -07:00
Laurent Perron
00947846f6 [CP-SAT] Initial pandas support + samples 2023-07-10 18:49:45 -07:00
Laurent Perron
e86780b734 [CP-SAT] more work on cp_model.py 2023-07-10 11:40:21 -07:00
Laurent Perron
eb13ff71a2 switch .format() to f' ' 2023-07-10 11:01:22 -07:00
Laurent Perron
04981893c3 [CP-SAT] polish cp_model.py typing 2023-07-10 14:51:08 +02:00
Xiang Chen
5e36e203c7 [CP-SAT] Add more python type hints 2023-07-09 17:07:36 +02:00
Laurent Perron
346642b871 remove the pywrap prefix from pybind11 modules; add _pybind to the cmake target of the same modules 2023-07-03 14:30:27 +02:00
Laurent Perron
c3fdb12908 Switch algorithms and scheduling python libraries from swig to pybind11; switch protobuf support from forced serialization to pybind11_protobuf -- with patch; [CP-SAT] rewrite cut management; reformat samples with black 2023-06-30 22:49:35 +02:00
Laurent Perron
a743431365 start reformating with black 2023-06-27 14:21:34 +02:00
Laurent Perron
7e40d75927 fix #3803 2023-05-30 22:58:06 +02:00
Mizux Seiha
2de7d6fbac bazel: Fix build 2023-04-03 11:06:28 +02:00
djsilcock
8f58b6a302 Fix reference to solve_wrapper in Solve method 2023-03-26 21:25:22 +01:00