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%apifiles%system.dirsep%Python%system.dirsep%
$                             set C ;
$if %system.filesys% == UNIX $set C :

$ifthen setenv PYTHON36
$  setEnv PYTHONPATH "%srcRoot%api_36%C%%srcRoot%gams"
$  call.checkErrorLevel cd . && "%sysenv.PYTHON36%" "%srcRoot%transport_neos.py" "%gams.sysdir%."
$endif

$ifthen setenv PYTHON37
$  setEnv PYTHONPATH "%srcRoot%api_37%C%%srcRoot%gams"
*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
$  setEnv PYTHONPATH "%srcRoot%api_38%C%%srcRoot%gams"
*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 dExist "%gams.sysdir%GMSPython"
$  dropEnv PYTHONPATH
$  dropEnv PYTHONUSERBASE
$  call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%transport_neos.py" "%gams.sysdir%."
$endIf