Commit b8094a2e authored by Johannes Pfeifer 's avatar Johannes Pfeifer

Correct display of identification message if parameters are only collinear

Closes #1614
parent 856fc060
...@@ -84,7 +84,11 @@ end ...@@ -84,7 +84,11 @@ end
disp([' ']), disp([' ']),
if any(idemodel.ino)
no_warning_message_display=1;
if any(idemodel.ino) || any(any(idemodel.ind0==0)) || any(idemodel.jweak_pair)
no_warning_message_display=0;
disp('WARNING !!!') disp('WARNING !!!')
if SampleSize>1 if SampleSize>1
disp(['The rank of H (model) is deficient for ', num2str(length(find(idemodel.ino))),' out of ',int2str(SampleSize),' MC runs!' ]), disp(['The rank of H (model) is deficient for ', num2str(length(find(idemodel.ino))),' out of ',int2str(SampleSize),' MC runs!' ]),
...@@ -152,12 +156,15 @@ if any(idemodel.ino) ...@@ -152,12 +156,15 @@ if any(idemodel.ino)
% end % end
end end
if ~any(idemodel.ino) && ~any(any(idemodel.ind0==0)) if no_warning_message_display
disp(['All parameters are identified in the model (rank of H).' ]), disp(['All parameters are identified in the model (rank of H).' ]),
skipline() skipline()
end end
if any(idemoments.ino) no_warning_message_display = 1;
if any(idemoments.ino) || any(any(idemoments.ind0==0)) || any(idemoments.jweak_pair)
no_warning_message_display = 0;
skipline() skipline()
disp('WARNING !!!') disp('WARNING !!!')
if SampleSize > 1 if SampleSize > 1
...@@ -234,7 +241,7 @@ if any(idemoments.ino) ...@@ -234,7 +241,7 @@ if any(idemoments.ino)
% end % end
% end % end
end end
if ~any(idemoments.ino) && ~any(any(idemoments.ind0==0)) if no_warning_message_display
skipline() skipline()
disp(['All parameters are identified by J moments (rank of J)' ]), disp(['All parameters are identified by J moments (rank of J)' ]),
skipline() skipline()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment