<?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: Using macro inside proc optmodel in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142321#M762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does proc fcmp not let you create your own functions?&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002890484.htm" title="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002890484.htm"&gt;Base SAS(R) 9.2 Procedures Guide&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 04:11:32 GMT</pubDate>
    <dc:creator>BrianDoesSas</dc:creator>
    <dc:date>2014-01-16T04:11:32Z</dc:date>
    <item>
      <title>Using macro inside proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142319#M760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to solve a optimization problem where my objective function includes call of a user defined function. Since SAS do not allow us to create a user-defined function I have to use a macro to use it as if it is a function. &lt;/P&gt;&lt;P&gt;I am stating my problem mathematically below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var x, y; &lt;/P&gt;&lt;P&gt;min z =x**2-x-2*y-x*y+y**2+function(x,y);&amp;nbsp; &lt;/P&gt;&lt;P&gt;solve; &lt;/P&gt;&lt;P&gt;print x y; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function (x,y)=x+y;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above function is very simple but it is analogous to my function which is very complicated. &lt;/P&gt;&lt;P&gt;So how should I do this kind of optimization in SAS using proc optmodel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your support. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 19:22:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142319#M760</guid>
      <dc:creator>gupta_shubham</dc:creator>
      <dc:date>2014-01-15T19:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro inside proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142320#M761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have SAS/OR 13.1, this link should help: &lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/66851/HTML/default/viewer.htm#ormpug_optmodel_details61.htm" title="http://support.sas.com/documentation/cdl/en/ormpug/66851/HTML/default/viewer.htm#ormpug_optmodel_details61.htm"&gt;SAS/OR(R) 13.1 User's Guide: Calling FCMP functions from PROC OPTMODEL&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 03:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142320#M761</guid>
      <dc:creator>LeoLopes</dc:creator>
      <dc:date>2014-01-16T03:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro inside proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142321#M762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does proc fcmp not let you create your own functions?&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002890484.htm" title="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a002890484.htm"&gt;Base SAS(R) 9.2 Procedures Guide&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 04:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142321#M762</guid>
      <dc:creator>BrianDoesSas</dc:creator>
      <dc:date>2014-01-16T04:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro inside proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142322#M763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I want to use data step inside the function. And I can't use data step inside fcmp functions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 06:19:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142322#M763</guid>
      <dc:creator>gupta_shubham</dc:creator>
      <dc:date>2014-01-16T06:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro inside proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142323#M764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the data change in real time? If not, you might be able to load it into PROC OPTMODEL sets and arrays, write an impvar that does the same function evaluation, then use that impvar in your objective.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 14:14:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142323#M764</guid>
      <dc:creator>LeoLopes</dc:creator>
      <dc:date>2014-01-16T14:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using macro inside proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142324#M765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes data changes are required in real time. So loading data at the start of optmodel won't going to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 15:06:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-macro-inside-proc-optmodel/m-p/142324#M765</guid>
      <dc:creator>gupta_shubham</dc:creator>
      <dc:date>2014-01-16T15:06:42Z</dc:date>
    </item>
  </channel>
</rss>

