
%Script for calculating cost after simulation
% It has been used to calculate Juu and Jud

indmat_Yes_S1
% J is the objective function "sum of impurities in products"
J = u_nom(10)* xf(im_xt(2))+ u_nom(5)*(1-xf(im_xS1(2)))+u_nom(11)*xf(im_xr(2))


