Java 库?- 单纯形/线性规划/优化

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/531049/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 15:53:30  来源:igfitidea点击:

Java Library? - Simplex / Linear Programming / Optimization

javamathematical-optimizationlinear-programming

提问by Ben McCann

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.

我正在寻找一个优化库。我的两个要求是它不使用 JNI,并且它没有阻止它在商业上在多台计算机上使用的许可证限制。我发现唯一一个满足这些要求的是 Choco,但它有很多无法使用的问题。

采纳答案by Ben McCann

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

由于在 Java 中找不到任何优化软件,因此我编写了自己的 Simplex Method 实现并将其提交给 Apache Commons Math 库:https: //issues.apache.org/jira/browse/MATH-246

回答by Ryu

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

算术有一套优化算法,基本的和高级的:

Java optimization

Java优化

linear programming algorithm

线性规划算法

回答by atheste

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.

最近JOptimizer,免费和纯 Java,可用于线性规划和所有其他类型的凸数学优化。它使用简单且文档齐全,在线站点提供了大量示例。

回答by Geoffrey De Smet

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

您是否需要任何好的、稳定的优化库,或者是否特别需要应用 Simplex 算法?

Drools Planneris 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).

Drools Planner是纯 Java(无 JNI)和 Apache 许可(适合您的商业需求),但它不使用 Simplex,而是使用元启发式(可很好地扩展并提供出色的结果)。