Commit Graph

33 Commits

Author SHA1 Message Date
Corentin Le Molgat
34e442cd5d examples: Fix main default parameter 2022-04-14 14:44:13 +02:00
Corentin Le Molgat
ad19407ff6 examples: regen all notebooks 2022-04-14 14:31:02 +02:00
Laurent Perron
79f2c45c33 [CP-SAT] Use AddExactly/AtMostOne in examples/samples; add int_square presolve; add multiplication constraint with target = left * right 2022-01-01 19:26:39 +01:00
Laurent Perron
efd16c78da [CP-SAT] deprecate SearchAllSolutions and SolveWithSolutionCallback 2021-05-03 12:11:39 +02:00
Mizux Seiha
c0f6978f3b Update copyright 2021-04-02 10:08:51 +02:00
Laurent Perron
425da9ed29 sync python examples 2020-11-30 11:59:56 +01:00
Laurent Perron
4ececbe448 update python code, remove __future__ imports, remove six, use absl-py for flags, update examples 2020-11-18 10:50:14 +01:00
Laurent Perron
88a1ac6562 fix example 2019-03-25 14:38:24 +01:00
Corentin Le Molgat
a1f330e074 Fix compile with Python2.7
- list.copy() does not exist in 2.7+
2019-01-02 13:38:56 +01:00
Laurent Perron
4d0ec663e0 minor improvement 2018-12-30 23:08:34 +01:00
Laurent Perron
98abcc8595 simplify example 2018-12-30 22:54:56 +01:00
Laurent Perron
e68c3be1af use DP to generate valid slabs 2018-12-30 21:17:38 +01:00
Laurent Perron
f0f65fee9a small polish 2018-12-30 18:12:26 +01:00
Corentin Le Molgat
c2ae098d34 Apply yapf on examples/python/*.py 2018-11-30 14:48:55 +01:00
Laurent Perron
f2573d33b1 Fix merge abseil - v6.10 2018-11-30 14:48:55 +01:00
Corentin Le Molgat
b027e57e95 dotnet: Remove reference to dotnet release command
- Currently not implemented...

Add abseil patch

- Add patches/absl-config.cmake

Makefile: Add abseil-cpp on unix

- Force abseil-cpp SHA1 to 45221cc
  note: Just before the PR #136 which break all CMake

Makefile: Add abseil-cpp on windows

- Force abseil-cpp SHA1 to 45221cc
  note: Just before the PR #136 which break all CMake

CMake: Add abseil-cpp

- Force abseil-cpp SHA1 to 45221cc
  note: Just before the PR #136 which break all CMake

port to absl: C++ Part

- Fix warning with the use of ABSL_MUST_USE_RESULT
  > The macro must appear as the very first part of a function
    declaration or definition:
    ...
    Note: past advice was to place the macro after the argument list.
  src: dependencies/sources/abseil-cpp-master/absl/base/attributes.h:418
- Rename enum after windows clash
- Remove non compact table constraints
- Change index type from int64 to int in routing library
- Fix file_nonport compilation on windows
- Fix another naming conflict with windows (NO_ERROR is a macro)
- Cleanup hash containers; work on sat internals
- Add optional_boolean sub-proto

Sync cpp examples with internal code
- reenable issue173 after reducing number of loops

port to absl: Python Part

- Add back cp_model.INT32_MIN|MAX for examples

Update Python examples

- Add random_tsp.py
- Run words_square example
- Run magic_square in python tests

port to absl: Java Part

- Fix compilation of the new routing parameters in java
- Protect some code from SWIG parsing

Update Java Examples

port to absl: .Net Part

Update .Net examples

work on sat internals; Add C++ CP-SAT CpModelBuilder API; update sample code and recipes to use the new API; sync with internal code

Remove VS 2015 in Appveyor-CI

- abseil-cpp does not support VS 2015...

improve tables

upgrade C++ sat examples to use the new API; work on sat internals

update license dates

rewrite jobshop_ft06_distance.py to use the CP-SAT solver

rename last example

revert last commit

more work on SAT internals

fix
2018-11-30 14:48:55 +01:00
Laurent Perron
44e52c1ef8 mostly PascalCase -> sname_case 2018-11-20 05:44:21 -08:00
Laurent Perron
d99cf97acb reformat python files as tab length = 4 now 2018-11-11 09:39:59 +01:00
Laurent Perron
87b9d55b21 update license headers 2018-11-10 18:00:53 +01:00
Laurent Perron
9a116eba39 remove SolutionObserver is sat/swig_helper.h; rename WithObserver into WithCallback 2018-09-04 18:47:10 +02:00
Laurent Perron
e8d5858e67 revamp sat python solution callback, adds the ability to stop search from the solution callback. 2018-08-30 16:27:58 +02:00
Corentin Le Molgat
2e3131b643 python: Rework examples target
- Fix default solver to use CBC instead of GLPK (which is optional)
- Fix few examples which doesn't compile against python2.7
- Add all examples to target test_python
  - Few examples disabled since they are too long
2018-08-29 16:56:25 +02:00
Laurent Perron
72db1d9ef2 run pyformat on python examples 2018-06-11 11:51:18 +02:00
Laurent Perron
b645ce1f52 add license to examples; add example from the documentation 2017-11-22 14:55:44 +01:00
Laurent Perron
bdd72fe1b1 Add SearchForAllSolution in sat cp_model.py API; add code to export model from the steel_mill_slab_sat code 2017-11-05 10:31:52 +01:00
Laurent Perron
a4716f97f5 simplify steel_mill_slab_sat after previous fix 2017-11-04 23:52:44 +01:00
Laurent Perron
42e0a0b91f working version of rcpsp_sat in python 2017-11-04 23:26:01 +01:00
Laurent Perron
b938134fa1 cleanup steel_mill_slab_sat 2017-10-27 17:06:01 +02:00
Laurent Perron
fed190b30a improve steel mill slab 2017-10-27 11:49:02 +02:00
Laurent Perron
9e3d151256 improve steel mill slab 2017-10-27 08:52:42 +02:00
Laurent Perron
6cf95ec0e7 more work on steel_mill_slab_sat 2017-10-26 11:49:22 +02:00
Laurent Perron
91783cb848 filter slabs 2017-10-25 15:27:19 +02:00
Laurent Perron
3cbcf98604 work in progress, python version of the steel mill slab problem with the sat solver 2017-10-25 14:20:56 +02:00