I have a question concerning the communication of two Java programs, one embeds the other.
The embedded one is a CPLEX linear program (Java SE + CPLEX libs) which calculates resources and the other root application is a simulation software (AnyLogic). Now the idea is that the simulation should use the resources calculated by the linear program.
I now want the simulation to call the linear program, which then calculates the resources and hands them back as an array or object, then the simulation continues.
Simulation (AnyLogic) ----> Linear Program (CPLEX)
<--------(VALUES?)--------|
My problem is the "hand over", return values (args) seam not enough. How can I do this?
At the moment I use a text file which stores the values. I read about RMI and sockets but don't know if this is such a good idea.
Any help is appreciated! Thank you.