updated plotting org

This commit is contained in:
2025-11-16 15:44:01 -08:00
parent 39bf75a95b
commit 319041ce5e
10 changed files with 76 additions and 86 deletions

View File

@@ -15,6 +15,9 @@ function obj = partition(obj)
% Get highest performance value at each point
[~, idx] = max(agentPerformances, [], 3);
% Current total performance
obj.performance = sum(max(agentPerformances(:, :, 1:(end - 1)), [], 3), 'all');
% Collect agent indices in the same way
agentInds = cellfun(@(x) x.index * ones(size(obj.objective.X)), obj.agents, 'UniformOutput', false);
agentInds{end + 1} = zeros(size(agentInds{end})); % index for no assignment