?? ga_init2.m
字號:
main=figure('Number','Off',...
'Name','遺傳算法 GA For MATLAB',...
'Menubar','None',...
'Resize','off',...
'Units','Pixels',...
'Position',[2 2 636 455]);
datitle_rb = uicontrol(main,...
'Style','Push',...
'BackgroundColor',[0 0 1],...
'ForegroundColor','y',...
'units','Pixels',...
'Position',[50 3790 500 25],...
'String','遺傳算法');
datinn_rb = uicontrol(main,...
'enable','off',...
'Style','Push',...
'BackgroundColor',[0 0 1],...
'ForegroundColor','y',...
'units','Pixels',...
'Position',[50 365 500 25],...
'String','數(shù)據(jù)調出成功!');
datwho_rb = uicontrol(main,...
'Style','Push',...
'BackgroundColor',[0 0 1],...
'ForegroundColor','y',...
'units','Pixels',...
'Position',[50 340 250 25],...
'String','選擇I/O數(shù)據(jù)組合',...
'Callback',[...
'if data_loaded == 1;',...
'ga_selec;',...
'data_comb=1;',...
'else;',...
'dialog(''style'',''error'',''replace'',''on'',''resize'',''off'',''name'',''Error'',''Textstring'',e2);',...
'end;']);
datlok_rb = uicontrol(main,...
'Style','Push',...
'BackgroundColor',[0 0 1],...
'ForegroundColor','y',...
'units','Pixels',...
'Position',[300 340 250 25],...
'String','數(shù)據(jù)圖示',...
'Callback',[...
'if data_loaded == 1;',...
'ga_view1;',...
'gobck;',...
'else;',...
'dialog(''style'',''error'',''replace'',''on'',''resize'',''off'',''name'',''Error'',''Textstring'',e1);',...
'end;']);
gainit_rb = uicontrol(main,...
'Style','Push',...
'BackgroundColor',[0 0 1],...
'ForegroundColor','y',...
'units','Pixels',...
'Position',[50 315 250 25],...
'String','初始化GA',...
'Callback',[...
'if data_loaded == 1 & data_comb == 1 & sum(output_var) > 0;'...
'ga_ini;',...
'else;',...
'dialog(''style'',''error'',''replace'',''on'',''resize'',''off'',''name'',''Error'',''Textstring'',e3);',...
'end;']);
closebtn=uicontrol(gcf,'Style','Push',...
'Position',[300 315 250 25],...
'String','關閉',...
'Callback',[...
'close(gcf);',...
'clear all;']);
e1=[' 您未調入數(shù)據(jù)....'];
e2=[' 您未調入數(shù)據(jù)....'];
e3=[' 您未調入數(shù)據(jù)或者未選擇I/O組合....'];
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -