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
d633ea8214
[CP-SAT] improve doc tag
2022-09-19 14:40:33 +02:00
Laurent Perron
9931205f7c
[CP-SAT] prepare for reservoir with variable demand; internal tweakes
2022-09-09 16:48:39 +02:00
Corentin Le Molgat
1af55b2be3
Add license boilerplate
2022-06-21 11:25:29 +02:00
Laurent Perron
87ca4f58ad
[CP-SAT] bump license years; fix scheduling cuts; improve lb_tree_search
2022-06-16 15:21:00 +02:00
Laurent Perron
8f66a4494c
add problem name to generated cp_model in rcpsp
2022-06-16 07:39:30 +02:00
Gen Xu
7c12807722
python: Fix pymalloc after releasing gil ( #3329 )
2022-06-04 15:52:41 -07:00
Corentin Le Molgat
06f6e54b63
sat: update python api
2022-05-27 15:16:28 +02:00
Corentin Le Molgat
c9c7c69428
sync from googl3
2022-05-23 09:28:20 +02:00
Laurent Perron
7a46833a12
fix #3283 : implement clear objective method in CP-SAT
2022-05-07 10:37:29 +02:00
Laurent Perron
a1e6a11876
fix #3257
2022-04-25 15:08:10 +02:00
Laurent Perron
81d110eed5
reformat
2022-03-31 11:36:33 +02:00
Laurent Perron
18d3f72160
run python sat samples with bazel
2022-03-30 13:12:32 +02: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
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
Laurent Perron
f812debc11
fix python test
2022-02-23 15:43:04 +01:00
Laurent Perron
d95e0a0f0c
fix CP-SAT python samples not stopping
2022-02-23 13:04:03 +01:00
Laurent Perron
d0aec755ad
release lock
2022-02-22 22:52:11 +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
Laurent Perron
a1ec2adade
[CP-SAT] allow variable number of arguments for OnlyEnforceIf, AddAllDifferent and all Boolean constraints for the Python API
2022-01-28 15:54:07 +01:00
Laurent Perron
ceabca677c
[CP-SAT] ScalProd -> WeightedSum
2022-01-04 19:35:22 +01:00
Laurent Perron
79f2c45c33
[CP-SAT] Use AddExactly/AtMostOne in examples/samples; add int_square presolve; add multiplication constraint with target = left * right
2022-01-01 19:26:39 +01:00
Laurent Perron
b9cd938c16
[CP-SAT] add AddAtLeastOne/AtMostOne/ExactlyOne API in all languages
2021-12-31 11:12:22 +01:00
Laurent Perron
b0a6559835
[CP-SAT] add multiple circuit constraint to the python cp_model
2021-12-29 13:12:44 +01:00
Laurent Perron
0c22a715b2
[CP-SAT] improve doc on C++ builder API; rewrite python API to remove the DoubleLinearExpr class
2021-12-14 17:15:17 +01:00
Laurent Perron
dbe177a0fb
[CP-SAT] Support optional intervals in no_overlap_2d; add energetic cut to no_overlap_2d; disable cumulative relaxation of no_overlap_2d by default; fix #3012
2021-12-13 10:47:57 +01:00
Laurent Perron
6ae332569b
natural API for Cp_SAT C++
2021-12-09 15:29:49 +01:00
Mizux Seiha
655eec5260
cmake: rework python
2021-12-03 14:20:19 +01:00
Laurent Perron
cfeb2e49d7
[CP-SAT] Reservoir constraint uses affine expression for the time part; rename fields in the reservoir constraint
2021-11-25 14:53:05 +01:00
Laurent Perron
50e38f1750
[CP-SAT] accept affine expressions as argument of AllDiff
2021-11-23 21:38:20 +01:00
Laurent Perron
5b1a99e330
[CP-SAT] allow double coefficients in the objective
2021-11-19 00:28:44 +01:00
Laurent Perron
b42582de27
[CP-SAT] better use of symmetries; better presolve of products; add affine API in the python API; fix linearization of products
2021-11-16 23:55:30 +01:00
Laurent Perron
9b75a7118d
[CP-SAT] support numpy integers in most of the API
2021-11-15 11:48:17 +01:00
Laurent Perron
62088d593b
[CP-SAT] polish code
2021-11-14 17:24:37 +01:00
Laurent Perron
3c591609bf
[CP-SAT] change primal integral to gap integral; change arguments of product, division, modulo to be affine expression instead of variables
2021-11-13 08:38:21 +01:00
Laurent Perron
1eec259105
[CP-SAT] Cleanup intervals (remove start/size/end fields, remove _view from the other ones); change demands and capacity of the cumulative constraint to affine expressions; remove the experimental energies field from the cumulative constraint; first pass at detecting linear encoding of product of variab;es. This happens when both variables are encoded by the same literals, in an exactly_one relation; speed up the lb_tree_search worker
2021-10-20 19:50:09 +02:00
Laurent Perron
ab2aa5e74a
improve doc
2021-10-19 14:42:34 +02:00
Laurent Perron
67cc8ed591
implements IntervalVar.{Start|Size|End}Expr in python
2021-10-16 14:45:24 +02:00
Laurent Perron
6167340f8e
improve MIP->CP-SAT translator; mark old interval API as deprecated; improve presolve of affine relations
2021-10-07 17:34:53 +02:00
Laurent Perron
ef59381229
[CP-SAT] Enable linear expressions in AddMinEquality/AddAbsEquality/AddMaxEquality, and/or add AddLinMinEquality/AddLinMaxEquality; detect more encoding and remove variables only used in encodings
2021-10-05 17:20:38 +02:00
Laurent Perron
a188a66a9b
[CP-SAT] fix presolve and postsolve corner cases
2021-09-22 14:57:59 +02:00
Laurent Perron
0fd236d316
bump doc
2021-09-21 10:55:35 +02:00
Laurent Perron
6a84a52d9e
switch from pdoc3 to pdoc
2021-09-20 15:23:45 +02:00
Laurent Perron
3414942957
[CP-SAT] add parameter to control the size of the solution pool; improve expand of multiplications spanning across 0; fix scaling bug
2021-09-14 17:32:15 +02:00
Laurent Perron
08dbf8cb09
[CP-SAT] improve display of expr != constant
2021-09-14 12:16:58 +02:00
Laurent Perron
676462d79f
Make BoundedLinearExpression more pedantic, fix #2762
2021-09-14 11:43:20 +02:00
Laurent Perron
43bbb6eae0
Merge pull request #2530 from stradivari96/master
...
[CP-SAT][Python] Use DeprecationWarning
2021-09-13 10:23:08 +02:00
Laurent Perron
8f5bfbc252
[CP-SAT] Fix performance bug on product/square cuts; polish new interval code
2021-09-10 15:11:11 +02:00