Description
Test "echo off" to suppress echo of option file to log. Contributed by Michael Bussieck, July 2024
Small Model of Type : GAMS
Category : GAMS Test library
Main file : echoindic.gms
$title Test "echo off" in option file (ECHOINDIC,SEQ=961)
$onText
Test "echo off" to suppress echo of option file to log.
Contributed by Michael Bussieck, July 2024
$offText
$call.checkErrorLevel testlib -q indic01
$call.checkErrorLevel gams indic01 lo=2 a=c s=0
* Overwrite option file with "echo off"
$onEcho > copt.o99
echo off
indic eq3(dice,f,fp)$comp(dice,f,fp) 1
$offEcho
$onEcho > cplex.o99
echo off
indic eq3(dice,f,fp)$comp(dice,f,fp) 1
$offEcho
$onEcho > gurobi.o99
echo off
indic eq3(dice,f,fp)$comp(dice,f,fp) 1
$offEcho
$onEcho > xpress.o99
echo off
indic eq3(dice,f,fp)$comp(dice,f,fp) 1
$offEcho
$set mipsolver cplex
$if not "%gams.mip%" $set mipsolver %gams.mip%
$echo * > indic01cont.gms
$call.checkErrorLevel gams indic01cont lo=2 r=0 mip=%mipsolver%
$call grep "indic eq3" indic01cont.log > %system.nullFile%
$if not errorLevel 1 $abort "indic eq3" still found in indic01cont.log