Commit Graph

1154 Commits

Author SHA1 Message Date
Laurent Perron
0ef6121de1 fix one more example 2019-04-18 19:24:37 +02:00
Laurent Perron
f7188c82b4 fix example 2019-04-18 19:20:39 +02:00
Corentin Le Molgat
a49b9143a4 Rework CMake dependencies management (Fix #1116)
- By default don't build dependencies simply call find_package()
- By default only build C++ library
- IF building Python, Java or .Net wrapper then force build dependencies
  - Build dependencies as STATIC
  - Build and Install (in CMAKE_BINARY_DIR) dependencies at configure time
2019-04-11 13:47:05 +02:00
Laurent Perron
0f24fe1e08 simple tsp_sat example 2019-04-10 10:50:49 -07:00
Laurent Perron
6dba5ea7f0 simple tsp_sat example 2019-04-10 10:46:10 -07:00
Laurent Perron
752bcbfb93 default parameters for multi_knapsack_sat 2019-04-05 17:01:00 +02:00
Laurent Perron
e685805fc8 improve multi_knapsack_sat.cc 2019-04-05 16:43:23 +02:00
Laurent Perron
17b9b597a1 change CP-SAT C++ Api to call Build() on the model before solving; use log_search_progress parameters to display all log; enable this parameter in non C++ language; call InitGoogleLogging() automatically in non C++ languages 2019-04-05 14:58:33 +02:00
Laurent Perron
d1d1c01df4 add multi bin knapsack sat example 2019-04-04 23:07:06 +02:00
Corentin Le Molgat
c75dd6a0d6 Update Test in java 2019-03-29 17:35:30 +01:00
Laurent Perron
88a1ac6562 fix example 2019-03-25 14:38:24 +01:00
Laurent Perron
868da26b49 fix python test 2019-03-25 14:21:12 +01:00
Laurent Perron
2d2b216269 add test from or-tools issue 2019-03-22 13:32:48 +01:00
Corentin Le Molgat
cd4a66c425 Fix python test unit. 2019-03-22 09:42:20 +01:00
Corentin Le Molgat
c4aaa4321d Fix cvrptw_plot.py 2019-03-15 18:24:15 +01:00
Laurent Perron
814935dab7 large routing update; rewrite PDP options; Fix examples of LS API after API change; minor sync on the rest of or-tools 2019-03-15 17:17:02 +01:00
stuarthillary
43a1eb5020 Fix check when computing all paths in https://github.com/google/or-tools/blob/master/examples/cpp/network_routing_sat.cc example 2019-03-12 15:20:49 +00:00
stuarthillary
180212154e Port the C++ example network_routing_sat to C# 2019-03-12 15:28:48 +01:00
Corentin Le Molgat
4376c8ca4c Backport roadef_challenge_2011 from g3 2019-03-12 14:51:30 +01:00
Laurent Perron
0c1d9a65e2 re-enable cp_model_test.py; throw an exception when using abs() on a linear expression; add test 2019-03-12 13:04:04 +01:00
stuarthillary
98680ba490 Remove references to tsp and vrp projects from examples solution file 2019-03-11 14:50:58 +01:00
Corentin Le Molgat
8e94ba5186 Update ConstraintSolverTest.cs 2019-03-07 17:44:09 +01:00
Corentin Le Molgat
76f902ecf8 Fix contrib/contiguity_transition.cs 2019-03-07 17:44:09 +01:00
Corentin Le Molgat
efa9e9bb7b Merge LsApi.java to TestConstraintSolver.java 2019-03-04 00:05:12 +01:00
Corentin Le Molgat
8fbf82332c Fix cscvrptw.cs 2019-02-21 08:37:37 +01:00
Corentin Le Molgat
1b76065bc4 Fix csls_api.cs 2019-02-21 08:37:24 +01:00
Corentin Le Molgat
781e3790f5 Fix cstsp.cs 2019-02-21 08:37:11 +01:00
Corentin Le Molgat
6696c3014a Fix dotnet examples/tests 2019-02-20 16:25:36 +01:00
Corentin Le Molgat
a1b9437714 dotnet: ugly fixup
TODO(mizux)
- Solver::MakeIntVar(), solver should keep IntVar alive !
- Solver::MakeMinimize(), solver should keep objective var alive !
- Solver::MakeSearchlog(), searchlog should keep solver alive !
2019-02-20 15:17:15 +01:00
Corentin Le Molgat
43fb0716fa Update .csproj 2019-02-19 11:56:59 +01:00
stuarthillary
9a35fa6e7a Ported the Python example balance_group_sat.py to C# 2019-02-14 23:13:16 +00:00
Corentin Le Molgat
6e41a22a9b Fix RandomTsp.java 2019-02-12 11:06:27 +01:00
Corentin Le Molgat
d054c53c74 Java: Use lambda in Constraint Solver 2019-02-12 11:06:27 +01:00
Laurent Perron
8257b081db examples compiles with bazel 2019-02-10 19:00:47 +01:00
Laurent Perron
43c3649bf3 add more data sets 2019-02-06 17:57:23 +01:00
Corentin Le Molgat
4fa74e5654 Fix RandomTsp.java 2019-02-06 09:37:26 +01:00
Corentin Le Molgat
f9c48ead3e Fix CapacitatedVehicleRoutingProblemWithTimeWindows 2019-02-06 09:05:00 +01:00
Corentin Le Molgat
4ffa33bf0c Fix TestRouting.java
- a lambda cannot specify its output type (contrary to C++)
2019-02-06 09:00:23 +01:00
Corentin Le Molgat
0f4c907108 Java: disable SearchLog with GC tests until code is fixed 2019-02-06 08:58:56 +01:00
Corentin Le Molgat
483dacbc28 Java: Routing [Unary]Transit callback use @FunctionalInterface
- fix the java WeakGlobalRef leak...
- Now samples use lambda when possible for transit callback
  - keep class in Tsp.java to see how it works
2019-02-05 12:05:57 +01:00
Corentin Le Molgat
3ad89c61d2 Add Java tests for Constraint Solver & Routing Solver 2019-02-05 12:05:57 +01:00
Laurent Perron
3494afff17 solver.infinity() -> java.lang.Double.POSITIVE_INFINITY 2019-02-02 17:40:11 +01:00
Laurent Perron
02283cffb2 fix #1037 2019-01-31 17:02:59 +01:00
Corentin Le Molgat
14875ce073 .Net: Rework SatSolverTest.cs 2019-01-31 09:10:48 +01:00
Corentin Le Molgat
fe29e18fdb .net: remove dead code testlp.cs* 2019-01-30 16:42:55 +01:00
Corentin Le Molgat
f9689d4132 .Net: fixup for ConstraintSolverTests 2019-01-30 16:08:36 +01:00
Corentin Le Molgat
dbef712477 .Net: Add LinearSolverTests.cs
- remove duplicate testlp.cs and Google.OrTools.Tests
2019-01-30 16:08:36 +01:00
Corentin Le Molgat
2a551945ae Update dotnet Xunit test 2019-01-30 14:29:50 +01:00
Corentin Le Molgat
1044ccbca4 dotnet: Add RoutingSolver test. 2019-01-30 14:29:50 +01:00
Corentin Le Molgat
fddd1b9a8d dotnet: Add delegate support for display_callback
- Add Xunit Tests to check DisplayCallback delegates are working.
2019-01-30 14:29:50 +01:00