conopt03.gms : CONOPT test suite - different libraries in one process

Description

This tests checks for problems using the Conopt3, Conopt4 and Lindo library
in one process (using SolveLink=5).

Contributor: Lutz Westermann, March 2023


Small Model of Type : GAMS


Category : GAMS Test library


Main file : conopt03.gms

$title 'CONOPT test suite - different libraries in one process' (CONOPT03,SEQ=936)

$onText
This tests checks for problems using the Conopt3, Conopt4 and Lindo library
in one process (using SolveLink=5).

Contributor: Lutz Westermann, March 2023
$offText


Variable v,x;
Equation e;
e.. v =g= x**4;
Model m /e/;

option SolveLink=5;

option nlp=conopt4; Solve m min v use nlp;
abort$(m.solveStat <> %solveStat.normalCompletion%) 'First solve with Conopt4 failed'
option nlp=conopt3; Solve m min v use nlp;
abort$(m.solveStat <> %solveStat.normalCompletion%) 'First solve with Conopt3 failed'
option nlp=lindo; Solve m min v use nlp;
abort$(m.solveStat <> %solveStat.normalCompletion%) 'First solve with Lind failed'
option nlp=conopt3; Solve m min v use nlp;
abort$(m.solveStat <> %solveStat.normalCompletion%) 'Second solve with Conopt3 failed'
option nlp=conopt4; Solve m min v use nlp;
abort$(m.solveStat <> %solveStat.normalCompletion%) 'Second solve with Conopt4 failed'