89 Commits

Author SHA1 Message Date
Mizux Seiha
4f381f6d07 backport from main:
* bump abseil to 20250814
* bump protobuf to v32.0
* cmake: add ccache auto support
* backport flatzinc, math_opt and sat update
2025-09-16 16:25:04 +02:00
Corentin Le Molgat
a7f49a2585 backport from main
* rename swig files .i in .swig
* update constraint_solver and routing
* backport math_opt changes
* move dynamic loading to ortools/third_party_solvers
2025-07-23 23:12:34 +02:00
Laurent Perron
54b8c24839 big graph cleaning; rewrite CP-SAT python layer; rewrite model_builder python layer; reorganize CP-SAT scheduling and packing code 2025-01-15 13:51:40 +01:00
Corentin Le Molgat
a66a6daac7 Bump Copyright to 2025 2025-01-10 11:35:44 +01:00
Laurent Perron
f22fed7be9 Add WriteModelToMpsFile to MPSolver in Java/Python/.NET 2024-10-07 15:24:14 +02:00
Corentin Le Molgat
8e1dece507 format fix 2024-09-18 11:56:23 +02:00
Alexander Ignatovich
54c34df00c fix linear solver test output 2024-07-27 15:36:19 +02:00
Laurent Perron
32cdaa73f7 add WriteToMpsFile in model_builder, model_exporter 2024-07-12 17:45:41 +02:00
Corentin Le Molgat
22f931251c indent fixup 2024-07-12 15:51:52 +02:00
Corentin Le Molgat
8931e50f31 backport math_opt from main 2024-05-30 10:52:45 +02:00
Laurent Perron
0aa44e7479 protect code for MIP solvers 2024-02-02 14:29:03 +01:00
Corentin Le Molgat
dd6da5bf0f cmake: rework dotnet helper functions 2024-01-18 11:22:38 +01:00
Mizux Seiha
a76bf1c5dd bump license boilerplate 2024-01-04 13:43:15 +01:00
Laurent Perron
72f274f844 Change proto to/from file API to use absl::StatusOr; add reader/writer proto_file to model_builder 2023-11-20 16:13:03 +01:00
Laurent Perron
7bdde984aa model_builder python: ModelBuilder -> Model, ModelSolver -> Solver; fix bug in enforced linear support; tweak wrappers: 2023-11-06 16:16:38 +01:00
Laurent Perron
fcd64e6b97 polish on model_builder code 2023-11-06 15:20:03 +01:00
Laurent Perron
143785cddb More fixes 2023-11-05 21:43:11 +01:00
Laurent Perron
5fa6f76cab ModelBuilder C# class -> Model, ModelSolver c# class -> Solver to avoir name conflict between the class and the namespace 2023-11-05 19:18:48 +01:00
Laurent Perron
686b530f10 [ModelBuilder] Add clear_terms and set_coefficient everywhere; finish indicator constraints in C# 2023-11-05 14:40:40 +01:00
Laurent Perron
9d9ca5ccaf add hinting support for model_builder 2023-11-04 20:58:00 +01:00
Laurent Perron
56464545db uncomment method in model_solver C# 2023-11-04 19:40:58 +01:00
Laurent Perron
d229e48c88 polish model_builder code and samples; tweak C# wrapping code 2023-11-03 15:09:13 +01:00
Laurent Perron
915cacf963 new model_builder C# sample 2023-11-02 04:24:38 +01:00
Laurent Perron
c0f2ce22a3 LogCallback -> MbLogCallback 2023-11-01 21:53:36 +01:00
Laurent Perron
2b3a7a3d4d Update 2023-11-01 09:33:02 +01:00
Laurent Perron
07d3a2aca6 add nearly finished ModelSolver C# class 2023-10-31 22:52:49 +01:00
Laurent Perron
183bff771e add ModelBuilder class in C# 2023-10-31 22:02:17 +01:00
Laurent Perron
fd55458966 more work on modelbuilder C#; fix doc on modelbuilder java 2023-10-31 12:38:42 +01:00
Laurent Perron
afbca7604d cleanup c# swig: move vector calling to client .i, import vector.i instead of include; begin support for c# model_builder 2023-10-30 21:51:08 +01:00
Corentin Le Molgat
555b86a309 linear_solver: format .cs 2023-07-10 09:56:50 +02:00
Laurent Perron
c6074f8c48 Merge pull request #3837 from koen-lee/eval-LinearExp
Evaluate LinearExp for the found solution
2023-06-28 18:48:14 +02:00
Koen van Leeuwen
aa894f0149 Add test for new LinearExpr.SolutionValue() method 2023-06-28 18:23:48 +02:00
Koen van Leeuwen
a4c7921469 Add sum 2023-06-28 17:53:20 +02:00
Koen van Leeuwen
4577da7bda Add SolutionValue() method
naming analogous to the Variable method
2023-06-27 11:30:20 +02:00
Mizux Seiha
53c1e40969 swig: Fix define definition
need to set ABSL_MUST_USE_RESULT to empty string so '=' is mandatory
2023-05-30 14:49:13 +02:00
Corentin Le Molgat
192e690204 cmake: cleanup 2023-05-24 15:39:37 +02:00
Corentin Le Molgat
7665b677e5 Update CMakeLists.txt 2023-04-05 10:36:55 +02:00
Corentin Le Molgat
41d60ad520 cmake: Fix SWIG build
Still need to define ABSL_MUST_USE_RESULT= even with swig 4.1.1
2023-02-06 08:47:46 +01:00
Corentin Le Molgat
9054f13f95 cmake: remove ABSL_MUST_USE_RESULT for swig
should be fixed with absl upstream + swig 4.1 now support attibute
2023-02-06 08:47:46 +01:00
Laurent Perron
cf53ee3c9f reformat bazel java code; CP-SAT: fix corner case in presolve, zero very small coefficients in translate from math model, more parameter validation 2023-01-05 13:38:42 +01:00
Corentin Le Molgat
1e8423c44f swig: Fix dotnet build when using swig 4.1.0 2022-11-07 15:31:47 +01:00
Mizux Seiha
baaf1ca82a cmake: Fix dotnet build
* fix cmake/dotnet.cmake
* fix <cmp>/dotnet/CMakeLists.txt
* fix examples/tests/CMakeLists.txt
2022-09-23 13:15:36 +02:00
Mizux Seiha
224ebed399 move examples/test/*.cs to ortools/<component>/csharp 2022-09-23 13:15:36 +02:00
Corentin Le Molgat
4c74636bf8 linear_solver: Add missing solve status 2022-06-29 13:45:40 +02:00
Corentin Le Molgat
1af55b2be3 Add license boilerplate 2022-06-21 11:25:29 +02:00
Corentin Le Molgat
c7120439d4 Bump license date 2022-06-17 14:23:23 +02:00
Mizux Seiha
32b101b9ee cmake: Fixup for pdlp 2022-02-25 23:43:01 +01:00
Corentin Le Molgat
a40295d79c Sync from google 2022-01-21 17:51:38 +01:00
Corentin Le Molgat
354e350004 Sync C# indent 2022-01-03 09:49:47 +01:00
Corentin Le Molgat
5f567735d7 cmake: Fix dotnet.cmake and path 2021-12-03 14:20:19 +01:00