refactored performance plot data storage

This commit is contained in:
2025-11-30 22:32:17 -08:00
parent 7c87458b66
commit f296fd2803
6 changed files with 15 additions and 28 deletions

View File

@@ -28,6 +28,9 @@ function [obj] = run(obj)
obj.agents{jj} = obj.agents{jj}.run(obj.domain, obj.partitioning, obj.t);
end
% Update total performance
obj.performance = [obj.performance, sum(cellfun(@(x) x.performance(end), obj.agents))];
% Update adjacency matrix
obj = obj.updateAdjacency();