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