oj! Algorithms – ojAlgo – is Open Source Java code to do mathematics, linear algebra and optimisation. It’s what you need for data science, machine learning and scientific computing.
High Performance on a Rich Feature Set with Zero Dependencies
- ojAlgo is the fastest pure Java linear algebra library available. That statement is backed by the latest Java Matrix Benchmark results – that’s a third party independent benchmark (not written by anyone associated with ojAlgo).
- Optimisation (mathematical programming) tools including LP, QP and MIP solvers – again this is pure Java with zero dependencies.
- A collection of “array” classes that can be sparse or dense and arbitrarily large. They can be used as 1-, 2- or N/Any-dimensional arrays, and may contain/handle a multitude of different number types including complex numbers, rational numbers and quaternions. The memory for the arrays can alternatively be allocated off heap or in a file. The linear algebra part of ojAlgo builds on these arrays – they’re fast and efficient.
- A growing collection of utilities for data science, including Artificial Neural Networks and a collection of tools for reading/writing/processing data
- Various other things like time series, random numbers, stochastic processes, descriptive statistics…
- Code for the JVM: There are no calls to native (C or Fortran) libraries. ojAlgo is primarily a Java library, but Android, Kotlin, Scala, Groovy, Clojure and other programmers are successfully using ojAlgo.
- No dependencies: NOTHING besides a JDK is needed to compile or execute the code.
- Write code that scales: ojAlgo is fast because it is resource efficient (machine-aware) and that’s what enables scaling up.
- Anything and everything may change in the future (breaking API compatibility). ojAlgo is a mature code library, but constantly evolving. Improving ojAlgo often includes evolving the API.
<dependency> <groupId>org.ojalgo</groupId> <artifactId>ojalgo</artifactId> <version>X.Y.Z</version> </dependency>Watch Star Fork Issue
Documentation, Support & Services
User documentation, with code examples, can be found here (on this site) in the form of blog posts. The Code Examples page contains a complete list of example programs used in the blog post. All blog posts containing example code are categorised as Documentation.
Programming questions related to ojAlgo are best asked at stack overflow. Just remember there are rules and standards regarding what questions you can ask as well as how you should ask them and what you should do when you get a reply. Also, it’s a good idea to actually mention ojAlgo and tag the question using ‘ojalgo’ and whatever other tags you find suitable.
Bug reports, or any issue with existing code, should be posted at GitHub Issues. GitHub is all about collaboration. If you raise an issue there then participate in resolving it.
GitHub Discussions can be used to discuss anything related to ojAlgo.
ojAlgo is Open Source, and you are strongly encouraged to clone or fork the repository and work directly with the source code. The source code is (part of) the documentation, and you should read it.
Private Commercial Support
Optimatika is the primary sponsor of ojAlgo – it’s built by Optimatika – and we offer commercial support.
If you want private communications directly with the ojAlgo developer(s) regarding how to best solve your particular problem, then you should purchase support from Optimatika.
Use the Products & Services Inquiry form to get in contact with Optimatika. Tell us what you need and we’ll find a way to help you.
A lightweight alternative to purchasing services from Optimatika is to become a sponsor. This entitles you to direct private communications with the ojAlgo developers.