ContentsIndexHome
PreviousUpNext
Running a remote session

Adopting your AIMMS SDK project to let AIMMS run remotely, is quite straightforward. Just replace the AIMMS location argument in the openSession call with an appropriate remote URI.

Suppose you want to run the basic example on your machine while the AIMMS back-end executes on a different machine. This can be achieved by installing the AIMMS SDK Server on that machine and passing the appropriate URI as first argument of the openSession method. 

 

The URI is constructed as follows

<protocol> :// <hostname> : <port> / <path>

The only valid value for protocol is tcp (future versions might support different protocols); the default value for the AIMMS SDK server to listen is port 5621. The AIMMS SDK server comes with a predefined set of rules that define which AIMMS version to start. 

 

From AIMMS 4.3 onwards, the AIMMS SDK server has to be provided with the AIMMS version you wish to run, by extracting the AIMMS image into the appropriate data subfolder of the AIMMS SDK server. By default, this folder is located at the AIMMS SDK server host machine at:

C:\ProgramData\AIMMS\AIMMS SDK Server\Aimms

and depending on the architecture, it's in a subfolder called x86 or x64. 

 

For example, if you want to use AIMMS 4.3 x64, you need to extract the AIMMS image to the folder

C:\ProgramData\AIMMS\AIMMS SDK Server\Aimms\x64\MyAimms

at the AIMMS SDK server host. Next in your SDK application, you can use the following URI to open your SDK application session:

tcp://aimms-host1.example.com:5621/x64/MyAimms

where the hostname of the machine is 'aimms-host1.example.com'. The 'MyAimms' part is just any name matching the folder you extracted the AIMMS image to. 

 

Of course a valid AIMMS license is required.