function [J]=Objective(x)

indmat_Yes_S1
% the disturbances are dT= [F zF Vmax RV ]
%The inputs are uT= [Rl L s]
%u'= [Rl L S F zF Vmax RV]
%Juu is 

 J=x(235)*x(148)+x(230)*(1-x(150))+x(236)*x(146);  % minimize the sum of impurities 
 
 %if nargout  > 1 % gradient required
 %g=[1-x(150);x(148);x(146);x(11);x(10);-x(5)];
 %if nargout  > 1 % hessian required
     %H= [0 0 0 0 0 -1;0 0 0 0 1 0;0 0 0 1 0 0;0 0 1 0 0 0;0 1 0 0 0 0;-1 0 0 0 0 0];
% end
 %end
 
 