Commit Graph

33 Commits

Author SHA1 Message Date
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
5a334386a2 add comments 2019-06-28 10:58:35 +02:00
Laurent Perron
8a85d996a5 enable threading support in python CP-SAT module 2019-06-14 10:57:39 +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
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
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
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
Corentin Le Molgat
a72e33a732 Sync from g3 to github 2019-03-22 11:10:21 +01:00
Laurent Perron
23cde5f94a fix performance bug in CP-SAT python solution callback 2019-03-21 15:15:16 +01:00
Laurent Perron
fedf3d4ff4 revamp and simplify swig support, force typed enums for C# and Java for all except the constraint_solver/routing module; port examples; Fix SAT on very large problems 2018-12-11 17:03:03 +01:00
Laurent Perron
589047ce90 python support int64 -> int64_t 2018-12-10 13:35:41 +01:00
Laurent Perron
3cfcd810cc Add CpModel.Validate() in C#, Python, Java 2018-11-21 08:43:50 -08:00
Laurent Perron
87b9d55b21 update license headers 2018-11-10 18:00:53 +01:00
Laurent Perron
e323bba2e7 backport sat improvements from the abseil branch 2018-11-05 16:24:47 +01:00
Laurent Perron
b1da9320f9 enable objective lower bound (when minimizing) on the SAT solver in Python, Java, C#; change objective_value to be double (as in C++) for these languages. 2018-09-20 11:30:19 +02:00
Laurent Perron
428e272ccc add ModelStats and CpSolverResponseStats for SAT/{Python|Java|C#}; enable multiple enforcement literals for a few constraints; small fixes, typo corrections 2018-09-12 15:07:23 +02:00
Laurent Perron
36393a1733 remove useless python __init__ 2018-09-05 10:57:27 +02:00
Laurent Perron
9a116eba39 remove SolutionObserver is sat/swig_helper.h; rename WithObserver into WithCallback 2018-09-04 18:47:10 +02:00
Laurent Perron
e8d5858e67 revamp sat python solution callback, adds the ability to stop search from the solution callback. 2018-08-30 16:27:58 +02:00
Laurent Perron
507cfbea26 revisit Java SAT API; follow Java naming conventions 2018-08-03 16:42:45 -07:00
Laurent Perron
f3a9a1f2d6 fix python3 support in and out of protobufs 2017-11-17 00:19:34 +01:00
Laurent Perron
e14ee86de3 move rcpsp parser to ortools/data; continue working on SAT 2017-11-07 15:45:52 +01:00
Laurent Perron
c5d3788a3e solution observer in python/SAT 2017-10-25 14:20:21 +02:00
Laurent Perron
03fccb4032 improve incrementality of glop when used in the sat solver; change more copyright dates; more documentation on the gate scheduling problem 2017-10-18 11:09:13 +02:00
Laurent Perron
a54b49ebb8 change solution observer on sat to take a CpSolverResponse as parameter 2017-10-16 15:02:51 +02:00
Laurent Perron
8752053693 python sat files 2017-10-01 16:25:50 +02:00