function [f_nlp,g_nlp] = nlp(x,y)

if size(x,2) > 1
  y = x(2:4);         % NLP com integralidade relaxada
end

% * * * exemplo 1 (MILP) solved as MINLP - Floudas (1995)  * * *
f_nlp = 2*x(1)-3*y(1)-2*y(2)-3*y(3);
g_nlp(1) = 2-x(1)-y(1)-y(2)-y(3);
g_nlp(2) = 10*x(1)+5*y(1)+3*y(2)+4*y(3)-10;

% [wo,St,x0,y0] = minlp('milp1','gmilp1',1,3,1,0,0,[0 0 0],0)
