📄 guifun.m
字号:
function fig = guifun()
% GUIFUN Used by BNBGUI
% Do not run this file from the Matlab prompt.
load guifun
h0 = figure('Units','points', ...
'Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'FileName','C:\MATLABR11\work\guifun.m', ...
'MenuBar','none', ...
'Name','function BNB GUI', ...
'NumberTitle','off', ...
'PaperPosition',[18 180 576.0000000000001 432.0000000000002], ...
'PaperUnits','points', ...
'Position',[227.1724137931035 96.82758620689657 142.7586206896552 324.0000000000001], ...
'Tag','function BNB GUI', ...
'ToolBar','none', ...
'UserData',' ');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''nonlcon'');', ...
'ListboxTop',0, ...
'Position',mat1, ...
'Tag','nonlcon');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 155.1724137931035 31.0344827586207 12.41379310344828], ...
'String','Ceq = 0 ', ...
'Style','text', ...
'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 136.5517241379311 37.24137931034483 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'');', ...
'ListboxTop',0, ...
'Position',[68.27586206896554 192.4137931034483 31.0344827586207 24.82758620689656], ...
'String','Beq', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''B'');', ...
'ListboxTop',0, ...
'Position',[68.27586206896554 223.448275862069 31.0344827586207 24.82758620689656], ...
'String','B', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[43.44827586206898 198.6206896551724 12.41379310344828 12.41379310344828], ...
'String','x =', ...
'Style','text', ...
'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[43.44827586206898 229.6551724137931 18.62068965517242 12.41379310344828], ...
'String','x <=', ...
'Style','text', ...
'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 173.7931034482759 24.82758620689656 12.41379310344828], ...
'String','C <= 0 ', ...
'Style','text', ...
'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''Aeq'');', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 192.4137931034483 31.0344827586207 24.82758620689656], ...
'String','Aeq', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''A'');', ...
'ListboxTop',0, ...
'Position',[5.586206896551725 223.448275862069 31.0344827586207 24.82758620689656], ...
'String','A', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 254.4827586206897 37.24137931034483 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'');', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 273.1034482758622 93.10344827586209 24.82758620689656], ...
'Tag','fun');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 304.1379310344829 31.0344827586207 12.41379310344828], ...
'String','minimze', ...
'Style','text', ...
'Tag','StaticText5');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 86.89655172413795 60.20689655172415 12.41379310344828], ...
'String','number of vars:', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[6.827586206896553 67.65517241379313 60.20689655172415 12.41379310344828], ...
'String','number of pars:', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','closereq;', ...
'ListboxTop',0, ...
'Position',[74.48275862068967 6.206896551724139 62.0689655172414 24.82758620689656], ...
'String','done', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','bnbguicb(''numx'')', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[68.27586206896554 86.89655172413795 31.0344827586207 12.41379310344828], ...
'String','0', ...
'Style','edit', ...
'Tag','numx', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','bnbguicb(''numpar'');', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[68.27586206896554 68.27586206896554 31.0344827586207 12.41379310344828], ...
'String','0', ...
'Style','edit', ...
'Tag','numpar', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''nonlconedit'');', ...
'ListboxTop',0, ...
'Position',mat2, ...
'String','edit', ...
'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback',mat3, ...
'ListboxTop',0, ...
'Position',mat4, ...
'String','edit', ...
'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''lincon'');', ...
'ListboxTop',0, ...
'Position',mat5, ...
'String','lincon', ...
'Tag','Pushbutton3');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''to workspace'');', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 30.41379310344828 62.0689655172414 24.82758620689656], ...
'String','to workspace ', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''from workspace'');', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 6.206896551724139 62.0689655172414 24.82758620689656], ...
'String','from workspace', ...
'Tag','Pushbutton1');
if nargout > 0, fig = h0; end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -