LINE Solver
MATLAB API documentation
Loading...
Searching...
No Matches
psfit_hyperexp_outfun.m
1function stop = psfit_hyperexp_outfun(x, optimValues, state)
2global MAXTIME;
3
4stop = false;
5if strcmpi(state,'iter')
6 if mod(optimValues.iteration,MAXCHECKITER)==0 && optimValues.iteration>1
7 reply = input('Do you want more? Y/N [Y]: ', 's');
8 if isempty(reply)
9 reply = 'Y';
10 end
11 if strcmpi(reply,'N')
12 stop=true;
13 end
14 end
15 if toc(T0)>MAXTIME
16 fprintf('Time limit reached. Aborting.\n');
17 stop = true;
18 end
19end
20end