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
Xiang Chen
d8876d50a5
Simplify AddElement on integer index
2020-02-19 00:00:18 +01:00
Laurent Perron
6d61ac1cb0
query the domain from an IntVar in Python/Java/C# + tests; small speedup of sat reversible data structures
2020-01-24 12:20:08 -08:00
Laurent Perron
6bb8272b2a
[CP-SAT] improve rounding methods in linear cuts
2019-12-16 15:33:52 +01:00
Laurent Perron
dc3d9ccf84
internal improvemensts
2019-12-05 16:36:11 +01:00
Laurent Perron
fd04db1add
fix #1766
2019-12-05 11:28:43 +01:00
Laurent Perron
09063ae0c2
small optim; reindent
2019-11-14 12:42:05 -08:00
Laurent Perron
3a631191a1
polish sat recipies
2019-09-12 10:52:29 +02:00
Laurent Perron
2dbf3895f2
remove more usage of 0LL and 1LL; reformat code
2019-09-12 10:11:02 +02:00
Laurent Perron
09655b81ea
add LinearExpr.Term() API; improve internals
2019-08-22 13:15:49 +02:00
Xiang Chen
c5bc6e2519
Added AddHint method to CpModel
2019-07-21 03:11:38 +02:00
Laurent Perron
f32e012aed
works on CP-SAT and cuts
2019-07-18 11:36:47 -07:00
Laurent Perron
4276a58400
work on lns and search
2019-07-17 07:08:16 -07:00
Laurent Perron
b3c9ac9de8
fix #1413
2019-07-15 10:26:19 -07:00
Laurent Perron
5a334386a2
add comments
2019-06-28 10:58:35 +02:00
Laurent Perron
7115cf570f
reorganize SIGINT catching
2019-06-27 17:28:56 +02:00
Laurent Perron
bbc68ee13f
remove functions from python CP-SAT doc
2019-06-26 11:07:58 +02:00
Laurent Perron
67420461a2
improve doc
2019-06-24 19:09:45 +02:00
Laurent Perron
09e7ad43f5
fix #1360
2019-06-20 13:46:58 +02:00
Laurent Perron
3a99c0ee1b
fix bug in CP-SAT checker with sparse circuit constraint; continue re-architecture core code; minor reindent of cp_model.py
2019-06-17 18:27:56 +02:00
Laurent Perron
484acfc187
improve doc
2019-06-17 16:12:20 +02:00
Laurent Perron
8a85d996a5
enable threading support in python CP-SAT module
2019-06-14 10:57:39 +02:00
Laurent Perron
0eb9bd84c3
speed-up CP-SAT Scheduling code; remove doc made obsolete by github pages
2019-06-13 16:37:06 +02:00
Laurent Perron
60ef587f27
polish doc
2019-06-07 09:30:35 +02:00
Laurent Perron
8311fa8d5e
polish doc
2019-06-06 11:22:39 +02:00
Laurent Perron
700b986b74
polish doc
2019-06-06 08:44:37 +02:00
Laurent Perron
bc2c45db33
polish cp-sat python doc
2019-06-06 07:56:37 +02:00
Laurent Perron
8051eb5c49
add model manipulation section on CP-SAT cookbook
2019-06-05 11:07:46 +02:00
Laurent Perron
018d029d7b
Add cp_model.NewConstant
2019-05-20 14:29:50 +02:00
Laurent Perron
8572f97c28
reindent cp_model.py; fix Domain swig; rename test
2019-05-17 10:27:41 +02:00
Laurent Perron
f549c33b2e
fix
2019-05-16 17:09:47 +02:00
Laurent Perron
dd377eaf84
rename LinearInequality to BoundedIntegerExpression in cp_model.py
2019-05-13 10:52:10 +02:00
Laurent Perron
795f77ddf8
add LinearExpr.Sum and LinearExpr.ScalProd to CP-SAT Python API
2019-05-10 23:48:33 +02:00
Laurent Perron
def2ad7b88
change comment
2019-05-08 15:23:57 +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
Laurent Perron
76162bd501
fix, polish
2019-05-06 11:08:40 +02:00
Laurent Perron
dec8adb40d
polish non C++ CP-SAT API, samples, examples and tests
2019-05-06 10:12:55 +02:00
Laurent Perron
5cd1175933
polish swig declarations
2019-05-05 20:04:25 +02:00
Laurent Perron
c1e61773b6
fix domains and swig
2019-05-05 15:18:52 +02:00
Laurent Perron
75aacc45f1
wrap C++ Domain class in CP-SAT Java/Python/C#; use it in NewIntVarFromDomain API, remove FromValues and FromIntervals API
2019-05-04 16:56:42 +02:00
Laurent Perron
2554d90e87
Wrap the C++ Domain class in Python, Java, C#; use it in IntVar and in AddXXXInDomain methods; change examples
2019-05-03 22:41:25 +02:00
Laurent Perron
7097fa4829
uniformize name of linear constraints in CP-SAT Python/Java/C#
2019-05-03 18:15:44 +02:00
Laurent Perron
7f99c48698
revamp SAT domains, API with bounds on non C++ languages
2019-05-03 16:30:57 +02:00
Corentin Le Molgat
7bd958efce
Fix python sat SWIG
2019-05-03 14:31:29 +02:00
Laurent Perron
4a38fcfa4a
Add cp_model.DomainFromValues/DomainFromIntervals to the CP-SAT python API
2019-05-01 23:17:57 +02:00
Laurent Perron
b1be47d4e0
Improvements in CP-SAT Scheduling and Diffn constraints; Make CP-SAT presolve more robust w.r.t empty domains during presolvewq
2019-03-27 21:39:02 +01:00
Laurent Perron
39f44709bb
polish doc
2019-03-25 15:24:37 +01:00
Laurent Perron
c4f08e2bab
enable public API to modify the CP-SAT model protobuf directly
2019-03-25 13:32:12 +01:00
Laurent Perron
180346c6f9
enable model modifications for CP-SAT
2019-03-25 12:49:04 +01:00
Laurent Perron
e81e12ec45
improve CP-SAT diffn; add 2 more examples to CP-SAT cookbook; internal cleanup and improvements
2019-03-25 11:26:21 +01:00