Loading...
Searching...
No Matches
interrupt.py File Reference

Ctrl-C in a regular console application results in the interrupt of the entire job. More...

Go to the source code of this file.

Functions

def interrupt.interrupt_gams (job)
 

Variables

argparse interrupt.parser = argparse.ArgumentParser()
 
 interrupt.nargs
 
 interrupt.default
 
 interrupt.action
 
argparse interrupt.args = parser.parse_args()
 
GamsWorkspace interrupt.ws = GamsWorkspace(system_directory=args.sysDir)
 
GamsWorkspace interrupt.job = ws.add_job_from_file("dicex.gms")
 
GamsWorkspace interrupt.opt = ws.add_options()
 
 interrupt.all_model_types
 
 interrupt.target
 
 interrupt.interrupt_gams
 
 interrupt.else :
 
 interrupt.output
 

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 interrupt.py.