Search code examples
javaoptimizationmathcad

How to solve java issue of Mathcad Integration Node in ModeFrontier?


I'm testing the modeFrontier with a simple multi-objective optimization problem from ESTECO A simple multi-objective optimization problem

The ModeFrontier gives random values to the input variables h and r but it can't get values for the output variables b, l and v

Designs Table

Then I test the mathcad configuration. This was the output message:

java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.RemoteException: Exception starting the process; nested exception is: 
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: 
    java.rmi.RemoteException: Initialization error; nested exception is: 
    com.jacob.com.ComFailException: Can't co-create object

Mathcad test

Preferences of Mathcad in ModeFrontier: Mathcad Preferences in modeFrontier

Mathcad Preferences Script Security: Mathcad Preferences Script Security

Below is the diagram of ModeFrontier:

ModeFrontier diagram

The mathcad worksheet:

Mathcad worksheet


Solution

  • I don't know the reason of this problem, but I could solve when I ran the ModeFrontier as Administrador.

    There is very problems if the ModeFrontier didn't run as administrator. Then I recommend run always as administrator.

    For run always as administrator, you can go to the ModeFrontier's icon. Right click on it and click on properties, finally click on check button "Run as administrator". enter image description here enter image description here