[ADMB Users] (no subject)

Fowler, Mark Mark.Fowler at dfo-mpo.gc.ca
Fri Apr 16 04:48:24 PDT 2010


Hello,
Last week I asked about capturing the iterations per phase. All appeared
to be working until I thought I had workable limits for all the phases.
According to my count registers every phase is completing within their
iteration limits. Yet I still get the 'Maximum number of iterations
exceeded...' message. Am I missing something or have I hit a hard limit?
I notice that the phase 2 count ends with a '2', which was always the
case for any phase count that tripped a limit (see Earlier example at
bottom).

DATA_SECTION 
//Initialize iteration counters for each phase
int iters_phase1;
int iters_phase2;
int iters_phase3;
int iters_phase4;
int iters_phase5;
!! iters_phase1=0;
!! iters_phase2=0;
!! iters_phase3=0;
!! iters_phase4=0;
!! iters_phase5=0;

PROCEDURE_SECTION
//Increment iteration counters
if(current_phase()==1) iters_phase1++;
if(current_phase()==2) iters_phase2++;
if(current_phase()==3) iters_phase3++;
if(current_phase()==4) iters_phase4++;
if(current_phase()==5) iters_phase5++;

REPORT_SECTION 
if (last_phase())
{
rep14<<"Iterations by phase: "<<" 1: "<<iters_phase1<<" 2:
"<<iters_phase2<<" 3: "<<iters_phase3<<" 4: "<<iters_phase4<<" 5:
"<<iters_phase5<<endl;
}
GLOBALS_SECTION
ofstream rep14("iters.out");

RUNTIME_SECTION
  maximum_function_evaluations  100,25000,10000,10000,10000
Iterations by phase:  1: 80 2: 12162 3: 9310 4: 2770 5: 2829

Earlier example:
  maximum_function_evaluations  100 1000 10000 10000 10000
Iterations by phase:  1: 80 2: 1002 3: 10002 4: 3040 5: 4199

> 	Mark Fowler
		Population Ecology Division
> 	Bedford Inst of Oceanography
> 	Dept Fisheries & Oceans
> 	Dartmouth NS Canada
		B2Y 4A2
		Tel. (902) 426-3529
		Fax (902) 426-9710
		Email fowlerm at mar.dfo-mpo.gc.ca
		Home Tel. (902) 461-0708
		Home Email mark.fowler at ns.sympatico.ca


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.admb-project.org/pipermail/users/attachments/20100416/0d018744/attachment.html>


More information about the Users mailing list