Java Solver is freely available under the terms of the Open Source GNU Lesser General Public License (LGPL).

You may download the latest Java Solver from this zip file:

javasolver.zip

After unzipping it, you will see the javasolver folder with three subfolders:

  1. com.javasolver with all JavaSolver sources and related JAR files
  2. com.javasolver.samples with various samples
  3. javasolver-all with a common POM file

To configure Java Solver on your machine, execute two batch files:

  • com.javasolver/install.bat
  • javasolver-all/install.bat

Then you will be ready to execute all provided samples or create your own projects in the com.javasolver.samples folder. You may run these samples by double-clicking run<Name>.bat files. For instance, to run the introductory example “ProblemZoo,” double-click runZoo.bat. In the batch file, you may choose the SOLVER to use for your optimization problem. You may similarly add your own optimization applications.

Install from Maven Repository. JavaSolver is also available from the Maven Repository. To include JavaSolver in your Maven-based Java application, add this dependency to your pom.xml file:

<dependency>
          <groupId>com.javasolver</groupId>
          <artifactId>javasolver-all</artifactId>
          <version>3.0.0</version>
        </dependency>

Please note that javasolver-all includes all JSR331 dependencies, including all underlying solvers. It allows you to choose which solver to run—see the example in runBlendingProblem.bat, where you can define the proper SOLVER variable.

Instead of javasolver-all, you may make your project depend directly on javasolver and include only the JSR331 dependencies for the solvers you actually want to use.

More details can be found in the Java Solver README.md file.

If you have questions or want to become a contributor, email jacobfeldman@openrules.com.