interrupt Namespace Reference

Functions

def interrupt_gams (job)
 

Variables

bool non_interactive = False
 
 system_directory = None
 
 ws = GamsWorkspace(system_directory = system_directory)
 
 job = ws.add_job_from_file("circpack.gms")
 
 opt = ws.add_options()
 
 all_model_types
 
 target
 
 interrupt_gams
 
 args
 
 output
 

Function Documentation

◆ interrupt_gams()

def interrupt.interrupt_gams (   job)

Definition at line 14 of file interrupt.py.

References interrupt_gams.

14def interrupt_gams(job):
15 import time
16 time.sleep(2)
17 job.interrupt()
18
def interrupt_gams(job)
Definition: interrupt.py:14

Variable Documentation

◆ all_model_types

interrupt.all_model_types

Definition at line 36 of file interrupt.py.

◆ args

interrupt.args

Definition at line 41 of file interrupt.py.

◆ interrupt_gams

interrupt.interrupt_gams

Definition at line 41 of file interrupt.py.

Referenced by interrupt_gams().

◆ job

interrupt.job = ws.add_job_from_file("circpack.gms")

Definition at line 34 of file interrupt.py.

◆ non_interactive

bool interrupt.non_interactive = False

Definition at line 20 of file interrupt.py.

◆ opt

interrupt.opt = ws.add_options()

Definition at line 35 of file interrupt.py.

◆ output

interrupt.output

Definition at line 48 of file interrupt.py.

◆ system_directory

interrupt.system_directory = None

Definition at line 21 of file interrupt.py.

◆ target

interrupt.target

Definition at line 41 of file interrupt.py.

◆ ws

interrupt.ws = GamsWorkspace(system_directory = system_directory)

Definition at line 30 of file interrupt.py.