<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} @font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
        {}--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>The logarithm of a negative number is undefined, so it does not make sense to evaluate the function for x<=0. So I'd suggest to lower bound x to zero or a small number, assuming that x is an optimisation variable. The function should then not be evaluated
 for x<=0.<br>
</p>
<p><br>
</p>
<p>Filip <br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>Van:</b> Ipopt <ipopt-bounces@coin-or.org> namens Maxime Boulay <mboulay@flogen.com><br>
<b>Verzonden:</b> dinsdag 28 november 2017 22:26<br>
<b>Aan:</b> Ipopt@list.coin-or.org<br>
<b>CC:</b> RMerdjani@flogen.com<br>
<b>Onderwerp:</b> [Ipopt] Question concerning presence of indefinite terms in function</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am using ipopt to solve an objective function which contains an expression of the form x*log(x/(a+x)). This results in a derivative of the form log(x/(a+x)) and a second derivative of the form a/(x*(x+a)) when considering other terms
 in the function. Since this will lead to problems whenever x = 0 or x < 0, I am not sure about the best way to treat those cases. I have tried equating the expression to 0 whenever those cases are met but this seems wrong since the expression doesn’t tend
 to 0 when approaching the critical values. This also seems to slow down the time taken to find a solution whenever the initial values given or the solution include an x=0.
</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Given the fact that many of these may pop out since the function includes a summation, what would be the most efficient and correct way to deal with this?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thank you.</p>
<p class="MsoNormal" style="text-indent:.5in"> </p>
</div>
</div>
</div>
</body>
</html>