<?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 EXPAND in proc optmodel in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629911#M2979</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a proc optmodel question.&amp;nbsp; I used the expand statement to see my constraints. But nothing happens to the expand statement and also codes after the expand statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My variable count here is&lt;/P&gt;&lt;P&gt;Number of variables = 192789&lt;/P&gt;&lt;P&gt;Number of binary = 6813&lt;/P&gt;&lt;P&gt;Number of constraints = 756&lt;/P&gt;&lt;P&gt;Bounded below = 185976&lt;/P&gt;&lt;P&gt;Bounded below and above=6804;&lt;/P&gt;&lt;P&gt;Constraint Coefficients=557937&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does something have to do with the size of the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2020 18:51:50 GMT</pubDate>
    <dc:creator>Santha</dc:creator>
    <dc:date>2020-03-05T18:51:50Z</dc:date>
    <item>
      <title>EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629911#M2979</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have a proc optmodel question.&amp;nbsp; I used the expand statement to see my constraints. But nothing happens to the expand statement and also codes after the expand statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My variable count here is&lt;/P&gt;&lt;P&gt;Number of variables = 192789&lt;/P&gt;&lt;P&gt;Number of binary = 6813&lt;/P&gt;&lt;P&gt;Number of constraints = 756&lt;/P&gt;&lt;P&gt;Bounded below = 185976&lt;/P&gt;&lt;P&gt;Bounded below and above=6804;&lt;/P&gt;&lt;P&gt;Constraint Coefficients=557937&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does something have to do with the size of the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 18:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629911#M2979</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-05T18:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629913#M2980</link>
      <description>&lt;P&gt;Can you please show the EXPAND statement you used?&amp;nbsp; Even better would be to provide the full code.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 18:54:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629913#M2980</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-03-05T18:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629916#M2981</link>
      <description>&lt;P&gt;Thanks Rob&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code.&lt;/P&gt;&lt;P&gt;proc optmodel;&lt;/P&gt;&lt;P&gt;set &amp;lt;str&amp;gt; Ports;&lt;BR /&gt;set &amp;lt;str&amp;gt; DC;&lt;BR /&gt;set &amp;lt;str&amp;gt; LSP;&lt;BR /&gt;set &amp;lt;str&amp;gt; Transit;&lt;/P&gt;&lt;P&gt;read data STDOPT.PN3158_Ports into Ports=[PortSource];&lt;BR /&gt;read data STDOPT.PN3158_DC into DC=[RateMatchDest];&lt;BR /&gt;read data STDOPT.PN3158_LSP into LSP=[LSP];&lt;BR /&gt;read data STDOPT.PN3158_TRANSIT into Transit=[Transit];&lt;/P&gt;&lt;P&gt;num Containers {Ports,DC};&lt;BR /&gt;read data STDOPT.PN3158_data into [PortSource RateMatchDest] Containers=FEU;&lt;BR /&gt;print containers;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*END OF GETTING FEU DATA*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var Is_LSP {LSP} binary;&lt;BR /&gt;var IsLSPDC {LSP,DC} binary;&lt;BR /&gt;var IsPortsLSPDC {Ports,LSP,DC} binary;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Close/Open Entities */&lt;BR /&gt;fix Is_LSP ['EGLV']=0; fix Is_LSP ['CMDU']=0; fix Is_LSP ['APLU']=1;&lt;BR /&gt;fix Is_LSP ['COSU']=1; fix Is_LSP ['ONEY']=1; fix Is_LSP ['MAEU']=1;&lt;BR /&gt;fix Is_LSP ['ZIMU']=1; fix Is_LSP ['WHLC']=1; fix Is_LSP ['HLCU']=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* declare Constants*/&lt;BR /&gt;num Min_Qty_LSP=0;&lt;BR /&gt;/*NUM BigM=STDOPT.PN3158_BigM.FEU;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*RATES*/&lt;BR /&gt;num InboundLinehaul {Ports,Transit,LSP,DC};&lt;BR /&gt;read data STDOPT.PN3158_RATES into [PortSource Transit LSP RateMatchDest] InboundLinehaul=Rate;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* DECISON VARIABLE */&lt;BR /&gt;var ContainersfromPortstoLSPtoDC {Ports,Transit,LSP,DC}&amp;gt;=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* IMPLIED VARIABLE */&lt;BR /&gt;impvar Inbound_Linehaul_Costs= sum {p in Ports, t in Transit,c in LSP, d in DC} InboundLinehaul [p,t,c,d] *ContainersfromPortstoLSPtoDC [p,t,c,d];&lt;BR /&gt;impvar ContainersatLSP{c in LSP}=sum{p in Ports,t in Transit,d in DC} ContainersfromPortstoLSPtoDC [p,t,c,d];&lt;BR /&gt;impvar ContainersatTransitLSP{t in Transit, c in LSP}=sum{p in Ports,d in DC} ContainersfromPortstoLSPtoDC [p,t,c,d];&lt;/P&gt;&lt;P&gt;/* declare Objective Function*/&lt;BR /&gt;Min TotalCost = Inbound_Linehaul_Costs;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* GENERAL CONSTRAINTS */&lt;BR /&gt;con Min_Qty_at_LSP_is_Respected {c in LSP} :&lt;BR /&gt;sum{p in Ports,t in Transit,d in DC} ContainersfromPortstoLSPtoDC [p,t,c,d]&amp;gt;=Min_Qty_LSP*Is_LSP[c];&lt;/P&gt;&lt;P&gt;con ModelOutput_Same_As_ModelInput {p in Ports, d in DC}:&lt;BR /&gt;sum {t in Transit,c in LSP} ContainersfromPortstoLSPtoDC[p,t,c, d] = Containers [p,d];&lt;/P&gt;&lt;P&gt;con CheckLSP {c in LSP}: ContainersatLSP[c] &amp;lt;= 40000*Is_LSP[c];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;expand;&lt;/P&gt;&lt;P&gt;solve with milp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Outputs*/&lt;BR /&gt;print ContainersatLSP;&lt;BR /&gt;print Is_LSP;&lt;BR /&gt;print TotalCost;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 18:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629916#M2981</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-05T18:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629920#M2982</link>
      <description>&lt;P&gt;I don't immediately see anything wrong.&amp;nbsp; Do you get the Problem Summary and Solution Summary and the results from the PRINT statements?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 19:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629920#M2982</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-03-05T19:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629923#M2983</link>
      <description>&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;Yes. The model solved . I do see Problem Summary and Solution summary as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;the reason i wanted to see the expand statement is because I want to make tweaks to the code&amp;nbsp; and so I want to follow the constraints closely to understand correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any setting thing that I need to do for me to see the expand constraints thing?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 19:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629923#M2983</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-05T19:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629924#M2984</link>
      <description>&lt;P&gt;Also I can see the results from the print statements as well&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 19:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629924#M2984</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-05T19:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629925#M2985</link>
      <description>&lt;P&gt;Are you able to share the data and the log?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 19:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629925#M2985</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-03-05T19:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629927#M2986</link>
      <description>&lt;P&gt;here is log. let me see how to share data.&lt;/P&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;174 /* OPTMIZATION CODE*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;175 proc optmodel;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;176&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;177 set &amp;lt;str&amp;gt; Ports;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;178 set &amp;lt;str&amp;gt; DC;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;179 set &amp;lt;str&amp;gt; LSP;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;180 set &amp;lt;str&amp;gt; Transit;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;181&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;182 read data STDOPT.PN3158_Ports into Ports=[PortSource];&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 41 observations read from the data set STDOPT.PN3158_PORTS.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;183 read data STDOPT.PN3158_DC into DC=[RateMatchDest];&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 18 observations read from the data set STDOPT.PN3158_DC.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;184 read data STDOPT.PN3158_LSP into LSP=[LSP];&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 9 observations read from the data set STDOPT.PN3158_LSP.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;185 read data STDOPT.PN3158_TRANSIT into Transit=[Transit];&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 28 observations read from the data set STDOPT.PN3158_TRANSIT.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;186&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;187 num Containers {Ports,DC};&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;188 read data STDOPT.PN3158_data into [PortSource RateMatchDest] Containers=FEU;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 738 observations read from the data set STDOPT.PN3158_DATA.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;189 print containers;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;190&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;191 /*END OF GETTING FEU DATA*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;192&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;193 var Is_LSP {LSP} binary;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;194 var IsLSPDC {LSP,DC} binary;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;195 var IsPortsLSPDC {Ports,LSP,DC} binary;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;196&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;197 /*Close/Open Entities */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;198 fix Is_LSP ['EGLV']=0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;198 ! fix Is_LSP ['CMDU']=0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;198 ! fix Is_LSP ['APLU']=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;199 fix Is_LSP ['COSU']=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;199 ! fix Is_LSP ['ONEY']=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;199 ! fix Is_LSP ['MAEU']=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;200 fix Is_LSP ['ZIMU']=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;200 ! fix Is_LSP ['WHLC']=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;200 ! fix Is_LSP ['HLCU']=1;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;201&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;202 /* declare Constants*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;203 num Min_Qty_LSP=0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;204 /*NUM BigM=STDOPT.PN3158_BigM.FEU;*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;205&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;206 /*RATES*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;207 num InboundLinehaul {Ports,Transit,LSP,DC};&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;208 read data STDOPT.PN3158_RATES into [PortSource Transit LSP RateMatchDest] InboundLinehaul=Rate;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: There were 185976 observations read from the data set STDOPT.PN3158_RATES.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;209&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;210&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;211 /* DECISON VARIABLE */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;212 var ContainersfromPortstoLSPtoDC {Ports,Transit,LSP,DC}&amp;gt;=0;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;213&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;214 /* IMPLIED VARIABLE */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;215 impvar Inbound_Linehaul_Costs= sum {p in Ports, t in Transit,c in LSP, d in DC} InboundLinehaul [p,t,c,d]&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;215 ! *ContainersfromPortstoLSPtoDC [p,t,c,d];&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;216 impvar ContainersatLSP{c in LSP}=sum{p in Ports,t in Transit,d in DC} ContainersfromPortstoLSPtoDC [p,t,c,d];&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;217 impvar ContainersatTransitLSP{t in Transit, c in LSP}=sum{p in Ports,d in DC} ContainersfromPortstoLSPtoDC [p,t,c,d];&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;218&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;219 /* declare Objective Function*/&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;220 Min TotalCost = Inbound_Linehaul_Costs;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;221&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;222 /* GENERAL CONSTRAINTS */&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;223 con Min_Qty_at_LSP_is_Respected {c in LSP} :&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;224 sum{p in Ports,t in Transit,d in DC} ContainersfromPortstoLSPtoDC [p,t,c,d]&amp;gt;=Min_Qty_LSP*Is_LSP[c];&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;225&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;226 con ModelOutput_Same_As_ModelInput {p in Ports, d in DC}:&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;227 sum {t in Transit,c in LSP} ContainersfromPortstoLSPtoDC[p,t,c, d] = Containers [p,d];&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;228&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;229 con CheckLSP {c in LSP}: ContainersatLSP[c] &amp;lt;= 40000*Is_LSP[c];&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;230&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;231&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;232 expand;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: Problem generation will use 4 threads.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The problem has 192789 variables (0 free, 9 fixed).&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The problem uses 10 implicit variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The problem has 6813 binary and 0 integer variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The problem has 756 linear constraints (9 LE, 738 EQ, 9 GE, 0 range).&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The problem has 557937 linear constraint coefficients.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The problem has 0 nonlinear constraints (0 LE, 0 EQ, 0 GE, 0 range).&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 19:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629927#M2986</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-05T19:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629958#M2991</link>
      <description>&lt;P&gt;Hi Rob&lt;/P&gt;&lt;P&gt;I am not sure what is the best way to share data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do u recommend?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 21:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629958#M2991</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-05T21:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629969#M2992</link>
      <description>&lt;P&gt;If the data sets are small enough, you can attach to the post in the Attachments section.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 22:18:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629969#M2992</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-03-05T22:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629972#M2993</link>
      <description>&lt;P&gt;Rob. Let me check any memory issues from my side before I share the data. The reason I say that is because EXPAND option works for a toy model with 2 or 3 entities only. So let me make sure there is no problem in my side and will get back to you. Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 22:44:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629972#M2993</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-05T22:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629974#M2994</link>
      <description>&lt;P&gt;Another question related to this model . I want to use create data to get my outputs streamlined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are four indices, p, t, c and d each representing a node. I want to count the&amp;nbsp;ContainersfromPortstoLSPtoDC [p,t,c,d], and Inbound_Linehaul for it (which will be&amp;nbsp;ContainersfromPortstoLSPtoDC [p,t,c,d] * InboundLinehaul[p,t,c,d].&amp;nbsp; What is the correct syntax for it? Also, I want to have a column called "Trial" and i want to enter my own value there. Is it possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 22:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629974#M2994</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-05T22:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629991#M2997</link>
      <description>&lt;P&gt;You might also try expanding just part of the model, as described &lt;A href="https://go.documentation.sas.com/?docsetId=ormpug&amp;amp;docsetTarget=ormpug_optmodel_syntax11.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en#ormpug.optmodel.npxexpandstmt" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 02:29:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629991#M2997</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-03-06T02:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629995#M2998</link>
      <description>&lt;P&gt;If I understand correctly, the following CREATE DATA statement does what you want:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create data mydata from [p t c d] ContainersfromPortstoLSPtoDC InboundLinehaul;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Do you also want the product of these values as a new column?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What does your quantity Trial depend on?&amp;nbsp; Does it have the same indices p, t, c, d?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 02:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/629995#M2998</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-03-06T02:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630180#M3001</link>
      <description>&lt;P&gt;Thanks Rob.&lt;/P&gt;&lt;P&gt;I was looking for this. I built on to what you gave and it worked really well for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;About the trial, what I need is a column with just a description of what the model is about in a few characters, like "Best5CustomerScenario". Reason is that I want to be able to view my Visual analytics using this as a selector . Costs by Different scenario. I will have more scenarios with added constraints.&amp;nbsp; I was thinking to add a column after create data step and updating the column with whatever I want to. Is there&amp;nbsp; a way, I can specify this text "xxxxx" right when i do create data step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may have a few more questions later. They are pretty straightforward ones.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 18:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630180#M3001</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-06T18:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630189#M3002</link>
      <description>&lt;P&gt;Yes, if you want the same text value for every observation, you can just do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create data mydata from [p t c d] ContainersfromPortstoLSPtoDC InboundLinehaul Trial=&lt;SPAN&gt;"Best5CustomerScenario"&lt;/SPAN&gt;;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can also specify a string array that depends on any combination of p, t, c, or d.&amp;nbsp; For example:&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;str mytrial {Ports, LSP};
...
create data mydata from [p t c d] ContainersfromPortstoLSPtoDC InboundLinehaul Trial=mytrial[p,c];&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 18:23:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630189#M3002</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-03-06T18:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630193#M3003</link>
      <description>&lt;P&gt;Perfect. Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 18:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630193#M3003</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-06T18:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630194#M3004</link>
      <description>&lt;P&gt;For my next scenario, I want to store my numbers (my field names are same as previous one). Instead of create data, can i just append the current scenario results to the previous scenario results that are contained in mydata?&lt;/P&gt;&lt;P&gt;If not i can create a new table name, and then consolidate them together. Suggestions?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 18:43:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630194#M3004</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-06T18:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630197#M3005</link>
      <description>&lt;P&gt;There is no direct functionality to append.&amp;nbsp; You can create two data sets and then combine them with DATA step, PROC SQL, PROC APPEND, etc.&amp;nbsp; You can do this either after the PROC OPTMODEL call or from within PROC OPTMODEL by using a SUBMIT block:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;create data mydata1 from ...;
create data mydata2 from ...;
submit;
   data mydata3;
      mydata1 mydata1;
   run;
endsubmit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Mar 2020 19:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630197#M3005</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2020-03-06T19:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: EXPAND in proc optmodel</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630223#M3006</link>
      <description>&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;I want to add a constraint UseProperRates&amp;nbsp; where I want only if the rates are greater than 1000 to be considered for model.&lt;/P&gt;&lt;P&gt;I did this but it is not working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;con UseProperRates {p in Ports, t in Transit, c in LSP, d in DC}: InboundLinehaul[p,t,c,d] &amp;gt;=1000;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 20:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/EXPAND-in-proc-optmodel/m-p/630223#M3006</guid>
      <dc:creator>Santha</dc:creator>
      <dc:date>2020-03-06T20:19:55Z</dc:date>
    </item>
  </channel>
</rss>

