Commit Graph

320 Commits

Author SHA1 Message Date
Laurent Perron
c13d2af484 [CP-SAT] more absl::Stan; StrongVector namespace change; fix java best bound callback + tests; more presolve 2024-05-14 14:43:55 +02:00
Laurent Perron
2758b6cb5f fix python typing 2024-05-02 13:01:19 +02:00
Laurent Perron
a5c9b75502 [CP-SAT] code cleanup; more pseudo-cost experimental code; add objective best bound callback 2024-04-29 16:25:06 +02:00
Laurent Perron
c86a1f8dad [CP-SAT] improve presolve for affine_max, improve work sharing; improved linear code 2024-04-14 10:58:12 +02:00
Laurent Perron
622483b682 mostly reformat 2024-04-08 11:34:45 +02:00
Laurent Perron
e1c19b6c94 better error message when parsing floating point coefficients 2024-04-07 13:42:27 +02:00
Laurent Perron
9e29b08813 [CP-SAT] minor improvement on cp_model.py typing/code 2024-04-05 11:42:10 +02:00
Corentin Le Molgat
4e52b0abe3 python: fix indent 2024-04-04 18:00:32 +02:00
Laurent Perron
888d89b5e0 [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-04-03 11:43:20 +02:00
Corentin Le Molgat
c1138a3d73 bazel: bump rules_python to 0.31.0 2024-04-02 08:52:35 +02:00
Laurent Perron
32bffd90d5 [CP-SAT] improve no_overlap_2d propagation; improve linear propagator + precedences + disjunctive connection; change the way maximization is implemented in python 2024-03-29 15:05:05 +01:00
Laurent Perron
99a9fe3659 [CP-SAT] polish typing 2024-03-21 15:48:37 +01:00
Laurent Perron
346794b735 [CP-SAT] experimental lin_max expand; improve python typing 2024-03-21 14:01:52 +01:00
Laurent Perron
149b3dabd7 fix #4137 2024-03-19 10:04:50 +01:00
Laurent Perron
df9079571e [CP-SAT] fix rare sat bug; reformat 2024-03-14 15:05:53 +01:00
Laurent Perron
20bc70d8e0 fix #4131 2024-03-14 10:44:51 +01:00
Laurent Perron
6a9ac77d1b [CP-SAT] improve violation computation for int_mod, experimental code for new_linear_propagation 2024-03-13 16:24:38 +01:00
Laurent Perron
f48c111bea [CP-SAT] more work on python typing, tring to merge contradictory errors with mypy and pytype; better processing of at_most_one; optional flag to expand lin_max with a set of enforced linear 2024-03-12 17:24:29 +01:00
Laurent Perron
2bc1a3874e [CP-SAT] revert use of ValueType in python typing 2024-03-11 14:27:26 +01:00
Laurent Perron
eec45f637e fix/tweak CP-SAT typing 2024-03-11 13:02:30 +01:00
David Hotham
9ebc79c588 more type annotation fixes 2024-03-09 23:49:44 +00:00
David Hotham
dd9b7b29c4 some fixes to the python typing 2024-03-09 12:33:56 +00: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