MINLPLib

A Library of Mixed-Integer and Continuous Nonlinear Programming Instances

Home // Instances // Documentation // Download // Statistics


Instance trig

Formats ams gms mod nl osil py
Primal Bounds (infeas ≤ 1e-08)
0.22977967 p1 ( gdx sol )
(infeas: 0)
-0.00000000 p2 ( gdx sol )
(infeas: 9e-11)
-3.76250036 p3 ( gdx sol )
(infeas: 0)
Other points (infeas > 1e-08)  
Dual Bounds
-3.76250149 (COUENNE)
-3.76250149 (LINDO)
-3.76250179 (SCIP)
References Pinter, J D, LGO - A Model Development System for Continuous Global Optimization, User's Guide, Pinter Consulting Services, Halifax, NS, Canada, Revised edition, 2003.
Source GAMS Model Library model trig
Application Test Problem
Added to library 31 Jul 2001
Problem type NLP
#Variables 1
#Binary Variables 0
#Integer Variables 0
#Nonlinear Variables 1
#Nonlinear Binary Variables 0
#Nonlinear Integer Variables 0
Objective Sense min
Objective type nonlinear
Objective curvature nonconcave
#Nonzeros in Objective 1
#Nonlinear Nonzeros in Objective 1
#Constraints 1
#Linear Constraints 0
#Quadratic Constraints 0
#Polynomial Constraints 0
#Signomial Constraints 0
#General Nonlinear Constraints 1
Operands in Gen. Nonlin. Functions cos sin
Constraints curvature nonconcave
#Nonzeros in Jacobian 1
#Nonlinear Nonzeros in Jacobian 1
#Nonzeros in (Upper-Left) Hessian of Lagrangian 1
#Nonzeros in Diagonal of Hessian of Lagrangian 1
#Blocks in Hessian of Lagrangian 1
Minimal blocksize in Hessian of Lagrangian 1
Maximal blocksize in Hessian of Lagrangian 1
Average blocksize in Hessian of Lagrangian 1.0
#Semicontinuities 0
#Nonlinear Semicontinuities 0
#SOS type 1 0
#SOS type 2 0
Minimal coefficient 5.0000e+00
Maximal coefficient 1.9000e+01
Infeasibility of initial point 3.207
Sparsity Jacobian Sparsity of Objective Gradient and Jacobian
Sparsity Hessian of Lagrangian Sparsity of Hessian of Lagrangian

$offlisting
*  
*  Equation counts
*      Total        E        G        L        N        X        C        B
*          2        1        0        1        0        0        0        0
*  
*  Variable counts
*                   x        b        i      s1s      s2s       sc       si
*      Total     cont   binary  integer     sos1     sos2    scont     sint
*          2        2        0        0        0        0        0        0
*  FX      0
*  
*  Nonzero counts
*      Total    const       NL      DLL
*          3        1        2        0
*
*  Solve m using NLP minimizing objvar;


Variables  x1,objvar;

Equations  e1,e2;


e1.. -(sin(11*x1) + cos(13*x1) - sin(17*x1) - cos(19*x1)) + objvar =E= 0;

e2.. 5*sin(x1) - x1 =L= 0;

* set non-default bounds
x1.lo = -2; x1.up = 5;

* set non-default levels
x1.l = 1;

Model m / all /;

m.limrow=0; m.limcol=0;
m.tolproj=0.0;

$if NOT '%gams.u1%' == '' $include '%gams.u1%'

$if not set NLP $set NLP NLP
Solve m using %NLP% minimizing objvar;


Last updated: 2024-03-25 Git hash: 1dae024f
Imprint / Privacy Policy / License: CC-BY 4.0