function G = Gain_G1scal_2est(Delta,x1,x2)
global Col nominal

xD = Col.ColumnFlowsheet.MaterialStreams.Item('D').componentMolarFractionValue;
xB = Col.ColumnFlowsheet.MaterialStreams.Item('B').componentMolarFractionValue;
xD_scal = -log(xD);
xB_scal = -log(xB);

m = xD_scal(x1);
n = xB_scal(x2);

xD_s = nominal(14:17);
xB_s = nominal(18:21);
xDs_scal = -log(xD_s);
xBs_scal = -log(xB_s);

%G = [abs(m - xD_s(x1))  abs(n - xB_s(x2))] / (Delta) ;
G = [m - xDs_scal(x1)  n - xBs_scal(x2)] ./ (Delta) ;
end