Commit Graph

429 Commits

Author SHA1 Message Date
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
6f24d2a0ea fix 2021-12-29 16:47:49 +01:00
georgiossalon
565b672c71 updated comment at requests for shift_scheduling_sat.py (#3046)
* updated comment at requests

* comment update
2021-12-29 16:30:36 +01:00
Laurent Perron
65dfdd2152 fix example 2021-12-14 21:54:54 +01:00
Laurent Perron
4a369bfaa5 fix 2021-12-13 11:58:17 +01:00
Laurent Perron
93934e3660 improve rcpsp_sat.py; add optional model to knapsack_2d_sat.py; minor change to hidato_sat.p 2021-12-13 10:46:45 +01:00
Laurent Perron
5b1a99e330 [CP-SAT] allow double coefficients in the objective 2021-11-19 00:28:44 +01:00
Laurent Perron
7c4970ebfe rename example 2021-11-16 20:00:40 +01:00
Laurent Perron
5111c0d7b5 continue improving 2d packing example 2021-11-15 11:48:34 +01:00
Laurent Perron
2493b4f028 fix link 2021-11-14 23:11:21 +01:00
Laurent Perron
503a4c3bd2 improve 2d packing example 2021-11-14 19:18:00 +01:00
Laurent Perron
74dccbb97d 2d knapsack 2021-11-14 17:24:50 +01:00
Laurent Perron
061ad0f04b rename example 2021-11-14 17:10:30 +01:00
Laurent Perron
65dc9c4b6b new example 2021-11-14 17:10:05 +01:00
Corentin Le Molgat
4f7d1cc258 cmake(python): cleanup 2021-11-05 14:10:37 +01:00
Corentin Le Molgat
0d6e2a9169 sat: NQueensSat in all languages 2021-10-21 15:13:32 +02:00
Laurent Perron
f6fa781fa4 split ortools/data into ortools/scheduling and ortools/packing 2021-09-28 15:58:37 +02:00
Corentin Le Molgat
cfc12593b0 cleanup python 2021-09-03 15:29:13 +02:00
Laurent Perron
5ca9c4329a adds maze escape in sat python 2021-08-27 13:56:52 +02:00
Mizux Seiha
4b6a9b47c8 Port Stigler Diet to all languages supported 2021-08-05 17:25:03 +02:00
Laurent Perron
700847b3ff fix #2656 2021-07-13 13:47:57 +02:00
Laurent Perron
072938b720 rewrite rcpsp_sat example 2021-06-29 17:20:38 +02:00
Corentin Le Molgat
e44579c859 Reapply fixes lost in shift_scheduling_sat.py
related to #2396
2021-05-21 18:01:16 +02:00
Corentin Le Molgat
48d9111ce5 Clean few examples 2021-05-20 17:56:00 +02:00
Laurent Perron
efd16c78da [CP-SAT] deprecate SearchAllSolutions and SolveWithSolutionCallback 2021-05-03 12:11:39 +02:00
Laurent Perron
813a92f313 much more pedantic checks in python CP-SAT 2021-04-14 14:34:16 +02:00
Laurent Perron
ee6f7db8b9 improve rcpsp_sat model; fix python indent/comments 2021-04-13 11:59:41 +02:00
Mizux Seiha
c0f6978f3b Update copyright 2021-04-02 10:08:51 +02:00
Mizux
ef6e16c2e8 Update example/python/README.md 2021-03-26 16:12:14 +01:00
Mizux Seiha
8c86a97993 python: Fix integer_programming.py 2021-03-26 15:32:29 +01:00
Laurent Perron
6a562b0c29 introduce struct to hold flags in cpp init code; rename classes 2021-03-24 09:54:39 +01:00
Laurent Perron
78b814ddcb expand init API 2021-03-23 19:46:34 +01:00
Laurent Perron
bcfb3bee74 add Init to python example 2021-03-23 19:26:56 +01:00
Laurent Perron
ab810ee300 fix #2396 2021-02-15 16:04:27 +01:00
Laurent Perron
dbec1ec79f revert parallel search on balance group examples 2021-01-20 14:55:59 +01:00
Laurent Perron
1b3ee00001 speed up example 2021-01-19 15:05:41 +01:00
Mizux
252564060e Update flexible_job_shop_sat.py 2021-01-15 15:54:31 +01:00
Mizux
4ebb5a1184 Update flexible_job_shop_sat.py 2021-01-15 15:51:53 +01:00
Mizux Seiha
09243bf120 Fix typo 2020-12-24 15:47:31 +01:00
Mizux Seiha
a33a60fdd1 Update jobshop example 2020-12-03 16:56:36 +01:00
Laurent Perron
425da9ed29 sync python examples 2020-11-30 11:59:56 +01:00
Mizux Seiha
c72666acd5 cmake: Fix timeout when running shift_scheduling_sat.py 2020-11-19 21:32:05 +01:00
Laurent Perron
4ececbe448 update python code, remove __future__ imports, remove six, use absl-py for flags, update examples 2020-11-18 10:50:14 +01:00
Mizux Seiha
231a641456 python: Rename examples/python/assignment_sat.py to avoid collision 2020-09-28 10:32:35 +02:00
Laurent Perron
1750b902f1 Merge branch 'master' of github.com:google/or-tools 2020-09-20 09:04:37 +02:00
Laurent Perron
54bda4bd42 fix examples after FEASIBLE -> OPTIMAL CP-SAT change; improve display of the sudoku problem 2020-09-20 09:04:28 +02:00
Mizux Seiha
50714e6b41 python: Fix examples/python 2020-09-19 19:41:17 +02:00
Mizux Seiha
57ea8d8c73 cmake(python): add examples/python 2020-09-17 19:21:27 +02:00