6

I'm working on a project to create a GUI for an algorithm in MATLAB using an ODE solver (ode45). So I have to translate the MATLAB code to Java. The problem is the ode45 solver. Java does not seem to have a solver ready to use, and ODE's are not really my speciality. Am I just not looking good, or are there really no ODE solvers for Java implemented?

thanks

Sander
  • 591
  • 6
  • 16

2 Answers2

5

If you need a mathematical library for Java, there are several available on the market, either open-source or commercial. These are few ones.

  • JMSL by Roguewave, entirely written in Java , which we use succesfully at work
  • NAG, written in C but widely documented so that can be used from Java
  • Apache commons math, which is open source and contains also a ODE http://commons.apache.org/math/userguide/ode.html
Edmondo
  • 19,559
  • 13
  • 62
  • 115
1

not exactly what you asked but did you consider creating the GUI from matlab instead? it's not that different from basic java swing/awt things unless you're looking for fancy GUI things.

http://www.mathworks.com/help/techdoc/creating_guis/bqz6qcd.html

oalah
  • 89
  • 1
  • 8
  • Well, actually I did consider that. But the GUI is for a larger project, and one requirement is that the user doesn't have to install external software to run it. So that leaves me with either Java (negating the JRE installation) or C/C++. – Sander Jul 17 '12 at 12:48
  • might want to consider matlab compiler, which allows you to package matlab application into components for use in c/c++, java, etc or distributables that can run without matlab installed. http://www.mathworks.com/products/compiler/description3.html – oalah Jul 17 '12 at 13:43
  • Matlab compiler is too expensive – Edmondo May 21 '14 at 06:58