Commit Graph

115 Commits

Author SHA1 Message Date
Corentin Le Molgat
a7f49a2585 backport from main
* rename swig files .i in .swig
* update constraint_solver and routing
* backport math_opt changes
* move dynamic loading to ortools/third_party_solvers
2025-07-23 23:12:34 +02:00
Corentin Le Molgat
a66a6daac7 Bump Copyright to 2025 2025-01-10 11:35:44 +01:00
Corentin Le Molgat
5252c00007 cmake cleanup 2024-12-16 15:45:02 +01:00
Corentin Le Molgat
d5c3764d77 cmake: Fix macOS 15 python build 2024-12-16 15:45:02 +01:00
Corentin Le Molgat
6de3f59af2 constraint_solver: Backport routing update from main 2024-11-18 17:01:27 +01:00
Corentin Le Molgat
6e94e079c4 constraint_solver: Fix python 3.13 build 2024-11-15 10:27:20 +01:00
Corentin Le Molgat
86c5059a02 constraint_solver: format fix 2024-07-12 16:22:25 +02:00
Corentin Le Molgat
3bf56cd48c routing(python): use absltest instead of unitest 2024-01-18 14:19:15 +01:00
Corentin Le Molgat
75f197409a cmake: rework add_python_test()
* Add FILE_NAME option
* add optional COMPONENT_NAME option
  note: needed if test.py is not in a ortools/<component>/python/ dir
2024-01-15 13:33:49 +01:00
Corentin Le Molgat
bda5b4e632 constraint_solver: Export from google3
* Add an Iterated Local Search (ILS) approach.
* Replace some std::string by absl::string_view
* Add RoutingResourceClassIndex
2024-01-08 18:03:08 +01:00
Mizux Seiha
a76bf1c5dd bump license boilerplate 2024-01-04 13:43:15 +01:00
Laurent Perron
d7b7240058 remove ortools/base/cleanup.h; use the abseil version 2023-12-07 19:18:30 +01:00
Laurent Perron
2528fefb5d fix 2023-12-06 18:35:04 +01:00
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