0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020 function dispAvailablePb(txt)
0021
0022 if nargin==0
0023 txt='';
0024 end
0025 flagUn=false;
0026 flagCons=false;
0027 flagMulti=false;
0028 switch txt
0029 case {'cons','Cons','constrained','Constrained','constraint','Constraint'}
0030 flagCons=true;
0031 case {'uncons','unCons','unconstrained','unConstrained'}
0032 flagUn=true;
0033 case {'multi','Multi','multiObjective','multiobjective'}
0034 flagUn=true;
0035 otherwise
0036 flagUn=true;
0037 flagCons=true;
0038 flagMulti=true;
0039 end
0040
0041
0042 strPbUn=loadDimUn();
0043 strPbCons=loadProbCons();
0044 strPbMulti=loadProbMulti();
0045
0046 listPbUn=fieldnames(strPbUn);
0047 listPbCons=fieldnames(strPbCons);
0048 listPbMulti=fieldnames(strPbMulti);
0049
0050 funCount=@(x,y,n)numel(x(n).(y));
0051 nbConsPb=cellfun(@(x)funCount(strPbCons,x,3),listPbCons);
0052 nbMultiConsPb=cellfun(@(x)funCount(strPbMulti,x,3),listPbMulti);
0053 nbMultiObjPb=cellfun(@(x)funCount(strPbMulti,x,1),listPbMulti);
0054
0055
0056 Ofprintf('=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=\n');
0057 Ofprintf('Available test problems\n');
0058 if flagUn
0059 Ofprintf('------------------------\n');
0060 cellfun(@(X)Ofprintf('Unconstrained: %s\n',X),listPbUn);
0061 Ofprintf('------------------------\n');
0062 end
0063 if flagCons
0064 Ofprintf('------------------------\n');
0065 cellfun(@(X,Y,Z)Ofprintf('Constrained: %s (nb constraints: %i)\n',X,Y),...
0066 listPbCons,num2cell(nbConsPb));
0067 Ofprintf('------------------------\n');
0068 end
0069 if flagMulti
0070 Ofprintf('------------------------\n');
0071 cellfun(@(X,Y,Z)Ofprintf('Multiobjective: %s (nb objective/constraints: %i/%i)\n',X,Y,Z),...
0072 listPbMulti,num2cell(nbMultiObjPb),num2cell(nbMultiConsPb));
0073 Ofprintf('------------------------\n');
0074 end
0075 Ofprintf('=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=#=\n');
0076 end