Commit Graph

199 Commits

Author SHA1 Message Date
Corentin Le Molgat
0db80a34f6 sat: backport from main 2025-08-06 10:54:53 +02:00
Corentin Le Molgat
292ded31a2 sat: Formatting CpSolver.cs 2025-05-27 13:18:42 +02:00
Corentin Le Molgat
3067056625 backport from main branch
* bazel: add missing python typing-extensions requirements
* use [[maybe_unused]] standard attribute
* linear_solver: improve LpQuadraticTerm support
2025-04-30 15:15:39 +02:00
Laurent Perron
e0544026ba [CP-SAT] small fixes, reindent 2025-04-30 13:54:47 +02:00
Laurent Perron
f2e2e497ed implement IDisposable 2025-04-09 15:20:02 +02:00
Corentin Le Molgat
d7077ba43b dotnet: Fix SatSolverTests.cs 2025-03-28 11:52:08 +01:00
Laurent Perron
6620974766 [CP-SAT] fix potential race when stopping a search asynchronously 2025-03-25 11:22:49 -07:00
Corentin Le Molgat
a66a6daac7 Bump Copyright to 2025 2025-01-10 11:35:44 +01:00
Laurent Perron
df97cd5776 [CP-SAT] reorganize code 2024-11-29 14:30:29 +01:00
Laurent Perron
d50d16837b fix doc 2024-11-28 15:53:03 +01:00
Laurent Perron
719eb3bc82 fix 2024-10-25 17:56:21 +02:00
Laurent Perron
ee241f30b5 [CP-SAT] supports affine expression in automaton 2024-10-25 13:15:40 +02:00
Laurent Perron
7ee3925d68 fix runtime check 2024-10-24 11:56:31 +02:00
Laurent Perron
663a591a32 [CP-SAT] move code around; add more tests 2024-10-23 15:47:31 +02:00
Laurent Perron
55ff5cf534 [CP-SAT] change element and table protos, API to support affine expressions 2024-10-23 05:59:17 +02:00
Laurent Perron
eed337ade5 [CP-SAT] add support for element with affine expressions in C# + test 2024-10-18 19:09:21 +02:00
Corentin Le Molgat
8e1dece507 format fix 2024-09-18 11:56:23 +02:00
Laurent Perron
43e28c4669 [CP-SAT] c# fix 2024-08-16 07:36:45 -07:00
Laurent Perron
1b9e132782 minor fix 2024-08-13 06:56:26 -07:00
Laurent Perron
c539b42de7 [CP-SAT] add hinting API for literals + test 2024-08-13 06:41:55 -07:00
Alexander Ignatovich
0abbe38ad7 fix SAT solver test output 2024-07-27 15:35:13 +02:00
Corentin Le Molgat
a40335bbda sat: Cleanup SatSolverTests.cs 2024-07-22 14:48:45 +02:00
Laurent Perron
f1a32a6c48 fix 2024-07-22 14:18:10 +02:00
Laurent Perron
c71b9a041b fix 2024-07-22 14:13:22 +02:00
Laurent Perron
cfe3221ac4 [CP-SAT] polish c# code; remove failing DCHECK 2024-07-22 14:09:07 +02:00
Laurent Perron
ec453aafb6 [CP-SAT] fix best bound callback non C++ code; more work on pseudo-costs 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
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
Corentin Le Molgat
dd6da5bf0f cmake: rework dotnet helper functions 2024-01-18 11:22:38 +01:00
Mizux Seiha
a76bf1c5dd bump license boilerplate 2024-01-04 13:43:15 +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
3219d12658 [CP-SAT] support linear expressions in decision strategies 2023-12-08 14:50:21 +01:00
Laurent Perron
eb32e1f190 New C# CP-SAT example: CoverRectangle 2023-10-31 10:20:56 +01:00
Laurent Perron
afbca7604d cleanup c# swig: move vector calling to client .i, import vector.i instead of include; begin support for c# model_builder 2023-10-30 21:51:08 +01:00
Laurent Perron
ebb88d9c50 [CP-SAT] fix corner cases in presolve; rewrite part of the cut management; automatic fixes 2023-05-30 23:25:31 +02:00
Mizux Seiha
53c1e40969 swig: Fix define definition
need to set ABSL_MUST_USE_RESULT to empty string so '=' is mandatory
2023-05-30 14:49:13 +02:00
Laurent Perron
acda5d226d [CP-SAT] reduce memory usage of integer variables; add option to save model in binary format 2023-02-09 16:18:46 -08:00
Corentin Le Molgat
41d60ad520 cmake: Fix SWIG build
Still need to define ABSL_MUST_USE_RESULT= even with swig 4.1.1
2023-02-06 08:47:46 +01:00
Corentin Le Molgat
9054f13f95 cmake: remove ABSL_MUST_USE_RESULT for swig
should be fixed with absl upstream + swig 4.1 now support attibute
2023-02-06 08:47:46 +01:00
Mizux Seiha
baaf1ca82a cmake: Fix dotnet build
* fix cmake/dotnet.cmake
* fix <cmp>/dotnet/CMakeLists.txt
* fix examples/tests/CMakeLists.txt
2022-09-23 13:15:36 +02:00
Mizux Seiha
224ebed399 move examples/test/*.cs to ortools/<component>/csharp 2022-09-23 13:15:36 +02:00
Laurent Perron
9931205f7c [CP-SAT] prepare for reservoir with variable demand; internal tweakes 2022-09-09 16:48:39 +02:00
Corentin Le Molgat
1af55b2be3 Add license boilerplate 2022-06-21 11:25:29 +02:00
Laurent Perron
87ca4f58ad [CP-SAT] bump license years; fix scheduling cuts; improve lb_tree_search 2022-06-16 15:21:00 +02:00
Corentin Le Molgat
514c00042c sync google3 2022-05-19 17:23:02 +02:00
Laurent Perron
7a46833a12 fix #3283: implement clear objective method in CP-SAT 2022-05-07 10:37:29 +02:00
bollhals
823840fd5b fix review comment 2022-01-25 22:54:43 +01:00
bollhals
fd67eabfdd improve GetVarValueMap 2022-01-25 01:16:38 +01:00
Laurent Perron
d53135d509 reformat 2022-01-21 12:01:36 +01:00
Laurent Perron
3bb0aa6b32 [CP-SAT] misc work, improve no_overlap_2d propagation and cuts 2022-01-19 19:38:20 +01:00