<?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: weight factor algorithm [how to improve your question] in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490966#M128635</link>
    <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/130917"&gt;@chuie&lt;/a&gt;,&lt;/P&gt;&lt;BR /&gt; &lt;P&gt;Your question requires more details before experts can help.&amp;nbsp;Can you revise your question to include more information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review this checklist:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Specify a meaningful subject line for your topic.&amp;nbsp; Avoid generic subjects like "need help," "SAS query," or "urgent."&lt;/LI&gt;
&lt;LI&gt;When appropriate, provide sample data in text or DATA step format.&amp;nbsp; See &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;this article for one method&lt;/A&gt;&amp;nbsp;you can use.&lt;/LI&gt;
&lt;LI&gt;If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition.&amp;nbsp;Use the&amp;nbsp;&lt;STRONG&gt;Photos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button to include the image in your message.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 279px;"&gt;&lt;IMG src="https://kntur85557.i.lithium.com/t5/image/serverpage/image-id/16608i91A52F817EAC9A69/image-dimensions/279x150?v=1.0" width="279" height="150" alt="use_buttons.png" title="use_buttons.png" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;It also helps to include an example (table or picture) of the result that you're trying to achieve.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To edit your original message, select the "blue gear" icon at the top of the message and select&amp;nbsp;&lt;STRONG&gt;Edit Message&lt;/STRONG&gt;.&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;From there you can adjust the title and add more details to the body of the message.&amp;nbsp; Or, simply reply to this message with any additional information you can supply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 229px;"&gt;&lt;IMG src="https://kntur85557.i.lithium.com/t5/image/serverpage/image-id/16605iAC020BC79315B045/image-size/large?v=1.0&amp;amp;px=600" alt="edit_post.png" title="edit_post.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS experts are eager to help -- help&amp;nbsp;&lt;EM&gt;them&lt;/EM&gt; by providing as much detail as you can.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style:italic;font-size:smaller;"&gt;This prewritten response was triggered for you by fellow SAS Support Communities member &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;.</description>
    <pubDate>Wed, 29 Aug 2018 19:35:02 GMT</pubDate>
    <dc:creator>Community_Guide</dc:creator>
    <dc:date>2018-08-29T19:35:02Z</dc:date>
    <item>
      <title>weight factor algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490961#M128634</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have a data set with employee ID, performance rating,placement relative to market rate and their current salary.&lt;/P&gt;&lt;P&gt;So I need to calculate the &lt;STRONG&gt;% merit increase&lt;/STRONG&gt; based off which category do they fall under ( blue, green, orange or red) zone. Also the important factor here &amp;nbsp;is that&amp;nbsp; total % merit should not exceed to &lt;STRONG&gt;x budget&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Budget =25000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So&amp;nbsp; each employee ( n = 12)&amp;nbsp;fall under blue (5)&amp;nbsp;or green(6) or orange(1) or red(0).&lt;/P&gt;&lt;P&gt;We have to calculate the merit increase of blue(?), green(?), orange(?) and red(?) in a way that total merit increase should not exceed the budget of 25000.Obiously the merit increase should be more for blue as they&amp;nbsp; are high performer but their current salary falls in lower percentile and reds are lower performer but their current salary is higher percentile and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any guidance would be highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;C&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22858i1BD9581F0252B0A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 19:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490961#M128634</guid>
      <dc:creator>chuie</dc:creator>
      <dc:date>2018-08-29T19:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: weight factor algorithm [how to improve your question]</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490966#M128635</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/130917"&gt;@chuie&lt;/a&gt;,&lt;/P&gt;&lt;BR /&gt; &lt;P&gt;Your question requires more details before experts can help.&amp;nbsp;Can you revise your question to include more information?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Review this checklist:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Specify a meaningful subject line for your topic.&amp;nbsp; Avoid generic subjects like "need help," "SAS query," or "urgent."&lt;/LI&gt;
