Research Article

Minimum Porosity Formation in Pressure Die Casting by Taguchi Method

Algorithm 1

clc;
clear all;
close all;
f = @(x)3.054569-0.8844e-3*x( )-0.83e-3*x( )-...
       0.03059*x( )   +   0.01754*x( )-0.00201*x( );
options = optimset(GradObj',on');
[x,fval,exitflag,output] =
fmincon(f,[670;220;0.2;2.5;240],[],[],[],[],[600;180;0.05;1.5;
200],[700;260;0.35;3.5;280],[],optimset(Display',iter));
x
fval