Revision 1617

trunk/tests/xml/ADMB_XMLDoc.cpp (revision 1617)
933 933
   int d = atoi(s.c_str());
934 934
   return(d);
935 935
}
936
 
937 936

  
937
dvector ADMB_XMLDoc::getControlVector(const string& name) const
938
{
939
   dvector lui(1,3);
940
   lui(1) = getPhase(name);
941
   lui(2) = getMinb(name);
942
   lui(3) = getMaxb(name);
943
   return(lui);
944
}
945

  
938 946
/*
939 947
    <index>
940 948
      <nrl>1</nrl>
......
1022 1030
}
1023 1031

  
1024 1032
/**
1025
 * @param xname absolute element xpath
1033
 * @param xpathfull absolute element xpath
1026 1034
 */
1027 1035
string ADMB_XMLDoc::getContentString(const string& xpathfull) const 
1028 1036
{
trunk/tests/xml/ADMB_XMLDoc.h (revision 1617)
126 126
   double getMinb(const string& name) const;
127 127
   double getMaxb(const string& name) const;
128 128
   int getPhase(const string& name) const;
129
   /** Returns 3 element "lui" control vector form inint_bounded_number node.
130
   \param name Name of the variable in the tpl file to be querried.
131
   \return dvector indexed from 1 to 3. 
132
   lui(1): estimation phase; 
133
   lui(2): lower bound; 
134
   lui(3): upper bound.
135
   */
136
   dvector getControlVector(const string& name) const;
129 137
   ivector getIvector(const string& name) const;
130 138
   ivector getIvector(const string& name, const int lb, const int ub) const; 
131 139
   dvector getDvector(const string& name) const;
trunk/tests/xml/tpl2cpp.lex (revision 1617)
586 586

  
587 587
<DEFINE_DATA>init_number {
588 588
    likelihood_found=1;
589
    BEGIN INIT_BOUNDED_NUMBER_DEF;
589
    BEGIN IN_NUMBER_DEF;
590 590
    fprintf(fdat,"%s","  data_number ");
591 591
                     }
592 592

  

Also available in: Unified diff