I have a simulation in Java in which I need to call a MATLAB optimizer every 2 minutes (simulation time) and read the data back into the Java program.
I know there are answers for running MATLAB scripts, but is there any way to run a single MATLAB script from Java while keeping the connection between Java and MATLAB open for the entirety of the simulation?
In other words, I do not want to have the computer to have to start up MATLAB every time the optimizer is called.