Thursday, 15 July 2010

matlab - fgoalattain, weight goal multiobjective -



matlab - fgoalattain, weight goal multiobjective -

i have multi objective problem in have minimize vector function f=[f1 f2 f3]. code:

tau=4628; b=1.76*10^-4; b0=0; b1=1/tau+b/3; b2=1/tau+b*2/3; b3=1/tau+b; kk=0; x=726.2083 % tried first objective simplicty goal = [2.5]% 0 0] %weight=[ 1 1 1] weight=abs(goal); k0=1; lb=0.0; ub=b3; options=optimset('display','iter'); %vector fun objective vec_fun=@(k1) [k1*x];% abs(k1-kk) abs(k1)]; [x1,fval]=fgoalattain(vec_fun,k0,goal,weight,[],[],[],[],[],[],[],options) k1=x1 if k1==0 k1=b0; elseif k1 >b0 && k1 <= b1 k1=b1; elseif k1 >b1 && k1 <= b2 k1=b2; elseif k1 > b2 && k1 <= b3 k1=b3; else k1=0; end k=k1;

code don't work. homecoming me

x1 =-6.8245e+23 fval = -4.9560e+26 k1 = -6.8245e+23

why fval != goal?

thank you, sorry bad english.

matlab

No comments:

Post a Comment