Commit Graph

108 Commits

Author SHA1 Message Date
Laurent Perron
1166e1663a [CP-SAT] Next iteration in java modelling layer 2022-01-04 16:30:04 +01:00
Laurent Perron
6144215236 [CP-SAT] add BoolVar class to the java modelling layer 2022-01-03 18:57:09 +01:00
Laurent Perron
7da0f7abd7 [CP-SAT] Polish java code 2022-01-03 14:49:52 +01:00
Laurent Perron
62d506143b [CP-SAT] Add AtMostOne/AtLeastOne/ExactlyOne constraint in all languages; rewrite linear expressions in java 2022-01-03 09:43:59 +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
0ebf4e3685 [CP-SAT] rewrite the java modelling layer (non linear constraints) 2021-12-29 13:12:13 +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
Corentin Le Molgat
1d3e1f3126 Sync java 2021-12-10 17:54:56 +01:00
Laurent Perron
7e74268ded [CP-SAT] another overflow fix; remove AddLinMin/Max in favor of AddMin/Max 2021-12-08 15:26:17 +01:00
Mizux Seiha
d6ae509342 Fix Protobuf and Absl bump 2021-11-30 18:34:58 +01:00
Corentin Le Molgat
882f13d248 cmake: Remove CMakeTest.java 2021-11-29 11:02:35 +01:00
Laurent Perron
f5d01e1c19 reformat 2021-11-28 12:59:14 +01:00
Laurent Perron
1dd4eff16e [CP-SAT] Reservoir constraint uses affine expression for the time part; rename fields in the reservoir constraint 2021-11-25 15:02:51 +01:00
Laurent Perron
50e38f1750 [CP-SAT] accept affine expressions as argument of AllDiff 2021-11-23 21:38:20 +01:00
Laurent Perron
7e699275e1 [CP-SAT] better processing of double objective; add one more symmetry breaking presolve rule; add objective rounding cut; remove IntegerArgumentProto message 2021-11-19 17:58:54 +01:00
Laurent Perron
5b1a99e330 [CP-SAT] allow double coefficients in the objective 2021-11-19 00:28:44 +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
Two4
35e1046e1f cmake: Added BUILD_FAT_JAR option (#2871)
* Added support and documentation for the CMake BUILD_FAT_JAR option

Co-authored-by: kyle <kyle@awesomeguy.co.za>
2021-10-29 11:53:26 +02:00
Corentin Le Molgat
29c3ccfc78 java: Make loadeNativeLibraries() a static synchronized function. 2021-10-27 16:25:38 +02: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
c25036996f implements IntervalVar::get{Start|Size|End}Expr in java, fix #2847 2021-10-16 14:44:48 +02:00
Corentin Le Molgat
a73c391f44 sat: Add NursesSat.java 2021-10-11 16:42:50 +02:00
Laurent Perron
73413e2ac9 [CP-SAT] fix #2832 2021-10-11 11:32:00 +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
Corentin Le Molgat
0ae20b26fc deps: bump Protobuf to 3.18.0 2021-09-20 16:57:13 +02:00
Corentin Le Molgat
7c58852366 java: Use auto-value in test 2021-09-15 17:54:08 +02:00
Laurent Perron
8aa13ac64a [CP-SAT] revamp interval APIs 2021-09-08 21:19:57 +02:00
Corentin Le Molgat
96ead8f216 java: sync tests with Google 2021-09-03 18:21:29 +02:00
Corentin Le Molgat
7f01735c78 java: Add com.google.truth for test 2021-09-03 17:01:38 +02:00
Corentin Le Molgat
877a0f358b Fix bump of Protobuf from 3.15.8 to 3.17.3 2021-08-23 17:01:22 +02:00
Corentin Le Molgat
c892dbdf64 clean java/README.md 2021-08-23 16:05:25 +02:00
slowy07
2e0ec51049 fix: typo spelling grammar 2021-08-16 10:49:00 +02:00
Laurent Perron
835aa67606 fix cp_model java API 2021-06-18 16:31:07 +02:00
Laurent Perron
7382845e5f regroup overloaded methods 2021-06-11 15:46:46 +02:00
Laurent Perron
c2c942c8ab [CP-SAT] polish no_overlap presolve; add LinearExpr.Affine() API in java/C#; tweak LinearExpr C++ API 2021-06-09 11:35:21 +02:00
Xianyin Xin
b72093332d fix #2575: Loader may not load native lib correctly due to resource name conflicting. 2021-06-09 09:32:06 +02:00
Laurent Perron
3d1ac12594 [CP-SAT] deprecate SearchAllSolutions and SolveWithSolutionCallback 2021-05-03 12:11:59 +02:00
Mizux Seiha
af7247758d Bump Protobuf 3.15.7 -> 3.15.8 (Fix #2524) 2021-04-27 15:43:34 +02:00
Mizux Seiha
362cc8d3d6 release: Fix GPG 2.0 support 2021-04-27 09:10:25 +02:00
Corentin Le Molgat
17032f68fb java: Use ortools patch for dependencies in pom.xml 2021-04-27 09:10:25 +02:00
Corentin Le Molgat
d6b3090d3a java: Bump jna-platform 5.5.0 -> 5.8.0 (Fix #2519) 2021-04-27 09:10:25 +02:00
Laurent Perron
f0c6c3b487 [CP-SAT] prepare for custom search; enable ExportToFile in binary format; add balas scheduling cut 2021-04-23 14:57:27 +02:00
Corentin Le Molgat
3bdff620ab update java README.md 2021-04-16 00:23:35 +02:00
Lalith Suresh
a89b4b1db5 sat: take advantage of cached constants in CpModel.indexFromConstant()
Signed-off-by: Lalith Suresh <suresh.lalith@gmail.com>
2021-04-08 22:30:40 -07:00
Mizux Seiha
4cd161f125 Bump Protobuf 3.15.3 -> 3.15.7 2021-04-06 12:13:28 +02:00
Mizux Seiha
8bb54b04ef Bump Copyright to 2021
FYI:
find ortools \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/\(Copyright 2010\)-2018/\1-2021/g'
2021-04-01 21:00:53 +02:00
Corentin Le Molgat
f334ace8f2 remove trailing whitespace 2021-04-01 12:11:48 +02:00
Mizux Seiha
7af2b1b5cc Try to fix mvn passphrase 2021-03-17 18:25:34 +01:00
Mizux Seiha
8d8896de4c java: Add pom-full.xml.in 2021-03-17 18:25:33 +01:00