function varargout = Optimization_toolbox(varargin)
%___________________________________________________________________%
% Optimization toolbox version 1.0 %
% %
% Developed in MATLAB R2011b(7.13) %
% %
% Author and programmer: Seyedali Mirjalili %
% %
% e-Mail: ali.mirjalili@gmail.com %
% seyedali.mirjalili@griffithuni.edu.au %
%___________________________________________________________________%
%
%
% You can simply define your cost function in a seperate file.
% The default name of the objective function is CostFunction.
% If you have a look at the CostFunction.m file, you may notice
% that the cost function gets the variables in a vector ([x1 x2 ... xn]) and
% returns the objective value. You can either write you objective function
% in this file or create a new file and pass its name to the toolbox.
% Remember to follow the same structure for input and output if you decided
% to go for the second option.
%
% The lower bounds and upper bounds of variables should also be witten as
% lb1,lb2,...,lbn and ub1,ub2,...,ubn
%
% If all of the variables have equal lower and/or upper bounds you can just
% define lb and ub as two single number numbers: lb, ub
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Optimization_toolbox_OpeningFcn, ...
'gui_OutputFcn', @Optimization_toolbox_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
addpath('./GWO')
addpath('./ALO')
addpath('./MVO')
addpath('./DA')
addpath('./MFO')
addpath('./SCA')
addpath('./WOA')
% --- Executes just before Optimization_toolbox is made visible.
function Optimization_toolbox_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to Optimization_toolbox (see VARARGIN)
% Choose default command line output for Optimization_toolbox
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes Optimization_toolbox wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = Optimization_toolbox_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
labelStr = '<html><center><a href="">alimirjalili.com';
cbStr = 'web(''http://www.alimirjalili.com'');';
hButton = uicontrol('string',labelStr,'pos',[150,20,100,35],'callback',cbStr);
labelStr = '<html><center><a href="">Find the papers';
cbStr = 'web(''http://alimirjalili.com/Publication.html'');';
hButton = uicontrol('string',labelStr,'pos',[50,20,100,35],'callback',cbStr);
function WolfNo_Callback(hObject, eventdata, handles)
% hObject handle to WolfNo (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of WolfNo as text
% str2double(get(hObject,'String')) returns contents of WolfNo as a double
% --- Executes during object creation, after setting all properties.
function WolfNo_CreateFcn(hObject, eventdata, handles)
% hObject handle to WolfNo (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function IterNo_Callback(hObject, eventdata, handles)
% hObject handle to IterNo (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of IterNo as text
% str2double(get(hObject,'String')) returns contents of IterNo as a double
% --- Executes during object creation, after setting all properties.
function IterNo_CreateFcn(hObject, eventdata, handles)
% hObject handle to IterNo (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function LowerBound_Callback(hObject, eventdata, handles)
% hObject handle to LowerBound (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of LowerBound as text
% str2double(get(hObject,'String')) returns contents of LowerBound as a double
% --- Executes during object creation, after setting all properties.
function LowerBound_CreateFcn(hObject, eventdata, handles)
% hObject handle to LowerBound (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function UpperBound_Callback(hObject, eventdata, handles)
% hObject handle to UpperBound (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of UpperBound as text
% str2double(get(hObject,'String')) returns contents of UpperBound as a double
% --- Executes during object creation, after setting all properties.
function UpperBound_CreateFcn(hObject, eventdata, handles)
% hObject handle to UpperBound (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function Dim_Callback(hObject, eventdata, handles)
% hObject handle to Dim (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of Dim as text
% str2double(get(hObject,'String')) ret