<?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 model - conditional resrict in SAS Forecasting and Econometrics</title>
    <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-model-conditional-resrict/m-p/579134#M3605</link>
    <description>&lt;P&gt;You can restrict your solution conditionally by using the OPTIMIZE option on the SOLVE statement. Below is an example of a simple case where only the solution for the 9th observation is restricted to be less than or equal to 8. Please let me know if you had something else in mind.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data d;
   do t=1 to 10;
	   output;
	end;
run;

proc model data=d;
   y = t**2/10;
	solve y / optimize out=o;
	restrict ifn(t=9,y,0) &amp;lt;= 8;
quit;

proc print data=o;
run;&lt;/PRE&gt;</description>
    <pubDate>Mon, 05 Aug 2019 13:52:00 GMT</pubDate>
    <dc:creator>kessler</dc:creator>
    <dc:date>2019-08-05T13:52:00Z</dc:date>
    <item>
      <title>proc model - conditional resrict</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-model-conditional-resrict/m-p/579084#M3602</link>
      <description>&lt;P&gt;I use proc model for solver.&lt;/P&gt;&lt;P&gt;I want to add conditional &lt;STRONG&gt;restrict statement&lt;/STRONG&gt;, i.e for some observation I want to add restrict. Can I do it?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 08:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-model-conditional-resrict/m-p/579084#M3602</guid>
      <dc:creator>AlexeyS</dc:creator>
      <dc:date>2019-08-05T08:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc model - conditional resrict</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-model-conditional-resrict/m-p/579121#M3603</link>
      <description>&lt;P&gt;Duh, ignore my previous comments. I thought you were talking about PROC TSMODEL.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 14:03:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-model-conditional-resrict/m-p/579121#M3603</guid>
      <dc:creator>mitrov</dc:creator>
      <dc:date>2019-08-05T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: proc model - conditional resrict</title>
      <link>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-model-conditional-resrict/m-p/579134#M3605</link>
      <description>&lt;P&gt;You can restrict your solution conditionally by using the OPTIMIZE option on the SOLVE statement. Below is an example of a simple case where only the solution for the 9th observation is restricted to be less than or equal to 8. Please let me know if you had something else in mind.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data d;
   do t=1 to 10;
	   output;
	end;
run;

proc model data=d;
   y = t**2/10;
	solve y / optimize out=o;
	restrict ifn(t=9,y,0) &amp;lt;= 8;
quit;

proc print data=o;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Aug 2019 13:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Forecasting-and-Econometrics/proc-model-conditional-resrict/m-p/579134#M3605</guid>
      <dc:creator>kessler</dc:creator>
      <dc:date>2019-08-05T13:52:00Z</dc:date>
    </item>
  </channel>
</rss>

