README FOR THE BNBGUI
INSTALLATION
To function BNB needs:
Matlab 5.3 or newer
Optimization Toolbox 2.0
the Courier-LD font (8 points, regular)
Unzip BNB.zip to an empty directory that's in the MATLAB path. Make
sure you unzip using folder names. This because some files must be
placed in a subdirectory called private.
USAGE
BNB has a graphical user interface (GUI). To run it type BNBGUI at the
Matlab prompt. The program has been used (and tested) with Matlab
5.3.1.29215a (R11.1).
A short explanation of how branch and bound works: A problem with an
integer variable is first being solved with the integer variable
considered continuous (the first sub-problem). After this the program
generated sub problems where the domain of the variable (still
continuous) is being restricted. This is called branching. Then it
solves these sub-problems. This process continues until the variable is
fixed to a (integer) value.
The advantage of this approach (when compared with explicit
enumeration) lies in the fact that not all the sub-problems have to be
solved (fathoming, i will not explain how this works here). Important
for the user is that branch-and-bound only works when the problem is
formulated continuous.
BNB20 is useful for making choices. Say you want the algorithm to make
an optimal choice between 3 materials. Define 3 0-1-variables (integer
variables with domain 0-1). Somewhere in your formulas you use the
hardness of the material. Because the problem has to be formulated
continuous you should formulate the hardness like this:
hardness=x(1:3).*[hardness1 hardness2 hardness3];
And somewhere else in your formulas you use the weight:
weight=x(1:3).*[weight1 weight2 weight3]; etc.
Of course you want to end with one of the materials being picked, so
you add to your linear constrains x(1)+x(2)+x(3)=1.
ALGORITHM
The algorithm is BNB20.m. It is a simple branch-and-bound type
algorithm. Its specifications are:
* Depth-first traversal with backtracing.
* Both the variable to branch on and the branch to traverse are chosen
by simple
heuristics.
* The algorithm detects 0-1 variables with constrains like
x(a)+x(b)+x(c)+..=1
and adapts the branching to it.
* To solve the nonlinear sub-problems BNB20 uses fmincon from the
optimization
toolbox 2.0.
For more info at the Matlab prompt type help BNB20.
OPTIMIZATION TOOLBOX VERSION 2.0 (R11)
To get rid of bugs and to stop fmincon from hanging make the following
chances:
In optim/private/nlconst.m ($Revision: 1.20 $ $Date: 1998/08/24
13:46:15 $):
Get EXITFLAG independent of verbosity.
After the lines: disp(' less than 2*options.TolFun but
constraints are not satisfied.')
end
EXITFLAG = -1;
end
end
status=1;
add the line: if (strncmp(howqp, 'i',1) & mg > 0), EXITFLAG = -1; end;
(This bug was found by Ingar Solberg)
In optim/private/qpsub.m ($Revision: 1.21 $ $Date: 1998/09/01 21:37:56
$):
Stop qpsub from hanging.
After the line: % Andy Grace 7-9-90. Mary Ann Branch 9-30-96.
add the line: global maxSQPiter;
and changed the line: maxSQPiters = Inf;
to the line: if exist('maxSQPiter','var'), maxSQPiters = maxSQPiter;
else
maxSQPiters=inf; end;
I guess there was a reason to put maxSQPiters at infinity, but this
works fine for me.
Koert Kuipers
e-mail koertkuipers@yahoo.com
Fysische Informatica
Applied Physics
University of Groningen
The Netherlands
没有合适的资源?快使用搜索试试~ 我知道了~
薛定宇-【高等应用数学问题的MATLAB求解(第4版)】-MATLAB代码
共1237个文件
m:1181个
mdl:13个
txt:9个
3星 · 超过75%的资源 需积分: 50 183 下载量 119 浏览量
2018-12-13
15:04:40
上传
评论 12
收藏 1.54MB RAR 举报
温馨提示
薛定宇-【高等应用数学问题的MATLAB求解(第4版)】-MATLAB代码
资源推荐
资源详情
资源评论
收起资源包目录
薛定宇-【高等应用数学问题的MATLAB求解(第4版)】-MATLAB代码 (1237个子文件)
ncvar.asv 22KB
mtimes.asv 5KB
findhash.c 1KB
c9dlamp.dat 4KB
c8data1.dat 3KB
c9dlumen.dat 2KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
.DS_Store 6KB
rsdav3.fig 39KB
rs_about.fig 9KB
vol_visual4d.fig 7KB
c10mfis.fis 704B
fminsearchbnd_demo.html 10KB
sample snap.jpg 57KB
solvesos.m 54KB
compileinterfacedata.m 43KB
compilesos.m 40KB
callmpcvx.m 40KB
stblinv.m 37KB
stblinv.m 37KB
yalmip.m 35KB
bnb.m 34KB
sdpsettings.m 31KB
definesolvers.m 31KB
qpsub.m 26KB
globalex.m 26KB
BNBGUICB.m 24KB
sdpvar.m 22KB
ncvar.m 22KB
mtimes.m 22KB
branch_and_bound.m 22KB
dualize.m 22KB
nlconst.m 21KB
BNB20_new.m 17KB
yalmiptest.m 17KB
selectsolver.m 16KB
cutsdp.m 15KB
stblfit.m 15KB
stblfit.m 15KB
categorizeproblem.m 15KB
BNB20.m 14KB
lmi2sedumistruct.m 14KB
gams2yalmip.m 14KB
guifun.m 14KB
bmibnb.m 13KB
findapplicablesolvers.m 13KB
solvesdp.m 13KB
expandmodel.m 12KB
pwa_yalmip.m 12KB
mpcvx.m 12KB
norm.m 12KB
norm.m 12KB
guimain.m 12KB
stblpdf.m 11KB
stblpdf.m 11KB
robustify.m 11KB
gaopt.m 11KB
sdisplay.m 11KB
expandrecursive.m 10KB
mpt_appendmodel.m 10KB
sosex.m 10KB
double.m 9KB
solvemoment.m 9KB
double.m 9KB
yalmip2geometric.m 9KB
callpenbmim.m 9KB
coefficients.m 8KB
calllindo_nlp.m 8KB
callmosek.m 8KB
ezimplot3.m 8KB
subsasgn.m 8KB
calllindo_geo.m 8KB
fminsearchbnd.m 8KB
fminsearchbnd.m 8KB
pwq_yalmip.m 8KB
subsasgn.m 7KB
matrixcoefficients.m 7KB
callmpt.m 7KB
times.m 7KB
callmaxdet.m 7KB
lmi.m 7KB
calllindo.m 7KB
callipoptmex.m 7KB
setup_fmincon_params.m 7KB
monolist.m 7KB
callfminsearch.m 7KB
momentex.m 7KB
export.m 7KB
bnb_solvelower.m 7KB
dists.m 7KB
minus.m 7KB
rsdav3.m 7KB
minus.m 7KB
saveampl.m 7KB
checkset.m 7KB
Contents.m 7KB
Contents.m 7KB
plus.m 6KB
共 1237 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
资源评论
- 孤山秉辰2019-10-25可惜只有代码,无书。
追梦赤子心XY
- 粉丝: 6
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- AIS2024 valid
- 最入门的爬虫代码 python.docx
- 爬虫零基础入门-爬取天气预报.pdf
- 最通俗易懂的 MongoDB 非结构化文档存储数据库教程.zip
- 以mongodb为数据库的订单物流小项目.zip
- 腾讯云-mongodb数据库, 项目部署.zip
- 腾讯 APIJSON 的 MongoDB 数据库插件.zip
- 理解非关系型数据库和关系型数据库的区别.zip
- 操作简单的Mongodb网页web管理工具,基于Spring Boot2.0支持mongodb集群.zip
- tms-mongodb-web,提供访问mongodb数据的REST API和可灵活扩展的mongodb web 客户端.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功