sl4cns03.gms : Test holdfixed and singular models, with solvelink=4

Description

Run cns03 with solvelink=%SOLVELINK.CallScript%,%SOLVELINK.CallModule%,%SOLVELINK.AsyncSimulate%,%SOLVELINK.LoadLibrary%,%SOLVELINK.ThreadsSimulate%


Small Model of Type : CNS


Category : GAMS Test library


Main file : sl4cns03.gms

$title 'Test holdfixed and singular models, with solvelink=4' (SL4CNS03,SEQ=302)

$ontext
Run cns03 with solvelink=%SOLVELINK.CallScript%,%SOLVELINK.CallModule%,%SOLVELINK.AsyncSimulate%,%SOLVELINK.LoadLibrary%,%SOLVELINK.ThreadsSimulate%
$offtext

$set XX NT
$if %system.filesys% == UNIX $set XX un
$set q '"'
$if %system.filesys% == UNIX $set q "'"

$call grep -iv scrdir "%gams.scrdir%gmsprm%XX%.%gams.scrext%" | grep -iv scriptnext | grep -iv sysdir | grep -iv JobTrace > "%gams.scrdir%mypf.%gams.scrext%"

$call gams cns03.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=cns03.gms solvelink=%SOLVELINK.CallScript% reslim=10
$if errorlevel 1 $abort problems with sl=%SOLVELINK.CallScript%

$call gams cns03.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=cns03.gms solvelink=%SOLVELINK.CallModule% reslim=10
$if errorlevel 1 $abort problems with sl=%SOLVELINK.CallModule%

$call cat "%GAMS.sysdir%gmscmp%XX%.txt" | grep -v "^\*" | awk %q%NF>4 {if ($7>1) print $0 }%q% | grep -vi guss | cut -d" " -f1 | grep -iwq %system.LP%
$if errorlevel 1 $goto skipsl5

$call gams cns03.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=cns03.gms solvelink=%SOLVELINK.LoadLibrary% reslim=10
$if errorlevel 1 $abort problems with sl=%SOLVELINK.LoadLibrary%

$call gams cns03.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=cns03.gms solvelink=%SOLVELINK.ThreadsSimulate% reslim=10
$if errorlevel 1 $abort problems with sl=%SOLVELINK.ThreadsSimulate%

$label skipsl5
$call gams cns03.gms pf="%gams.scrdir%mypf.%gams.scrext%" i=cns03.gms solvelink=%SOLVELINK.AsyncSimulate% reslim=10
$if errorlevel 1 $abort problems with sl=%SOLVELINK.AsyncSimulate%