Commit Graph

74 Commits

Author SHA1 Message Date
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
Mizux Seiha
d1b86cb16f python: Add support for vector<vector<primitive>> input 2021-02-19 16:02:51 +01:00
Corentin Le Molgat
241d79d698 routing: Export from Google to GitHub 2021-02-19 10:34:31 +01:00
Corentin Le Molgat
27e4fdb01d python: routing cleanup 2021-02-19 10:30:21 +01:00
Mizux Seiha
bf0807e1aa python: Update routing tests 2021-02-18 17:39:19 +01:00
Mizux Seiha
bdf5ed1663 python: Rename PairIntBool to IntBoolPair 2021-02-16 15:22:06 +01:00
Corentin Le Molgat
850968c9f1 routing: Rework Vector/Matrix transit management (#2315) 2021-02-16 13:43:52 +01:00
Corentin Le Molgat
c75ac92a5a Sync from Google to GitHub 2020-11-16 17:50:54 +01:00
Corentin Le Molgat
b7ae4a1581 Fix formatting 2020-11-03 20:26:47 +01:00
Laurent Perron
d2147306e2 reformat cp code; add bandit concatenate operator for the routing library; tweak var domination in cp-sat 2020-11-01 11:47:28 +01:00
Mizux Seiha
20d0496bfb reapply google format 2020-10-23 00:45:17 +02:00
Laurent Perron
bcb7b3073d large synchro with internal code: linear solver: introduce intermediate SCIP layer called gscip; sat: more work on slow propagation detection; base: remove statusor, use abseil version; constraint solver: more work on internal local search 2020-10-18 16:38:25 +02:00
Mizux Seiha
f087564d84 cpp: Format all files in ortools 2020-09-23 12:06:10 +02:00
Mizux Seiha
fa682b4907 remove deprecated examples using TreeMonitor 2020-09-19 18:04:50 +02:00
Mizux Seiha
d4d88e1f64 constraint_solver: Fix LocalSearchFilter samples 2020-08-14 14:07:58 +02:00
Mizux Seiha
90a3155af1 cmake(python): Fix module update 2020-05-20 18:46:57 +02:00
Mizux Seiha
775aec03dd cmake(python): Refactor
* Use new Python module
* Use setup.py.in input file (should fix windows error)
2020-05-20 10:13:14 +02:00
Corentin Le Molgat
0d6f6dddd9 Export g3 -> gh 2020-03-12 18:20:13 +01:00
Corentin Le Molgat
f2981e11c3 CMake:python: Add missing definition for swig 2020-03-05 13:04:08 +01:00
Corentin Le Molgat
4c7456b175 CMake: Update Python support
* Add define SWIGWORDSIZE64 on Linux
* Add -doxygen option
* add ortools/util/python
* Move python generated stuff to BINARY_DIR/python
* Bump CMake >= 3.14 as requirement
  * SWIG module rework from 3.9 to 3.14
  * Python module rework in 3.12
* Drop Python 2.7 support (like in Makefile)
* Fix clean target
  * OUTPUT/BYPRODUCTS path are relative to CURRENT_BINARY_DIR not WORKING_DIR
* Fix ortools package install in virtualenv
* Clean target now remove the <build>/venv directory
2020-02-28 08:21:27 +01:00
Corentin Le Molgat
fd4ce1131c CMake: Update wrapper support 2020-02-14 11:12:44 +01:00
Corentin Le Molgat
e4358ee330 Expose GetStartIndex and GetEndIndex to Python
Follow #1843
2020-01-16 13:41:44 +01:00
Laurent Perron
2ff000ab9a bump abseil to the latest version, adapt the code all around 2019-11-20 14:28:11 -08:00
Laurent Perron
a39b544fde continue rearchitecture LS and routing 2019-08-09 11:53:20 -07:00
Laurent Perron
26d5fc7cb9 update routing/local search internal API 2019-08-06 15:54:57 -07:00
Laurent Perron
75fba177ea improve routing internals 2019-07-12 10:22:12 -07:00
Laurent Perron
b2656dbd94 add doxygen tags 2019-07-05 09:32:02 +02:00
Corentin Le Molgat
4a8346f084 Wrappers: Bind few RoutingIndexManager methods. 2019-04-19 18:47:55 +02:00
Laurent Perron
a33585e6aa mostly indent; internal improvements to the Routing library; change API with SearchLimit to RegularLimit 2019-04-11 09:46:06 -07:00