function ex14_1_5

yalmip('clear')
sdpvar x1 x2 x3 x4 x5 x6 objvar; 

F = set([]);
F = F + set( - x6 + objvar == 0);
F = F + set( 2*x1 + x2 + x3 + x4 + x5 == 6);
F = F + set( x1 + 2*x2 + x3 + x4 + x5 == 6);
F = F + set( x1 + x2 + 2*x3 + x4 + x5 == 6);
F = F + set( x1 + x2 + x3 + 2*x4 + x5 == 6); 
F = F + set( x1*x2*x3*x4*x5 - x6 <= 1);
F = F + set( - x1*x2*x3*x4*x5 - x6 <= -1);
F = F + set( -2 < [x1 x2 x3 x4 x5 ] < 2);

sol = solvesdp(F,objvar,sdpsettings('solver','bmibnb','bmibnb.upper','fmincon'));

mbg_asserttolequal(sol.problem,0);
mbg_asserttolequal(double([x1 x2 x3  x4 x5 ]), [1 1 1 1 1], 1e-5);