&lt;LI&gt;When appropriate, provide sample data in text or DATA step format.&amp;nbsp; See &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;this article for one method&lt;/A&gt;&amp;nbsp;you can use.&lt;/LI&gt;
&lt;LI&gt;If you're encountering an error in SAS, include the SAS log or a screenshot of the error condition.&amp;nbsp;Use the&amp;nbsp;&lt;STRONG&gt;Photos&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;button to include the image in your message.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 279px;"&gt;&lt;IMG src="https://kntur85557.i.lithium.com/t5/image/serverpage/image-id/16608i91A52F817EAC9A69/image-dimensions/279x150?v=1.0" width="279" height="150" alt="use_buttons.png" title="use_buttons.png" /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;It also helps to include an example (table or picture) of the result that you're trying to achieve.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To edit your original message, select the "blue gear" icon at the top of the message and select&amp;nbsp;&lt;STRONG&gt;Edit Message&lt;/STRONG&gt;.&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;From there you can adjust the title and add more details to the body of the message.&amp;nbsp; Or, simply reply to this message with any additional information you can supply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" style="width: 229px;"&gt;&lt;IMG src="https://kntur85557.i.lithium.com/t5/image/serverpage/image-id/16605iAC020BC79315B045/image-size/large?v=1.0&amp;amp;px=600" alt="edit_post.png" title="edit_post.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;SAS experts are eager to help -- help&amp;nbsp;&lt;EM&gt;them&lt;/EM&gt; by providing as much detail as you can.&lt;/P&gt; &lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style:italic;font-size:smaller;"&gt;This prewritten response was triggered for you by fellow SAS Support Communities member &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&lt;/SPAN&gt;&lt;/P&gt;.</description>
      <pubDate>Wed, 29 Aug 2018 19:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490966#M128635</guid>
      <dc:creator>Community_Guide</dc:creator>
      <dc:date>2018-08-29T19:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: weight factor algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490967#M128636</link>
      <description>&lt;P&gt;If you can post data as text not images that's helpful, otherwise we have to type it out to work with it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, you need to provide more details of the logic you're trying to apply and a small example with the matching output would help a lot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 19:35:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490967#M128636</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-29T19:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: weight factor algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490987#M128637</link>
      <description>&lt;P&gt;Thank you Reeza for&amp;nbsp; willing to guide.&lt;/P&gt;&lt;P&gt;Here is the sample data ,&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data merit;
