random agent placement in parametric testing

This commit is contained in:
2026-01-27 16:39:22 -08:00
parent 8b7a756485
commit a68690a5cf
7 changed files with 108 additions and 30 deletions

View File

@@ -15,8 +15,8 @@ classdef miSim
partitioning = NaN;
perf; % sensor performance timeseries array
performance = 0; % simulation performance timeseries vector
barrierGain = 100; % CBF gain parameter
barrierExponent = 3; % CBF exponent parameter
barrierGain = NaN; % CBF gain parameter
barrierExponent = NaN; % CBF exponent parameter
artifactName = "";
fPerf; % performance plot figure
end

View File

@@ -11,13 +11,20 @@ function obj = teardown(obj)
close(obj.fPerf);
close(obj.f);
% Reset accumulators
% reset parameters
obj.timestep = NaN;
obj.timestepIndex = NaN;
obj.maxIter = NaN;
obj.domain = rectangularPrism;
obj.objective = sensingObjective;
obj.obstacles = cell(0, 1);
obj.agents = cell(0, 1);
obj.adjacency = NaN;
obj.constraintAdjacencyMatrix = NaN;
obj.partitioning = NaN;
obj.performance = 0;
% Reset agents
for ii = 1:size(obj.agents, 1)
obj.agents{ii} = agent;
end
obj.barrierGain = NaN;
obj.barrierExponent = NaN;
obj.artifactName = "";
end