<?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 SAS's in built financial functions in PROC OPTMODEL in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150596#M789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gergely. Turns out something was wrong with the parameters being submitted for CUMPRINC. Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 09:04:54 GMT</pubDate>
    <dc:creator>Parixit</dc:creator>
    <dc:date>2015-02-04T09:04:54Z</dc:date>
    <item>
      <title>Using SAS's in built financial functions in PROC OPTMODEL</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150593#M786</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;I am using PROC OPTMODEL to optimize interest rate 'i' . The objective function tries to maximize cash flows that are calculated using different in built SAS functions such as CUMPRINC which take 'i' as one of its input parameters. The result on running the PROC is that it is not able to calculate the initial value of the objective function. After playing around a bit we realized that the reason for it might be that CUMPRINC cannot be called from within OPTMODEL. Is there a specific syntax to call functions like CUMPRINC from within OPTMODEL? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Parikshit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 11:09:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150593#M786</guid>
      <dc:creator>Parixit</dc:creator>
      <dc:date>2015-02-03T11:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS's in built financial functions in PROC OPTMODEL</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150594#M787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An example that runs in SAS/OR 13.1 (only syntactically correct):&lt;/P&gt;&lt;P&gt;proc optmodel;&lt;/P&gt;&lt;P&gt;var rate init 0.09/12;&lt;/P&gt;&lt;P&gt;max xx=cumprinc(rate, 360, 125000, 12, 24, 0) - cumprinc(rate, 300, 125000, 12, 24, 0);&lt;/P&gt;&lt;P&gt;solve;&lt;/P&gt;&lt;P&gt;put rate;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What did you try? What is the version of SAS/OR you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 13:21:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150594#M787</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2015-02-03T13:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS's in built financial functions in PROC OPTMODEL</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150595#M788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Gergely points out, the financial functions are supported in PROC OPTMODEL.&amp;nbsp; And the documentation contains such an example:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/ormpex/67518/HTML/default/viewer.htm#ormpex_ex8_toc.htm" title="http://support.sas.com/documentation/cdl/en/ormpex/67518/HTML/default/viewer.htm#ormpex_ex8_toc.htm"&gt;SAS/OR(R) 13.2 User's Guide: Mathematical Programming Examples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend one of the following remedies:&lt;/P&gt;&lt;P&gt;1. trying different initial values for the variables used in the function&lt;/P&gt;&lt;P&gt;2. using the MULTISTART option in the SOLVE WITH NLP statement: &lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_nlpsolver_syntax02.htm" title="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_nlpsolver_syntax02.htm"&gt;SAS/OR(R) 13.2 User's Guide: Mathematical Programming&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. using the NOINITVAR option in the PROC OPTMODEL statement: &lt;A href="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_syntax02.htm" title="http://support.sas.com/documentation/cdl/en/ormpug/67517/HTML/default/viewer.htm#ormpug_optmodel_syntax02.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>Tue, 03 Feb 2015 14:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150595#M788</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2015-02-03T14:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS's in built financial functions in PROC OPTMODEL</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150596#M789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gergely. Turns out something was wrong with the parameters being submitted for CUMPRINC. Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 09:04:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150596#M789</guid>
      <dc:creator>Parixit</dc:creator>
      <dc:date>2015-02-04T09:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using SAS's in built financial functions in PROC OPTMODEL</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150597#M790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob. I was submitting infeasible paramters to CUMPRINC via a loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 09:05:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Using-SAS-s-in-built-financial-functions-in-PROC-OPTMODEL/m-p/150597#M790</guid>
      <dc:creator>Parixit</dc:creator>
      <dc:date>2015-02-04T09:05:54Z</dc:date>
    </item>
  </channel>
</rss>

