Ptrseq.gms : Test object oriented Python API running a sequence of examples based on a transport model

Description

Contributor: Clemens Westphal, October 2012


Small Model of Type : Python


Category : GAMS API library


Main file : Ptrseq.gms

$title 'Test object oriented Python API running a sequence of examples based on a transport model' (PTRSEQ,SEQ=24)

$onText
Contributor: Clemens Westphal, October 2012
$offText


$set srcRoot %gams.sysdir%api%system.dirsep%python%system.dirsep%examples%system.dirsep%control%system.dirsep%

$onEchoV > exTrans.gms
$ifThen setenv PYTHON38
$  call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%transport%1.py" "%gams.sysdir%."
$endIf
$ifThen setenv PYTHON39
$  call.checkErrorLevel cd . && "%sysenv.PYTHON39%" "%srcRoot%transport%1.py" "%gams.sysdir%."
$endIf
$ifThen setenv PYTHON310
$  call.checkErrorLevel cd . && "%sysenv.PYTHON310%" "%srcRoot%transport%1.py" "%gams.sysdir%."
$endIf
$ifThen setenv PYTHON311
$  call.checkErrorLevel cd . && "%sysenv.PYTHON311%" "%srcRoot%transport%1.py" "%gams.sysdir%."
$endIf
$ifThen setenv PYTHON312
$  call.checkErrorLevel cd . && "%sysenv.PYTHON312%" "%srcRoot%transport%1.py" "%gams.sysdir%."
$endIf

$ifThen dExist "%gams.sysdir%GMSPython"
$  call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%transport%1.py" "%gams.sysdir%."
$endIf
$offEcho

$batInclude exTrans _gdx
$batInclude exTrans 1
$batInclude exTrans 2
$batInclude exTrans 3
$batInclude exTrans 4
$batInclude exTrans 5
$batInclude exTrans 6
$batInclude exTrans 7
$batInclude exTrans 8
$batInclude exTrans 8a
* These two need more references, cannot assume that they are the same one all machines
*$batInclude exTrans 9
*$batInclude exTrans 10
$batInclude exTrans 11
$batInclude exTrans 12
$batInclude exTrans 13
$batInclude exTrans 14