[Developers] FW: [ADMB Users] ctrl c in RE models
dave fournier
davef at otter-rsch.com
Sun Apr 10 13:30:21 PDT 2011
On 11-04-10 01:17 PM, Hans Julius Skaug wrote:
For the block diagonal case you just have to add a line in df1b2lp9.cpp
around line 66
(I think)
for (i=1;i<=num_separable_calls;i++)
{
int m=(*derindex)(i).indexmax();
ishape(i)=m;
if (m>0)
{
pfmc1[i] = new fmm(m);
pfmc1[i]->iprint=0;
pfmc1[i]->crit=inner_crit;
pfmc1[i]->ireturn=0;
pfmc1[i]->itn=0;
pfmc1[i]->ifn=0;
pfmc1[i]->ialph=0;
pfmc1[i]->ihang=0;
pfmc1[i]->ihflag=0;
pfmc1[i]->maxfn=100;
pfmc1[i]->gmax=1.e+100;
// !!!! add here
pfmc1[i].use_control_c=0;
}
> Developers,
>
> It would certainly be good to to have uniform behaviour in response to ^c.
> Maybe the separable case can be tackled at the Santa Barbara meeting
> in June?
>
> Hans
>
> -----Original Message-----
> From: users-bounces at admb-project.org [mailto:users-bounces at admb-project.org] On Behalf Of dave fournier
> Sent: Thursday, April 07, 2011 7:47 PM
> To: users at admb-project.org
> Subject: [ADMB Users] ctrl c in RE models
>
> It has bugged me for a long time that in RE models ^c does not function
> properly.
> This is due to the fact that the wrong instance of the function
> minimizer processes
> the signal in the inner optimization. The attached simple patch changes
> this.
> Look for use_control_c in the code to see what is needed. This will not
> help
> the separable function case where the function minimizer is called in a
> different
> part of the code.
> _______________________________________________
> Developers mailing list
> Developers at admb-project.org
> http://lists.admb-project.org/mailman/listinfo/developers
>
More information about the Developers
mailing list