<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>&nbsp;Dear&nbsp;Mr.&nbsp;Pietro&nbsp;Belotti&nbsp;:<BR>&nbsp;The self-defined error function is compiled into a .dll file and I can call it in AMPL command window. I followed this blog <A href="http://benlockwood.com/2012/01/11/calculating-the-normal-cdf-in-ampl-with-shared-libraries/#comment-105">http://benlockwood.com/2012/01/11/calculating-the-normal-cdf-in-ampl-with-shared-libraries/#comment-105</A>&nbsp;to do so. Will this do?</DIV>
<DIV>&nbsp;Yours sincerely,</DIV>
<DIV>&nbsp;Mu Zhang<BR></DIV>
<DIV></DIV>
<DIV id="divNeteaseMailCard"></DIV>
<DIV><BR></DIV><PRE><BR>At&nbsp;2012-05-31&nbsp;21:29:57,"Pietro&nbsp;Belotti"&nbsp;&lt;pbelott@clemson.edu&gt;&nbsp;wrote:
&gt;Mu,
&gt;
&gt;unfortunately,&nbsp;self-defined&nbsp;functions&nbsp;cannot&nbsp;be&nbsp;used&nbsp;in&nbsp;Couenne&nbsp;and&nbsp;will&nbsp;
&gt;give&nbsp;that&nbsp;error.&nbsp;The&nbsp;reason&nbsp;is&nbsp;that&nbsp;Couenne&nbsp;decomposes&nbsp;the&nbsp;expression&nbsp;of&nbsp;
&gt;each&nbsp;function&nbsp;in&nbsp;constraints&nbsp;and&nbsp;the&nbsp;objective,&nbsp;and&nbsp;cannot&nbsp;do&nbsp;that&nbsp;for&nbsp;
&gt;user-defined&nbsp;functions.&nbsp;It&nbsp;would&nbsp;be&nbsp;possible&nbsp;to&nbsp;solve&nbsp;your&nbsp;problem&nbsp;if&nbsp;you&nbsp;
&gt;knew&nbsp;a&nbsp;closed-form&nbsp;approximation&nbsp;of&nbsp;your&nbsp;error&nbsp;function&nbsp;(as&nbsp;I&nbsp;think&nbsp;the&nbsp;
&gt;myerf&nbsp;means).
&gt;
&gt;Also,&nbsp;in&nbsp;the&nbsp;future&nbsp;please&nbsp;consider&nbsp;posting&nbsp;your&nbsp;questions&nbsp;to&nbsp;the&nbsp;Couenne&nbsp;
&gt;mailing&nbsp;list&nbsp;(couenne@list.coin-or.org),&nbsp;so&nbsp;that&nbsp;people&nbsp;can&nbsp;see&nbsp;answers&nbsp;to&nbsp;
&gt;previous&nbsp;questions.
&gt;
&gt;I&nbsp;hope&nbsp;this&nbsp;helps.&nbsp;Regards,
&gt;Pietro
&gt;
&gt;
&gt;--
&gt;Pietro&nbsp;Belotti
&gt;Dept.&nbsp;of&nbsp;Mathematical&nbsp;Sciences
&gt;Clemson&nbsp;University
&gt;email:&nbsp;pbelott@clemson.edu
&gt;phone:&nbsp;864-656-6765
&gt;web:&nbsp;&nbsp;&nbsp;http://myweb.clemson.edu/~pbelott
&gt;
&gt;On&nbsp;Thu,&nbsp;31&nbsp;May&nbsp;2012,&nbsp;scrat_zhang&nbsp;wrote:
&gt;
&gt;&gt;&nbsp;Dear&nbsp;Mr.&nbsp;Pietro&nbsp;Belotti&nbsp;:
&gt;&gt;&nbsp;I&nbsp;am&nbsp;recently&nbsp;applying&nbsp;Couenne&nbsp;on&nbsp;my&nbsp;work,&nbsp;and&nbsp;I&nbsp;got&nbsp;a&nbsp;error&nbsp;saying:
&gt;&gt;&nbsp;&nbsp;
&gt;&gt;&nbsp;&nbsp;ANALYSIS&nbsp;TEST:&nbsp;ERROR&nbsp;:&nbsp;unknown&nbsp;operator&nbsp;(address&nbsp;0p7436c0)&nbsp;,&nbsp;aborting&nbsp;.
&gt;&gt;&nbsp;&nbsp;exit&nbsp;code&nbsp;4294967295
&gt;&gt;&nbsp;&nbsp;(BREAK)
&gt;&gt;&nbsp;&nbsp;
&gt;&gt;&nbsp;I&nbsp;wonder&nbsp;what&nbsp;is&nbsp;error&nbsp;may&nbsp;be&nbsp;ocurr&nbsp;in&nbsp;my&nbsp;.mod&nbsp;file&nbsp;cause&nbsp;I&nbsp;don't&nbsp;
&gt;&gt;&nbsp;recognize&nbsp;the&nbsp;"address"&nbsp;code.&nbsp;I&nbsp;used&nbsp;a&nbsp;self-defined&nbsp;error&nbsp;function&nbsp;
&gt;&gt;&nbsp;called&nbsp;"myerf"&nbsp;in&nbsp;the&nbsp;code,&nbsp;for&nbsp;the&nbsp;record,&nbsp;don't&nbsp;know&nbsp;if&nbsp;it&nbsp;is&nbsp;because&nbsp;
&gt;&gt;&nbsp;of&nbsp;this.
&gt;&gt;&nbsp;&nbsp;
&gt;&gt;&nbsp;Hope&nbsp;you&nbsp;could&nbsp;provide&nbsp;some&nbsp;guidance&nbsp;on&nbsp;this&nbsp;issue&nbsp;and&nbsp;I&nbsp;also&nbsp;wish&nbsp;to&nbsp;
&gt;&gt;&nbsp;know&nbsp;how&nbsp;can&nbsp;I&nbsp;debug&nbsp;in&nbsp;Couenne.
&gt;&gt;&nbsp;&nbsp;
&gt;&gt;&nbsp;Thanks&nbsp;very&nbsp;much&nbsp;for&nbsp;your&nbsp;reading&nbsp;this&nbsp;and&nbsp;hope&nbsp;to&nbsp;hear&nbsp;from&nbsp;you!
&gt;&gt;&nbsp;&nbsp;
&gt;&gt;&nbsp;Yours&nbsp;sincerely&nbsp;,
&gt;&gt;&nbsp;Mu&nbsp;Zhang
</PRE></div>