input id rating $ rate $ salary ;
datalines;
1 A_Exceed A_min 18000
2 B_Meetex B_low 15000
3 C_meetba C_med 19000
4 D_Basic  D_hig 22000
5 A_Exceed A_min 18000
6 B_Meetex D_hig 12000
7 A_Exceed A_min 14000
8 B_Meetex D_hig 18000
;
run;
proc freq data=merit;
tables rating*rate/nopercent norow nocol;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So we have a departmental budget allocated for merit increase&amp;nbsp; lets say 25000&lt;/P&gt;&lt;P&gt;Annually we give salary increase (%) &amp;nbsp;to all employee based on their performance (&amp;nbsp; here is rating) and salary category ( rate) .&lt;/P&gt;&lt;P&gt;&amp;nbsp;Clause # 1 : The total merit salary increase&amp;nbsp; for all 8 employee should not exceed more than 25000 budget.&lt;/P&gt;&lt;P&gt;Clause #2 : We have to create an algorithm where employee with high performer ( rating = A_ exceed, B_Meetex)&amp;nbsp; AND also their current salary ( rate = A_min, B_low) should get higher merit percentage while employee who are performing lower ( rating = C_meetba or D_basic) and aslo their&amp;nbsp; current rate ( = D_high, C_med)&amp;nbsp; gets lower merit increase.&lt;/P&gt;&lt;P&gt;here ID 1, 5 and 7 gets higher&amp;nbsp; % of merit increase&amp;nbsp; and&amp;nbsp; ID 4 gets lowest % merit increase.&lt;/P&gt;&lt;P&gt;(a%*18000)+(b%*15000) + (c%*19000) + (d%*22000) + (e%*18000) + (f%*12000) +(g%*14000)+(h%100*18000) &amp;lt;25000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID =1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID=2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID=3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID=4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID=5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID=6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID=7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID=8&lt;/P&gt;&lt;P&gt;here we have to calculate a% b% c% d% e% f% g% h% =?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;also&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 20:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490987#M128637</guid>
      <dc:creator>chuie</dc:creator>
      <dc:date>2018-08-29T20:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: weight factor algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490990#M128638</link>
      <description>What about a high performer being paid under market rate? &lt;BR /&gt;&lt;BR /&gt;I would consider doing the % last. You have 25000, first figure out the ranking of employee's and how you want to convert that to percentages. I'm not really seeing the logic there to do that, just some generalities on X should get more and Y should get less but no definitions on how. If X gets a 10% raise and Y gets a 1% raise how do we know if this is ok.  It does mean that this problem does not have a unique solution though.</description>
      <pubDate>Wed, 29 Aug 2018 20:44:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490990#M128638</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-29T20:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: weight factor algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490998#M128645</link>
      <description>&lt;P&gt;&amp;nbsp; To simplify there are&amp;nbsp; employee who falls under for category ( blue, green, orange and red)&lt;/P&gt;&lt;P&gt;Can we give weight factor to each category&amp;nbsp; in a way that&amp;nbsp; equation does not exceed to the budget . I do not know how but there must be something like adjusted weighting factor.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 21:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/490998#M128645</guid>
      <dc:creator>chuie</dc:creator>
      <dc:date>2018-08-29T21:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: weight factor algorithm</title>
      <link>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/491748#M129041</link>
      <description>&lt;P&gt;Reeza,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; came across a goal seeking function in excel and trying to do similar in sas using proc model .Let see if this&amp;nbsp; lead me something close.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference : &lt;A href="http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/viewer.htm#etsug_model_sect066.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/viewer.htm#etsug_model_sect066.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sgml"&gt;&lt;DIV class="doccontents"&gt;&lt;DIV&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Goal Seeking: Solving for Right-Hand-Side Variables&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process of computing input values that are needed to produce target results is often called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;goal seeking&lt;/EM&gt;. To compute a goal-seeking solution, use a SOLVE statement that lists the variables you want to solve for and provide a data set that contains values for the remaining variables.&lt;/P&gt;&lt;P&gt;Consider the following demand model for packaged rice&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="7"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;IMG alt="" src="http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/images/etsug_model0712.png" border="0" /&gt;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;where&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;price&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is the price of the package and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;income&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is disposable personal income. The only variable the company has control over is the price it charges for rice. This model is estimated by using the following simulated data and PROC MODEL statements:&lt;/P&gt;&lt;DIV class="pre"&gt;&lt;PRE&gt;   data demand;
      do t=1 to 40;
         price = (rannor(10) +5) * 10;
         income = 8000 * t ** (1/8);
         demand = 7200 - 1054 * price ** (2/3) +
                  7 * income + 100 * rannor(1);
         output;
      end;
   run;
   
   data goal;
      demand = 85000;
      income = 12686;
   run;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;The goal is to find the price the company would have to charge to meet a sales target of 85,000 units. To do this, a data set is created with a DEMAND variable set to 85000 and with an INCOME variable set to 12686, the last income value.&lt;/P&gt;&lt;P&gt;The desired price is then determined by using the following PROC MODEL statements:&lt;/P&gt;&lt;DIV class="pre"&gt;&lt;PRE&gt;   proc model data=demand
              outmodel=demandModel;
      demand = a1 - a2 * price ** (2/3) + a3 * income;
      fit demand / outest=demest;
      solve price / estdata=demest data=goal solveprint;
   run;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;The SOLVEPRINT option prints the solution values, number of iterations, and final residuals at each observation. The SOLVEPRINT output from this solve is shown in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/etsug_model_sect066.htm#etsug.model.modgoal2a" target="_blank"&gt;Figure 18.80&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="listing"&gt;&lt;DIV class="caption"&gt;&lt;STRONG&gt;Figure 18.80 Goal Seeking, SOLVEPRINT Output&lt;/STRONG&gt;&lt;/DIV&gt;&lt;CENTER&gt;&lt;DIV&gt;&lt;DIV class="branch"&gt;&lt;DIV class="c ProcTitle"&gt;The MODEL Procedure&lt;/DIV&gt;&lt;DIV class="c ProcTitle"&gt;Single-Equation Simulation&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/CENTER&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;ObservationIterationsCCERROR.demand &lt;TABLE cellspacing="0" cellpadding="3"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;0.000000&lt;/TD&gt;&lt;TD&gt;0.000000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Solution Valuesprice &lt;TABLE cellspacing="0" cellpadding="3"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;33.59016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output indicates that it took six Newton iterations to determine the PRICE of 33.5902, which makes the DEMAND value within 16E–11 of the goal of 85,000 units.&lt;/P&gt;&lt;P&gt;Consider a more ambitious goal of 100,000 units. The output shown in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/etsug/60372/HTML/default/etsug_model_sect066.htm#etsug.model.modgoal1a" target="_blank"&gt;Figure 18.81&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;indicates that the sales target of 100,000 units is not attainable according to this model.&lt;/P&gt;&lt;DIV class="pre"&gt;&lt;PRE&gt;   data goal;
      demand = 100000;
      income = 12686;
   run;
   
   proc model model=demandModel;
      solve price / estdata=demest data=goal solveprint;
   run;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 Aug 2018 20:35:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/weight-factor-algorithm/m-p/491748#M129041</guid>
      <dc:creator>chuie</dc:creator>
      <dc:date>2018-08-31T20:35:02Z</dc:date>
    </item>
  </channel>
</rss>

