Commit Graph

47 Commits

Author SHA1 Message Date
Laurent Perron
1366efeadf fix examples/cpp cmake 2025-01-06 13:48:55 +01:00
Laurent Perron
1cafcbf3a8 more cleaning on graphs 2025-01-06 13:34:41 +01:00
Corentin Le Molgat
c76a9a424a backport example/ from main 2024-05-30 10:51:54 +02:00
Mizux Seiha
adf0e29582 cmake: rework add_cxx_example
* Add mandatory FILE_NAME option
* Add COMPONENT_NAME option
2024-01-17 12:03:09 +01:00
Mizux Seiha
a76bf1c5dd bump license boilerplate 2024-01-04 13:43:15 +01:00
Laurent Perron
341bbec963 add a few bazel tests to examples/cpp 2023-08-09 17:36:49 -07:00
Corentin Le Molgat
5ce691ed40 cmake: Add License header 2023-05-31 11:20:28 +02:00
Laurent Perron
064b3efd74 cleanup code; move solve.cc to ortools/linear_solver 2023-02-10 15:45:53 -08:00
Laurent Perron
fa478b8071 move sat_runner from examples/cpp to ortools/sat 2023-02-10 12:52:57 -08:00
Laurent Perron
fda295e6b3 Merge branch 'main' of github.com:google/or-tools 2022-08-29 16:00:40 +02:00
Laurent Perron
7072ae92ec do not call cxx_cpp_pdlp_solve #3429 2022-08-29 16:00:30 +02:00
Corentin Le Molgat
82019bf532 cmake: disable compile and run of pdlp_solve
todo(mizux): add option to only build but do not run examples needing input files
2022-08-29 11:35:27 +02:00
Mizux Seiha
b80888850e example: migrate sat_runner to CMake 2022-03-30 16:34:21 +02:00
Laurent Perron
b98b391102 fix cmake 2021-12-18 19:15:40 +01:00
Mizux Seiha
db24fb1ca4 cmake: Fix examples/cpp tests 2021-09-28 17:42:29 +02:00
Corentin Le Molgat
ccb4f15c81 cmake: Fix examples/cpp 2021-09-17 15:54:43 +02:00
Corentin Le Molgat
522474264e cmake: compile examples/cpp/*.cc 2021-09-17 15:13:49 +02:00
Corentin Le Molgat
7cf490ce7b cmake: fix configure 2021-08-09 11:25:29 +02:00
Laurent Perron
805b733f98 sync most c++ examples 2021-01-14 10:48:19 +01:00
Mizux Seiha
cbc3aaee80 Revert broken auto format 2020-10-21 09:03:08 +02:00
Laurent Perron
a4258f2bdf switch flags setters and getters to the absl format 2020-10-21 00:21:54 +02:00
Mizux Seiha
fff7b6ad8b cmake: update samples and examples management 2020-09-13 00:04:50 +02:00
Mizux Seiha
70326e59b1 remove duplicated examples/cpp/knapsack.cc 2020-08-25 01:51:19 +02:00
Mizux Seiha
f992206a9a Force use of C++17
Routing use c++17 features (e.g. structured binding)
ref: https://en.cppreference.com/w/cpp/language/structured_binding
2020-08-14 14:07:58 +02:00
Corentin Le Molgat
a7262b6ec7 cmake: Fix example cpp rpath 2020-07-31 14:18:15 +02:00
Mizux Seiha
a3f8f7f206 cmake: Add missing cpp examples 2020-07-15 15:52:29 +02:00
Mizux Seiha
85c05a555b cmake(cpp): Fix example RPATH 2020-05-25 11:27:08 +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
Corentin Le Molgat
affbc1e0c0 Fix CMake test list 2018-12-28 17:09:08 +01:00
Corentin Le Molgat
ea8d8195da Fix CMake compilation
- tsp.cc and vrp.cc have move to ortools/cp/samples
2018-12-28 16:00:40 +01:00
Laurent Perron
0b034b6e30 fix cmakefile 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
4afccdb52c network routing -> network_routing_sat 2018-11-25 11:10:12 +01:00
Laurent Perron
46a78c021d golomb -> golomb_sat 2018-11-24 23:06:05 +01:00
Laurent Perron
dbbcc15359 reimplement costas_array with the CP-SAT solver. 2018-11-24 19:34:08 +01:00
Corentin Le Molgat
4ae6e1fea1 Fix examples/cpp/CMakeLists.txt 2018-11-23 15:51:38 +01:00
Laurent Perron
4c661f07ae remove jobshop_earlytardy; add support for earliness in jobshop_sat; improve jobshop_scheduling_parser to support jet file (Jobshop Early Tardy) 2018-11-23 15:25:12 +01:00
Corentin Le Molgat
b6f0705a3d Fixup CMakeLists.txt 2018-11-23 11:10:54 +01:00
Corentin Le Molgat
5e78dc2a5e Fixup examples/cpp/CMakeLists.txt 2018-11-23 10:51:12 +01:00
Corentin Le Molgat
6cdc613a60 Cleanup examples/cpp/CMakeLists.txt 2018-11-23 10:29:34 +01:00
Corentin Le Molgat
47fefdc3bb Remove tab from CMakeLists.txt
- Mandatory to follow google internal convention
2018-11-13 10:12:02 +01:00
Laurent Perron
f99d71438d remove rcpsp_sat cpp example 2018-09-12 19:59:17 +02:00
Corentin Le Molgat
8bd5acee1a Add Test & Examples
Tests:
- Add cc test
- Add python test

Examples:
- Add examples/cpp
- Add examples/data
- Add examples/notebook
- Add examples/python

Signed-off-by: Corentin Le Molgat <corentinl@google.com>
2018-01-19 15:03:25 +01:00
Amit Prakash Ambasta
9d811b8ff7 Link examples shared libs against libortools for valid builds on OSx 2017-06-06 14:13:44 +05:30
Amit Prakash Ambasta
553772d03c Removed python build for cleaner patches 2017-05-31 12:00:50 +05:30
Amit Prakash Ambasta
72e3313784 Updated CMakeLists to retain hierarchy of proto generated files 2017-05-30 15:51:19 +05:30
Amit Prakash Ambasta
2a12468b93 Added cmake support for C++, initial python build support 2017-05-30 12:02:56 +05:30