<br clear="all">Hi, everyone<div><br><div>There is no SetMaximumNumberOfIterations() in itkConjugateGradientOptimizer and I write it to set maximum number of iterations, the code is :</div><div><div>void </div><div>ConjugateGradientOptimizer</div>
<div>::SetMaximumNumberOfIterations( unsigned int n )</div><div>{ </div><div> if( m_MaximumNumberOfIterations == n )</div><div> {</div><div> return;</div><div> }</div><div> m_MaximumNumberOfIterations = n;</div>
<div> if( m_OptimizerInitialized )</div><div> {</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> m_vnlOptimizer->set_max_function_evals( m_MaximumNumberOfIterations );</div><div> }</div><div>
this->Modified();</div><div>}</div><div><br></div><div>This is similar with the method used in itkLBFGSBOptimizer.cxx </div><div><br></div><div>My problem is </div><div>1.m_MaximumNumberOfIterations has not been allocated as a member of the optimizer I have created using New() method. </div>
<div>2. When I debugging, it shows that "The source file is different from when the module was built" <font class="Apple-style-span" face="Arial, 'Microsoft Yahei', Simsun, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: nowrap;"> though I have rebuilt the program many times.</span></font></div>
<div><font class="Apple-style-span" face="Arial, 'Microsoft Yahei', Simsun, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: nowrap;"><br></span></font></div><div><font class="Apple-style-span" face="Arial, 'Microsoft Yahei', Simsun, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: nowrap;">Thanks in advance.</span></font></div>
-- <br>Best Regards<br> 李 莹<br>北京理工大学<br>信息与电子学院<br>Beijing Institute of Technology<br>School of Information and Electronics<br>
</div></div>