Commit Graph

78 Commits

Author SHA1 Message Date
Corentin Le Molgat
ecd2afe4bb swig: Fix python build when using swig 4.1.0 2022-11-07 15:31:47 +01:00
Laurent Perron
d4d10c0e5c python example to solve a mps file 2022-10-11 13:36:35 +02:00
Corentin Le Molgat
261ce61ae1 python: fixup 2022-10-10 13:44:12 +02:00
Corentin Le Molgat
1b011d076c export from google3 2022-10-10 13:44:12 +02:00
Corentin Le Molgat
aad0e67975 export from google3 2022-10-05 15:56:33 +02:00
Laurent Perron
4fcef6ee8f add minimal highs interface 2022-10-03 14:25:58 +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
Laurent Perron
1d0639f660 fix 2022-09-12 13:30:14 +02:00
Laurent Perron
e30f4ef3e3 commit message 2022-09-12 13:24:02 +02:00
Laurent Perron
9c8c2ba602 fix model_builder 2022-09-12 13:21:53 +02:00
Corentin Le Molgat
1e73e887dc bazel: Add missing linear_solver/python/BUILD.bazel 2022-09-12 12:18:53 +02:00
Laurent Perron
81b31ff24b Move model_builder under linear_solver 2022-09-12 11:28:52 +02:00
Corentin Le Molgat
4c74636bf8 linear_solver: Add missing solve status 2022-06-29 13:45:40 +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
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
1eba970bf3 Update pdlp 2022-03-02 22:10:54 +01:00
Mizux Seiha
32b101b9ee cmake: Fixup for pdlp 2022-02-25 23:43:01 +01:00
Laurent Perron
ce02461741 wrap MPModelRequest in python 2022-01-02 10:30:57 +01:00
Mizux Seiha
655eec5260 cmake: rework python 2021-12-03 14:20:19 +01:00
Laurent Perron
9fefaadfaf [LP] change default tolerance on verify solution; add missing base include 2021-11-28 13:01:55 +01:00
Laurent Perron
475880c6c7 show load model errors in python linear solver 2021-10-12 10:51:42 +02:00
Laurent Perron
778b1b3854 [MPSolver] Add better code to interrupt solve; rewrite thread management code when using the CP-SAT solver backend 2021-09-23 14:30:01 +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
9662b630d6 python: Fix linear_solver.i wrapper 2021-04-01 16:39:12 +02:00
Laurent Perron
3779db1f83 deep rewrite of the gurobi loading code 2021-03-19 16:24:35 +01:00
Laurent Perron
6e15467065 linear solver: int64 -> int64_t; use new CP-SAT logging 2021-03-12 16:59:39 +01:00
Laurent Perron
c55f00b7ed improve StopSearch() robustness 2021-01-08 09:48:52 +01: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
dbb878aa36 python: Fix LoadSolutionFromProto leak (Fix #2190) 2020-10-08 13:51:47 +02:00
Laurent Perron
23aeaf6072 fix #2094 2020-07-06 11:53:52 +02:00
Laurent Perron
f0f675debd remove non C++ leaks with the linear solver 2020-06-25 11:15:19 +02:00
Laurent Perron
a8fc48e1fd polish linear solver backend selection code 2020-06-25 10:32:58 +02:00
Laurent Perron
d6ecea46ad experimental support for dynamic loading of gurobi; add MPSolver.CreateSolver() factory method for non C++ languages to check correctly installed linear solver backends and licenses when needed; port all non C++ examples 2020-06-24 18:11:12 +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
22356ff523 Sync g3 -> gh part_2 2020-03-09 18:34:21 +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
Laurent Perron
2ff000ab9a bump abseil to the latest version, adapt the code all around 2019-11-20 14:28:11 -08:00
Laurent Perron
bc43e37c90 add sat inferface to the linear solver wrapper 2019-10-18 14:39:51 +02:00
Laurent Perron
439cebb9c8 polish xpress support 2019-09-04 15:20:45 +02:00
Laurent Perron
d216e3caab remove obsolete unignore 2019-07-18 11:36:10 -07:00
Laurent Perron
8152464418 document more linear solver code 2019-07-17 07:08:02 -07:00
Laurent Perron
ef8be0d86e polish doc 2019-07-16 10:13:02 -07:00
Laurent Perron
afc4ad1214 simplify python vector swig 2019-07-05 09:32:43 +02:00