简体   繁体   English

将 CPLEX 与 Java 应用程序集成

[英]Integrate CPLEX with a Java application

We are developing an application that will use CPLEX to solve an industrial problem.我们正在开发一个将使用 CPLEX 来解决工业问题的应用程序。 A mathematical model ( mod file) has been developed.已经开发了一个数学模型( mod文件)。 We would like to use this model directly instead of re-transcribing with CPLEX Java API.我们希望直接使用此模型,而不是使用 CPLEX Java API 重新转录。

In our architecture, we have an application dedicated to retrieving business data and creating suitable dat files.在我们的架构中,我们有一个专门用于检索业务数据和创建合适的dat文件的应用程序。 The original model and these data files should be sent to a CPLEX instance installed on a separate machine.原始模型和这些数据文件应发送到安装在单独机器上的 CPLEX 实例。

The problem is that OPL Java APIs which allow to load and run mod files do not provide any API to use a remote CPLEX instance.问题是允许加载和运行mod文件的 OPL Java API 不提供任何 API 来使用远程 CPLEX 实例。 On the other hand, the CPLEX Java APIs that allow using a remote instance cannot load mod files.另一方面,允许使用远程实例的 CPLEX Java API 无法加载mod文件。

Is there any direct way to use CPLEX/OPL Java APIs?有没有直接使用 CPLEX/OPL Java API 的方法? I have consulted the following resources to no avail:我查阅了以下资源无济于事:

You can have a look at github DOforWMLwithJava and then you call OPL CPLEX models in IBM cloud or in a CloudPak for Data instance.您可以查看 github DOforWMLwithJava ,然后在 IBM 云或 CloudPak for Data 实例中调用 OPL CPLEX 模型。

You can try oplrunwml through an external call from java您可以通过 java 的外部调用尝试oplrunwml

Or you can rely on Decision Optimization Centre Optimization Server或者您可以依赖决策优化中心优化服务器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM