Commit Graph

50 Commits

Author SHA1 Message Date
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
Corentin Le Molgat
fc1a12e85a Export g3 to github 2019-02-18 15:44:06 +01:00
Laurent Perron
087868bcc2 maintenance on swig files; merge presolve context and expand context; minor fixes in the code 2019-02-05 15:06:47 +01:00
Corentin Le Molgat
719a2ba20a Python: Rework RoutingModel::*Index typemap (Fix #1030) 2019-01-31 14:57:17 +01:00
Laurent Perron
39f30fb178 revert last change on the routing API; report new best bound of the SAT solver in the log 2018-12-14 14:25:52 +01:00
Laurent Perron
fedf3d4ff4 revamp and simplify swig support, force typed enums for C# and Java for all except the constraint_solver/routing module; port examples; Fix SAT on very large problems 2018-12-11 17:03:03 +01:00
Laurent Perron
1e59a36509 reduce swig complexity 2018-12-11 11:52:50 +01:00
Laurent Perron
589047ce90 python support int64 -> int64_t 2018-12-10 13:35:41 +01:00
Laurent Perron
87b9d55b21 update license headers 2018-11-10 18:00:53 +01:00
Laurent Perron
e14ee86de3 move rcpsp parser to ortools/data; continue working on SAT 2017-11-07 15:45:52 +01:00
Laurent Perron
4710247921 skeleton files to support rcpsp loader from python 2017-11-03 23:36:21 +01:00
Laurent Perron
03fccb4032 improve incrementality of glop when used in the sat solver; change more copyright dates; more documentation on the gate scheduling problem 2017-10-18 11:09:13 +02:00
Laurent Perron
7a07804ffa minor sync 2017-08-07 12:29:30 -07:00
Laurent Perron
1ce88caaac improve python wrapping of functions 2017-07-07 11:13:20 -07:00
Laurent Perron
01e8b59756 improved python wrapping of functions 2017-07-05 16:26:34 -07:00
Vincent Furnon
6ca14d0903 Fixing python swig wrapper to properly handle vector<vector<>> of different sizes. 2017-06-13 08:58:33 -04:00
Laurent Perron
8c08d72260 replace hash_map and hash_set by unordered_map and unordered_set 2017-04-27 17:34:24 +02:00
Laurent Perron
66b8d23079 move src to ortools; simplified python generation; remove some namespaces in the ortools/base helper files 2017-04-26 17:30:25 +02:00