<?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: PROC OPTMODEL - Data Envelope Analysis  - Return Input and Output Slacks in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/666225#M3187</link>
    <description>&lt;P&gt;That is exactly what I was after.&amp;nbsp; Thank you so much for your time and the fast response!&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 22:41:33 GMT</pubDate>
    <dc:creator>Sypert</dc:creator>
    <dc:date>2020-06-30T22:41:33Z</dc:date>
    <item>
      <title>PROC OPTMODEL - Data Envelope Analysis  - Return Input and Output Slacks</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/665940#M3181</link>
      <description>&lt;P&gt;How can I return the input and output slacks using the DEA example from the&amp;nbsp;&lt;SPAN&gt;SAS/OR(R) 12.1 User's Guide?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is a link:&amp;nbsp;&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/ormpex/65555/HTML/default/viewer.htm#ormpex_ex22_sect009.htm" target="_blank" rel="noopener"&gt;https://support.sas.com/documentation/cdl/en/ormpex/65555/HTML/default/viewer.htm#ormpex_ex22_sect009.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 22:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/665940#M3181</guid>
      <dc:creator>Sypert</dc:creator>
      <dc:date>2020-06-29T22:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OPTMODEL - Data Envelope Analysis  - Return Input and Output Slacks</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/665942#M3182</link>
      <description>&lt;P&gt;By slacks, do you mean the differences between the two sides of the inequalities?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input[i,k] - sum {j in GARAGES} input[i,j] * Weight[j]

sum {j in GARAGES} output[i,j] * Weight[j] - output[i,k] * Inefficiency&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;And do you want to print the values or save them to a data set?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 22:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/665942#M3182</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-06-29T22:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OPTMODEL - Data Envelope Analysis  - Return Input and Output Slacks</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/665949#M3183</link>
      <description>&lt;P&gt;&lt;SPAN&gt;By slacks, I&lt;/SPAN&gt;&lt;SPAN&gt;'m trying to get specific potential input and output variable improvements for the inefficient garages.&amp;nbsp; My understanding is the slacks show the further increases in output or reduction in input that could be gained beyond that from the radial projection (equal increase in all outputs, or decrease in all inputs) or a radial efficiency score equal to 1.&amp;nbsp; I'd like to save it to a data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope this helps.&amp;nbsp; Thanks for your time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 23:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/665949#M3183</guid>
      <dc:creator>Sypert</dc:creator>
      <dc:date>2020-06-29T23:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OPTMODEL - Data Envelope Analysis  - Return Input and Output Slacks</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/665961#M3184</link>
      <description>&lt;P&gt;If I understand correctly, the following changes should do what you want:&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   num input_slack  {GARAGES, INPUTS};
   num output_slack {GARAGES, OUTPUTS};
   do k = GARAGES;
      solve;
      efficiency_number[k] = 1 / Inefficiency.sol;
      for {j in GARAGES}
         weight_sol[k,j] = (if Weight[j].sol &amp;gt; 1e-6 then Weight[j].sol else .);
      for {i in INPUTS}
         input_slack[k,i] = round(Input_con[i].ub - Input_con[i].body, 1e-6);
      for {i in OUTPUTS}
         output_slack[k,i] = round(Output_con[i].body - Output_con[i].lb, 1e-6);
   end;

   set EFFICIENT_GARAGES = {j in GARAGES: efficiency_number[j] &amp;gt;= 1 - 1e-6};
   set INEFFICIENT_GARAGES = GARAGES diff EFFICIENT_GARAGES;

   create data slack_data from [garage]=INEFFICIENT_GARAGES garage_name efficiency_number
      {i in INPUTS} &amp;lt;col(i)=input_slack[garage,i]&amp;gt;
      {i in OUTPUTS} &amp;lt;col(i)=output_slack[garage,i]&amp;gt;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 00:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/665961#M3184</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-06-30T00:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC OPTMODEL - Data Envelope Analysis  - Return Input and Output Slacks</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/666225#M3187</link>
      <description>&lt;P&gt;That is exactly what I was after.&amp;nbsp; Thank you so much for your time and the fast response!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 22:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/PROC-OPTMODEL-Data-Envelope-Analysis-Return-Input-and-Output/m-p/666225#M3187</guid>
      <dc:creator>Sypert</dc:creator>
      <dc:date>2020-06-30T22:41:33Z</dc:date>
    </item>
  </channel>
</rss>

