GAMS Python API - Tutorial and Examples
This small example demonstrates how to run a GAMS model in a graphical user interface. More...
|interrupt_gui.app = wx.PySimpleApp()|
|interrupt_gui.frame = InterruptGui(None, -1, 'Interrupt Example', (600, 600))|
This small example demonstrates how to run a GAMS model in a graphical user interface.
This has all rudimentary features we know from the GAMS IDE: starting a job, capture the GAMS log in a window, and providing a button to interrupt. The underlying mechanism to interrupt the job is similar to the interrupt.py example (GamsJob.interrupt), but the trigger mechanism is very different.
Definition in file interrupt_gui.py.