PBenders.gms : Test object oriented Python API using a (multi-threaded) Benders Decomposition Algorithm

Description

Contributor: Clemens Westphal, October 2012


Small Model of Type : Python


Category : GAMS API library


Main file : PBenders.gms

$title 'Test object oriented Python API using a (multi-threaded) Benders Decomposition Algorithm' (PBENDERS,SEQ=28)

$onText
Contributor: Clemens Westphal, October 2012
$offText


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

$ifThen setenv PYTHON39
$  call.checkErrorLevel cd . && "%sysenv.PYTHON39%" "%srcRoot%benders_2stage.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%sysenv.PYTHON39%" "%srcRoot%benders_2stage_mt.py" "%gams.sysdir%."
$endIf
$ifThen setenv PYTHON310
$  call.checkErrorLevel cd . && "%sysenv.PYTHON310%" "%srcRoot%benders_2stage.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%sysenv.PYTHON310%" "%srcRoot%benders_2stage_mt.py" "%gams.sysdir%."
$endIf
$ifThen setenv PYTHON311
$  call.checkErrorLevel cd . && "%sysenv.PYTHON311%" "%srcRoot%benders_2stage.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%sysenv.PYTHON311%" "%srcRoot%benders_2stage_mt.py" "%gams.sysdir%."
$endIf
$ifThen setenv PYTHON312
$  call.checkErrorLevel cd . && "%sysenv.PYTHON312%" "%srcRoot%benders_2stage.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%sysenv.PYTHON312%" "%srcRoot%benders_2stage_mt.py" "%gams.sysdir%."
$endIf
$ifThen setenv PYTHON313
$  call.checkErrorLevel cd . && "%sysenv.PYTHON313%" "%srcRoot%benders_2stage.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%sysenv.PYTHON313%" "%srcRoot%benders_2stage_mt.py" "%gams.sysdir%."
$endIf

$ifThen dExist "%gams.sysdir%GMSPython"
$  call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%benders_2stage.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%benders_2stage_mt.py" "%gams.sysdir%."
$endIf