tools/README.java.md
This file describes how to use OR-Tools in Java with the binary archives.
OR-Tools online documentation is located at https://developers.google.com/optimization
Full installation instructions are located at https://developers.google.com/optimization/install/java/
These modules have been tested under:
Upon decompressing the archive, you will get the following structure:
or-tools/
[LICENSE](LICENSE) <- Apache License.
[README.md](README.md) <- This file.
[examples](examples) <- Java examples.
[Makefile](Makefile) <- Main Makefile for Java.
Warning: While OR-Tools ships with SCIP, please consult the SCIP license to ensure that you are complying with it if you want to use this solver.
Running the examples will involve compiling them, then running them. We have provided a makefile target to help you.
Use Makefile:
make run SOURCE=examples/BasicExample/BasicExample.java
To build an example, open the folder in the command prompt and type the following commands:
OR this is equivalent to compiling and running
examples/BasicExample/BasicExample.java.
cd examples/BasicExample
mvn compile -B
mvn run