|
的确同名函数机率不大, 因为很少人会刚好自订fgoalattain这名称吧! 只不过个人以为检查which fgoalattain -all还是有其必要!
但与其他软件冲突的机会应该也不大吧! 瑞星/360是什么个人不清楚, 个人电脑白痴, 待高人路过确认吧!
个人版本刚好也是2009a, 所以下了LZ试了下, 讯息如下
>> main
Local minimum possible. Constraints satisfied.
fgoalattain stopped because the predicted change in the objective function
is less than the default value of the function tolerance and constraints
were satisfied to within the default value of the constraint tolerance.
<stopping criteria details>
Active inequalities (to within options.TolCon = 1e-006):
lower upper ineqlin ineqnonlin
2 8 8
5 12
6 13
7 14
故意输入增加, 讯息如下
??? Error using ==> myfun
Too many input arguments.
Error in ==> goalcon at 62
f = feval(funfcn{3},x,varargin{:});
Error in ==> fgoalattain at 402
[ctmp,ceqtmp] = feval(cfun{3},xnew,extravarargin{:});
Error in ==> main at 8
[x,fval]=fgoalattain(@myfun,x0,goal,weight,A,b,[],[],lb,ub,@mycon,A,b,A,b);
Caused by:
Failure in initial user-supplied objective function evaluation. Optimization cannot
continue. |
|