简体   繁体   English

用于功能优化的Java包

[英]Java package for function optimization

I am searching for a java library to perform some optimization algorithms (minimization) of a cost function. 我正在寻找一个Java库来执行成本函数的一些优化算法(最小化)。 I would like to implement a simple logistic regression program in java but I have worked only using octave and now I'm searching for a java version of fminunc (or something like that). 我想在Java中实现一个简单的逻辑回归程序,但是我只使用八度工作,现在我正在搜索fminunc的Java版本(或类似的东西)。 I have searched over the internet and I found this post but I haven't been able to run none of the libraries cited in the post. 我已经在互联网上进行搜索,但发现了该帖子,但无法运行该帖子中引用的所有库。 I found that Apache commons math package has some optimization algorithms but they are building the version 4.0 of the package and the documentation is almost absent. 我发现Apache Commons Math软件包具有一些优化算法,但是它们正在构建该软件包的版本4.0,并且几乎没有文档。 Has someone any ideas?? 有人有什么想法吗?

PS: If someone has developed some simple application using the commons math package feel free to post your code! PS:如果有人使用Commons Math软件包开发了一些简单的应用程序,请随时发布您的代码!

Thanks in advance 提前致谢

G. G。

If that cost function is NP-complete or NP-hard (due to additional constraints often), you might want to take a look at OptaPlanner (Java, open source). 如果该成本函数是NP完整的或NP困难的(通常由于附加的约束),则您可能需要查看OptaPlanner (Java,开源)。

There is quite some commons-math documentation though. 虽然有相当多的公共资料文档

Alternatively, there is also JavaOctave (but I doubt if that's 100% pure Java). 另外,还有JavaOctave (但我怀疑那是不是100%纯Java)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM