function [gf_nlp,gg_nlp,C,B] = grad (x,y)
// n = 1 e m = 6 nh = 2

//f_nlp =  x(1)*(242* y(1) + 239* y(2) + 233* y(3)) + 5000 * y(4) + 5250 * y(5) + 5500 * y(6);
gf_nlp(1) =  242* y(1) + 239* y(2) + 233* y(3);
gf_nlp(2) =  x(1)*242;
gf_nlp(3) =  x(1)*239;
gf_nlp(4) =  x(1)*233;
gf_nlp(5) =  5000;
gf_nlp(6) =  5250;
gf_nlp(7) =  5500;


//Subject To

//igualdade
//g_nlp(1) = y(1) + y(2) + y(3) - 1;
gg_nlp(1,2:4) = 1;

//g_nlp(2) = y(4) + y(5) + y(6) - 1;
gg_nlp(2,5:7) = 1;

//g_nlp(3) = x(1) - 232;
gg_nlp(3,1) = 1;


//g_nlp(4) = -(x(1) * (y(4) * 0.2516 * y(1) + y(4) * 0.2507 * y(2) + y(4) * 0.2488 * y(3) +
//y(5) * 0.2599 * y(1) + y(5) * 0.2576 * y(2) + y(5) * 0.2496 * y(3) +
//y(6) * 0.2639 * y(1) + y(6) * 0.2612 * y(2) + y(6) * 0.2605 * y(3))) + 85; // >=85
gg_nlp(4,1) = -(y(4) * 0.2516 * y(1) + y(4) * 0.2507 * y(2) + y(4) * 0.2488 * y(3) +
y(5) * 0.2599 * y(1) + y(5) * 0.2576 * y(2) + y(5) * 0.2496 * y(3) +
y(6) * 0.2639 * y(1) + y(6) * 0.2612 * y(2) + y(6) * 0.2605 * y(3));
gg_nlp(4,2) = -(x(1) * (y(4) * 0.2516 + y(4) * 0.2507 * y(2) + y(4) * 0.2488 * y(3) +
y(5) * 0.2599 + y(5) * 0.2576 * y(2) + y(5) * 0.2496 * y(3) +
y(6) * 0.2639));
gg_nlp(4,3) = -(x(1) * (y(4) * 0.2516 * y(1) + y(4) * 0.2507 +
y(5) * 0.2576 + y(6) * 0.2612));


g_nlp(5) = -(x(1)(y(4) * 0.1568 * y(1) + y(4) * 0.1562 * y(2) + y(4) * 0.1557 * y(3) +
y(5) * 0.1577 * y(1) + y(5) * 0.1567 * y(2) + y(5) * 0.1522 * y(3) +
y(6) * 0.1592 * y(1) + y(6) * 0.1578 * y(2) + y(6) * 0.155 * y(3))) +35;// >= 35


g_nlp(6) = x(1)(y(4) * 0.2516 * y(1) + y(4) * 0.2507 * y(2) + y(4) * 0.2488 * y(3) +
y(5) * 0.2599 * y(1) + y(5) * 0.2576 * y(2) + y(5) * 0.2496 * y(3) +
y(6) * 0.2639 * y(1) + y(6) * 0.2612 * y(2) + y(6) * 0.2605 * y(3)) -90;// <= 90

//nt x(1)

//integer n284 y(1)
//integer n282 y(2)
//integer n272 y(3)
//integer t790 y(4)
//integer t810 y(5)
//integer t835 y(6)
endfunction
