-->

Java Library? - Simplex / Linear Programming / Opt

2020-06-06 04:22发布

问题:

I'm looking for an optimization library. My two requirements are that it does not use JNI and that it does not have license restrictions preventing it from being used on multiple computers commercially. The only one I've found that meets these requirements is Choco, but it is unusably buggy.

回答1:

Since I couldn't find any optimization software in Java I wrote my own implementation of the Simplex Method and submitted it to Apache Commons Math library: https://issues.apache.org/jira/browse/MATH-246



回答2:

http://ojalgo.org/generated/org/ojalgo/optimisation/linear/LinearSolver.html



回答3:

Recently JOptimizer, free and pure java, is available for linear programming and all other types of convex mathematical optimizations. It's simple to use and fully documented, the online site comes with a lot of examples.



回答4:

SuanShu has a suite of optimization algorithms, basic as well as advanced:

Java optimization

linear programming algorithm



回答5:

Is your requirement to have any good, stable optimization library, or does it specifically need to apply the Simplex algorithm?

Drools Planner is pure Java (no JNI) and Apache licensed (fits your commercial needs), but instead of using Simplex, it uses metaheuristics (which scale well and deliver great results).