[ADMB Users] inner maxg = 0 infinite loop in ADMB-RE

Motoki Wu apewu at u.washington.edu
Thu Dec 23 12:49:04 PST 2010


Thanks everyone for the input. I will be more careful with the exponentials.

> You would think they would know this stuff in the univeristies by now.

Considering I am also a Mac user :)

- Motoki

On Thu, Dec 23, 2010 at 3:06 AM, dave fournier <otter at otter-rsch.com> wrote:
> sorry that was a bit too much of a rush. you have to update the b at each
> stage as in the following.
>
>
> #include <admodel.h>
> main()
> {
>  int n=25;
>  double Binit=1000;
>  double C=500;
>  double B=Binit;
>  for (int i=1;i<=n;i++)
>  {
>     B=B/(1.0+C/(n*B));
>  }
>  cout << Binit-B << " " << C << endl;
> }
> _______________________________________________
> Users mailing list
> Users at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/users
>



More information about the Users mailing list