查看单个帖子
旧 2008-08-23, 06:46   #1
mwlot
初级会员
 
注册日期: 2008-08-23
年龄: 49
帖子: 1
声望力: 0
mwlot 正向着好的方向发展
问题 多目标达到fgoalattain的问题

用fgoalattain函数实现多目标优化,

[x,fval,attainfactor,exitflag]=fgoalattain(@myfun,x0,goal,weight,[],[],[],[],lb,ub)

发现循环迭代过程中,待优化变量X 的值一直保持不变!

程序运行完毕提示:

Optimization terminated: magnitude of search direction less than 2*options.TolX
and maximum constraint violation is less than options.TolCon.
Active inequalities (to within options.TolCon = 1e-006):
lower upper ineqlin ineqnonlin
6 3
7
8

temp =

1


f =

1.0e+004 *

0.0017 0.2294 1.7479 0.0643


x =

50.0000 50.0000 50.0000 50.0000 50.0000 0 -0.0000 0.0000 0.7935 0.4149


fval =

1.0e+004 *

0.0017 0.2294 1.7479 0.0643


attainfactor =

1.7477e+004


exitflag =

4

请大虾指点啊!
mwlot 当前离线   回复时引用此帖