Minor addition to MatlabInterface (flag to deactivate output of all statistic fields which is time-consuming for large populations)
This commit is contained in:
@@ -58,6 +58,7 @@ int.optParams = [];
|
||||
int.optParamValues = [];
|
||||
int.hexMask=hex2dec('ffffffff');
|
||||
int.dataType=''; % to be set later!
|
||||
int.outputAllStatsFields=1;
|
||||
|
||||
if (isa(fhandle, 'function_handle'))
|
||||
int.f = fhandle;
|
||||
|
@@ -77,6 +77,7 @@ if ((nargin == 2) || (nargin == 3))
|
||||
eva2.OptimizerFactory.addTerminator(EvaluationTerminator(maxEvals), 0);
|
||||
end
|
||||
end
|
||||
int.mp.setOutputAllStatFields(int.outputAllStatsFields==1);
|
||||
|
||||
% set display
|
||||
if (strcmp(int.opts.Display,'off') || isempty(int.opts.Display))
|
||||
|
@@ -0,0 +1,8 @@
|
||||
function int = setOutputAllStatsFields(int, doOutputAllFields)
|
||||
% (De-)Activate printing all available statistic data to the text log. Deactivation may
|
||||
% improve performance for larger population sizes.
|
||||
% int = setOutputAllStatsFields(int, doOutputAllFields)
|
||||
% int: instance of JEInterface
|
||||
% doOutputAllFields: 1 or 0 for activation or deactivation, respectively
|
||||
|
||||
int.outputAllStatsFields=doOutputAllFields;
|
Reference in New Issue
Block a user