Commit Graph

648 Commits

Author SHA1 Message Date
Laurent Perron
f5c865d6ab tweak model_builder java cloning API 2023-10-25 15:38:57 +02:00
Corentin Le Molgat
7c308c7b09 linear_solver: Cleanup python samples 2023-10-25 13:57:55 +02:00
Laurent Perron
86a8444709 Add ModelBuilder.clone() java API + sample 2023-10-24 14:50:13 +02:00
Laurent Perron
9939e9d074 polish 2023-10-24 13:33:46 +02:00
Laurent Perron
d86dfadc86 add model cloning to model_builder python + sample 2023-10-24 11:44:43 +02:00
Laurent Perron
d0eb8dd3d8 cleanups 2023-10-16 15:36:24 +02:00
Laurent Perron
9702ee7db8 remove internal urls 2023-10-16 09:07:56 +02:00
Corentin Le Molgat
69874c9b26 fixup from google3 2023-10-09 15:07:30 +02:00
Laurent Perron
81cd6ebd39 small cleanups 2023-09-28 14:27:37 +02:00
Mizux Seiha
d8634ab0f2 cmake: Split math_opt into sub library
XCode do not support object library with several file with the same name
since it use a flat directory, Xcode "fix" using a UID but CMake can't catch it.

math_opt also use a parameters.proto which conflict with the
glop/parameters.proto -> need to split the proto to .cc generation in
two libraries
2023-09-25 10:46:02 +02:00
Corentin Le Molgat
3a5008601a linear_solver: Add model_exporter_main.cc 2023-09-25 10:45:58 +02:00
Laurent Perron
d73f53397a std::string -> absl::string_view 2023-09-23 10:16:23 +02:00
Corentin Le Molgat
e27c083991 cmake: fix proto_solver when disabling various solvers 2023-09-08 18:05:49 +02:00
Laurent Perron
6c0ee38fcb remove obsolete macro 2023-08-30 10:04:47 -04:00
Laurent Perron
e4db823952 more include cleaning 2023-08-25 03:51:16 +02:00
Laurent Perron
af879c6d17 big cleanup of includes 2023-08-24 17:14:58 +02:00
Laurent Perron
fa6883d544 mostly cleaning: remove integral_types.h and basictypes.h 2023-08-24 14:52:54 +02:00
Corentin Le Molgat
d46ebfeabf integral_types.h to types.h 2023-08-18 16:14:58 +02:00
Laurent Perron
c8597d302c one more pandas model_builder test 2023-08-03 11:44:58 -07:00
Laurent Perron
a4b59064fe follow include files renaming 2023-07-28 13:31:30 -07:00
StefanBruens
4633e1080c Fix RUNPATHs for libraries and executables (#3383)
* Only add relevant directories to various RUNPATHs

The old code added several irrelevant, duplicate or even non-existing
directories to the RUNPATHs of the samples/flatzinc/sat_solver./linear_solver

Calculate the actual relative path between binary and library install
directory (using the absolute paths, CMAKE_INSTALL_LIBDIR may be either
relative or absolute), and set it as target property.
2023-07-28 14:38:25 +02:00
Laurent Perron
5b8cdcd6bf [ModelBuilder] big update on the code; remove hash table, use c++ canonicalization of linear expressions; remove code duplication 2023-07-27 08:50:52 -07:00
Laurent Perron
f540a5fbc2 reformat 2023-07-24 13:20:13 -07:00
Laurent Perron
7c42a0dfbd fix ModelIsSUpported 2023-07-22 11:42:08 -07:00
Laurent Perron
49c8f26ef2 [ModelBuilder] fix test with SCIP OFF 2023-07-22 07:23:15 -07:00
Laurent Perron
0552bed7bc another typing fix 2023-07-21 21:16:28 -07:00
Laurent Perron
44cff7813f another typing fix 2023-07-21 19:29:35 -07:00
Laurent Perron
1135c58520 use python3.7+ typing in model_builder and cp_model 2023-07-21 18:32:44 -07:00
Laurent Perron
9a5c7e8dad use python3.7+ typing in model_builder and cp_model 2023-07-21 16:42:55 -07:00
Corentin Le Molgat
2e8543914e bazel: Fix linear_solver samples tests 2023-07-21 16:43:45 +02:00
Laurent Perron
271cf0324e [ModelBuilder] do not add term 0 * var 2023-07-20 15:36:45 -07:00
Laurent Perron
b82cd22d7c [ModelBuilder] Add set_coefficient API, fix add_term to not create duplicate variable entries 2023-07-20 15:13:56 -07:00
Laurent Perron
a273b959f4 more model_builder python APIs 2023-07-20 14:01:10 -07:00
Laurent Perron
3cfffecef7 thorough clamping of infinity for SCIP; added APIs to model_builder python 2023-07-20 08:52:32 -07:00
Laurent Perron
baf4a82e9e commit wrong indent; but this is the output of our export 2023-07-17 14:43:42 -07:00
Corentin Le Molgat
c368a4d9fa example: Fix python formating 2023-07-13 14:28:36 +02:00
Corentin Le Molgat
555b86a309 linear_solver: format .cs 2023-07-10 09:56:50 +02:00
Laurent Perron
3acda0a0e9 switch model_builder python from numpy to pandas 2023-07-09 13:54:23 +02:00
Laurent Perron
6220bace83 use type alias 2023-07-06 03:02:28 +02:00
Laurent Perron
7f96bd4b96 support pdlp in python model_builder 2023-07-05 12:34:52 +02:00
Laurent Perron
346642b871 remove the pywrap prefix from pybind11 modules; add _pybind to the cmake target of the same modules 2023-07-03 14:30:27 +02:00
Laurent Perron
23988337ba test bazel fix for model_builder 2023-07-02 19:43:22 +02:00
Laurent Perron
6c14676265 test bazel fix for model_builder 2023-07-02 19:41:29 +02:00
Laurent Perron
aa957c7768 reformat 2023-07-01 06:09:27 +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
Laurent Perron
9635b925f6 reformat linear_solver python code to BLACK; support pybind11_protobuf 2023-06-28 15:57:32 +02:00
Koen van Leeuwen
4577da7bda Add SolutionValue() method
naming analogous to the Variable method
2023-06-27 11:30:20 +02:00
Laurent Perron
d80d86a82c misc 2023-06-26 18:15:54 +02:00