You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in v1.4 and the current version on github, in file tfocs_iterate.m, line 85, if isa(stopFcn,'function_handle') % added Oct 27 '14 is wrong. The reason is because by the design in tfocs_initialize.m, stopFcn is a cell containing function_handle rather than function_handle itself. The fix is if isa(stopFcn{err_j},'function_handle'). One does not need to run the program to verify this; reading the context of this line is convincing enough. The consequence of this bug is that user defined stop functions never run...
Best,
Brad
The text was updated successfully, but these errors were encountered:
TFOCS v1.4
MATLAB version 9.0 (R2016a) on MACI64
Hi, in v1.4 and the current version on github, in file tfocs_iterate.m, line 85,
if isa(stopFcn,'function_handle') % added Oct 27 '14
is wrong. The reason is because by the design in tfocs_initialize.m, stopFcn is a cell containing function_handle rather than function_handle itself. The fix isif isa(stopFcn{err_j},'function_handle')
. One does not need to run the program to verify this; reading the context of this line is convincing enough. The consequence of this bug is that user defined stop functions never run...Best,
Brad
The text was updated successfully, but these errors were encountered: