File Reference

Go to the source code of this file.


def interrupt.interrupt_gams (job)


bool interrupt.non_interactive = False
 interrupt.system_directory = None = GamsWorkspace(system_directory = system_directory)
 interrupt.job = ws.add_job_from_file("circpack.gms")
 interrupt.opt = ws.add_options()

Detailed Description

Ctrl-C in a regular console application results in the interrupt of the entire job. GAMS users are used to the fact that Ctrl-C interrupts a solve but then continues with the execution of the remaining GAMS job. The example demonstrates how to alter some console properties to get this behavior of Ctrl-C.

Definition in file