|
Creates an ISession object that represents the specified AIMMS model, using a user-specified configuration.
Parameters |
Description |
String aimmsLocation |
The location URI of where to start or connect to AIMMS. |
String projectLocation |
The AIMMS project file (.prj) to open. |
IConfig sessionConfig |
The IConfig to use. |
The created ISession object.
The specified AIMMS model runs in a separate process.
For the format of the location URI you can either specify the local folder name (see examples) where AIMMS is installed, or use a URI as discussed in Running a remote session to start a remote AIMMS session.
As second argument, you need an AIMMS project file (*.prj), if you have an AIMMS pack (*.aimmspack), unpack it first.
When the session cannot be created, an exception is thrown, describing what went wrong. Common causes are:
Open session may timeout for different reasons:
You can obtain an instance of the IConfig object by invoking createDefaultConfig, and modify it to your needs.