Commit Graph

3200 Commits

Author SHA1 Message Date
Laurent Perron
33fd1f910d [CP-SAT] better presolve when an at_most_one/exactly_one appears a linear constraint 2022-05-12 14:09:18 +02:00
Laurent Perron
ba15d312ba [CP-SAT] improve cuts diversity; fix infinite loop in the ttef constraint; improve var domination; remove wrong DCHECK 2022-05-11 17:23:59 +02:00
Laurent Perron
71336d84b8 [CP-SAT] always display the number of Boolean variables in the model summary 2022-05-09 15:56:18 +02:00
Laurent Perron
3ed32f3dd3 [CP-SAT] Add new scheduling lns; improve cover cuts; improve the propagation of the timetable constraint; speed-up domination detection (abort early if possible); remove deprecated knapsack cut code 2022-05-09 14:44:50 +02:00
Laurent Perron
7a46833a12 fix #3283: implement clear objective method in CP-SAT 2022-05-07 10:37:29 +02:00
Corentin Le Molgat
a6431c1188 bazel: fix running python test 2022-05-04 14:46:01 +02:00
Corentin Le Molgat
59c7491170 routing: Add vrp_items_to_deliver.py 2022-05-04 11:49:14 +02:00
Corentin Le Molgat
a7cd09b680 google3: sync 2022-05-04 08:26:48 +02:00
Mizux Seiha
fbf0104cc9 dotnet: Bump testing deps 2022-05-03 17:52:41 +02:00
Laurent Perron
9e9c8ed874 read json too 2022-05-02 16:52:35 +02:00
Laurent Perron
cae46c9069 missing STL includes 2022-05-02 16:52:24 +02:00
Laurent Perron
6804fcdad5 vectorized linear_sum assignment example 2022-05-02 16:52:13 +02:00
Laurent Perron
d85e4ed10f missing STL includes 2022-05-02 16:51:52 +02:00
Laurent Perron
06fd6e6c60 add min_cost_flow, max_flow, linear_sum_assignment numpy fast API, port simple_max_flow/simple_min_cost_flow to the fast API, fix #321, #1020, #2390 2022-04-30 18:23:35 +02:00
StefanBruens
9021ffbb95 Build Python modules as CMake MODULEs (#3259)
Python since 3.8 no longer links to the interpreter library, so
symbols like `PyExc_AttributeError` will be undefined at link time.

This causes build failures when shared libraries are linked with
`-Wl,--no-undefined`. Use `TYPE MODULE` for python extension modules,
which allows to specify distinct flags via CMAKE_MODULE_LINKER_FLAGS
vs CMAKE_SHARED_LINKER_FLAGS. (The same is already used by
`pybind11_add_module(... MODULE ...)`).

Fixes #3258.
2022-04-28 15:50:56 +02:00
Corentin Le Molgat
9d69d6bb05 base: Add strtoint 2022-04-26 17:54:18 +02:00
Corentin Le Molgat
ef4e252a1e base: update 2022-04-26 17:54:17 +02:00
Corentin Le Molgat
c37f508f54 bazel: format base/BUILD.bazel
* Add path.h
2022-04-26 17:54:17 +02:00
Laurent Perron
d99e3c679c fix #3253 2022-04-25 15:35:31 +02:00
Laurent Perron
a1e6a11876 fix #3257 2022-04-25 15:08:10 +02:00
Laurent Perron
5b87373be5 [CP-SAT] work on scheduling cuts 2022-04-21 17:29:56 +02:00
Laurent Perron
e3eb35132b [CP-SAT] add more CpModel C++ methods; fix #3248; fix #3251; specify restrictions in cp_model.proto 2022-04-21 16:28:13 +02:00
Laurent Perron
20b1c7eeab [CP-SAT] Speedup timetable, fix bug in base SAT engine, improve scheduling cuts 2022-04-20 17:38:59 +02:00
Laurent Perron
3ba6968b67 [CP-SAT] improve scheduling cuts and explanations 2022-04-14 16:42:13 +02:00
Laurent Perron
0f99350f64 [CP-SAT] improve scheduling code (propagator, cuts) 2022-04-13 17:29:48 +02:00
Laurent Perron
d744cdda92 minor fix 2022-04-08 11:59:32 +02:00
Laurent Perron
7de828681c [CP-SAT] better fix for presolve crash when interrupted 2022-04-08 11:58:54 +02:00
Laurent Perron
74d5a10f50 minor sync 2022-04-08 11:01:13 +02:00
Laurent Perron
06bee0db52 [CP-SAT] bugfixes; more work on cuts on graphs 2022-04-07 18:21:56 +02:00
Laurent Perron
9d1803cee2 [CP-SAT] bugfixes; more work on cuts on graphs 2022-04-07 17:59:22 +02:00
Laurent Perron
f85534c694 polish scheduling cuts 2022-04-06 18:33:49 +02:00
Laurent Perron
2a5a2b7069 remove types warnings; add stronger scheduling cuts 2022-04-06 17:33:00 +02:00
Laurent Perron
93460ec528 Merge branch 'master' of github.com:google/or-tools 2022-04-06 11:42:28 +02:00
Corentin Le Molgat
42cab13e38 make: use CMAKE_PREFIX_PATH to build samples (#3214) 2022-04-06 11:16:10 +02:00
Mizux Seiha
562b8c03be make: Use a CMake template to build example (#3214) 2022-04-06 11:16:09 +02:00
Corentin Le Molgat
090cfd8fbc math_opt: rename samples to avoid collisions 2022-04-06 11:16:09 +02:00
Corentin Le Molgat
9028b0612d pdlp: remove spurious remaining moe 2022-04-04 18:30:11 +02:00
Laurent Perron
03a1571f4c explicit cast long -> double 2022-04-04 15:43:28 +02:00
Laurent Perron
a4fc5aee55 use java.time.Duration for time limit 2022-04-04 15:42:12 +02:00
Laurent Perron
30b9995b69 fix 2022-04-04 15:20:57 +02:00
Laurent Perron
3ee27d3354 fix API 2022-04-04 14:45:15 +02:00
Laurent Perron
fc809cba1d fix comments 2022-04-04 13:28:13 +02:00
Laurent Perron
3674539ed3 reformat 2022-04-04 13:26:40 +02:00
Laurent Perron
a98db0afe7 clean log 2022-04-04 13:05:53 +02:00
Laurent Perron
07210e6500 fix 2022-04-04 12:51:13 +02:00
Laurent Perron
ac5dc8be37 fix java crash 2022-04-04 11:57:14 +02:00
Laurent Perron
f54350c578 more work on ModelBuilder java 2022-04-03 23:22:02 +02:00
Laurent Perron
0223b492b3 incomplete ModelBuilder java implementation 2022-04-02 23:28:05 +02:00
Laurent Perron
591f255052 remove obsolete TODO 2022-04-02 23:27:23 +02:00
Laurent Perron
f9f0aa51a2 fix MPS output 2022-04-02 23:26:50 +02:00