Laurent Perron
af879c6d17
big cleanup of includes
2023-08-24 17:14:58 +02:00
Laurent Perron
fa6883d544
mostly cleaning: remove integral_types.h and basictypes.h
2023-08-24 14:52:54 +02:00
Laurent Perron
346642b871
remove the pywrap prefix from pybind11 modules; add _pybind to the cmake target of the same modules
2023-07-03 14:30:27 +02:00
Laurent Perron
4faf2e4794
add pybind11 doc to domains
2023-07-02 08:11:28 +02:00
Laurent Perron
a743431365
start reformating with black
2023-06-27 14:21:34 +02:00
Corentin Le Molgat
3be976f47b
export from google3
2023-05-24 15:34:57 +02:00
Corentin Le Molgat
b3920b4452
cmake: fixup
2023-02-10 08:59:08 +01:00
Laurent Perron
7277ccc140
reindent cmake files
2023-02-09 16:18:59 -08: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
93c0c7f035
deps: bump swig to 4.1.1
2023-02-02 19:02:56 +01:00
Laurent Perron
e9f9404923
Remove logging code; use absl one
2023-01-31 20:46:43 +01:00
Laurent Perron
2a2775ec23
[UTIL] fix test; support qap problems with objective
2022-10-11 14:26:32 +02:00
Laurent Perron
f39efd5ac8
fix, reindent, add tests
2022-09-27 18:00:48 +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
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
Laurent Perron
18d3f72160
run python sat samples with bazel
2022-03-30 13:12:32 +02:00
Laurent Perron
9dd7ed7fd1
bump constraint_solver code; remove unused files
2022-02-22 19:25:31 +01:00
Laurent Perron
6246f8f63c
still used by routing.i
2022-02-22 18:57:40 +01:00
Laurent Perron
833ae17e99
Use pybind11 instead for swig for sorted_interval_list and cp_sat swig_helper; speed up CP-SAT presolve; add missing std includes
2022-02-22 18:33:45 +01:00
Laurent Perron
951e8bbc1e
bump pdlp; add log to linear_solver proto; fix bug in CP-SAT
2022-02-21 17:26:34 +01:00
Mizux Seiha
655eec5260
cmake: rework python
2021-12-03 14:20:19 +01:00
Laurent Perron
fdadc6aeb2
remove autodoc
2021-09-23 11:34:38 +02:00
Laurent Perron
83007b4c00
bump version to 9.1; regenerate doc
2021-09-20 15:57:27 +02:00
Laurent Perron
6a84a52d9e
switch from pdoc3 to pdoc
2021-09-20 15:23:45 +02: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
Mizux Seiha
9d5fd8079e
python: Add std::vector<std::string> support ( Fix #2453 )
2021-03-24 00:24:14 +01:00
Laurent Perron
a8dfe613b3
fix for python 3.8
2021-03-12 13:34:41 +01:00
Laurent Perron
4d1b9d227f
capture CP-SAT log in python/java/.NET; visual tweak of the log; tweak the logging facilities for CP-SAT
2021-03-11 21:07:17 +01:00
Laurent Perron
76f6c736ed
int64 -> int64_t
2021-03-08 14:00:36 +01: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
1171539fe8
python: Fix vector<primitive>
2021-02-19 22:21:19 +01:00
Mizux Seiha
5e9537ef13
python: Improve vector<primitive> input
...
- Avoid one vector copy.
2021-02-19 16:02:51 +01:00
Mizux Seiha
d1b86cb16f
python: Add support for vector<vector<primitive>> input
2021-02-19 16:02:51 +01: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
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
Laurent Perron
94878acc81
do not hide python exceptions
2019-09-03 15:43:48 +02:00
Laurent Perron
afc4ad1214
simplify python vector swig
2019-07-05 09:32:43 +02:00
Laurent Perron
5a334386a2
add comments
2019-06-28 10:58:35 +02:00
Laurent Perron
568c1bafd2
remove undesired doc
2019-06-26 08:16:07 +02:00
Laurent Perron
8572f97c28
reindent cp_model.py; fix Domain swig; rename test
2019-05-17 10:27:41 +02:00
Laurent Perron
078b809010
export more methods on the Domain class in non C++ languages; add test for python; use unittest in python tests; add deprecation tag for some C# CP-SAT methods
2019-05-16 23:37:43 +02:00
Laurent Perron
d2bdad15d0
fix windows CP-SAT bug
2019-05-13 16:12:09 +02:00
Laurent Perron
beef2334cb
separate sorted_interval_list.i from sat.i in the python CP-SAT wrapping
2019-05-08 11:05:33 +02:00