Commit Graph

445 Commits

Author SHA1 Message Date
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
Laurent Perron
f9f0aa51a2 fix MPS output 2022-04-02 23:26:50 +02:00
Corentin Le Molgat
55149c741d bazel: cleanup 2022-03-31 15:34:37 +02:00
Laurent Perron
c84dc88872 work on model_builder python; support building and testing it in python on bazel 2022-03-29 17:59:36 +02:00
Laurent Perron
8782b85d67 fill solve_info 2022-03-25 15:12:05 +01:00
Laurent Perron
c82cfdc9ad remove map_util from most of the code; absl::make_unique and absl::optional -> stl version 2022-03-09 09:08:40 +01:00
Corentin Le Molgat
1eba970bf3 Update pdlp 2022-03-02 22:10:54 +01:00
Corentin Le Molgat
0466c9f6bf python: remove __init__.py
now you'll need to always use a wheel package
avoid some issue when trying to run venv from root dir
e.g. `./build/python/venv/bin/python -c "from ortools.pdlp import solve_log_pb2"`
2022-02-28 08:52:31 +01:00
Mizux Seiha
a096ca219c export few more proto 2022-02-26 01:47:32 +01:00
Mizux Seiha
32b101b9ee cmake: Fixup for pdlp 2022-02-25 23:43:01 +01:00
Laurent Perron
36a094455a Enable PDLP in MPSolver 2022-02-25 19:30:02 +01:00
Mizux Seiha
3375871fe5 cmake: fixup missing deps 2022-02-24 08:42:33 +01:00
Laurent Perron
d0be88fddb update linear_solver pdlp inteface; add model_builder python/wrappers files 2022-02-23 21:14:30 +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
Laurent Perron
3d60e313e6 add default solver type to linear_solver.proto 2022-02-19 09:57:37 +01:00
Laurent Perron
42e0f3a2c1 enable glpk_deleter 2022-02-19 09:57:21 +01:00
Corentin Le Molgat
761982a17f cmake: Add PDLP support 2022-02-17 15:02:23 +01:00
Corentin Le Molgat
f4136a40d6 Fix clang-format 2022-02-16 16:18:08 +01:00
Laurent Perron
e1d25c96ee generate proto3 version of the linear solver proto in C# 2022-02-15 18:33:14 +01:00
Laurent Perron
d510b97621 add pdlp to the code base; build it with bazel, call it through MPSolver 2022-02-09 10:48:30 +01:00
Mizux Seiha
f071f8b8bd deps: Bump SCIP 7.0.1 -> v800 2022-02-02 16:28:12 +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
Corentin Le Molgat
3cc01f2a29 fixup export sync 2022-01-18 11:05:48 +01:00
Corentin Le Molgat
904f9c67cd Sync google/github 2022-01-17 15:47:25 +01:00
Corentin Le Molgat
6a1559f0a9 linear_solver: Fix indentation 2022-01-17 11:01:32 +01:00
Corentin Le Molgat
5d7b310bda sync linear_solver 2022-01-17 09:28:11 +01:00
Corentin Le Molgat
4e604d4bad Sync code 2022-01-03 09:49:48 +01:00
Corentin Le Molgat
354e350004 Sync C# indent 2022-01-03 09:49:47 +01:00
Laurent Perron
ce02461741 wrap MPModelRequest in python 2022-01-02 10:30:57 +01:00
Corentin Le Molgat
285ea58474 cleanup 2021-12-27 15:49:04 +01:00
Corentin Le Molgat
6644f1e0f6 Fix tag in sample 2021-12-27 15:45:06 +01:00
Mizux Seiha
1c62c3a18a Port AssignmentTaskSizeMip to all languages 2021-12-24 12:00:00 +01:00
Mizux Seiha
076ca10727 Port AssignmentGroupsMip to all languages 2021-12-23 14:47:08 +01:00
Corentin Le Molgat
4811569711 Port AssignmentTeamsMip to all languages 2021-12-23 14:47:08 +01:00
Mizux Seiha
3c55501a6f Cleanup assignment_mip.py 2021-12-23 14:47:08 +01:00
Laurent Perron
ef4106b549 [CP-SAT] fix int_prod presolve; better checker; better treatment of floating point constraints (from the linear solver) and objective 2021-12-08 11:48:14 +01:00
Laurent Perron
560826496b BUILD -> BUILD.bazel 2021-12-06 14:36:13 +01:00
Corentin Le Molgat
e41b99a930 remove deprecated .csprog 2021-12-03 17:22:45 +01:00
Laurent Perron
bbd93df3b3 Merge branch 'master' of github.com:google/or-tools 2021-12-03 15:14:50 +01:00
Laurent Perron
a0cee8d911 fix corner case bugs in CP-SAT and GLOP 2021-12-03 15:14:37 +01:00
Corentin Le Molgat
5f567735d7 cmake: Fix dotnet.cmake and path 2021-12-03 14:20:19 +01:00
Mizux Seiha
72ebd8b748 cmake: rework .Net support 2021-12-03 14:20:19 +01:00
Mizux Seiha
976f227b67 cmake: rework java 2021-12-03 14:20:19 +01:00
Mizux Seiha
655eec5260 cmake: rework python 2021-12-03 14:20:19 +01:00
Corentin Le Molgat
1d48a794d4 Update MultipleKnapsack[Mip|Sat] 2021-12-02 09:38:53 +01:00
Mizux Seiha
628ea0465c python: sync multiple_knapsack samples 2021-12-01 16:04:53 +01:00
Mizux Seiha
d15847ec36 Bump csproj to 9.2 2021-11-30 18:13:26 +01:00
Corentin Le Molgat
e4da164368 sample: Rework MultipleKnapsack[Sat|Mip] 2021-11-30 18:02:46 +01:00
Laurent Perron
9fefaadfaf [LP] change default tolerance on verify solution; add missing base include 2021-11-28 13:01:55 +01:00