<DIV>hi fournier,</DIV>
<DIV> this is my code :</DIV>
<DIV>int main()<BR>{<BR> int nvar=60;<BR> independent_variables x(1,nvar);<BR> x.initialize();<BR> double f;<BR> dvector g(1,nvar);<BR> dmatrix dHessian(1,nvar,1,nvar);<BR> fmm fmc(nvar); // creates the function minimizing control structure<BR> fmc.crit=0.000001;<BR> /////////////////////////////////////////////////////<BR> gradient_structure gs;<BR> while(fmc.ireturn>=0)// <BR> {//<BR> fmc.fmin(f,x,g);<BR> if(fmc.ireturn>0)<BR> {<BR> f=func2(x);<BR> gradcalc(nvar,g);<BR> }<BR> }<BR> //dHessian=fmc.hessian();<BR> cout << "The minimum value = " << "at x =\n"<BR> << x <<"\n"<<"G"<<g<<f<< "\n";<BR> return 0;<BR>}<BR>I delete dHessian=fmc.hessian(), the program run ok,but when i add dHessian=fmc.hessian(), the following error happened : error LNK2001: unresolved external symbol "public: class dmatrix & __thiscall fmm::hessian(void)" (<A href="mailto:?hessian@fmm@@QAEAAVdmatrix@@XZ">?hessian@fmm@@QAEAAVdmatrix@@XZ</A>).</DIV>
<DIV> thank you for your help.</DIV>
<DIV>sgwj</DIV>
<DIV><BR> </DIV><PRE><BR>At 2010-10-11 12:28:44,"dave fournier" <davef@otter-rsch.com> wrote:
>This sounds totally destined to fail. I think you should tell us what
>you want
>to accomplish.
>_______________________________________________
>Users mailing list
>Users@admb-project.org
>http://lists.admb-project.org/mailman/listinfo/users
</PRE><br><br><span title="neteasefooter"><span id="netease_mail_footer"><hr/>
<a href="http://yxp.163.com/photo/ep.html?sss=fromyx0911" target="_blank">全国最低价,天天在家冲照片,24小时发货上门!</a>
</span></span>