Commit Graph

43 Commits

Author SHA1 Message Date
Laurent Perron
9321ab2096 update and fix examples 2022-09-09 16:49:24 +02:00
Corentin Le Molgat
c7120439d4 Bump license date 2022-06-17 14:23:23 +02:00
Laurent Perron
36a094455a Enable PDLP in MPSolver 2022-02-25 19:30:02 +01:00
Laurent Perron
4c8570a57c use init_google.h in c++ examples 2022-02-25 09:47:52 +01:00
Mizux Seiha
c0f6978f3b Update copyright 2021-04-02 10:08:51 +02:00
Laurent Perron
805b733f98 sync most c++ examples 2021-01-14 10:48:19 +01:00
Corentin Le Molgat
e4caaf96bc format file forcing the left alignment 2020-10-29 14:25:39 +01:00
Mizux Seiha
66bc68192f Fix examples 2020-10-24 00:50:28 +02:00
Mizux Seiha
20d0496bfb reapply google format 2020-10-23 00:45:17 +02:00
Laurent Perron
288d3f5ed4 fix examples 2020-10-21 00:28:40 +02:00
Laurent Perron
a4258f2bdf switch flags setters and getters to the absl format 2020-10-21 00:21:54 +02:00
Laurent Perron
55cedb4b4b remove name from MPSolver.CreateSolver API; simplify underlying code 2020-08-18 17:16:10 +02:00
Mizux Seiha
7003d8cbd7 example: Remove uneeded test 2020-07-06 15:16:26 +02:00
Mizux Seiha
cb21f8b8aa example: Add SCIP to linear_programming 2020-07-06 12:33:28 +02:00
Mizux Seiha
d5c599e4ec example: Add SAT to linear_programming 2020-07-06 12:04:40 +02:00
Laurent Perron
5c7e66d998 improve linear examples 2020-06-25 10:33:13 +02: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
Corentin Le Molgat
24ad8771ef Format examples/cpp 2018-11-22 13:15:13 +01:00
Laurent Perron
87b9d55b21 update license headers 2018-11-10 18:00:53 +01:00
Corentin Le Molgat
9cad0c15ae Replace 0 by EXIT_SUCCESS 2018-11-07 09:55:42 +01:00
Corentin Le Molgat
b1ea750b1a Update linear_programming examples 2018-10-15 10:00:37 +02:00
Corentin Le Molgat
128363e477 Sync linear_programming with documentation
- move previous code to tests/lp_test.cc
2018-10-12 09:48:12 +02:00
Corentin Le Molgat
027f5cc3f8 Add missing basic examples
C++:
 - [Up] linear_programming
 - [Up] integer_programming
 - constraint_programming_CP / rabbits_pheasants_cp
 - knapsack
 - max_flow / min_cost_flow
 - tsp / vrp
note: previous "fuzzy" tsp has been renamed random_tsp.

.Net:
 - vrp
2018-09-26 13:15:34 +02:00
Laurent Perron
70e73d8754 clang-format 2018-06-08 16:40:43 +02:00
Laurent Perron
bace30695d export base::SetFlag and base::GetFlag; use them in examples 2017-12-14 12:46:53 +01:00
Laurent Perron
2c7a8bf8f6 change copyright date 2017-10-17 13:08:10 +02:00
Laurent Perron
66b8d23079 move src to ortools; simplified python generation; remove some namespaces in the ortools/base helper files 2017-04-26 17:30:25 +02:00
Vincent Furnon
eb7a508d09 Linear solver wrapper: changed the constraint activity API. 2015-06-18 14:26:12 +02:00
Vincent Furnon
7182abb864 Renamed the linear solver protocol buffer and removed the new_proto namespace. 2015-06-16 10:08:44 +02:00
Laurent Perron
2a6f8942cc compile gflags correctly, remove google namespace, use gflags instead, port all code using it 2015-03-03 14:31:06 +01:00
lperron@google.com
ba5c34e0c4 incomplete support for CPLEX, works only on mac currently 2014-10-15 21:31:03 +00:00
lperron@google.com
1a4efa2e54 add empty line after licence part, in glop, implement portable floating point exceptions 2014-07-09 15:18:27 +00:00
lperron@google.com
a2f8554a6d ported examples 2014-07-09 11:09:30 +00:00
lperron@google.com
6f25f38898 introduce glop, our own linear programming solver; improve sat 2014-07-08 09:27:02 +00:00
lperron@google.com
54b10f910a reformat code using clang-format 2014-01-08 12:01:58 +00:00
lperron@google.com
5aaea1d858 remove obsolete linear_solver.proto; speed up sat solver 2013-12-20 10:44:30 +00:00
lperron@google.com
72e547c935 huge sync with internal version 2013-06-11 14:51:23 +00:00
lperron@google.com
7f36ac6be5 sync with internal code, most notable change is the modification to the RoutingModel::AddDimension API that takes an additional boolean parameter 2013-01-10 17:01:34 +00:00
lperron@google.com
f974226518 experimental support for gurobi; only tested on mac os X so far 2012-10-28 09:07:15 +00:00
lperron@google.com
3f2f35195f working sulum example, win32 2012-06-13 07:41:44 +00:00
lperron@google.com
0b299bc3d2 one bug fix in the routing library, update copyright notice everywhere 2012-03-28 18:50:03 +00:00
lperron@google.com
64752231d6 reorganize all examples in the examples directory 2012-03-28 14:23:23 +00:00