Description
Contributor: Clemens Westphal, October 2020
Small Model of Type : Python
Category : GAMS API library
Main file : Pneos.gms
$TITLE 'Test submitting GAMS models to NEOS server' (Pneos,SEQ=61)
$ontext
Contributor: Clemens Westphal, October 2020
$offtext
$set srcRoot %gams.sysdir%api%system.dirsep%python%system.dirsep%examples%system.dirsep%control%system.dirsep%
$if not setEnv NEOS_EMAIL $setenv NEOS_EMAIL sbbneos@gams.com
$ifthen setenv PYTHON37
*Make sure that the correct libssl and libcrypto Dlls are found
$ ifthen.WIN %system.buildcode% == WEI
$ prefixPath %sysenv.PYTHON37%\..\Library\bin
$ endif.WIN
$ call.checkErrorLevel cd . && "%sysenv.PYTHON37%" "%srcRoot%transport_neos.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON38
*Make sure that the correct libssl and libcrypto Dlls are found
$ ifthen.WIN %system.buildcode% == WEI
$ prefixPath %sysenv.PYTHON38%\..\Library\bin
$ endif.WIN
$ call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%transport_neos.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON39
*Make sure that the correct libssl and libcrypto Dlls are found
$ ifthen.WIN %system.buildcode% == WEI
$ prefixPath %sysenv.PYTHON39%\..\Library\bin
$ endif.WIN
$ call.checkErrorLevel cd . && "%sysenv.PYTHON39%" "%srcRoot%transport_neos.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON310
*Make sure that the correct libssl and libcrypto Dlls are found
$ ifthen.WIN %system.buildcode% == WEI
$ prefixPath %sysenv.PYTHON310%\..\Library\bin
$ endif.WIN
$ call.checkErrorLevel cd . && "%sysenv.PYTHON310%" "%srcRoot%transport_neos.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON311
*Make sure that the correct libssl and libcrypto Dlls are found
$ ifthen.WIN %system.buildcode% == WEI
$ prefixPath %sysenv.PYTHON311%\..\Library\bin
$ endif.WIN
$ call.checkErrorLevel cd . && "%sysenv.PYTHON311%" "%srcRoot%transport_neos.py" "%gams.sysdir%."
$endif
$ifThen dExist "%gams.sysdir%GMSPython"
$ dropEnv PYTHONUSERBASE
$ call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%transport_neos.py" "%gams.sysdir%."
$endIf