dispDetails

PURPOSE ^

% Method of optiGTest class

SYNOPSIS ^

function dispDetails(obj)

DESCRIPTION ^

% Method of optiGTest class
 L. LAURENT --  15/04/2018 -- luc.laurent@lecnam.net

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %% Method of optiGTest class
0002 % L. LAURENT --  15/04/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) 2018  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 %% display details about the defined problem
0025 
0026 function dispDetails(obj)
0027 if ~isempty(obj.namePb)
0028     Ofprintf('\n## Problem: %s\n',obj.namePb);
0029     Ofprintf('# Objective function(s):');
0030     %
0031     funDisp=@(x)fprintf(' %s,',x);
0032     %
0033     if obj.nbObj>1
0034         cellfun(funDisp,obj.funObj);
0035     else
0036         fprintf(' %s',obj.funObj{1});
0037     end
0038     fprintf('\n');
0039     %
0040     Ofprintf('# Constraint function(s):');
0041     if obj.nbCons==0
0042         fprintf(' None');
0043     else
0044         cellfun(funDisp,obj.funCons);
0045     end
0046     fprintf('\n');
0047     %
0048     Ofprintf('# Considered dimension: %i\n',obj.dim);
0049     Ofprintf('# Considered design space:\n');
0050     Ofprintf('#  Min: ');fprintf('%-+d\t',obj.xMin);fprintf('\n');
0051     Ofprintf('#  Max: ');fprintf('%-+d\t',obj.xMax);fprintf('\n');
0052     Ofprintf('# Considered global minimum(s) (sample points and response value(s)):\n');
0053     %
0054     Xmin=obj.globMinX;
0055     Zmin=obj.globMinZ;
0056     for itM=1:numel(Zmin)
0057         Ofprintf('# ');
0058         fprintf('%-+d\t',Xmin(itM,:));
0059         fprintf('|| %d \n',Zmin(itM));
0060     end
0061     fprintf('\n');
0062 end
0063 end

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