Commit Graph

154 Commits

Author SHA1 Message Date
Laurent Perron
7a46833a12 fix #3283: implement clear objective method in CP-SAT 2022-05-07 10:37:29 +02:00
bollhals
823840fd5b fix review comment 2022-01-25 22:54:43 +01:00
bollhals
fd67eabfdd improve GetVarValueMap 2022-01-25 01:16:38 +01:00
Laurent Perron
d53135d509 reformat 2022-01-21 12:01:36 +01:00
Laurent Perron
3bb0aa6b32 [CP-SAT] misc work, improve no_overlap_2d propagation and cuts 2022-01-19 19:38:20 +01:00
Laurent Perron
7e7542fb57 reduce visibility of CP-SAT C# internal methods 2022-01-17 21:42:03 +01:00
Laurent Perron
a425d6ab8e use model queue for expression getvarvaluemap 2022-01-17 11:44:54 +01:00
Laurent Perron
e6e15cb57e partial pull of PR 3086 2022-01-17 11:17:08 +01:00
Laurent Perron
ef0e93637d reformat c# code 2022-01-16 17:37:42 +01:00
Laurent Perron
92dbda65c6 polish C# doc 2022-01-16 17:36:07 +01:00
Laurent Perron
6f0ab6f38c more CP-SAT C# doc 2022-01-16 15:46:15 +01:00
Laurent Perron
de8f124635 Merge branch 'master' of github.com:google/or-tools 2022-01-16 11:18:11 +01:00
Laurent Perron
2b3be05a12 mode CP-SAT C# doc 2022-01-16 11:17:57 +01:00
Laurent Perron
c65fa02cd1 fix 2022-01-16 10:52:41 +01:00
Laurent Perron
130406df94 work on C# docs 2022-01-16 10:51:32 +01:00
Laurent Perron
dd28909258 polish c# doc 2022-01-16 10:12:53 +01:00
Laurent Perron
563aa74e8b Merge branch 'master' into dotnet_preset_size 2022-01-16 09:18:39 +01:00
Laurent Perron
cdcc46e2db reindent cs 2022-01-16 09:16:36 +01:00
Laurent Perron
ff47d38a5b [CP-SAT] reindent C# code; add documentation to CpModel.cs and Constraints.cs 2022-01-15 22:43:59 +01:00
bollhals
1eb93136dd set capacity before adding if size is known 2022-01-14 23:21:02 +01:00
bollhals
b1bfb2e641 C#
- use var in is type check
- seal classes that have no derived class
- simplify AddOrIncrement function
2022-01-13 01:22:02 +01:00
bollhals
e2054b3cb5 - only use domain object if really needed
- upgrade to C# 9
- replace some null checks with "is (not) null"
2022-01-12 21:54:53 +01:00
Laurent Perron
5d3ccd2881 [CP-SAT] Tweak C# linear API 2022-01-12 11:12:03 +01:00
Laurent Perron
e25b39a3d1 [CP-SAT] optimize C# modeling layer 2022-01-12 10:32:17 +01:00
Laurent Perron
be8c2f9c79 [CP-SAT] improve C++ modeling layer; allow chaining incremental constraint filling methods in C#/Java 2022-01-11 17:52:27 +01:00
Laurent Perron
43532a8d49 add incremental constraint creation in CP-SAT C# 2022-01-11 15:25:23 +01:00
Laurent Perron
577f5aef77 [CP-SAT] change constraints in CpModel C# API to allow incremental filling like in C++/Java 2022-01-11 12:43:56 +01:00
Laurent Perron
4d1eee929b fix 2022-01-10 21:24:41 +01:00
Laurent Perron
badb2189f1 [CP-SAT] update doc files 2022-01-10 19:29:40 +01:00
Laurent Perron
7b477b0082 add cp-sat C# test; reformat code 2022-01-10 19:24:53 +01:00
Laurent Perron
4036cde59e C# CP-SAT: test new expression; reformat examples/tests/*cs 2022-01-10 18:44:12 +01:00
Laurent Perron
2f34343c6d fix CP-SAT C# layer; port samples 2022-01-10 18:22:27 +01:00
Laurent Perron
f82a67375d Rewrite LinearExpression part in CP-SAT C# interface 2022-01-10 13:38:27 +01:00
Laurent Perron
d6878fdc05 [CP-SAT] speedup bool_var creation 2022-01-08 15:09:25 +01:00
Laurent Perron
da153ce40d [CP-SAT] speedup simple int_var creation 2022-01-08 14:26:18 +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
6ae332569b natural API for Cp_SAT C++ 2021-12-09 15:29:49 +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
Corentin Le Molgat
5f567735d7 cmake: Fix dotnet.cmake and path 2021-12-03 14:20:19 +01:00
Mizux Seiha
72ebd8b748 cmake: rework .Net support 2021-12-03 14:20:19 +01:00
Laurent Perron
43a9dcc18a remove log; fix C# 2021-11-26 21:39:47 +01:00
Laurent Perron
970703abc0 fix #2924 2021-11-25 15:02:03 +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
aea9f8a6d0 fix 2021-11-13 08:54:48 +01:00
Laurent Perron
9eefe4c49a fix 2021-11-13 08:53: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
61a8fefb64 fix 2021-10-20 20:13:35 +02:00