No BSD License  

Highlights from
bnb

  • ... NLCONST Helper function to find the constrained minimum of a function
  • BNB20(fun,x0,xstat,xl,xu,...BNB20 Finds the constrained minimum of a function of several possibly integer variables.
  • BNBGUI(file)
  • BNBGUICB(action,file); BNBGUICB Callback function for BNBGUI 2.0.
  • [X,lambda,exitflag,output...QP Quadratic programming subproblem. Handles qp and constrained
  • guierr() This is the machine-generated representation of a Handle Graphics object
  • guifun() This is the machine-generated representation of a Handle Graphics object
  • guimain() This is the machine-generated representation of a Handle Graphics object
  • guiset() This is the machine-generated representation of a Handle Graphics object
  • guiupd() This is the machine-generated representation of a Handle Graphics object
  • View all files

bnb

by

 

14 Feb 2000 (Updated )

BNB20 solves mixed integer nonlinear optimization problems

guifun()
function fig = guifun()
% This is the machine-generated representation of a Handle Graphics object
% and its children.  Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
% This problem is solved by saving the output as a FIG-file.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
% 
% NOTE: certain newer features in MATLAB may not have been saved in this
% M-file due to limitations of this format, which has been superseded by
% FIG-files.  Figures which have been annotated using the plot editor tools
% are incompatible with the M-file/MAT-file format, and should be saved as
% FIG-files.

load guifun

h0 = figure('Units','points', ...
	'CloseRequestFcn','bnbguicb(''quit fun''); closereq;', ...
	'Color',[0.8 0.8 0.8], ...
	'Colormap',mat0, ...
	'FileName','C:\MATLABR11\toolbox\bnb\guifun.m', ...
	'HandleVisibility','callback', ...
	'MenuBar','none', ...
	'Name','function BNB GUI', ...
	'NumberTitle','off', ...
	'PaperPosition',[18 180 576.0000000000001 432.0000000000002], ...
	'PaperUnits','points', ...
	'Position',[4.344827586206898 50.89655172413794 155.1724137931035 366.8275862068966], ...
	'Resize','off', ...
	'Tag','function BNB GUI', ...
	'ToolBar','none', ...
	'UserData',' ');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',mat1, ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',mat2, ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[6.206896551724139 198.6206896551724 142.7586206896552 80.68965517241381], ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[6.206896551724139 297.9310344827587 142.7586206896552 49.65517241379311], ...
	'Style','text', ...
	'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''nonlcon'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 124.1379310344828 93.10344827586209 24.82758620689656], ...
	'Tag','nonlcon');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[74.48275862068967 161.3793103448276 49.65517241379311 12.41379310344828], ...
	'String','Ceq(x) = 0 ', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 148.9655172413793 49.65517241379311 12.41379310344828], ...
	'String','[C; Ceq] = ', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''Beq'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[74.48275862068967 211.0344827586207 31.0344827586207 18.62068965517242], ...
	'String','Beq', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''B'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[74.48275862068967 242.0689655172414 31.0344827586207 18.62068965517242], ...
	'String','B', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[49.65517241379311 211.0344827586207 24.82758620689656 12.41379310344828], ...
	'String','x  =', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[49.65517241379311 242.0689655172414 24.82758620689656 12.41379310344828], ...
	'String','x <=', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[74.48275862068967 173.7931034482759 49.65517241379311 12.41379310344828], ...
	'String','C(x) <= 0 ', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''Aeq'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 211.0344827586207 31.0344827586207 18.62068965517242], ...
	'String','Aeq', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''A'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 242.0689655172414 31.0344827586207 18.62068965517242], ...
	'String','A', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'FontName','Courier-LD', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[6.206896551724139 279.3103448275863 55.86206896551725 12.41379310344828], ...
	'String','subject to', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''fun'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 304.1379310344829 93.10344827586209 24.82758620689656], ...
	'Tag','fun');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.8 0.8 0.8], ...
	'FontName','Courier-LD', ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[6.206896551724139 347.5862068965518 37.24137931034483 12.41379310344828], ...
	'String','Minimze', ...
	'Style','text', ...
	'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 93.10344827586209 74.48275862068967 12.41379310344828], ...
	'String','number of vars', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 74.48275862068967 74.48275862068967 12.41379310344828], ...
	'String','number of pars', ...
	'Style','text', ...
	'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback',mat3, ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[86.89655172413795 6.206896551724139 62.0689655172414 24.82758620689656], ...
	'String','done', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','bnbguicb(''numx'')', ...
	'FontName','Courier-LD', ...
	'HorizontalAlignment','right', ...
	'ListboxTop',0, ...
	'Position',[86.89655172413795 93.10344827586209 31.0344827586207 14.27586206896552], ...
	'Style','edit', ...
	'Tag','numx', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[1 1 1], ...
	'Callback','bnbguicb(''numpar'');', ...
	'FontName','Courier-LD', ...
	'HorizontalAlignment','right', ...
	'ListboxTop',0, ...
	'Position',[86.89655172413795 74.48275862068967 31.0344827586207 14.27586206896552], ...
	'Style','edit', ...
	'Tag','numpar', ...
	'Value',1);
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''edit nonlcon'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[111.7241379310345 130.3448275862069 31.0344827586207 18.62068965517242], ...
	'String','edit', ...
	'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback',mat4, ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[111.7241379310345 310.344827586207 31.0344827586207 18.62068965517242], ...
	'String','edit', ...
	'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''lincon'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[111.7241379310345 204.8275862068966 31.0344827586207 55.86206896551725], ...
	'String','lincon', ...
	'Tag','Pushbutton3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''to base'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[6.206896551724139 6.206896551724139 62.0689655172414 24.82758620689656], ...
	'String','to base ', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''from base'');', ...
	'FontName','Courier-LD', ...
	'ListboxTop',0, ...
	'Position',[6.206896551724139 37.24137931034483 62.0689655172414 24.82758620689656], ...
	'String','from base', ...
	'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 328.9655172413794 62.0689655172414 12.41379310344828], ...
	'String','fun', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 260.6896551724138 62.0689655172414 12.41379310344828], ...
	'String','lincon', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.501960784313725 0.501960784313725 0.501960784313725], ...
	'FontName','Courier-LD', ...
	'ForegroundColor',[1 1 1], ...
	'HorizontalAlignment','left', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 173.7931034482759 49.65517241379311 12.41379310344828], ...
	'String','nonlincon', ...
	'Style','text', ...
	'Tag','StaticText3');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
	'Callback','bnbguicb(''clear fun'')', ...
	'ListboxTop',0, ...
	'Position',[111.7241379310345 304.1379310344829 31.0344827586207 6.206896551724139], ...
	'Tag','clear fun');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','bnbguicb(''clear A'');', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 235.8620689655173 31.0344827586207 6.206896551724139], ...
	'Tag','clear A');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','bnbguicb(''clear Aeq'');', ...
	'ListboxTop',0, ...
	'Position',[12.41379310344828 204.8275862068966 31.0344827586207 6.206896551724139], ...
	'Tag','clear Aeq');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','bnbguicb(''clear Beq'');', ...
	'ListboxTop',0, ...
	'Position',[74.48275862068967 204.8275862068966 31.0344827586207 6.206896551724139], ...
	'Tag','clear Beq');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','bnbguicb(''clear B'');', ...
	'ListboxTop',0, ...
	'Position',[74.48275862068967 235.8620689655173 31.0344827586207 6.206896551724139], ...
	'Tag','clear B');
h1 = uicontrol('Parent',h0, ...
	'Units','points', ...
	'Callback','bnbguicb(''clear nonlcon'');', ...
	'ListboxTop',0, ...
	'Position',[111.7241379310345 124.1379310344828 31.0344827586207 6.206896551724139], ...
	'Tag','clear nonlcon');
if nargout > 0, fig = h0; end

Contact us