Commit Graph

60 Commits

Author SHA1 Message Date
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
Mizux Seiha
72ebd8b748 cmake: rework .Net support 2021-12-03 14:20:19 +01:00
Corentin Le Molgat
6165673203 Fix indent 2021-08-27 11:00:54 +02:00
Laurent Perron
f959269d77 fix #2707 2021-07-31 00:00:36 +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
Laurent Perron
3779db1f83 deep rewrite of the gurobi loading code 2021-03-19 16:24:35 +01:00
Laurent Perron
6e15467065 linear solver: int64 -> int64_t; use new CP-SAT logging 2021-03-12 16:59:39 +01:00
Corentin Le Molgat
a9385fc3d2 Format all .Net using Microsoft style 2020-11-03 10:15:53 +01:00
Corentin Le Molgat
b5e70663c7 Format using clang-format 11 2020-10-29 14:26:41 +01:00
Mizux Seiha
335cf3df3d format all C# files 2020-10-26 18:41:49 +01:00
Mizux Seiha
a4a5f64801 cmake: Add dotnet samples 2020-09-22 19:09:22 +02:00
Laurent Perron
55cedb4b4b remove name from MPSolver.CreateSolver API; simplify underlying code 2020-08-18 17:16:10 +02:00
Laurent Perron
f0f675debd remove non C++ leaks with the linear solver 2020-06-25 11:15:19 +02:00
Laurent Perron
a8fc48e1fd polish linear solver backend selection code 2020-06-25 10:32:58 +02:00
Laurent Perron
d6ecea46ad experimental support for dynamic loading of gurobi; add MPSolver.CreateSolver() factory method for non C++ languages to check correctly installed linear solver backends and licenses when needed; port all non C++ examples 2020-06-24 18:11:12 +02:00
Corentin Le Molgat
8fee57d205 CMake: dotnet rework
.Net: update runtime csproj.in
2020-03-05 15:18:21 +01:00
Corentin Le Molgat
5b6079a6e5 CMake:dotnet: Fix -FPIC management 2020-03-05 15:18:20 +01:00
Corentin Le Molgat
c59444b07e CMake:dotnet Add definition for swig 2020-03-05 15:18:20 +01:00
Corentin Le Molgat
20c8ee05b8 CMake: fix dotnet_<targets> 2020-03-04 14:34:33 +01:00
Corentin Le Molgat
d67a1af2ea .Net: Fix SWIG compile option in CMake 2020-03-02 09:25:05 +01:00
Corentin Le Molgat
349f6b7681 CMake: Update .Net support
* Add define SWIGWORDSIZE64 on Linux
* Add -doxygen option
2020-02-28 08:21:27 +01:00
Corentin Le Molgat
ed9136bb48 .Net swig refactor 2020-02-17 10:51:57 +01:00
Laurent Perron
bc43e37c90 add sat inferface to the linear solver wrapper 2019-10-18 14:39:51 +02:00
Laurent Perron
439cebb9c8 polish xpress support 2019-09-04 15:20:45 +02:00
Laurent Perron
d4c088a367 test linear solver constraints(), variables(), and SetHint in Python/Java/C# 2019-07-01 13:41:17 +02:00
Laurent Perron
8a4ae8bff0 working SetNumTheads in Python/Java/C#; Working SetHint in java/C# 2019-06-29 12:35:15 +02:00
Corentin Le Molgat
9728fd0b95 C#: Fix missing BOP_INTEGER_PROGRAMMING Enum 2019-04-23 16:08:58 +02:00
Laurent Perron
2a4fc564b4 add constraint with index in linear solver (API + Proto); rewrite MPS reader/writer; update base library as needed 2019-04-18 19:18:48 +02:00
Corentin Le Molgat
2292fdb49e .Net: Fix linear_solver.i 2019-03-07 17:44:09 +01:00
Laurent Perron
f1ed9ba905 export more linear solver parameters in C# 2018-12-18 14:32:49 +01:00