<?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: Linear optimisation problem, limitation problem in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/349122#M1741</link>
    <description>&lt;P&gt;There is a hard limit of 2^31 - 1 = 2,147,483,647 variables, constraints, or nonzero coefficients. &amp;nbsp;Other than that, the only limit depends on the amount of memory you have provided to SAS.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2017 14:04:56 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2017-04-11T14:04:56Z</dc:date>
    <item>
      <title>Linear optimisation problem, limitation problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/348710#M1733</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We trying to solve the next optimization problem?&lt;/P&gt;&lt;P&gt;We have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Pij, i=1÷3, j=1÷30, Pij are positive&lt;/LI&gt;&lt;LI&gt;Bi, i=1÷3, integer positiveConstraints:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The searching result is matrix of 3 x 30 of binary values Xij with next conditions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For each j =1÷30, Sum (by index of i=1÷3)Xij=1&lt;/LI&gt;&lt;LI&gt;For each i =1÷3, Sum by index of (j=1÷3o)Xij≤Bi&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Objective: Optimize:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Maximize (Sum (by index of i=1÷3) Sum (by index of j=1÷30) Pij *Xij)Is there another predefined subroutine in SAS/IML which can be used to solve this problem? We haven’t the SAS/OR.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The suggested solution from&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684" target="_self"&gt;Rick_SAS &lt;/A&gt;was to convert this to linear optimization programing.&lt;/P&gt;&lt;P&gt;You can see here the solution.&lt;/P&gt;&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/Linear-optimization-in-SAS-IML/td-p/340754" target="_self"&gt;Linear optimization in SAS/IML &lt;/A&gt;&lt;/P&gt;&lt;P&gt;In real situation we for j index we have 30000, not only 30. The matrix became too large. It is not possible to solve it by SAS/IML. The limitation there is 200 constraints, which is too few.&lt;BR /&gt;We haven’t SAS/OR yet.&lt;BR /&gt;My question concerns the limitation of constraints and the size of matrix in SAS/OR? Is it possible to work with matrix size of 90000 x 30000. How many constraints there can have?&lt;BR /&gt;Is it possible to solve this task with another procedure, not with linear programing in SAS/OR?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Boriana&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 14:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/348710#M1733</guid>
      <dc:creator>Boriana</dc:creator>
      <dc:date>2017-04-10T14:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Linear optimisation problem, limitation problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/348769#M1738</link>
      <description>&lt;P&gt;You can formulate and solve the problem with PROC OPTMODEL in SAS/OR:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
   set ISET = 1..3;
   set JSET = 1..30000;
   num p {ISET, JSET} = rand('UNIFORM');
   num b {ISET} = card(JSET)*rand('UNIFORM');
   var X {ISET, JSET} binary;
   max Z = sum {i in ISET, j in JSET} p[i,j] * X[i,j];
   con Con1 {j in JSET}:
      sum {i in ISET} X[i,j] = 1;
   con Con2 {i in ISET}:
      sum {j in JSET} X[i,j] &amp;lt;= b[i];

   /* call (default) MILP solver */
   solve;

   /* call LP solver with (default) dual simplex algorithm */
   solve with lp relaxint;

   /* call LP solver with network simplex algorithm */
   solve with lp relaxint / algorithm=ns;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Because the problem has a pure network structure, the third solve performs the best, solving in less than a second. &amp;nbsp;Due to total unimodularity of the resulting constraint matrix, you can relax the integrality of x and an optimal solution will automatically take integer values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also model the problem in terms of a bipartite directed network, where the left side consists of the i nodes, each with a supply of at most b[i], and the right side consists of the j nodes, each with a demand of exactly 1. &amp;nbsp;The (binary) variable x[i,j] represents the flow from node i to node j. &amp;nbsp;You can&amp;nbsp;negate the link weights (because you want to maximize) and call the minimum-cost network flow algorithm either via the &lt;A href="http://go.documentation.sas.com/?docsetId=ormpug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=ormpug_networksolver_details19.htm&amp;amp;locale=en" target="_self"&gt;network solver&lt;/A&gt; in PROC OPTMODEL or via &lt;A href="http://go.documentation.sas.com/?docsetId=ornoaug&amp;amp;docsetVersion=14.2&amp;amp;docsetTarget=ornoaug_optnet_details23.htm&amp;amp;locale=en" target="_self"&gt;PROC OPTNET&lt;/A&gt;, also in SAS/OR.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2017 16:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/348769#M1738</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2017-04-10T16:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Linear optimisation problem, limitation problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/349023#M1739</link>
      <description>&lt;P&gt;Do you know if there are any limitation of this procedure? For the number of constraints, for size of datasets? Does it depend from RAM of the computer?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 08:58:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/349023#M1739</guid>
      <dc:creator>Boriana</dc:creator>
      <dc:date>2017-04-11T08:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Linear optimisation problem, limitation problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/349118#M1740</link>
      <description>&lt;P&gt;Or you could perform Genetic Algorithm in IML .&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 13:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/349118#M1740</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-04-11T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Linear optimisation problem, limitation problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/349122#M1741</link>
      <description>&lt;P&gt;There is a hard limit of 2^31 - 1 = 2,147,483,647 variables, constraints, or nonzero coefficients. &amp;nbsp;Other than that, the only limit depends on the amount of memory you have provided to SAS.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2017 14:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Linear-optimisation-problem-limitation-problem/m-p/349122#M1741</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2017-04-11T14:04:56Z</dc:date>
    </item>
  </channel>
</rss>

