Skip to content

Commit

Permalink
Bug fixes for DE minimiser and domains calculations (#268)
Browse files Browse the repository at this point in the history
* Fixes contrast model bug for domains standard layers

* Implements DE strategy
  • Loading branch information
DrPaulSharp authored Sep 17, 2024
1 parent 5487610 commit e206795
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion minimisers/DE/runDE.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
% Alternates between differential mutation and three-point-
% recombination.

I_strategy = 5;
I_strategy = controls.strategy;

% I_refresh intermediate output will be produced after "I_refresh"
% iterations. No intermediate output will be produced
Expand Down
9 changes: 5 additions & 4 deletions targetFunctions/+domainsTF/standardLayers.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
[repeatLayers,...
data,...
dataLimits,...
simLimits,~,...
simLimits,...
contrastLayers,...
layersDetails,~] = parseCells(problemCells);

% Additionally extract the additional domain layers details
Expand Down Expand Up @@ -95,9 +96,9 @@
subRoughs(i) = params(1);
end

for i = 1:size(domainContrastLayers1,1)
domainContrastLayers1{i} = domainContrastLayers{i,1};
domainContrastLayers2{i} = domainContrastLayers{i,2};
for i = 1:numberOfContrasts
domainContrastLayers1{i} = domainContrastLayers{contrastLayers{i}(1)};
domainContrastLayers2{i} = domainContrastLayers{contrastLayers{i}(2)};
end

if strcmpi(parallel, coderEnums.parallelOptions.Contrasts)
Expand Down

0 comments on commit e206795

Please sign in to comment.