Skip to content

Commit

Permalink
Update elim_and_recalc.m
Browse files Browse the repository at this point in the history
Remove some old checks that required deprecated options, related to decomposition
  • Loading branch information
afvillaverde authored Mar 11, 2024
1 parent 7f5e663 commit 3c1af6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions STRIKE-GOLDD/functions/elim_and_recalc.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
indices(original_index) = []; %indices(original_index==unmeas_xred_indices) = [];
num_rank = rank(numonx(:,indices));
if num_rank == rangoinicial
if opts.forcedecomp == 0 && opts.decomp == 0 && unidflag == 1
if unidflag == 1
fprintf('\n => State %s is unobservable',char(xred(original_index)));
new_unobs_states = [new_unobs_states; xred(original_index)];
else
Expand All @@ -113,7 +113,7 @@
indices(n+q+ind) = []; % remove the column whose identifiability we want to check
num_rank = rank(numonx(:,indices));
if num_rank == rangoinicial
if opts.forcedecomp == 0 && opts.decomp == 0 && unidflag == 1
if unidflag == 1
fprintf('\n => Input %s is unobservable',char(wred(ind)));
new_unobs_in = [new_unobs_in; wred(ind)];
else
Expand Down

0 comments on commit 3c1af6c

Please sign in to comment.