refactored performance plot data storage
This commit is contained in:
1 parent
7c87458b66
commit
f296fd2803
6 files changed
+15
-28
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user