refactored performance plot data storage

This commit is contained in:
2025-11-30 22:32:17 -08:00
committed by Kevin D
parent 28a6bfe3de
commit bdd018e566
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();