<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Optmodel - &amp;quot;Algorithm failed to converge&amp;quot; in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77212#M545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - I got it -&amp;nbsp; i need to put it after SOLVE&amp;nbsp; eg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOLVE WITH NLPC /TECH=QUANEW RELOPTTOL=0.00001;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming back to my FD=CENTRAL -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC OPTMODEL INITVAR PRINTLEVEL=2 FD=CENTRAL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get more or less the same result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;NOTE: The problem has 10 variables (0 free, 0 fixed).&lt;/P&gt;&lt;P&gt;NOTE: The problem has 1 linear constraints (0 LE, 1 EQ, 0 GE, 0 range).&lt;/P&gt;&lt;P&gt;NOTE: The problem has 10 linear constraint coefficients.&lt;/P&gt;&lt;P&gt;NOTE: The problem has 0 nonlinear constraints (0 LE, 0 EQ, 0 GE, 0 range).&lt;/P&gt;&lt;P&gt;NOTE: Using numeric derivative approximations for objective.&lt;/P&gt;&lt;P&gt;NOTE: Initial point was changed to be feasible to bound and linear constraints.&lt;/P&gt;&lt;P&gt;NOTE: The experimental quasi-Newton method with BFGS update is used.&lt;/P&gt;&lt;P&gt;NOTE: Optimality criteria (ABSOPTTOL=0.001, RELOPTTOL=1E-6) are satisfied.&lt;/P&gt;&lt;P&gt;NOTE: Objective = 0.5377052804.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.OPT_STAT has 6 observations and 3 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.OPT_RESULT has 10 observations and 3 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Oct 2013 21:41:15 GMT</pubDate>
    <dc:creator>tom12122</dc:creator>
    <dc:date>2013-10-23T21:41:15Z</dc:date>
    <item>
      <title>Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77202#M535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When I execute OPTMODEL procedure I get, in certain circumstances message that "Algorithm failed to converge.". What exaclty that mean? Is there a way (options: maxiter, tech ?) to somehow get successfull optimal solution? Does it mean that the problem has no solution - as far as I investigated It should have optimal solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attach sample data and SAS code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: tsf sfsdf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 08:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77202#M535</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2013-09-10T08:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77203#M536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As the message states an optimal solution could not be provided due to the underlying algorithm failing to converge. This could be due to the solver you have specified in your code (or from using the default solver). As you haven't provided your code it is difficult to know what it could be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some information on numerical difficulties and suggestions can be found in the SAS/OR user guide, &lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/66107/HTML/default/viewer.htm#ormpug_concepts_sect006.htm" title="http://support.sas.com/documentation/cdl/en/ormpug/66107/HTML/default/viewer.htm#ormpug_concepts_sect006.htm"&gt;SAS/OR(R) 12.3 User's Guide: Mathematical Programming&lt;/A&gt; As the page suggests you may also want to try a different solver and algorithm in PROC OPTMODEL using the SOLVER= option on the SOLVE statement, &lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/66107/HTML/default/viewer.htm#ormpug_optmodel_sect027.htm#ormpug.optmodel.npxsolvestmt"&gt;http://support.sas.com/documentation/cdl/en/ormpug/66107/HTML/default/viewer.htm#ormpug_optmodel_sect027.htm#ormpug.optmodel.npxsolvestmt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other thoughts are to look at using initial values (or not) and also perhaps use a presolver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 12:59:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77203#M536</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2013-09-10T12:59:08Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77204#M537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I attached sample SAS code and files&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 11:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77204#M537</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2013-09-13T11:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77205#M538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you help with this problem? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 13:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77205#M538</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2013-10-09T13:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77206#M539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are looking at this problem, and will let you know. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 18:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77206#M539</guid>
      <dc:creator>wezhou</dc:creator>
      <dc:date>2013-10-21T18:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77207#M540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We noticed that your objective has the form g1(x)/sqrt(g2(x)) where g2(x) appears to be very small when it is close to the solution.&amp;nbsp; Further g2(x) is realized by summing a number of terms together.&amp;nbsp; Numerical issues can occur whenever the individual terms in the summation are much larger than the cumulative result. It appears that most of the solvers we tried for your&amp;nbsp; problem converge to the same point (we believe that it is an optimal solution) with the current formulation, but are unable to exit due to the optimality tolerance. One solution is to simply relax the tolerance for this problem.&amp;nbsp; Alternatively, sometimes simple reformulations can improve convergence. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is an equivalent variation that is quickly solved by optmodel’s nlp solver.&amp;nbsp; Note that for the same attached reformulation we tried NLPC. NLPC appears to stop when the objective surpasses a given threshold for an infeasible solution.&amp;nbsp; In general we suggest using the newer solvers and have found them to be more robust in the presence of general nonlinear constraints.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Attached are the new model and corresponding log file from the nlp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please feel free to ask if you have any new questions.&amp;nbsp; Also, please feel free to use SAS’s defect track system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #44546a;"&gt;&lt;A class="active_link" href="http://support.sas.com/ctx/supportform//createForm"&gt;http://support.sas.com/ctx/supportform//createForm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 18:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77207#M540</guid>
      <dc:creator>wezhou</dc:creator>
      <dc:date>2013-10-23T18:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77208#M541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you tell me what option should I use in solution one - to "relax the tolerance for this problem"? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 19:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77208#M541</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2013-10-23T19:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77209#M542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try solver option: opttol. For example, set opttol=1.0e-4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 20:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77209#M542</guid>
      <dc:creator>wezhou</dc:creator>
      <dc:date>2013-10-23T20:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77210#M543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using SAS 9.2 - is that option also available in my version?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way - by accident I used option "FD=CENTRAL" and it seems to cause problem to disapear - Is it just a coincidence?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 20:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77210#M543</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2013-10-23T20:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77211#M544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may try RELOPTTOL for&amp;nbsp; SAS 9.2. You can set RELOPTTOL=1.0e-4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;FD=CENTRAL&lt;/SPAN&gt;, I cannot reproduce what you described.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 21:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77211#M544</guid>
      <dc:creator>wezhou</dc:creator>
      <dc:date>2013-10-23T21:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77212#M545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok - I got it -&amp;nbsp; i need to put it after SOLVE&amp;nbsp; eg. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SOLVE WITH NLPC /TECH=QUANEW RELOPTTOL=0.00001;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming back to my FD=CENTRAL -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC OPTMODEL INITVAR PRINTLEVEL=2 FD=CENTRAL;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get more or less the same result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;NOTE: The problem has 10 variables (0 free, 0 fixed).&lt;/P&gt;&lt;P&gt;NOTE: The problem has 1 linear constraints (0 LE, 1 EQ, 0 GE, 0 range).&lt;/P&gt;&lt;P&gt;NOTE: The problem has 10 linear constraint coefficients.&lt;/P&gt;&lt;P&gt;NOTE: The problem has 0 nonlinear constraints (0 LE, 0 EQ, 0 GE, 0 range).&lt;/P&gt;&lt;P&gt;NOTE: Using numeric derivative approximations for objective.&lt;/P&gt;&lt;P&gt;NOTE: Initial point was changed to be feasible to bound and linear constraints.&lt;/P&gt;&lt;P&gt;NOTE: The experimental quasi-Newton method with BFGS update is used.&lt;/P&gt;&lt;P&gt;NOTE: Optimality criteria (ABSOPTTOL=0.001, RELOPTTOL=1E-6) are satisfied.&lt;/P&gt;&lt;P&gt;NOTE: Objective = 0.5377052804.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.OPT_STAT has 6 observations and 3 variables.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.OPT_RESULT has 10 observations and 3 variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Oct 2013 21:41:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77212#M545</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2013-10-23T21:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Optmodel - "Algorithm failed to converge"</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77213#M546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thing that you can try is to multiply a number on the objective function (for example, 1.0e-3). It sometimes helps the convergence. It is mainly to do with the better scaling for the multipliers of the constraints.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Oct 2013 15:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Optmodel-quot-Algorithm-failed-to-converge-quot/m-p/77213#M546</guid>
      <dc:creator>wezhou</dc:creator>
      <dc:date>2013-10-24T15:51:18Z</dc:date>
    </item>
  </channel>
</rss>

