Interrupt AIMMS Externally

Warning

This article references outdated technology and is provided for historical purposes only. It is not recommended to use this information as a primary source for current projects or documentation. Please refer to the latest documentation for up-to-date information.

Direct download AIMMS Project Interrupt AIMMS Externally.zip

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.

Note

The AIMMSCOM functionality has been deprecated in favor of the AIMMS API and AIMMS PRO API!

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 object 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