beginning to write parametric tests
This commit is contained in:
1 parent
ff02e8a1c6
commit
df31c2f03c
6 files changed
+35
-13
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user