loadGlobMinMulti

PURPOSE ^

% function for loading global minimum(s) of available multi-objective problems

SYNOPSIS ^

function [GlobX,GlobZ]=loadGlobMinMulti(funName,dim)

DESCRIPTION ^

% function for loading global minimum(s) of available multi-objective problems
 L. LAURENT --  04/05/2018 -- luc.laurent@lecnam.net

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %% function for loading global minimum(s) of available multi-objective problems
0002 % L. LAURENT --  04/05/2018 -- luc.laurent@lecnam.net
0003 
0004 % sources available here:
0005 % https://bitbucket.org/luclaurent/optigtest/
0006 % https://github.com/luclaurent/optigtest/
0007 
0008 % optiGTest - set of testing functions    A toolbox to easy manipulate functions.
0009 % Copyright (C) 2017  Luc LAURENT <luc.laurent@lecnam.net>
0010 %
0011 % This program is free software: you can redistribute it and/or modify
0012 % it under the terms of the GNU General Public License as published by
0013 % the Free Software Foundation, either version 3 of the License, or
0014 % (at your option) any later version.
0015 %
0016 % This program is distributed in the hope that it will be useful,
0017 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0018 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0019 % GNU General Public License for more details.
0020 %
0021 % You should have received a copy of the GNU General Public License
0022 % along with this program.  If not, see <http://www.gnu.org/licenses/>.
0023 
0024 function [GlobX,GlobZ]=loadGlobMinMulti(funName,dim)
0025 
0026 isDimOk=false;
0027 if nargin>0
0028    isDimOk=numel(dim>0)&&~any(isnan(dim))&&~any(isinf(dim));
0029 end
0030 
0031 if ~isDimOk;dim=1;end
0032 
0033 listGlobXmin=struct(...
0034     'BinhKorn',NaN,...
0035     'ChakongHaimes',NaN,...
0036     'FonsecaFleming',NaN,...
0037     'TestFun4',NaN,...
0038     'Kursawe',NaN,...
0039     'MultiSchaffer1',NaN,... 
0040     'MultiSchaffer2',NaN,...
0041     'Poloni',NaN,...
0042     'ZitzlerDebThiele1',NaN,...
0043     'ZitzlerDebThiele2',NaN,...
0044     'ZitzlerDebThiele3',NaN,...
0045     'ZitzlerDebThiele4',NaN,...
0046     'ZitzlerDebThiele6',NaN,...
0047     'OsyczkaKundu',NaN,...
0048     'CTP1',NaN,...
0049     'ConstrEx',NaN,...
0050     'Viennet',NaN);
0051 
0052 %%%%%%%
0053 listGlobZmin=struct(...
0054     'BinhKorn',NaN,...
0055     'ChakongHaimes',NaN,...
0056     'FonsecaFleming',NaN,...
0057     'TestFun4',NaN,...
0058     'Kursawe',NaN,...
0059     'MultiSchaffer1',NaN,... 
0060     'MultiSchaffer2',NaN,...
0061     'Poloni',NaN,...
0062     'ZitzlerDebThiele1',NaN,...
0063     'ZitzlerDebThiele2',NaN,...
0064     'ZitzlerDebThiele3',NaN,...
0065     'ZitzlerDebThiele4',NaN,...
0066     'ZitzlerDebThiele6',NaN,...
0067     'OsyczkaKundu',NaN,...
0068     'CTP1',NaN,...
0069     'ConstrEx',NaN,...
0070     'Viennet',NaN);
0071 
0072 lGX=listGlobXmin.(funName);
0073 lGZ=listGlobZmin.(funName);
0074 
0075 if size(lGX,2)==1&&isDimOk
0076     GlobX=repmat(lGX,[1,dim]);
0077 else
0078     GlobX=lGX;
0079 end
0080 if length(lGZ)==1&&size(lGX,1)>1
0081     GlobZ=repmat(lGZ,[size(lGX,1),1]);
0082 else
0083     GlobZ=lGZ;
0084 end
0085 end

Generated on Tue 28-May-2019 16:00:34 by m2html © 2005