ContentsIndexHome
PreviousUpNext
IAimmsMathProgramCallback::ProcessEvents Method

Call AIMMS to check for a user interrupt and to handle pending window related messages.

virtual _LONG_T ProcessEvents() = 0;

The ProcessEvents method returns a value from the InterruptReturnStatus list.

The ProcessEvents method should be called by the solver regularly in order to let AIMMS check for a user interrupt, and to handle any pending window related messages.

During the solution process, the execution of the AIMMS program itself is stopped (until the DoSolve, DoTuning or DoMpsSolve method has finished). This means also that AIMMS cannot check its message queue for any messages regarding screen updating, focus changes, etc. Because of this, AIMMS seems to be in a non-responding state. During any of the progress callback functions, AIMMS automatically takes some time to handle pending messages. In addition, to assure that AIMMS remains reasonable responsive, you can make regular calls to the ProcessEvents method. Of course, any of these callbacks will have a small negative effect on the solution time. Therefore you must try to find a good balance between speed and user-friendliness.

Copyright © 1993–2016 by AIMMS B.V. All rights reserved.