<?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: Two models in one OPTMODEL procedure in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Two-models-in-one-OPTMODEL-procedure/m-p/168945#M863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest approach here is to use the DROP statement (&lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_syntax11.htm" title="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_syntax11.htm"&gt;SAS/OR(R) 13.2 User's Guide: Mathematical Programming&lt;/A&gt;) to drop the first constraint:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop constr1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More generally, you can use the PROBLEM and USE PROBLEM statements to handle multiple problems within one PROC OPTMODEL session:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_details54.htm" title="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_details54.htm"&gt;SAS/OR(R) 13.2 User's Guide: Mathematical Programming&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Aug 2014 17:39:09 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2014-08-20T17:39:09Z</dc:date>
    <item>
      <title>Two models in one OPTMODEL procedure</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Two-models-in-one-OPTMODEL-procedure/m-p/168944#M862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;proc optmodel;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var a &amp;gt;= 0; var b &amp;gt;= 0;&lt;/P&gt;&lt;P&gt;con&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; constr1: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a + b &amp;lt;= 9&lt;/P&gt;&lt;P&gt;max&amp;nbsp;&amp;nbsp;&amp;nbsp; 5*a + 3*b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;solve ; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;con constr2:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a + b &amp;lt;= 12&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;max&amp;nbsp;&amp;nbsp; 3*a + 4*b&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;&lt;STRONG&gt;solve ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (question: how do change the code here, such that this solve only deals with the problem defined after the previous solve?)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 17:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Two-models-in-one-OPTMODEL-procedure/m-p/168944#M862</guid>
      <dc:creator>wutao9999</dc:creator>
      <dc:date>2014-08-20T17:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Two models in one OPTMODEL procedure</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Two-models-in-one-OPTMODEL-procedure/m-p/168945#M863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest approach here is to use the DROP statement (&lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_syntax11.htm" title="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_syntax11.htm"&gt;SAS/OR(R) 13.2 User's Guide: Mathematical Programming&lt;/A&gt;) to drop the first constraint:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop constr1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More generally, you can use the PROBLEM and USE PROBLEM statements to handle multiple problems within one PROC OPTMODEL session:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_details54.htm" title="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_details54.htm"&gt;SAS/OR(R) 13.2 User's Guide: Mathematical Programming&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2014 17:39:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Two-models-in-one-OPTMODEL-procedure/m-p/168945#M863</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2014-08-20T17:39:09Z</dc:date>
    </item>
  </channel>
</rss>

