% function for loading global minimum(s) of constrained problems L. LAURENT -- 02/05/2018 -- luc.laurent@lecnam.net
0001 %% function for loading global minimum(s) of constrained problems 0002 % L. LAURENT -- 02/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]=loadGlobMinCons(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 'RosenbrockCubicLine',[1,1],... 0035 'RosenbrockDisk',[1 1],... 0036 'BirdDisk',[-1.5821422,-3.1302468],... 0037 'Townsend',[2.0052938,1.1944506],... 0038 'Simionescu',[-0.84852813,0.84852813;0.84852813,-0.84852813]); 0039 0040 %%%%%%% 0041 listGlobZmin=struct(... 0042 'RosenbrockCubicLine',0,... 0043 'RosenbrockDisk',0,... 0044 'BirdDisk',-106.7645367,... 0045 'Townsend',-2.0239884,... 0046 'Simionescu',-0.072);%-0.072625 0047 0048 lGX=listGlobXmin.(funName); 0049 lGZ=listGlobZmin.(funName); 0050 0051 if size(lGX,2)==1&&isDimOk 0052 GlobX=repmat(lGX,[1,dim]); 0053 else 0054 GlobX=lGX; 0055 end 0056 if length(lGZ)==1&&size(lGX,1)>1 0057 GlobZ=repmat(lGZ,[size(lGX,1),1]); 0058 else 0059 GlobZ=lGZ; 0060 end 0061 end