Commit Graph

61 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
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
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
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
Laurent Perron
8aa13ac64a [CP-SAT] revamp interval APIs 2021-09-08 21:19:57 +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
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
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
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
Laurent Perron
856ee71dc3 polish CpSolver java 2021-03-12 18:12:23 +01:00
Laurent Perron
d1e6c62b65 missing changes 2021-03-12 13:52:05 +01:00
Laurent Perron
55c40e6c89 capture CP-SAT log in python/java/.NET; visual tweak of the log; tweak the logging facilities for CP-SAT 2021-03-11 21:07:28 +01:00
Laurent Perron
13fd763ac6 Exception -> RuntimeException in CP-SAT java 2021-02-20 14:28:19 +01:00
Laurent Perron
9d7acd602e polish CP-SAT java API 2021-02-15 12:26:20 +01:00
Laurent Perron
de9480794f fix new CP-SAT java api 2021-02-15 10:13:23 +01:00
Laurent Perron
418b196b19 cache constant vars in CP-SAT java API 2021-02-15 09:29:29 +01:00
Laurent Perron
598c01026d fix 2021-02-14 14:14:06 +01:00
Laurent Perron
b519ead83f add LinearExpr.booleanSum and LinearExpr.ScalProd to java CP-SAT 2021-02-14 12:48:45 +01:00
Laurent Perron
ce52397ccf fix doc for assumptions new API 2021-02-05 17:18:58 +01:00
Xiang Chen
2d5cd894c7 Add ClearHints() and ClearAssumptions() 2021-02-05 11:21:57 +01:00
Xiang Chen
b34ceefb86 Wrap CP-SAT assumptions 2021-02-04 23:53:50 +01:00
Corentin Le Molgat
fb8e8b0693 Sync Google <=> GitHub 2021-01-26 15:52:32 +01:00
Mizux Seiha
11b72a2dd2 java: Fix missing import in Loader.java 2020-12-29 22:11:54 +01:00
Mizux Seiha
92893142a4 java: allow concurrent call to loader (Fix #2294) 2020-12-29 13:33:04 +01:00
Laurent Perron
c80eec373b [CP-SAT] Change semantics/API of the reservoir constraint; added presolve on the reservoir constraint; experimental propagator for the reservoir constraint; fix #2293 2020-12-24 06:41:44 +01:00
Corentin Le Molgat
8c839e6775 Cleanup JavaDecisionBuilder.java 2020-11-27 11:54:45 +01:00
Corentin Le Molgat
4cd85e08c4 Export Google update 2020-11-18 16:11:32 +01:00
Corentin Le Molgat
c75ac92a5a Sync from Google to GitHub 2020-11-16 17:50:54 +01:00