<?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 Solver function to be created in SAS using PROC FCMP in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Solver-function-to-be-created-in-SAS-using-PROC-FCMP/m-p/765292#M3497</link>
    <description>&lt;P&gt;I have to calculate the predicted values for year 2015, 2016 and 2017 for Bucket1, Bucket2, Bucket3 and Bucket4 using a&amp;nbsp;Z_score&amp;nbsp;and an&amp;nbsp;Index value. I already have&amp;nbsp;Z_Score&amp;nbsp;from other table, but I need to generate an&amp;nbsp;Index value&amp;nbsp;(which is a&amp;nbsp;random value).&lt;BR /&gt;The&amp;nbsp;Index value&amp;nbsp;to be generated should be such that that when we calculate predicted PD using it for each year. The sum square errors of Predicted PDs and Actual PDs should be minimum.&lt;/P&gt;&lt;P&gt;I am able to do this in Excel using Run solver function, and I need to do this using PROC FCMP in BASE SAS in SAS EG as I don't have SAS/IML or SAS/OR COMPONENT.&amp;nbsp;Please help me with this code as I am new to PROC FCMP.&lt;/P&gt;&lt;P&gt;Attached is the Input table and desired output table:&lt;/P&gt;&lt;P&gt;Table 1: Using&amp;nbsp;Z Score&amp;nbsp;from this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Col1 Value 1 Z value&lt;BR /&gt;1 0.86% -2.38&lt;BR /&gt;2 26.02% -0.64&lt;BR /&gt;3 42.43% -0.19&lt;BR /&gt;4 64.78% 0.38&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table 2: Bucket-wise Actual values for each year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Col1 2015 2016 2017 2018&lt;BR /&gt;1 1.15% 0.66% 0.51% 1.13%&lt;BR /&gt;2 32.38% 22.38% 18.04% 31.26%&lt;BR /&gt;3 50.08% 37.32% 38.41% 43.91%&lt;BR /&gt;4 69.31% 59.29% 57.13% 73.38%&lt;BR /&gt;5 99.72% 100.00% 100.00% 100.00%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table 3: Index values are random values generated, and used in calculating predicted values in bold&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Index value 0.100000 0.170699 -0.133416 -0.178382 0.135047&lt;BR /&gt;Col1&lt;BR /&gt;2015 2016 2017 2018&lt;BR /&gt;1&lt;BR /&gt;1.35% 0.59% 0.52% 1.23%&lt;BR /&gt;2&lt;BR /&gt;31.84% 21.88% 20.58% 30.58%&lt;BR /&gt;3&lt;BR /&gt;49.19% 37.28% 35.59% 47.77%&lt;BR /&gt;4&lt;BR /&gt;70.88% 59.71% 57.96% 69.65%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table 4: Min sum of squares (between actual values and predicted values) value and Index value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sum of Squares Index&lt;/P&gt;&lt;P&gt;0.000&lt;BR /&gt;2015 0.000 0.17&lt;BR /&gt;2016 0.000 -0.13&lt;BR /&gt;2017 0.002 -0.18&lt;BR /&gt;2018 0.003 0.14&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also, attached is the excel file for more clarity of data.&lt;/P&gt;&lt;P&gt;Looking forward for help as I am new to proc fcmp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 10:42:22 GMT</pubDate>
    <dc:creator>Satyakshma</dc:creator>
    <dc:date>2021-09-01T10:42:22Z</dc:date>
    <item>
      <title>Solver function to be created in SAS using PROC FCMP</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Solver-function-to-be-created-in-SAS-using-PROC-FCMP/m-p/765292#M3497</link>
      <description>&lt;P&gt;I have to calculate the predicted values for year 2015, 2016 and 2017 for Bucket1, Bucket2, Bucket3 and Bucket4 using a&amp;nbsp;Z_score&amp;nbsp;and an&amp;nbsp;Index value. I already have&amp;nbsp;Z_Score&amp;nbsp;from other table, but I need to generate an&amp;nbsp;Index value&amp;nbsp;(which is a&amp;nbsp;random value).&lt;BR /&gt;The&amp;nbsp;Index value&amp;nbsp;to be generated should be such that that when we calculate predicted PD using it for each year. The sum square errors of Predicted PDs and Actual PDs should be minimum.&lt;/P&gt;&lt;P&gt;I am able to do this in Excel using Run solver function, and I need to do this using PROC FCMP in BASE SAS in SAS EG as I don't have SAS/IML or SAS/OR COMPONENT.&amp;nbsp;Please help me with this code as I am new to PROC FCMP.&lt;/P&gt;&lt;P&gt;Attached is the Input table and desired output table:&lt;/P&gt;&lt;P&gt;Table 1: Using&amp;nbsp;Z Score&amp;nbsp;from this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Col1 Value 1 Z value&lt;BR /&gt;1 0.86% -2.38&lt;BR /&gt;2 26.02% -0.64&lt;BR /&gt;3 42.43% -0.19&lt;BR /&gt;4 64.78% 0.38&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table 2: Bucket-wise Actual values for each year&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Col1 2015 2016 2017 2018&lt;BR /&gt;1 1.15% 0.66% 0.51% 1.13%&lt;BR /&gt;2 32.38% 22.38% 18.04% 31.26%&lt;BR /&gt;3 50.08% 37.32% 38.41% 43.91%&lt;BR /&gt;4 69.31% 59.29% 57.13% 73.38%&lt;BR /&gt;5 99.72% 100.00% 100.00% 100.00%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table 3: Index values are random values generated, and used in calculating predicted values in bold&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Index value 0.100000 0.170699 -0.133416 -0.178382 0.135047&lt;BR /&gt;Col1&lt;BR /&gt;2015 2016 2017 2018&lt;BR /&gt;1&lt;BR /&gt;1.35% 0.59% 0.52% 1.23%&lt;BR /&gt;2&lt;BR /&gt;31.84% 21.88% 20.58% 30.58%&lt;BR /&gt;3&lt;BR /&gt;49.19% 37.28% 35.59% 47.77%&lt;BR /&gt;4&lt;BR /&gt;70.88% 59.71% 57.96% 69.65%&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table 4: Min sum of squares (between actual values and predicted values) value and Index value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Sum of Squares Index&lt;/P&gt;&lt;P&gt;0.000&lt;BR /&gt;2015 0.000 0.17&lt;BR /&gt;2016 0.000 -0.13&lt;BR /&gt;2017 0.002 -0.18&lt;BR /&gt;2018 0.003 0.14&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Also, attached is the excel file for more clarity of data.&lt;/P&gt;&lt;P&gt;Looking forward for help as I am new to proc fcmp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 10:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Solver-function-to-be-created-in-SAS-using-PROC-FCMP/m-p/765292#M3497</guid>
      <dc:creator>Satyakshma</dc:creator>
      <dc:date>2021-09-01T10:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Solver function to be created in SAS using PROC FCMP</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Solver-function-to-be-created-in-SAS-using-PROC-FCMP/m-p/765325#M3498</link>
      <description>&lt;P&gt;Also could try PROC NLIN .&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; wrote many blogs about it .&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 12:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Solver-function-to-be-created-in-SAS-using-PROC-FCMP/m-p/765325#M3498</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-09-01T12:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Solver function to be created in SAS using PROC FCMP</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Solver-function-to-be-created-in-SAS-using-PROC-FCMP/m-p/765361#M3499</link>
      <description>&lt;P&gt;Many users here don't want to download Excel files because of virus potential, others have such things blocked by security software. Also if you give us Excel we have to create a SAS data set and due to the non-existent constraints on Excel data cells the result we end up with may not have variables of the same type (numeric or character) and even values.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 14:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Solver-function-to-be-created-in-SAS-using-PROC-FCMP/m-p/765361#M3499</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-01T14:20:33Z</dc:date>
    </item>
  </channel>
</rss>

