scensol8.gms : Check if solver with modify problem use hotstart in GUSS

Description

This test checks if a solver that provides the "modify problem" capability
uses hot starts in GUSS.

Contributor: Michael Bussieck, June 2021


Small Model of Type : GAMS


Category : GAMS Test library


Main file : scensol8.gms

$title 'Check if solver with modify problem use hotstart in GUSS' (SCENSOL8,SEQ=867)

$onText
This test checks if a solver that provides the "modify problem" capability
uses hot starts in GUSS.

Contributor: Michael Bussieck, June 2021
$offText
$call.checkErrorLevel gamslib -q gussex1

$call.checkErrorLevel gams gussex1 lp=cplex lo=2
$call grep "uses hotstarts" gussex1.log > %system.nullFile%
$if errorLevel 1 $abort Expect Cplex to use hotstarts

$call.checkErrorLevel gams gussex1 lp=gurobi lo=2
$call grep "uses hotstarts" gussex1.log > %system.nullFile%
$if errorLevel 1 $abort Expect Gurobi to use hotstarts

$call.checkErrorLevel gams gussex1 lp=soplex lo=2
$call grep "uses hotstarts" gussex1.log > %system.nullFile%
$if errorLevel 1 $abort Expect Soplex to use hotstarts

$call.checkErrorLevel gams gussex1 lp=copt lo=2
$call grep "uses hotstarts" gussex1.log > %system.nullFile%
$if errorLevel 1 $abort Expect COPT to use hotstarts

$call.checkErrorLevel gams gussex1 lp=cbc lo=2
$call grep "uses hotstarts" gussex1.log > %system.nullFile%
$if not errorLevel 1 $abort Expect Cbc not using hotstarts

* Explicitely prevent hotstarts
$call sed s/"SkipBaseCase 1"/"SkipBaseCase 1, NoHotStart 1"/ gussex1.gms > gussex1_nhs.gms

$call.checkErrorLevel gams gussex1_nhs lp=cplex lo=2
$call grep "uses hotstarts" gussex1_nhs.log > %system.nullFile%
$if not errorLevel 1 $abort Expect Cplex to not use hotstarts after disabling

$call.checkErrorLevel gams gussex1_nhs lp=gurobi lo=2
$call grep "uses hotstarts" gussex1_nhs.log > %system.nullFile%
$if not errorLevel 1 $abort Expect Gurobi to not use hotstarts after disabling

$call.checkErrorLevel gams gussex1_nhs lp=soplex lo=2
$call grep "uses hotstarts" gussex1_nhs.log > %system.nullFile%
$if not errorLevel 1 $abort Expect Soplex to not use hotstarts after disabling

$call.checkErrorLevel gams gussex1_nhs lp=copt lo=2
$call grep "uses hotstarts" gussex1_nhs.log > %system.nullFile%
$if not errorLevel 1 $abort Expect COPT to not use hotstarts after disabling

$call.checkErrorLevel gams gussex1_nhs lp=cbc lo=2
$call grep "uses hotstarts" gussex1_nhs.log > %system.nullFile%
$if not errorLevel 1 $abort Expect Cbc to not use hotstarts after disabling