qcp06.gms : Nonlinear model cannot be solved as QCP

Description

Contributor: Jan-H. Jagla, November 2010


Small Model of Type : QCP


Category : GAMS Test library


Main file : qcp06.gms

$title Nonlinear model cannot be solved as QCP (QCP06,SEQ=503)

$onText
Contributor: Jan-H. Jagla, November 2010
$offText

$call gamslib -q chenery
$include chenery.gms

Solve chenrad using qcp maximizing td ;

if (chenrad.modelstat = %modelStat.optimal% or
    chenrad.modelstat = %modelStat.locallyOptimal% or
    chenrad.modelstat = %modelStat.feasibleSolution% or
    chenrad.solvestat = %solveStat.normalCompletion%, abort "Why didn't it fail for sl=0?");

option solvelink=5;
Solve chenrad using qcp maximizing td ;

if (chenrad.modelstat = %modelStat.optimal% or
    chenrad.modelstat = %modelStat.locallyOptimal% or
    chenrad.modelstat = %modelStat.feasibleSolution% or
    chenrad.solvestat = %solveStat.normalCompletion%, abort "Why didn't it fail for sl=5?");