<?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: Stopping SAS PROC OPTMODEL earlier when objective function reaches a certain value in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Stopping-SAS-PROC-OPTMODEL-earlier-when-objective-function/m-p/933262#M4165</link>
    <description>Thank you. This does the trick!</description>
    <pubDate>Fri, 21 Jun 2024 09:50:28 GMT</pubDate>
    <dc:creator>JVenter4Absa</dc:creator>
    <dc:date>2024-06-21T09:50:28Z</dc:date>
    <item>
      <title>Stopping SAS PROC OPTMODEL earlier when objective function reaches a certain value</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Stopping-SAS-PROC-OPTMODEL-earlier-when-objective-function/m-p/933256#M4163</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make matters simple, I have two equations of the form f(x) and g(x), and I would like to solve for the value of x that results in f(x) = g(x). I'm using PROC OPTMODEL where the objective is to minimize z(x)=f(x)-g(x) by changing the variable x. Obviously, the value of x that produces z(x) = 0 gives the perfect solution. However, suppose that I am satisfied if z(x) is less than or equal to some value epsilon, i.e., PROC OPTMODEL can terminate and give me the value of x as soon as z(x) &amp;lt;= epsilon (epsilon can be something like 0.005). How can I specify this in my PROC OPTMODEL options? My PROC OPTMODEL statement uses "min z_x = abs (f_x - g_x); solve with nlp / algorithm=interiorpoint maxiter=30;"&lt;BR /&gt;&lt;BR /&gt;P.S. I note that after about 5 to 10 iterations, PROC OPTMODEL gets to a point where z(x) is really small (e.g., z(x) = 0.00001234...), but then it continues in an attempt to minimize z(x). For this reason, I've incorporated a "maxiter=30" option in the PROC OPTMODEL code.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 08:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Stopping-SAS-PROC-OPTMODEL-earlier-when-objective-function/m-p/933256#M4163</guid>
      <dc:creator>JVenter4Absa</dc:creator>
      <dc:date>2024-06-21T08:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping SAS PROC OPTMODEL earlier when objective function reaches a certain value</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Stopping-SAS-PROC-OPTMODEL-earlier-when-objective-function/m-p/933257#M4164</link>
      <description>Try &lt;BR /&gt;min z_x = abs (f_x - g_x);&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;min z_x = (f_x - g_x)**2;&lt;BR /&gt;&lt;BR /&gt;Which is a smooth function could get its derivatives, while abs() could not.</description>
      <pubDate>Fri, 21 Jun 2024 09:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Stopping-SAS-PROC-OPTMODEL-earlier-when-objective-function/m-p/933257#M4164</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-06-21T09:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping SAS PROC OPTMODEL earlier when objective function reaches a certain value</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Stopping-SAS-PROC-OPTMODEL-earlier-when-objective-function/m-p/933262#M4165</link>
      <description>Thank you. This does the trick!</description>
      <pubDate>Fri, 21 Jun 2024 09:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Stopping-SAS-PROC-OPTMODEL-earlier-when-objective-function/m-p/933262#M4165</guid>
      <dc:creator>JVenter4Absa</dc:creator>
      <dc:date>2024-06-21T09:50:28Z</dc:date>
    </item>
  </channel>
</rss>

