Pneos.gms : Test submitting GAMS models to NEOS server

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 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 setenv PYTHON312
*Make sure that the correct libssl and libcrypto Dlls are found
$  ifThen.WIN %system.buildcode% == WEI
$    prefixPath %sysenv.PYTHON312%\..\Library\bin
$  endIf.WIN
$  call.checkErrorLevel cd . && "%sysenv.PYTHON312%" "%srcRoot%transport_neos.py" "%gams.sysdir%."
$endIf

$ifThen setenv PYTHON313
*Make sure that the correct libssl and libcrypto Dlls are found
$  ifThen.WIN %system.buildcode% == WEI
$    prefixPath %sysenv.PYTHON313%\..\Library\bin
$  endIf.WIN
$  call.checkErrorLevel cd . && "%sysenv.PYTHON313%" "%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