beginning to write parametric tests

This commit is contained in:
2026-01-13 15:15:42 -08:00
parent ff02e8a1c6
commit df31c2f03c
6 changed files with 35 additions and 13 deletions

View File

@@ -5,8 +5,15 @@ function validate(obj)
arguments (Output)
end
%% Communications Network Validators
if max(conncomp(graph(obj.adjacency))) ~= 1
warning("Network is not connected");
end
if any(obj.adjacency - obj.constraintAdjacencyMatrix < 0, 'all')
warning("Eliminated network connections that were necessary");
end
%%
end