Loading...
Searching...
No Matches
gt_example2 Namespace Reference

Variables

sys sys_dir = sys.argv[1] if len(sys.argv) > 1 else None
 
GamsWorkspace ws = GamsWorkspace(system_directory=sys_dir)
 
GamsWorkspace job = ws.add_job_from_file("trnsport.gms")
 
gt m
 
gt t
 

Variable Documentation

◆ job

GamsWorkspace gt_example2.job = ws.add_job_from_file("trnsport.gms")

Definition at line 18 of file gt_example2.py.

◆ m

gt gt_example2.m
Initial value:
1= gt.Container(
2 os.path.join(ws.working_directory, job.out_db.name + ".gdx"), sys_dir
3 )

Definition at line 21 of file gt_example2.py.

◆ sys_dir

sys gt_example2.sys_dir = sys.argv[1] if len(sys.argv) > 1 else None

Definition at line 14 of file gt_example2.py.

◆ t

gt gt_example2.t
Initial value:
1= gt.Parameter(
2 m,
3 "t",
4 ["*"],
5 records=[("t" + str(i), i) for i in range(10)],
6 description="new data",
7 )

Definition at line 37 of file gt_example2.py.

◆ ws

GamsWorkspace gt_example2.ws = GamsWorkspace(system_directory=sys_dir)

Definition at line 15 of file gt_example2.py.