<?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: Minimizing an unconstrained NLP problem in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479901#M2336</link>
    <description>&lt;P&gt;Because your objective function has product form, it is natural to minimize the log instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   min log_g = -(
      x[1]*log(10/x[1]) 
      + x[2]*log(12/x[2])
      + y[1]*log(0.5/(2*y[1]))
      + y[2]*log(0.4/(2*y[2]))
      + y[3]*log(50/y[3])
      + y[4]*log(60/y[4])
      - x[3]*log(100/x[3])
      - x[4]*log(120/x[4])
      + y[6]*log(y[5]*4/(195*y[6]))
      + y[7]*log(y[5]*2/(195*y[7]))
   );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The&amp;nbsp;resulting solution status is then Optimal rather than Best Feasible.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 15:02:04 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2018-07-20T15:02:04Z</dc:date>
    <item>
      <title>Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/478756#M2319</link>
      <description>&lt;P&gt;I want to minimize an unconstrained NLP problem, having 4 variables. But, upon running the SAS file the solution status was failed and I got a warning that the "Objective function cannot be evaluated at the starting point." Can somebody&amp;nbsp;PLEASE help me with this? I attached here the code. I am new to SAS by the way, it would be a great help for me.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
	var x{1..4} &amp;gt;=0 &amp;lt;=50;
	min g=(-1) * ((-1) * (((10/x[1])^x[1]) * ((12/x[2])^x[2]) * 
		((0.5/(2*(0.4*x[3]-0.2*x[1]-1)))^(0.4*x[3]-0.2*x[1]-1)) * 
		((0.4/(2*(0.55*x[4]-0.6*x[2]-1)))^(0.55*x[4]-0.6*x[2]-1)) * 
		((50/(0.6*x[3]-0.8*x[1]))^(0.6*x[3]-0.8*x[1])) * 
		((60/(0.5*x[4]-0.4*x[2]))^(0.5*x[4]-0.4*x[2])) * ((100/x[3])^(-x[3])) * 
		((120/x[4])^(-x[4])) * ((((-0.34*x[3]-0.08*x[1]-0.475*x[4]+0.66*x[2]+3)*4)/(195*(-0.34*x[3]-0.08*x[1]+1.6)))^(-0.34*x[3]-0.08*x[1]+1.6)) 
		* ((((-0.34*x[3]-0.08*x[1]-0.475*x[4]+0.66*x[2]+3)*2)/(195*(-0.475*x[4]-0.66*x[2]+1.4)))^(-0.475*x[4]+0.66*x[2]+1.4)))^(-1));

	/* starting point */
	x[1]=0.5;
	x[2]=0.5;
	x[3]=0.5;
	x[4]=0.5;
	solve with nlp / algorithm=activeset;
	print x;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Jul 2018 18:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/478756#M2319</guid>
      <dc:creator>Reyna</dc:creator>
      <dc:date>2018-07-17T18:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/478784#M2322</link>
      <description>&lt;P&gt;I have a suggestion that should help, but first I want to make sure that your objective function is defined correctly.&amp;nbsp; In the final line of the MIN statement, did you really mean to have both -0.66*x[2] and +0.66*x[2], or should those coefficients be the same?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 19:22:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/478784#M2322</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2018-07-17T19:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479374#M2326</link>
      <description>&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;I am sorry for typo error, I mean to have only +0.66 in the objective function. By the way the objective function should be define by:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
	var x{1..4} &amp;gt;=0 &amp;lt;=50;
	min g=(-1) * ((-1) * (((10/x[1])^x[1]) * ((12/x[2])^x[2]) * 
		((0.5/(2*(0.4*x[3]-0.2*x[1]-1)))^(0.4*x[3]-0.2*x[1]-1)) * 
		((0.4/(2*(0.55*x[4]-0.6*x[2]-1)))^(0.55*x[4]-0.6*x[2]-1)) * 
		((50/(0.6*x[3]-0.8*x[1]))^(0.6*x[3]-0.8*x[1])) * 
		((60/(0.5*x[4]-0.4*x[2]))^(0.5*x[4]-0.4*x[2])) * ((100/x[3])^(-x[3])) * 
		((120/x[4])^(-x[4])) * ((((-0.34*x[3]-0.08*x[1]-0.475*x[4]+0.66*x[2]+3)*4)/(195*(-0.34*x[3]-0.08*x[1]+1.6)))^(-0.34*x[3]-0.08*x[1]+1.6)) * ((((-0.34*x[3]-0.08*x[1]-0.475*x[4]+0.66*x[2]+3)*2)/(195*(-0.475*x[4]+0.66*x[2]+1.4)))^(-0.475*x[4]+0.66*x[2]+1.4)))^(-1));

	/* starting point */
	x[1]=0.5;
	x[2]=0.5;
	x[3]=0.5;
	x[4]=0.5;
	solve with nlp / algorithm=activeset;
	print x;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Jul 2018 04:41:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479374#M2326</guid>
      <dc:creator>Reyna</dc:creator>
      <dc:date>2018-07-19T04:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479378#M2327</link>
      <description>I hope you can help me with this :))</description>
      <pubDate>Thu, 19 Jul 2018 05:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479378#M2327</guid>
      <dc:creator>Reyna</dc:creator>
      <dc:date>2018-07-19T05:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479774#M2330</link>
      <description>&lt;P&gt;One way to avoid typos is to use implicit variables to represent expressions that appear in multiple places:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   impvar y {i in 1..7} = 
      if i = 1 then 0.4*x[3]-0.2*x[1]-1
      else if i = 2 then 0.55*x[4]-0.6*x[2]-1
      else if i = 3 then 0.6*x[3]-0.8*x[1]
      else if i = 4 then 0.5*x[4]-0.4*x[2]
      else if i = 5 then -0.34*x[3]-0.08*x[1]-0.475*x[4]+0.66*x[2]+3
      else if i = 6 then -0.34*x[3]-0.08*x[1]+1.6
      else if i = 7 then -0.475*x[4]+0.66*x[2]+1.4;
   min g=(-1) * ((-1) * (((10/x[1])^x[1]) * ((12/x[2])^x[2]) * 
      ((0.5/(2*y[1]))^y[1]) * 
      ((0.4/(2*y[2]))^y[2]) * 
      ((50/y[3])^y[3]) * 
      ((60/y[4])^y[4]) * ((100/x[3])^(-x[3])) * 
      ((120/x[4])^(-x[4])) * (((y[5]*4)/(195*y[6]))^y[6]) 
      * (((y[5]*2)/(195*y[7]))^y[7]))^(-1));
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With or without these changes, try using the multistart option:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   solve with nlp / ms;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jul 2018 02:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479774#M2330</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2018-07-20T02:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479775#M2331</link>
      <description>Hi Rob, I just want to know it is necessary to replace the X variables in the if statements with Y? Or I just need to have it that way?</description>
      <pubDate>Fri, 20 Jul 2018 02:30:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479775#M2331</guid>
      <dc:creator>Reyna</dc:creator>
      <dc:date>2018-07-20T02:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479776#M2332</link>
      <description>&lt;P&gt;Hi there, I tried running the code that you sent me however I got this&amp;nbsp;error saying "Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 72         
 73            impvar y {i in 1..7} =
               ______
               180
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 74               if i = 1 then 0.4*x[3]-0.2*x[1]-1
 75               else if i = 2 then 0.55*x[4]-0.6*x[2]-1
 76               else if i = 3 then 0.6*x[3]-0.8*x[1]
 77               else if i = 4 then 0.5*x[4]-0.4*x[2]
 78               else if i = 5 then -0.34*x[3]-0.08*x[1]-0.475*x[4]+0.66*x[2]+3
 79               else if i = 6 then -0.34*x[3]-0.08*x[1]+1.6
 80               else if i = 7 then -0.475*x[4]+0.66*x[2]+1.4;
 
 81            min g=(-1) * ((-1) * (((10/x[1])^x[1]) * ((12/x[2])^x[2]) *
               ___
               180
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 82               ((0.5/(2*y[1]))^y[1]) *
 83               ((0.4/(2*y[2]))^y[2]) *
 84               ((50/y[3])^y[3]) *
 85               ((60/y[4])^y[4]) * ((100/x[3])^(-x[3])) *
 86               ((120/x[4])^(-x[4])) * (((y[5]*4)/(195*y[6]))^y[6])
 87               * (((y[5]*2)/(195*y[7]))^y[7]))^(-1));
 
 88         
 89                  solve with nlp / ms;
                     _____
                     180
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 90         
 91         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 104        


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jul 2018 02:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479776#M2332</guid>
      <dc:creator>Reyna</dc:creator>
      <dc:date>2018-07-20T02:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479792#M2333</link>
      <description>&lt;P&gt;Hi Rob, I just want to ask what if I run this code and I don't want to&amp;nbsp;set&amp;nbsp;an upper bound for my Variables X[1].. X[4], therefore I would like them only to be greater than or equal to zero. However,&amp;nbsp;I've tried running this code multiple times and I've got different results for X and it only says that it has only the "best feasible solution" everytime I run it. I was just concerned about how can I deal with this type of problem? or Can we have options other than multistart, or&amp;nbsp;shall&amp;nbsp;we incorporate a search method for this? I'm clueless. Thanks for the help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
	var x{1..4} &amp;gt;=0;
	min g=(-1) * ((-1) * (((10/x[1])^x[1]) * ((12/x[2])^x[2]) * 
		((0.5/(2*(0.4*x[3]-0.2*x[1]-1)))^(0.4*x[3]-0.2*x[1]-1)) * 
		((0.4/(2*(0.55*x[4]-0.6*x[2]-1)))^(0.55*x[4]-0.6*x[2]-1)) * 
		((50/(0.6*x[3]-0.8*x[1]))^(0.6*x[3]-0.8*x[1])) * 
		((60/(0.5*x[4]-0.4*x[2]))^(0.5*x[4]-0.4*x[2])) * ((100/x[3])^(-x[3])) * 
		((120/x[4])^(-x[4])) * ((((-0.34*x[3]-0.08*x[1]-0.475*x[4]+0.66*x[2]+3)*4)/(195*(-0.34*x[3]-0.08*x[1]+1.6)))^(-0.34*x[3]-0.08*x[1]+1.6)) 
		* ((((-0.34*x[3]-0.08*x[1]-0.475*x[4]+0.66*x[2]+3)*2)/(195*(-0.475*x[4]+0.66*x[2]+1.4)))^(-0.475*x[4]+0.66*x[2]+1.4)))^(-1));

   impvar y {i in 1..7} = 
      if i = 1 then 0.4*x[3]-0.2*x[1]-1
      else if i = 2 then 0.55*x[4]-0.6*x[2]-1
      else if i = 3 then 0.6*x[3]-0.8*x[1]
      else if i = 4 then 0.5*x[4]-0.4*x[2]
      else if i = 5 then -0.34*x[3]-0.08*x[1]-0.475*x[4]+0.66*x[2]+3
      else if i = 6 then -0.34*x[3]-0.08*x[1]+1.6
      else if i = 7 then -0.475*x[4]+0.66*x[2]+1.4;
   min f=(-1) * ((-1) * (((10/x[1])^x[1]) * ((12/x[2])^x[2]) * 
      ((0.5/(2*y[1]))^y[1]) * 
      ((0.4/(2*y[2]))^y[2]) * 
      ((50/y[3])^y[3]) * 
      ((60/y[4])^y[4]) * ((100/x[3])^(-x[3])) * 
      ((120/x[4])^(-x[4])) * (((y[5]*4)/(195*y[6]))^y[6]) 
      * (((y[5]*2)/(195*y[7]))^y[7]))^(-1));
 


         solve with nlp / ms;
         print x;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Jul 2018 04:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479792#M2333</guid>
      <dc:creator>Reyna</dc:creator>
      <dc:date>2018-07-20T04:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479901#M2336</link>
      <description>&lt;P&gt;Because your objective function has product form, it is natural to minimize the log instead:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   min log_g = -(
      x[1]*log(10/x[1]) 
      + x[2]*log(12/x[2])
      + y[1]*log(0.5/(2*y[1]))
      + y[2]*log(0.4/(2*y[2]))
      + y[3]*log(50/y[3])
      + y[4]*log(60/y[4])
      - x[3]*log(100/x[3])
      - x[4]*log(120/x[4])
      + y[6]*log(y[5]*4/(195*y[6]))
      + y[7]*log(y[5]*2/(195*y[7]))
   );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The&amp;nbsp;resulting solution status is then Optimal rather than Best Feasible.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 15:02:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/479901#M2336</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2018-07-20T15:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/480264#M2337</link>
      <description>&lt;P&gt;Indeed the solution that you recommended was brilliant and I thank you for that. I never had that idea before &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; In line with this, I tried this approach in evaluating the optimal values for another unconstrained minimization, however, it says that the solution status is failed. I guess I've had some problem with formulation? or in dealing with this type should require other type of solver?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
	var x{1..4} &amp;gt;=0;


   impvar y {i in 1..8} = 
      if i = 1 then -((-0.6*4.5)/(1.6*5.5))*x[1]-(4.5/5.5)*x[3]
      else if i = 2 then -((-0.7*5.2)/(1.7*6.2))*x[2]-(5.2/6.2)*x[4]
      else if i = 3 then (-1/0.72)+((1/0.72)+((-0.6*15.5)/(0.72*1.6*5.5)))*x[1]+((15.5/(0.72*5.5))-((1/0.72)+1))*x[3]
      else if i = 4 then (-1/0.78)+((1/0.78)+((-0.7*17.6)/(0.78*1.7*6.2)))*x[2]+((17.6/(0.78*6.2))-((1/0.78)+1))*x[4]
      else if i = 5 then (0.6/(1.6*5.5))*x[1]-(1/5.5)*x[3]
      else if i = 6 then (0.7/(1.7*6.2))*x[2]-(1/6.2)*x[4]
      else if i = 7 then (-1/0.72)+((1/0.72)+(((4.5*5.5)/0.72)+(2/0.72)+1)*(-0.6/1.6))*x[1]-(((5.5*4.5)+1)/0.72)*x[3]
      else if i = 8 then (-1/0.78)+((1/0.78)+(((5.2*6.2)/0.78)+(2/0.78)+1)*(-0.7/1.7))*x[2]-(((5.2*6.2)+1)/0.78)*x[4];
      
	min log_h = -(
      - x[1]*log(3500/(300*x[1])) 
      - x[2]*log(4000/(300*x[2]))
      + x[3]*log(175/x[3]) 
      + x[4]*log(64000/(300*x[4]))
      + y[1]*log(3500/(300*y[1]))
      + y[2]*log(4000/(300*y[2]))
      + y[3]*log(0.15/(600*y[3]))
      + y[4]*log(0.2/(600*y[4]))
      + y[5]*log(5250/y[5])
      + y[6]*log(2000000/(300*y[6]))
      - y[7]*log(3.9/(45*y[7]))
      - y[8]*log(4.3/(45*y[8]))
      );
   
         solve with nlp / ms;
         print x;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 20:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/480264#M2337</guid>
      <dc:creator>Reyna</dc:creator>
      <dc:date>2018-07-22T20:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Minimizing an unconstrained NLP problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/480539#M2338</link>
      <description>&lt;P&gt;The log function requires a positive argument, and that implies that each x[i] and y[i] should be positive.&amp;nbsp; But x[2], y[4], and y[8] cannot all be nonnegative, as detected by using the IIS functionality:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   con c {i in 1..8}: y[i] &amp;gt;= 0;
   solve noobj with lp / iis=on;
   expand / iis;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Output&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE summary="Page Layout" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;PRE class="batch"&gt;Var x[2] &amp;gt;= 0                                                                             
Constraint c[4]: y[4] &amp;gt;= 0                                                                
Constraint c[8]: y[8] &amp;gt;= 0 &lt;/PRE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now&amp;nbsp;expand y[4] and y[8]:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   expand y[4];
   expand y[8];
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SAS Output&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE summary="Page Layout" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;PRE class="batch"&gt;Impvar y[4] = 1.3573200993*x[4] - 0.2165134044*x[2] - 1.2820512821                        
&lt;/PRE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;&lt;A name="IDX74" target="_blank"&gt;&lt;/A&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE summary="Page Layout" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;PRE class="batch"&gt;Impvar y[8] = - 42.615384615*x[4] - 17.205128205*x[2] - 1.2820512821                      
&lt;/PRE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Indeed, x[2] &amp;gt;= 0 and y[4] &amp;gt;= 0 together imply x[4] &amp;gt;= 0, which forces y[8] &amp;lt; 0.&amp;nbsp; I would recommend checking your formula for y[8], which should not have all coefficients negative.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 17:16:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Minimizing-an-unconstrained-NLP-problem/m-p/480539#M2338</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2018-07-23T17:16:10Z</dc:date>
    </item>
  </channel>
</rss>

