<?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 Where the Procblems occured in the PROC NLP? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Where-the-Procblems-occured-in-the-PROC-NLP/m-p/61014#M17298</link>
    <description>HI,ALL.&lt;BR /&gt;
Then,why The Codes produce different values(W1 W2....W5) in different running with the same codes.&lt;BR /&gt;
Many thanks!&lt;BR /&gt;
When I use the NLP PROCEDURE；The simplify Codes as follows:&lt;BR /&gt;
proc nlp outest = OutData;&lt;BR /&gt;
    max Sharp;&lt;BR /&gt;
    decvar W1 W2 W3 W4 W5;&lt;BR /&gt;
	Rf = 0.035; &lt;BR /&gt;
    SigmaSquare1  = W1*W1 + W2*W2 + W3*W3 + W4*W4 + W5*W5;&lt;BR /&gt;
   SigmaSquare21 = 2*(W1*W2 + W1*W3 + W1*W4 + W1*W5);&lt;BR /&gt;
   SigmaSquare22 = 2*(W2*W3 + W2*W4 + W2*W5);&lt;BR /&gt;
  SigmaSquare23 = 2*(W3*W4 + W3*W5);&lt;BR /&gt;
  SigmaSquare24 = 2*(W4*W5);&lt;BR /&gt;
  SigmaSquare = SigmaSquare1 + SigmaSquare21 + SigmaSquare22 + SigmaSquare23 + SigmaSquare24;&lt;BR /&gt;
  Return = W1 +  W2 + W3 + W4 + W5;&lt;BR /&gt;
  Sharp = (Return - Rf)/sqrt(SigmaSquare);&lt;BR /&gt;
   bounds 0 &amp;lt;= W1 &amp;lt;= 1,0 &amp;lt;= W2 &amp;lt;= 1,0 &amp;lt;= W3 &amp;lt;= 1,0 &amp;lt;= W4 &amp;lt;= 1,0 &amp;lt;= W5 &amp;lt;= 1;&lt;BR /&gt;
   lincon W1 + W2 + W3 + W4 + W5 = 1;&lt;BR /&gt;
run;&lt;BR /&gt;
Message was edited by: Winsentess

Message was edited by: Winsentess</description>
    <pubDate>Tue, 03 May 2011 06:20:05 GMT</pubDate>
    <dc:creator>Winsentess</dc:creator>
    <dc:date>2011-05-03T06:20:05Z</dc:date>
    <item>
      <title>Where the Procblems occured in the PROC NLP?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Where-the-Procblems-occured-in-the-PROC-NLP/m-p/61014#M17298</link>
      <description>HI,ALL.&lt;BR /&gt;
Then,why The Codes produce different values(W1 W2....W5) in different running with the same codes.&lt;BR /&gt;
Many thanks!&lt;BR /&gt;
When I use the NLP PROCEDURE；The simplify Codes as follows:&lt;BR /&gt;
proc nlp outest = OutData;&lt;BR /&gt;
    max Sharp;&lt;BR /&gt;
    decvar W1 W2 W3 W4 W5;&lt;BR /&gt;
	Rf = 0.035; &lt;BR /&gt;
    SigmaSquare1  = W1*W1 + W2*W2 + W3*W3 + W4*W4 + W5*W5;&lt;BR /&gt;
   SigmaSquare21 = 2*(W1*W2 + W1*W3 + W1*W4 + W1*W5);&lt;BR /&gt;
   SigmaSquare22 = 2*(W2*W3 + W2*W4 + W2*W5);&lt;BR /&gt;
  SigmaSquare23 = 2*(W3*W4 + W3*W5);&lt;BR /&gt;
  SigmaSquare24 = 2*(W4*W5);&lt;BR /&gt;
  SigmaSquare = SigmaSquare1 + SigmaSquare21 + SigmaSquare22 + SigmaSquare23 + SigmaSquare24;&lt;BR /&gt;
  Return = W1 +  W2 + W3 + W4 + W5;&lt;BR /&gt;
  Sharp = (Return - Rf)/sqrt(SigmaSquare);&lt;BR /&gt;
   bounds 0 &amp;lt;= W1 &amp;lt;= 1,0 &amp;lt;= W2 &amp;lt;= 1,0 &amp;lt;= W3 &amp;lt;= 1,0 &amp;lt;= W4 &amp;lt;= 1,0 &amp;lt;= W5 &amp;lt;= 1;&lt;BR /&gt;
   lincon W1 + W2 + W3 + W4 + W5 = 1;&lt;BR /&gt;
run;&lt;BR /&gt;
Message was edited by: Winsentess

Message was edited by: Winsentess</description>
      <pubDate>Tue, 03 May 2011 06:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Where-the-Procblems-occured-in-the-PROC-NLP/m-p/61014#M17298</guid>
      <dc:creator>Winsentess</dc:creator>
      <dc:date>2011-05-03T06:20:05Z</dc:date>
    </item>
  </channel>
</rss>

