Creates a new AIMMS session object.
Creates an ISession object that represents the specified AIMMS model, using the default configuration.
inline ISession* openSession(const char* szAimmsLocation, const char* szProjectLocation);
Creates an ISession object that represents the specified AIMMS model, using a user-specified configuration.
AIMMSSDK_API extern ISession* openSession(const char* szAimmsLocation, const char* szProjectLocation, IConfig* sessionConfig);
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: