<?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 warning messages in  SAS PROC OPTMODEL when migrated to 9.4 in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357801#M1820</link>
    <description>&lt;P&gt;We are migrating from SAS 9.2 to 9.4&lt;/P&gt;
&lt;P&gt;while executing the PROC OPTMODEL in 9.4 receiving the following warning message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING 852-782: Explicit bounds override the default bounds of binary variable 'art'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But No warning message was populated in 9.2&lt;/P&gt;
&lt;P&gt;We are using same input files, same sas code in both 9.2 &amp;amp; 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest how to solve this WARNING MESSAGE.&lt;/P&gt;
&lt;P&gt;Quick solution/reply will be highliy appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 10:08:00 GMT</pubDate>
    <dc:creator>kumargupt</dc:creator>
    <dc:date>2017-05-11T10:08:00Z</dc:date>
    <item>
      <title>warning messages in  SAS PROC OPTMODEL when migrated to 9.4</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357801#M1820</link>
      <description>&lt;P&gt;We are migrating from SAS 9.2 to 9.4&lt;/P&gt;
&lt;P&gt;while executing the PROC OPTMODEL in 9.4 receiving the following warning message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;WARNING 852-782: Explicit bounds override the default bounds of binary variable 'art'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But No warning message was populated in 9.2&lt;/P&gt;
&lt;P&gt;We are using same input files, same sas code in both 9.2 &amp;amp; 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please suggest how to solve this WARNING MESSAGE.&lt;/P&gt;
&lt;P&gt;Quick solution/reply will be highliy appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 10:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357801#M1820</guid>
      <dc:creator>kumargupt</dc:creator>
      <dc:date>2017-05-11T10:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: warning messages in  SAS PROC OPTMODEL when migrated to 9.4</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357802#M1821</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have the possibility&amp;nbsp;of adding code/data to the thread to help us help you investigate?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 10:12:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357802#M1821</guid>
      <dc:creator>berlinnov</dc:creator>
      <dc:date>2017-05-11T10:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: warning messages in  SAS PROC OPTMODEL when migrated to 9.4</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357807#M1822</link>
      <description>&lt;P&gt;Refer the attached txt file for the code that is generating this Warning message in 9.4&lt;/P&gt;
&lt;P&gt;As I said; same code was used in 9.2 and NO Warning messages.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 10:21:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357807#M1822</guid>
      <dc:creator>kumargupt</dc:creator>
      <dc:date>2017-05-11T10:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: warning messages in  SAS PROC OPTMODEL when migrated to 9.4</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357821#M1823</link>
      <description>&lt;P&gt;Use the "little running man" icon to post SAS code. No need for attached files, unless the code is &lt;U&gt;really&lt;/U&gt; long.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel ;
/* output tables */
 ods output SolutionSummary=&amp;amp;libstage..solution_status ;
/* declare index set */
set&amp;lt;str&amp;gt; artikel;
/* declare variables */
 var art{artikel} &amp;gt;= 0 binary ;
/* objective function */
num composed_meas{artikel};
max f=sum{i in artikel}composed_meas[i]*art[i];
/* constraints */
str artikelgroep {artikel};
str subgroep {artikel};
num diepte{artikel};
num basis_bit {artikel};
num op_rack_bit {artikel};
num basic_bit {artikel};
num verplicht {artikel};
num verboden {artikel};
num _BONI_MIN_EVD {artikel};
num _NM_MIN_BONI {artikel};
num _NM_MIN_EVD {artikel};
%do j=1 %to &amp;amp;n_artgr.;
num artgroep_&amp;amp;j {artikel};
%end;
%do s=1 %to &amp;amp;n_link.;
 num link_&amp;amp;s. {artikel};
%end;
num min_diepte;
%do l=1 %to &amp;amp;x.;
 &amp;amp;&amp;amp;con&amp;amp;l.;
%end;
/* read parameters */
 read data &amp;amp;libstage..basis into artikel=[artikelnaam_nl] artikelgroep subgroep composed_meas diepte 
op_rack_bit verboden
basic_bit basis_bit verplicht
%do s=1 %to &amp;amp;n_link.;
 link_&amp;amp;s.
