![](https://csdnimg.cn/release/download_crawler_static/86761636/bg4.jpg)
资料内容仅供您学习参考,如有不当或者侵权,请联系改正或者删除。
% nonlcon is the function for the nonlinear constrains.
% [C(x);Ceq(x)]=feval(nonlcon,x). Both C(x) and Ceq(x) should be column
vectors.
%
% errmsg is a string containing an error message if BNB found an error in
the input.
% Z is the scalar result of the minimization, X the values of the accompanying
variables.
% t is the time elapsed while the algorithm BNB has run, c is the number of
BNB cycles and
% fail is the number of unsolved leaf sub-problems.
%
% settings is a row vector with settings for BNB:
% settings(1) (standard 0) if 1: use phase 1 by relaxation. This sometimes
makes the algorithm
% faster, because phase 1 means the algorithm first checks if there is a
feasible solution
% for a sub-problem before trying to find a best solution. If there is no
feasible solution BNB
% will not try to find a best solution.
% settings(2) (standard 0) if 1: if the sub-problem did not converge do not
branch. If a sub-
% problem did not converge this means BNB did not find a solution for it.
Normally BNB will
% branch the problem so it can try again to find a solution.