<?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: portfolio optimization under nonlinear constraint in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303800#M3041</link>
    <description>&lt;P&gt;Great!!! Thank you so much!&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2016 14:46:49 GMT</pubDate>
    <dc:creator>JANET1987</dc:creator>
    <dc:date>2016-10-11T14:46:49Z</dc:date>
    <item>
      <title>portfolio optimization under nonlinear constraint</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303005#M3032</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this program I’m trying to maximize portfolio skewness under constraints.&lt;/P&gt;&lt;P&gt;Nevertheless , I have one more problem. In my case, I have one linear constraint and one Nonlinear constraint (quartic constraint about portfolio kurtosis which is less than a scalar). As I understand while reading &amp;nbsp;chapter 14 about Nonlinear optimization examples, I must use &lt;STRONG&gt;NLPQN&lt;/STRONG&gt; instead of &lt;STRONG&gt;NLPNRA&lt;/STRONG&gt;! IS that sufficient?&lt;/P&gt;&lt;P&gt;In the other hand, I still think about the mining of &lt;STRONG&gt;“optn”&lt;/STRONG&gt;! and if &lt;STRONG&gt;x0&lt;/STRONG&gt; must take always only two initial values?&lt;/P&gt;&lt;P&gt;Finally, I want to state decision variables wi as positive, I question whether it been subject to a further constraint.&lt;/P&gt;&lt;P&gt;Sorry for those lots of questions. Thank you in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;iml&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;M3 = {&lt;STRONG&gt;32&lt;/STRONG&gt; &lt;STRONG&gt;-7&lt;/STRONG&gt; &lt;STRONG&gt;-7&lt;/STRONG&gt; &lt;STRONG&gt;-8&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;-7&lt;/STRONG&gt; &lt;STRONG&gt;-8&lt;/STRONG&gt; &lt;STRONG&gt;-8&lt;/STRONG&gt; &lt;STRONG&gt;17&lt;/STRONG&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;start skpf(p) global(M3);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; w = p`;&amp;nbsp;&amp;nbsp; /* w is column vector */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; return w` * M3 * (w@w);&lt;/P&gt;&lt;P&gt;finish;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* specify linear constraints&amp;nbsp; */&lt;/P&gt;&lt;P&gt;con = { &lt;STRONG&gt;0&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;0&lt;/STRONG&gt;&amp;nbsp; .&amp;nbsp;&amp;nbsp; .,&amp;nbsp; /* min w[i]&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;1&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;1&lt;/STRONG&gt;&amp;nbsp; .&amp;nbsp;&amp;nbsp; .,&amp;nbsp; /* max w[i]&amp;nbsp;&amp;nbsp; */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;1&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;1&lt;/STRONG&gt;&amp;nbsp; &lt;STRONG&gt;0&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;1&lt;/STRONG&gt;}; /* sum(w) = 1 */&lt;/P&gt;&lt;P&gt;x0 = {&lt;STRONG&gt;0.5&lt;/STRONG&gt; &lt;STRONG&gt;0.5&lt;/STRONG&gt;};&lt;/P&gt;&lt;P&gt;optn = {&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* maximize objective function */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;1&lt;/STRONG&gt; }; /* summarize iteration history */&lt;/P&gt;&lt;P&gt;call nlpnra(rc, xOpt, "skpf", x0, optn, con);&lt;/P&gt;&lt;P&gt;maxVal = skpf(xOpt);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;print&lt;/STRONG&gt; rc, xOpt maxVal;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 18:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303005#M3032</guid>
      <dc:creator>JANET1987</dc:creator>
      <dc:date>2016-10-06T18:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio optimization under nonlinear constraint</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303099#M3033</link>
      <description>&lt;P&gt;Yes. If you have nonlinear constraint , you have to switch into NLPQN.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you have three assets , then you have to have three initial value for x0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;con={} already constraint &amp;nbsp; &amp;nbsp;0&amp;lt;= w1 ,w2 &amp;lt;=1,&lt;/P&gt;
&lt;P&gt;if you have nonlinear constrain condition,you need add one more option in it.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2016 04:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303099#M3033</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-07T04:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio optimization under nonlinear constraint</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303519#M3038</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much! Your recommandations are&amp;nbsp;highly appreciated. I'm still trying to solve the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 09:48:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303519#M3038</guid>
      <dc:creator>JANET1987</dc:creator>
      <dc:date>2016-10-10T09:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio optimization under nonlinear constraint</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303564#M3039</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry, but what about if I have 500 assets, should I have 500 initial values for X0?&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 15:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303564#M3039</guid>
      <dc:creator>JANET1987</dc:creator>
      <dc:date>2016-10-10T15:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio optimization under nonlinear constraint</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303745#M3040</link>
      <description>&lt;P&gt;Yes. I think so .&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can easily define it as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x0=j{1,500,1}/500;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 11:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303745#M3040</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-11T11:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: portfolio optimization under nonlinear constraint</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303800#M3041</link>
      <description>&lt;P&gt;Great!!! Thank you so much!&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 14:46:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/portfolio-optimization-under-nonlinear-constraint/m-p/303800#M3041</guid>
      <dc:creator>JANET1987</dc:creator>
      <dc:date>2016-10-11T14:46:49Z</dc:date>
    </item>
  </channel>
</rss>

