lomcp.gms : MCP Test for logoption

Description

Make sure lo=0 is quiet and lo=2 and lo=3 run without a problem

Contributor: Jan-H. Jagla, September 2009


Small Model of Type : MCP


Category : GAMS Test library


Main file : lomcp.gms

$title MCP Test for logoption (LOMCP,SEQ=461)

$onText
Make sure lo=0 is quiet and lo=2 and lo=3 run without a problem

Contributor: Jan-H. Jagla, September 2009
$offText

$set solver %gams.mcp%
$if %solver% == '' $set solver %system.mcp%
$log Solver is %solver%

$set model two3mcp
$call gamslib -q %model%
$echo "abort$(jel.solvestat <> %solveStat.normalCompletion%) 'Normal Completion expected';" >> %model%.gms

$call rm -f %model%.log
$call gams %model% mcp=%solver% lo=0
$if     errorlevel 1 $abort 'problems with lo=0'
$call test -s %model%.log
$if not errorlevel 1 $abort '%model%.log exists'

$call gams %model% mcp=%solver% lo=2
$if     errorlevel 1 $abort 'problems with lo=2'
$call test -s %model%.log
$if     errorlevel 1 $abort '%model%.log does not exist'

$call gams %model% mcp=%solver% lo=3 > %model%lo3.log
$if     errorlevel 1 $abort 'problems with lo=3'
$call test -s %model%lo3.log
$if     errorlevel 1 $abort '%model%lo3.log does not exist'