function z=beamVolume(x)

%cc=4400/1000^3;  %M20
cc=4550/1000^3;  %M25            
%cc=4750/1000^3; %M30
%cc=5000/1000^3; %M35
 
%cs=353250/1000^3; %fy415     (7850kg/m^3, 7850*45=353250)      %(steel density=78.50kN/m^3, 78.50*100kg/m^3, 7850kg/m^3)
%cs=392500/1000^3; %fy500     (7850*50=392500)                 
cs=431750/1000^3; %fy550     (7850*54=431750)
l=11000;


cf=100/1000^2;               %Cost of Formwork


z=cc*((x(1)*x(2)*l)-(((.7853*x(3)^2*x(4))*l)+((.7853*x(5)^2*x(6))*l)))...
+cs*(((.7853*x(3)^2*x(4))*l)+((.7853*x(5)^2*x(6))*l)+(.7853*x(7)^2*(((l/x(8))+1)*(x(1)+x(2))*2))) ...
+cf*((x(1)*l)+(x(1)*x(2)*2)+(x(2)*2*l));