%end;
_BONI_MIN_EVD _NM_MIN_BONI _NM_MIN_EVD
%do j=1 %to &amp;amp;n_artgr;
artgroep_&amp;amp;j.
%end;
;
/* solve and print the optimal solution */
 solve with milp / printfreq=1 relobjgap=0 absobjgap=0 maxtime=100; /* print each iteration to log */
 create data &amp;amp;libstage..solution from [artikelnaam_nl] art;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There must be a macro definition wrapped around this code, as you use macro loops. I suggest you post the whole macro and how the macro is called, so testers can set the same parameters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 10:53:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357821#M1823</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-11T10:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: warning messages in  SAS PROC OPTMODEL when migrated to 9.4</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357831#M1824</link>
      <description>&lt;P&gt;You could try declaring the 'art' variable as such&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;var art{artikel} binary ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i.e. ommit the &amp;gt;=0 part. That should remove the warning in 9.4&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 11:26:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357831#M1824</guid>
      <dc:creator>berlinnov</dc:creator>
      <dc:date>2017-05-11T11:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: warning messages in  SAS PROC OPTMODEL when migrated to 9.4</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357838#M1825</link>
      <description>&lt;P&gt;Thanks. It works.&lt;/P&gt;
&lt;P&gt;Could you please share some info why there are no warning message in 9.2 (but in 9.4)?&lt;/P&gt;
&lt;P&gt;Is anything changed in 9.4 for PROC OPTMODEL ?&lt;/P&gt;
&lt;P&gt;This information is much needed for&amp;nbsp;Upgrade project. &lt;BR /&gt;Because we are using the PROC OPTMODEL in two more scripts for different requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Kiran.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 11:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357838#M1825</guid>
      <dc:creator>kumargupt</dc:creator>
      <dc:date>2017-05-11T11:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: warning messages in  SAS PROC OPTMODEL when migrated to 9.4</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357908#M1826</link>
      <description>&lt;P&gt;That warning message was introduced in SAS/OR 14.1 (SAS 9.4M3) to clarify the behavior in cases like the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   var x binary &amp;lt;= 2;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;A call of the &lt;A href="http://go.documentation.sas.com/?docsetId=ormpug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=ormpug_optmodel_syntax11.htm&amp;amp;locale=en#ormpug.optmodel.npxexpandstmt" target="_self"&gt;EXPAND statement&lt;/A&gt; confirms that the upper bound changes from 1 to 2:&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 INTEGER &amp;gt;= 0 &amp;lt;= 2&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;In your case, the &amp;gt;= 0 is redundant, and Michael correctly identified that removing it&amp;nbsp;avoids the warning message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, SAS/OR has had several releases since 9.2, and in each new release PROC OPTMODEL usually contains a few additional features&amp;nbsp;and performance improvements. &amp;nbsp;In the &lt;A href="http://support.sas.com/documentation/onlinedoc/or/index.html" target="_self"&gt;SAS/OR documentation&lt;/A&gt;, you can check the "What's New in SAS/OR" tab for each release to see the major changes.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 14:16:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/357908#M1826</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2017-05-11T14:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: warning messages in  SAS PROC OPTMODEL when migrated to 9.4</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/358185#M1827</link>
      <description>&lt;P&gt;Thank&amp;nbsp;for the explanation&amp;nbsp; &lt;A class="lia-link-navigation lia-page-link lia-user-name-link" id="link_8" style="color: rgb(0, 125, 195);" href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1636" target="_self"&gt;&lt;SPAN&gt;RobPratt&lt;/SPAN&gt;&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Thanks to both of you (Michael&amp;nbsp; &amp;amp; RobPratt) for the quick updates.&lt;BR /&gt;Have A nice weekend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Kiran.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2017 09:14:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/warning-messages-in-SAS-PROC-OPTMODEL-when-migrated-to-9-4/m-p/358185#M1827</guid>
      <dc:creator>kumargupt</dc:creator>
      <dc:date>2017-05-12T09:14:49Z</dc:date>
    </item>
  </channel>
</rss>

