replaced global timer by local timer

time-shift
Michel Juillard 2015-10-10 11:08:52 +02:00
parent dcf7cfbc4b
commit 6502c311a0
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ ig=ones(nx,1);
ggx=zeros(nx,1);
while norm(gg)>gtol && check==0 && jit<nit
jit=jit+1;
tic
tic1 = tic;
icount=icount+1;
objective_function_penalty_base = fval0(icount);
disp_verbose([' '],Verbose)
@ -264,7 +264,7 @@ while norm(gg)>gtol && check==0 && jit<nit
disp_verbose('Negative definite Hessian! Local maximum!',Verbose)
pause(1)
end
t=toc;
t=toc(tic1);
disp_verbose(['Elapsed time for iteration ',num2str(t),' s.'],Verbose)
g(:,icount+1)=gg;
if Save_files