We are working hard to provide useful documentation. The documentation is distributed in several documents:
You can find more details about these documents in the foreword of the manual.
For suggestions, remarks, corrections about the documentation, please contact Thank you very much.
The or-tools documentation is covered by the Apache License 2.0.
Here is a little summary:
v.0.2.13: (2014-10-30 00:01:40) ------------------------------- * chapter 1: all pages are now accessible.
This is the list of changes.
This is work in progress. Pages will be modified, moved or even removed!
As of September 4, 2014, the manual is NOT up to date with the new API. The tutorial code however IS up to date!
The epub version is still experimental. We strongly recommend calibre (ebook-viewer) whenever possible to view the epub version. With this version, you should be able to convert the manual to the right format for your preferred hand-held device.For instance, to transform the epub version into a mobi version:
| Foreword |
100%
|
Part I: Basics |
|---|---|
| Chap1: Introduction |
98%
|
| Chap2: First steps with or-tools |
93%
|
| Chap3: Using objectives |
85%
|
| Chap4: Reification |
0%
|
Part II: Customization |
| Chap5: Search primitives |
79%
|
| Chap6: Local Search operators |
95%
|
| Chap7: Meta-heuristics |
5%
|
| Chap8: Custom constraints |
1%
|
Part III: Routing |
| Chap9: TSP with constraints |
85%
|
| Chap10: VRP with constraints |
90%
|
Part IV: Technicalities |
| Chap11: Utilities |
31%
|
| Chap12: Modeling tricks |
3%
|
| Chap13: Under the hood |
11%
|
Appendices |
| Bibliography |
17%
|
| Index |
5%
|
You can download all the code at once or pick the code corresonding to your favorite language. You'll find the code here. All files are encoded in UTF-8 and we use LF (Unix) newlines. The code is cross-platform though.
The code is not well documented inside the source files as we explain it in great details in the user's manual. Some files only exist in some languages since some features do not have equivalents in all languages (for instance, the Google gflags library is missing in Java and C#).
Don't be surprised if the code in the manual is slightly different from the code in the tutorials. In the manual, we focus on the essential while the tutorials might be more functional.
Content as of September 4, 2014:
We've filled the code with VLOG(x)s which allow to follow in real time what the programs do. x varies between 1
and 4. The higher the value of x, the more detailed informations on screen. You can trigger these logs with the log_level
gflag:
We'll find a similar mechanism for the other languages soon.
Makefiles are (finally) provided. We favor the use of dynamic libraries. See Compiling libraries and running the examples on how to use these makefiles.
OR_TOOLS_TOP variable with the root directory of the or-tools libary:
TUTORIAL variable must point to the C++ tutorial directory. By default, it is defined as:
Last but not least, you might wonder why we don't use (or rather minimize the use of) streams in our examples. This is an internal requirement.