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

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

% * * * exemplo 1 - Kocis e Grossmann(1987)  * * *
f_nlp = -2.9*x(3)-8.9*log(1+x(1))-10.44*log(1+x(2))+1.8*x(1)+1.8*x(2)+3.5*y(1)+y(2)+1.5*y(3);
g_nlp(1) = -y(1)+0.9*log(1+x(1))+1.08*log(1+x(2))+0.9*x(3);
g_nlp(2) = -10*y(2)+log(1+x(1));
g_nlp(3) = -10*y(3)+1.2*log(1+x(2));
g_nlp(4) = y(2) + y(3) -1;

