<div dir="ltr">Hi,<div><br></div><div style>Beginner with ADMB here.  I am trying to read in a vector, which I then use to set up the bounds in my parameter section.  The code runs if I initialize the elements as numbers before I use them.  But it chokes if I directly reference the vector element.  See below for example code.  </div>
<div style><br></div><div style>Is there an elegant way of doing this without having to initialize lots of numbers just to set up the bounds? </div><div style><br></div><div style><div>DATA_SECTION</div><div>  init_vector x_input(1,2)</div>
<div>  </div><div>  number x_lb</div><div>  number x_ub</div><div>  !!x_lb = x_input[1];</div><div>  !!x_ub = x_input[2];</div><div>  </div><div>PARAMETER_SECTION</div><div>  init_bounded_number x(x_lb,x_ub) // works</div>
</div><div style>  init_bounded_number x(x_input[1], x_input[2]) // does NOT work  </div><div style><br></div><div style>Thanks.</div><div style><br></div><div style>Steve</div></div>