anylogic - Hand response from one calling java program to another -


I have questions related to the communication of two Java programs, embeds each other.

Embedded is a CPLX Linear Program (Java SE + CPLEX Libs) which calculates resources and is the other basic application simulation software (AOLG). Now the idea is that Simulation should use the resources calculated in the linear program.

Now I want to call the simulation linear program, which then calculates the resources and brings them back as an array or object, the simulation continues.

  Simulation (AnyLogic) ----> Linear Program (CPLEX) & lt; -------- (VALUES?) -------- |  

My problem is "on the hand", return value (alg) is not enough, how can I do this?

At this time I use a text file that stores values. I've read about RMIs and chairs, but do not know that this is a good idea.

Any help is appreciated! Thank you.

One way to do this is to launch your CPLEX program using the Java process < / Code>. How to get feedback from the launched process and how to launch it? Specifically, it shows how to launch a process that prints its output which is read later by the launching program. I think your CPLX program can print any relevant results, which can take your algorithmic simulation through the mechanism described.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -