Commit Graph

102 Commits

Author SHA1 Message Date
Corentin Le Molgat
d94a6a8984 python: Fix pywrapcp_test 2023-10-13 13:39:04 +02:00
Corentin Le Molgat
69874c9b26 fixup from google3 2023-10-09 15:07:30 +02:00
Corentin Le Molgat
753a7ab874 update constraint_solver from google3 2023-10-09 15:07:30 +02:00
Corentin Le Molgat
912a257773 pywrapcp_test fixup 2023-10-06 18:12:45 +02:00
Corentin Le Molgat
c60a2d03d6 constraint_solver: export from google3 2023-10-04 15:58:45 +02:00
Laurent Perron
844a5395cf nit 2023-07-17 14:43:19 -07:00
Corentin Le Molgat
4ba6ce4e49 constraint_solver: Start Black formating 2023-07-05 18:34:44 +02:00
Laurent Perron
556eeb7480 Merge pull request #3831 from bertuccellimatteo/feat-python-progress
feat(python): unignore Solver::TopProgressPercent and SearchMonitor::…
2023-06-23 07:05:01 +02:00
bertuccellimatteo
afa0b9f5a9 feat(python): unignore Solver::TopProgressPercent and SearchMonitor::Progress 2023-06-22 20:35:32 +02:00
Corentin Le Molgat
85fc6ef2d4 cp: Fix python 2023-06-02 14:40:18 +02:00
Corentin Le Molgat
f25897b566 constraint_solver: sync with google3 2023-06-02 08:53:08 +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
Corentin Le Molgat
192e690204 cmake: cleanup 2023-05-24 15:39:37 +02:00
Corentin Le Molgat
9167a849ae Export constraint_solver/ from google3 2023-05-24 15:34:57 +02:00
Corentin Le Molgat
7665b677e5 Update CMakeLists.txt 2023-04-05 10:36:55 +02:00
Corentin Le Molgat
8d6c172e5c cleanup 2023-03-06 18:28:57 +01: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
Corentin Le Molgat
ecd2afe4bb swig: Fix python build when using swig 4.1.0 2022-11-07 15:31:47 +01:00
Corentin Le Molgat
9270aa0d59 routing(python): test fixup 2022-10-28 17:23:46 +02:00
Mizux Seiha
2756e316e9 routing(python): Add FirstSolutionStrategy and LocalSearchMetaheuristic (#3364) 2022-10-28 16:42:48 +02:00
Corentin Le Molgat
49d3c1ecbf Fix pywraprouting_test.py 2022-10-28 11:50:36 +02:00
Corentin Le Molgat
2f3db48ce5 constraint_solver: export from google3 2022-10-26 15:27:06 +02:00
Mizux Seiha
36a29b2ddf routing(swig): Expose SimpleBoundCost related methods (Fix #1815)
* Extract BoundCost from SimpleBoundCost since SWIG do not support
nested class
* Wrap it in all languages
* Expose new API
  * SoftSpanUpperBoundForVehicle
  * QuadraticCostSoftSpanUpperBoundForVehicle
* Add tests
2022-10-24 08:58:10 +02:00
Corentin Le Molgat
13c13048d5 routing(python): Fix format in test 2022-10-24 08:41:37 +02:00
Mizux Seiha
b34912eb8a constraint_solver: merge pywraprouting_test.py and routing_api_test.py 2022-10-21 11:32:00 +02:00
Corentin Le Molgat
1b011d076c export from google3 2022-10-10 13:44:12 +02:00
Corentin Le Molgat
80ec5d11d4 fix format 2022-09-30 10:42:54 +02:00
Corentin Le Molgat
c1f0a9e903 indent fixup 2022-09-23 15:53:49 +02:00
Corentin Le Molgat
899e30d88b cmake: Fix python build
* fix cmake/python.cmake
* fix <cmp>/python/CMakeLists.txt
* fix examples/tests/CMakeLists.txt
2022-09-22 22:39:55 +02:00
Corentin Le Molgat
7a401969c0 move examples/test/*.py to ortools/<component>/python 2022-09-22 13:54:16 +02:00
Corentin Le Molgat
0a5f73c2f7 python: bring back missing api to IntVarLocalSearchOperator
* add few unit tests to check api
2022-09-19 15:41:11 +02:00
Corentin Le Molgat
656a5bb244 google3: export routing 2022-09-19 15:41:11 +02:00
Mizux Seiha
7a823314eb export from google3 2022-06-21 11:35:03 +02:00
Corentin Le Molgat
1af55b2be3 Add license boilerplate 2022-06-21 11:25:29 +02:00
Corentin Le Molgat
c7120439d4 Bump license date 2022-06-17 14:23:23 +02:00
Corentin Le Molgat
226e1cea9c constraint_solver: Sync python 2022-05-23 09:28:20 +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
111b942bc2 constraint_solver: cleanup 2022-03-31 15:34:37 +02:00
Laurent Perron
9dd7ed7fd1 bump constraint_solver code; remove unused files 2022-02-22 19:25:31 +01:00
Corentin Le Molgat
f4136a40d6 Fix clang-format 2022-02-16 16:18:08 +01:00
Corentin Le Molgat
683d1d12e1 sync with google code 2022-01-27 16:35:42 +01:00
Corentin Le Molgat
a40295d79c Sync from google 2022-01-21 17:51:38 +01:00
Laurent Perron
529849e58a add missing swig deps 2021-12-05 12:55:50 +01:00
Mizux Seiha
655eec5260 cmake: rework python 2021-12-03 14:20:19 +01:00
Mizux Seiha
c7441c346c cmake: Migrate to Python3 and use Development.Module
note: Development.Module is use to look for python header only
since library is not available on manylinux.
see: https://gitlab.kitware.com/cmake/cmake/-/issues/20425

note2: Development.Module has been introduced in CMake 3.18
ref: https://cmake.org/cmake/help/latest/module/FindPython3.html
2021-09-08 16:08:52 +02:00
Mizux Seiha
8bb54b04ef Bump Copyright to 2021
FYI:
find ortools \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/\(Copyright 2010\)-2018/\1-2021/g'
2021-04-01 21:00:53 +02:00
Corentin Le Molgat
a40143cdd2 cpp: Migrate int64 to int64_t 2021-04-01 20:20:43 +02:00
Corentin Le Molgat
63df4a72e9 python: Rework vector.i 2021-02-23 16:16:51 +01:00
Corentin Le Molgat
909004aa84 Export from Google 2021-02-22 15:06:21 +01:00