Commit Graph

504 Commits

Author SHA1 Message Date
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
Laurent Perron
49d0173457 try to fix another example 2022-11-12 12:07:27 +01:00
Laurent Perron
39a1d96a59 polish python examples 2022-11-11 11:16:29 +01:00
Laurent Perron
6d9505f45b add time limit 2022-11-09 16:37:10 +01:00
Laurent Perron
a8bc9af29b fix symmetry breaking 2022-10-23 08:12:20 +02:00
Antony Phillips
e94815c567 Bugfixes for cover_rectangle example 2022-10-23 03:54:59 +01:00
Laurent Perron
5f43e9bc51 fix 2022-10-11 15:03:31 +02:00
Corentin Le Molgat
4f647a0d61 examples/python: cleanup 2022-10-10 13:44:12 +02:00
ssge
3756946ef5 comments typos
fixing minor grammar
2022-10-10 09:30:02 +02:00
Laurent Perron
62f6689d81 fix #3463 2022-09-20 10:58:11 +02:00
Laurent Perron
a26602f247 fix #3461 2022-09-19 14:49:19 +02:00
Laurent Perron
6c55890ce4 add new lower bounds and new pre-computations to rcpsp_sat.py 2022-08-19 09:24:27 +02:00