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.Normal Completion%) 'First solve with Conopt4 failed'
option nlp=conopt3; Solve m min v use nlp;
abort$(m.solveStat <> %solveStat.Normal Completion%) 'First solve with Conopt3 failed'
option nlp=lindo; Solve m min v use nlp;
abort$(m.solveStat <> %solveStat.Normal Completion%) 'First solve with Lind failed'
option nlp=conopt3; Solve m min v use nlp;
abort$(m.solveStat <> %solveStat.Normal Completion%) 'Second solve with Conopt3 failed'
option nlp=conopt4; Solve m min v use nlp;
abort$(m.solveStat <> %solveStat.Normal Completion%) 'Second solve with Conopt4 failed'