2018-11-19 09:40:09 +01:00
|
|
|
# Introduction
|
2017-11-24 10:45:49 +01:00
|
|
|
This file describes how to use OR-Tools in python with the binary archives.
|
2014-01-04 09:38:46 +00:00
|
|
|
|
2018-11-19 09:40:09 +01:00
|
|
|
OR-Tools online documetation is
|
|
|
|
|
[here](https://developers.google.com/optimization)
|
2014-01-04 09:38:46 +00:00
|
|
|
|
2018-11-19 09:40:09 +01:00
|
|
|
Full installation instructions are located
|
|
|
|
|
[here](https://developers.google.com/optimization/install/python/)
|
2017-11-24 10:45:49 +01:00
|
|
|
|
2016-08-23 10:45:59 +02:00
|
|
|
These modules have been tested under:
|
2017-11-24 10:45:49 +01:00
|
|
|
- Ubuntu 14.04 and up, CentOS 7, Debian 9.
|
2016-09-21 11:15:36 +02:00
|
|
|
- Mac OS X El Capitan with Xcode 7.x (64 bit).
|
2017-10-31 10:06:53 +01:00
|
|
|
- Microsoft Windows with Visual Studio 2015 and 2017 (64-bit)
|
2014-01-04 09:38:46 +00:00
|
|
|
|
|
|
|
|
Upon decompressing the archive, you will get the following structure:
|
2018-11-19 09:40:09 +01:00
|
|
|
```
|
2014-01-04 09:38:46 +00:00
|
|
|
or-tools/
|
2018-11-19 09:40:09 +01:00
|
|
|
[LICENSE-2.0.txt](LICENSE-2.0.txt) <- Apache License
|
|
|
|
|
[README.md](README.md) <- This file
|
|
|
|
|
[examples/data/](examples/data) <- Data for the examples
|
|
|
|
|
[examples/python](examples/python) <- Python examples
|
|
|
|
|
[examples/notebook](examples/notebook) <- Jupyter/IPython notebooks
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
|
To install the package:
|
|
|
|
|
1. Make sure python and pip are installed
|
|
|
|
|
|
|
|
|
|
2. Make sure pip is up to date:
|
|
|
|
|
```shell
|
|
|
|
|
python -m pip -V
|
|
|
|
|
```
|
|
|
|
|
should return 9.0.1 otherwise, run: `python -m pip install --upgrade --user pip`
|
|
|
|
|
|
|
|
|
|
3. Fetch `ortools` from Pypi:
|
|
|
|
|
```shell
|
|
|
|
|
python -m pip install --upgrade --user ortools
|
|
|
|
|
```
|
|
|
|
|
It should pull the latest version of OR-Tools.
|
|
|
|
|
|
|
|
|
|
# Run Examples
|
|
|
|
|
To run a first example:
|
|
|
|
|
```shell
|
|
|
|
|
python examples/python/hidato_table.py
|
|
|
|
|
```
|