Java Library? - Simplex / Linear Programming / Optimization [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
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.

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

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

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.

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

SuanShu has a suite of optimization algorithms, basic as well as advanced:
Java optimization
linear programming algorithm

Related

Java Linear Algebra / Convex Optimization Libraries [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I don't know what is proper etiquette -- if I should split this into two questions (one about Linear Algebra, one about Convex Optimization), please let me know.
I'm interested in:
(1) what library should I use for Linear Algebra in Java?
(2) what library should I use for convex optimization in Java?
(3) what benchmarks do we have for java libraries vs C libraries
Please note, although Java specifies platform independent floating point representation (which I believe makes things much slower) -- I'm willing to sacrifice that. It's okay for me if, on different platforms, my Java floating point ends up getting different values.
Thanks!
For convex Optimization , there is already one link here:
mathematical optimization library for Java --- free or open source recommendations?
For Liner ALgebra, you can use Colt
http://acs.lbl.gov/software/colt/
Hope this will help you
You can take a look at JOptimizer , open source java convex optimization project

Any Java math library allowing vectorization and broadcasting the way numpy does? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
One thing I find very confortable with Numpy is the vectorization of operations with arrays (ie. the absence of any explicit looping), and the implicit element-by-element behavior of operations.
Since I have to move from Python to Java for a project, I was looking for any equivalent in well known math libraries (Colt, JScience, Apache Commons Math). But as far as I see it, none of them have equivalent capabilities.
Could anyone advise me?
I had the same problem as you but did not find a java solution. Java misses operator overloading for [] and has no slices. So you will not find a Java solution with the same, easy to read notation as numpy provides.
The nd4j library is essentially "NumPy for Java". It supports broadcasting and vector operations.

How to generate a Program Dependence Graph (PDG) from Bytecode in Java [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I want to generate a program dependence graph (PDG) from Java Bytecode for further programmatic analysis. Since this is old (the paper is from '87) and presumably well-known technology, I thought that appropriate tools would be readily available---however I wasn't able to find them.
In fact an extensive search turned up only a few results:
The Bandera project which was abandoned in 2006.
The Indus project which seems not to have received any effort since 2007, except for it being made Open Source in 2009.
The Moose JEE Project which seems to be pretty new as there is basically no documentation whatsoever.
And the Soot framework, which provides some classes (see JavaDoc) but seems to lack an implementation for the generation. In fact, Soot is the basis for Bandera and Indus.
So my question is the following: Is there any alive and maintained implementation out there? Does anybody have experience in either one of the aforementioned projects? What would you recommend?
Thank you already for your input, it is highly appreciated!
I suggest you check out WALA, a system that extracts SSA representations from java byte code files.
I have no experience with this, but have reviewed a number of software engineering technical papers that seemed well-thought out, and apparantly used WALA as a foundation for their research.

Pie, Bar, Line charts in java? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I want to use Pie, Bar, Line charts in java. What is the best API to use them? Is there any API by Sun to create these types of charts?
take a look at JFreeChart.. it's not by SUN but it's quite notorious (and by the way I don't think JDK ships with any kind of graph API)
Use JFreeChart like everyone who responded suggested or if that doesn't work for you check this SO question:
what-is-the-best-open-source-java-charting-library-other-than-jfreechart
Use jFreeChart
"JFreeChart is "open source" or, more specifically, free software. It is distributed under the terms of the GNU Lesser General Public Licence (LGPL), which permits use in proprietary applications."
JFreeChart is free to use, and there are numerous "simple" examples on their website, as well as API documentation.
If it's useful to you, and if you start using anything more than really basic graphs, you might consider purchasing the full documentation with more detailed examples and guides on how to use it to the max of its power. It will certainly boost your productivity and also help to support the project.
I couldn't find any documentation about JFreeChart, so I forked jcckit to https://bitbucket.org/hughperkins/easyjcckit , and added a simple 'plot(double[] xvalues, double[] yvalues )' method for line graphs.

Where can I get started learning about Rule Engines? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm currently designing a Java application where a Rule engine could be useful. Where is a good place I can learn about how to use them, how they work, how to implement them, see samples, etc.?
The Drools documentation includes a lot of useful, general purpose information. Especially chapter 2, which covers rule engine basics, knowledge representation, etc. It also includes a nice recommended reading list for coming up to speed on rule engines and expert systems.
For most rule engines, a basic understanding of the rete algorithm usually comes in handy for writing efficient rules. I have personally found the Doorenbos paper referenced in the Wikipedia article to be the clearest technical explanation.
Also, here is a list of open source rule engines in Java.
You might want to read "Should I use a Rules Engine?" from Martin Fowler's blog.
I have worked on a project where we built our own (very simple) rules engine, with the intention to move to a general rule engine when things got too complicated. Never reached that point though, the system has been running happily with the simple homegrown engine for several years now.
I found this site pretty helpful. Are you looking at building your own, or using a 3rd party library?

Categories

Resources