Interrupt AIMMS Externally

Interrupt AIMMS Externally

In this example it is demonstrated how an AIMMS session can be interrupted from outside AIMMS. This is especially useful in situations where AIMMS (or AIMMSCOM) is controlled programmatically without any user interface, which means that the normal short cut for interruption (ctrl+shift+s) is not available.

The call to interrupt the execution can be given from any application on this machine, like a separate program or via a separate thread in the controlling application (in case AIMMS/AIMMSCOM is controlled externally). In this example, we have chosen to interrupt the AIMMS session via an external application.

Once you have clicked on the button "Start Execution", AIMMS will increase "Counter" until it becomes 30. This can be seen in the data on this page. The execution can be interrupted by executing the program "InterruptProgram.exe" that can be found in the "Interrupt AIMMS project" folder. This folder can be opened via the Open Explorer button on the left bar before you click on the "Start Execution" button.

Keywords

AIMMS Component, AIMMSCOM. 

Download

A zip file with this example can be downloaded here.