32 Commits

Author SHA1 Message Date
Corentin Le Molgat
a66a6daac7 Bump Copyright to 2025 2025-01-10 11:35:44 +01:00
Corentin Le Molgat
6de3f59af2 constraint_solver: Backport routing update from main 2024-11-18 17:01:27 +01:00
Corentin Le Molgat
bda5b4e632 constraint_solver: Export from google3
* Add an Iterated Local Search (ILS) approach.
* Replace some std::string by absl::string_view
* Add RoutingResourceClassIndex
2024-01-08 18:03:08 +01:00
Mizux Seiha
a76bf1c5dd bump license boilerplate 2024-01-04 13:43:15 +01:00
Mizux Seiha
36a29b2ddf routing(swig): Expose SimpleBoundCost related methods (Fix #1815)
* Extract BoundCost from SimpleBoundCost since SWIG do not support
nested class
* Wrap it in all languages
* Expose new API
  * SoftSpanUpperBoundForVehicle
  * QuadraticCostSoftSpanUpperBoundForVehicle
* Add tests
2022-10-24 08:58:10 +02:00
Corentin Le Molgat
c7120439d4 Bump license date 2022-06-17 14:23:23 +02:00
Laurent Perron
7d3120d644 Fix C# swig imports 2021-12-05 15:33:21 +01:00
Laurent Perron
529849e58a add missing swig deps 2021-12-05 12:55:50 +01:00
Mizux Seiha
8bb54b04ef Bump Copyright to 2021
FYI:
find ortools \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/\(Copyright 2010\)-2018/\1-2021/g'
2021-04-01 21:00:53 +02:00
Mizux Seiha
d874be2562 dotnet: Add support for vector<vector<CType>> 2021-02-19 16:02:51 +01:00
Mizux Seiha
2f88488cf6 dotnet: Fix RoutingModel::add[Matrix|Vector]Dimension() 2021-02-16 17:28:13 +01:00
Corentin Le Molgat
850968c9f1 routing: Rework Vector/Matrix transit management (#2315) 2021-02-16 13:43:52 +01:00
Mizux Seiha
930e7fb0d6 dotnet: Update routing wrapper
note: should be in sync with the Java exposed API
2020-12-03 18:07:06 +01:00
Corentin Le Molgat
061f5da1f2 .Net: Ignore broken methods (Fix #1276)
Usually no typemap available for return type or arguments
2020-01-17 11:22:29 +01:00
Corentin Le Molgat
6cc1df06d7 Sync g3->github 2019-05-13 16:51:33 +02: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
Corentin Le Molgat
afa5e15156 .Net: Rework routing.i
- Add missing DEFINE_INDEX_TYPE_TYPEDEF()
2019-03-07 17:44:09 +01:00
Corentin Le Molgat
fc1a12e85a Export g3 to github 2019-02-18 15:44:06 +01:00
Laurent Perron
9aed182dcf add comments, reindent 2019-02-11 13:12:04 +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
ec4a7d6e0d Rework C# Callback to use delegates 2019-01-30 14:29:50 +01:00
Corentin Le Molgat
f562e3a4ae Expose PickupAndDeliveryPolicy APIs (#961) 2019-01-17 14:56:50 +01:00
Corentin Le Molgat
263ab653b4 csharp: rename RoutingModel::status() to GetStatus().
- to avoid conflict with enum RoutingModel::Status since methods
need to be in UpperCamelCase in .Net
2019-01-17 13:13:32 +01:00
Corentin Le Molgat
54e38c692a .Net: Add support for delegate function as TransitCallback (Fix #997) 2018-12-28 16:42:54 +01:00
Laurent Perron
37776ddc6f cleanup routing API and examples on transits 2018-12-17 09:10:37 +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
ziad
4a8700edbd fix DisownAndGetPermanentCallback not getting called on NodeEvaluator2 when array is used. 2017-09-07 00:57:03 -07:00
ziad
552677354e fix RouteModel SetVehicleCost and methods that take NodeEvaluator2 array so they hold references so native code does not have a reference that can be gc'ed. Remove aux methods from RouteMethod. Add GC.SupressFinalize to DisownAndGetPermanentCallback as after DisownAndGetPermanentCallback gets called there is no work required by finalizer anymore. 2017-09-06 01:23:25 -07:00
ziad
a1c4cfca6b fix error in RoutingModel destructor when NodeEvaluator2 array is used from C#. 2017-09-05 03:49:52 -07:00
ziad
3d2343ba9f Fix swig C# marshaling for vector of NodeEvaluator2. Allow for AddDimensionWithVehicleTransits to be used. 2017-09-03 05:36:59 -07:00
Laurent Perron
c7d9318c75 more cleanup 2017-04-28 16:17:22 +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