[ADMB Users] Compile Problem

Mark Maunder mmaunder at iattc.org
Wed Aug 31 21:17:32 PDT 2011


Depending on what you are doing, it may not be a good idea to make a variable defined in the data section equal to a model parameter. How is h_f used?

From: users-bounces at admb-project.org [mailto:users-bounces at admb-project.org] On Behalf Of Weihai Liu
Sent: Wednesday, August 31, 2011 6:26 PM
To: Justin Carney
Cc: users at admb-project.org
Subject: Re: [ADMB Users] Compile Problem

try to use value(b96)

On Wed, Aug 31, 2011 at 8:05 PM, Justin Carney <jmcarney at alaska.edu<mailto:jmcarney at alaska.edu>> wrote:
Hi,

I am getting a g++ error message when trying to compile my ADMB code. I get an error saying it cannot convert 'param_init_bounded_number' to 'double'
The simplified version of the code causing the error message is

for (int i=1;i<=25;i++)
{for (int j=1;j<=90;j++)
{if (i<=11)
{h_f(j,i)=b96}}}

In the data section I have a dummy matrix for h_f

matrix h_f(1,90,1,25)

And in the parameter sections I have b96 as a bounded number with the initial value of 0.82 being read in from the starting estimate file.

init_bounded_number b96(0,1)

Does anyone know why I might be getting this error message?

Thanks,

Justin

_______________________________________________
Users mailing list
Users at admb-project.org<mailto:Users at admb-project.org>
http://lists.admb-project.org/mailman/listinfo/users

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


More information about the Users mailing list