Java的QP求解器 [英] QP solver for Java
问题描述
我正在寻找一个易于使用的基于Java的二次规划(QP)求解器。
I'm looking for a good easy to use Java based Quadratic Programming (QP) solver.
谷歌搜索我遇到了ojAlgo( http://ojalgo.org )。
Googling around I came across ojAlgo (http://ojalgo.org).
然而,我想知道是否还有其他/更好的选择。
However, I was wondering if there are any other/better alternatives.
推荐答案
查看 Apache Commons Math 。我没有使用ojalgo,我真的不能说我已经使用了Commons Lang足以为你提供很多细节,但它确实做了我需要的。
Have a look at Apache Commons Math. I haven't used ojalgo, and I really can't say I've used Commons Lang enough to be able to provide you with a lot of details, but it did do what I needed.
来自他们网站的描述:
Commons Math是
轻量级,自包含$ b的库$ b数学和统计组件
解决最常见的问题
在Java编程中不可用
语言或Commons Lang。
Commons Math is a library of lightweight, self-contained mathematics and statistics components addressing the most common problems not available in the Java programming language or Commons Lang.
指导原则:
- 真实世界的应用程序用例决定了开发优先级。
- 这个包强调小,与具有复杂
依赖关系和配置的大型库相比,易于集成的组件相当于
。 - 所有算法都有完整的文档记录,并且通常遵循
接受的最佳实践。 - 在存在多个标准算法的情况下,策略
模式用于su pport多个
实现。 - 有限的依赖项。除了Commons
组件和核心Java平台之外没有外部依赖关系
(至少Java 1.3到版本1.2
的库,至少Java 5
从版本2.0开始
library)。
- Real-world application use cases determine development priority.
- This package emphasizes small, easily integrated components rather than large libraries with complex dependencies and configurations.
- All algorithms are fully documented and follow generally accepted best practices.
- In situations where multiple standard algorithms exist, a Strategy pattern is used to support multiple implementations.
- Limited dependencies. No external dependencies beyond Commons components and the core Java platform (at least Java 1.3 up to version 1.2 of the library, at least Java 5 starting with version 2.0 of the library).
这篇关于Java的QP求解器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!