Commit Graph

515 Commits

Author SHA1 Message Date
Laurent Perron
905770c995 add new python example; add simple typing annotations 2024-07-23 16:34:51 +02:00
Laurent Perron
1a8e148aa6 reduce example runtime 2024-07-22 17:36:11 +02:00
Laurent Perron
f24d33e921 new examples 2024-07-22 14:18:05 +02:00
Laurent Perron
509edd40c4 new example: pell equation 2024-07-22 11:31:53 +02:00
Laurent Perron
21a75638c2 partial sync with main (without the routing part) 2024-07-12 13:56:11 +02:00
Laurent Perron
d28edd701c [CP-SAT] code cleanup; more pseudo-cost experimental code; add objective best bound callback 2024-05-30 10:52:46 +02:00
Laurent Perron
4cbd27dae9 sync with main 2024-05-30 10:52:42 +02:00
dongjinlong
a1ed8e3e85 chore: remove repetitive words in comments
Signed-off-by: dongjinlong <dongjinlong@outlook.com>
2024-05-30 10:51:55 +02:00
Laurent Perron
02a53ee8d0 selecting a subset of pieces 2024-05-30 10:51:54 +02:00
Laurent Perron
0ca8c87c3c new example 2024-05-30 10:51:54 +02:00
Laurent Perron
511bf047a7 backport cp-sat code from main 2024-05-30 10:51:53 +02:00
Mizux Seiha
1a5a6a1d80 cmake: rework add_python_example 2024-01-17 16:56:26 +01:00
Mizux Seiha
a76bf1c5dd bump license boilerplate 2024-01-04 13:43:15 +01:00
Laurent Perron
5b911b1169 [CP-SAT] add ~operator for the logical negation in C++ and Python; fix a bug in C# 2023-12-15 14:10:44 +01:00
Laurent Perron
0bb7d0c58b Merge pull request #3966 from rte-france/feature/xpress_only
Improve the Xpress interface and add dynamic loading of the Xpress library
2023-12-11 11:48:24 +01:00
Laurent Perron
afa29bc06a polish examples 2023-12-03 16:59:16 +01:00
Florian OMNES
e179c8b847 Feature/xpress only (#115)
* remove python script

* remove RTE actions

* fix test_xpress_interface.cc

* remove callback_xpress.py

* revert writing colnames and rownames

* accept suggestion from Mizux

* clean

* change cmake/README.md

* try fix build bazel

* try fix build bazel add MPSWriteError.h

* xpress tests gracefully exit if Xpress not found

* add integer and linear programming test for dotnet python and java

* remove MPSWriteError

* try fix Window build

* remove useless line from CMakeLists.txt

* try fix test under windows

* reformat

* use XPRESS_LP instead of XPRESS for linear programming examples

* tools: add --platform arg when possible

make script more resilient/cross-platform

* [CP-SAT] convert to PEP8 convention

* use XPRSmipoptimize and XPRSlpoptimize instead of XPRSminim and XPRSmaxim (#114)

* use XPRSmipoptimize and XPRSlpoptimize instead of XPRSminim and XPRSmaxim

* clean xpress/environment files

* accept changes: empty char* parameter for XPRS*optimize

* Add test on number iterations with LP basis

* fix gtests flags

* refactor

* suggestions by @flomnes

* remove unwanted files

---------

Co-authored-by: Andrea Sgattoni <andrea.sgattoni@rte-france.com>
Co-authored-by: Laurent Perron <lperron@google.com>
Co-authored-by: Corentin Le Molgat <corentinl@google.com>
Co-authored-by: Andrea Sgattoni <andrea.sgattoni@gmail.com>
2023-11-20 12:43:41 +01:00
Laurent Perron
5b6c803db3 [CP-SAT] convert to PEP8 convention 2023-11-16 19:46:56 +01:00
Andrea Sgattoni
18468fe1e6 add integer and linear programming test for dotnet python and java 2023-11-13 15:29:08 +01:00
Andrea Sgattoni
53f1aa0013 isolate xpress tests 2023-10-27 09:42:36 +02:00
Andrea Sgattoni
3c4a76e68f update xpress interface with dynamic load 2023-10-27 09:42:35 +02:00
Laurent Perron
f32c576db7 fix #3949 2023-10-16 15:43:30 +02:00
Laurent Perron
d07127d40a [CP-SAT] revisit search heuristics, lns workers search heuristics; scheduling propagation 2023-10-02 19:52:11 +02:00
Laurent Perron
f9540e8a6b bake in max performance parameters 2023-09-21 13:08:03 +02:00
Corentin Le Molgat
8f5f18686e examples: cleanup python samples 2023-07-18 13:55:36 +02:00
Corentin Le Molgat
c368a4d9fa example: Fix python formating 2023-07-13 14:28:36 +02:00
Laurent Perron
ab19570cd4 add one test in examples/python bazel 2023-07-10 11:34:22 -07:00
Laurent Perron
73b081d714 test rcpsp_sat with bazel 2023-07-10 11:00:55 -07:00
Laurent Perron
8c6898da25 use tuples instead of lists for arcs in CP-SAT AddCircuit 2023-07-10 14:38:58 +02:00
Laurent Perron
84e1ad7f0c enable more python tests in cmake; add rule to run python examples with args in bazel 2023-07-05 09:06:55 +02:00
Laurent Perron
32175c9c3b remove pywrap prefix for pybind11 generated modules 2023-07-03 12:46:51 +02:00
Laurent Perron
84ec414e61 use black on examples/python 2023-07-01 06:06:53 +02:00
Laurent Perron
c3fdb12908 Switch algorithms and scheduling python libraries from swig to pybind11; switch protobuf support from forced serialization to pybind11_protobuf -- with patch; [CP-SAT] rewrite cut management; reformat samples with black 2023-06-30 22:49:35 +02:00
Laurent Perron
a743431365 start reformating with black 2023-06-27 14:21:34 +02:00
Corentin Le Molgat
5ce691ed40 cmake: Add License header 2023-05-31 11:20:28 +02:00
Laurent Perron
830ef3dc0b improve knapsack_2d_sat example 2023-05-13 10:16:00 +02:00
Mizux Seiha
2de7d6fbac bazel: Fix build 2023-04-03 11:06:28 +02:00
Laurent Perron
1d061ed19e cleanup examples/python 2023-03-03 18:55:16 +04:00
Laurent Perron
dbd5a69471 use new logging flags 2023-02-17 15:17:12 +01:00
Laurent Perron
ebb02b4f8e polish python examples 2023-02-17 13:59:43 +01:00
Laurent Perron
857703cd35 add robot spreading example 2023-02-16 18:20:43 +01:00
Corentin Le Molgat
c0157716d4 fixup 2023-02-10 13:01:08 +01:00
Corentin Le Molgat
ce988f3e0b examples: Add tiny sample to bus_driver_scheduling_sat 2023-02-10 09:41:00 +01:00
Laurent Perron
c01883c977 tune time limits 2023-02-04 07:59:56 +01:00
Laurent Perron
1d942c9a78 tune time limits 2023-02-04 07:56:10 +01:00
Laurent Perron
a06d0ed7a0 more absl::string_view in the c++ code; sync examples/python, remove jniutils.h; move sat/python/visualization.py to sat/colab 2023-01-29 21:20:58 +01:00
Laurent Perron
576fb3fca5 fix examples/python/bazel; add time limit to example; remove jniutil; disable dump_vars_test on mac 2023-01-28 12:38:26 +01:00
Laurent Perron
f460e9b0fc run tests in examples/python under bazel; sync/clean examples 2023-01-26 13:46:40 +01:00
Corentin Le Molgat
928bfbfedb example: fix chemical_balance notebook
note: need to use """ to have our script correctly parsing
2022-12-21 09:54:01 +01:00
Corentin Le Molgat
d6965013c7 example: fix linter in chemical_balance 2022-12-19 15:52:15 +01:00