<?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 LP Scheduling Problem in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3841#M45</link>
    <description>Oops I couldn't see the mathematical formulation, sending you the formulation again.&lt;BR /&gt;
Here is the mathematical formulation of the above constraint:&lt;BR /&gt;
Min (Σi Xk   for all K) &amp;lt;= 0.5* Max (Σi Xk   for all K)   &lt;BR /&gt;
where i denote person  and K denote day</description>
    <pubDate>Sun, 15 Jul 2007 02:06:54 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-07-15T02:06:54Z</dc:date>
    <item>
      <title>Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3840#M44</link>
      <description>Hello Sir,&lt;BR /&gt;
I am currently trying to solve an optimization problem which is very similar to the LP Scheduling problem described in the SAS/OR document. Please refer the link below to see the problem.&lt;BR /&gt;
&lt;A href="http://www.caspur.it/risorse/softappl/doc/sas_docs/ormp/chap3/sect58.htm" target="_blank"&gt;http://www.caspur.it/risorse/softappl/doc/sas_docs/ormp/chap3/sect58.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
I want to add another constraint which I have formulated and explained below, but I don't know how to code this in sparse data format.&lt;BR /&gt;
For Ex: Let say the Maximum number of slots worked is 8 hours on Monday and minimum is 2 hours on Friday and I want to add a constraint such that the difference between minimum and maximum is 50% , so in this case the optimization will try to either increase slots on Friday or decrease it on Monday.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Here is the mathematical formulation of the above constraint:&lt;BR /&gt;
Min (Σi Xk   for all K) &amp;lt;= 0.5* Max (Σi Xk   for all K)   &lt;BR /&gt;
where i denote person  and K denote day&lt;BR /&gt;
&lt;BR /&gt;
Any help is greatly appreicated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
Ayush</description>
      <pubDate>Sun, 15 Jul 2007 02:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3840#M44</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-15T02:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3841#M45</link>
      <description>Oops I couldn't see the mathematical formulation, sending you the formulation again.&lt;BR /&gt;
Here is the mathematical formulation of the above constraint:&lt;BR /&gt;
Min (Σi Xk   for all K) &amp;lt;= 0.5* Max (Σi Xk   for all K)   &lt;BR /&gt;
where i denote person  and K denote day</description>
      <pubDate>Sun, 15 Jul 2007 02:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3841#M45</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-15T02:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3842#M46</link>
      <description>Sorry , Again I was not able to view the mathematical equation so I am writing the formulation in plain english:&lt;BR /&gt;
Minimum number of slots in 5 days should be less than 50% of maximum number of slots worked in 5 days  &lt;BR /&gt;
&lt;BR /&gt;
Min (Σi Xk   for all K) LE 0.5* Max (Σi Xk   for all K)</description>
      <pubDate>Sun, 15 Jul 2007 02:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3842#M46</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-15T02:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3843#M47</link>
      <description>Do you want one of these constraints for each employee? Or, do you want the overall assignment across employees and slots? &lt;BR /&gt;
&lt;BR /&gt;
Also, I assume you are trying to balance the workload across days? In the example you gave, the min=2, max=8. But the constraint you have below will be true for this case (2 &amp;gt;= 0.5 * 8 = 4). In addition, the case min=2, max=2 will be violated by this constraint. Do you mean GE, rather than LE?&lt;BR /&gt;
&lt;BR /&gt;
min{ sum_{j} x[i,j,k], for all k} &amp;gt;= 0.5 max { sum_{j} x[i,j,k], for all k}, for all i&lt;BR /&gt;
or&lt;BR /&gt;
min{ sum_{i,j} x[i,j,k], for all k} &amp;gt;= 0.5 max { sum_{i,j} x[i,j,k], for all k}</description>
      <pubDate>Sun, 15 Jul 2007 03:55:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3843#M47</guid>
      <dc:creator>Matthew_Galati</dc:creator>
      <dc:date>2007-07-15T03:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3844#M48</link>
      <description>Hello Mathew,&lt;BR /&gt;
I greatly appreciate your response. As said in my previous message that my problem is very similar to the scheduling problem but it differs in some respect. So in this case I am just looking at employee’s distribution across days and I would like to apply constraint for overall assignment of employee’s across days. &lt;BR /&gt;
EX: Let say on Monday total number of hours worked by employees is 8 and on Friday it is 2. The constraint which I am trying to formulate should solve optimization problem by balancing the workload within some percentage (In my example I have assumed the variation to be 50%). &lt;BR /&gt;
Here is my new constraint formulation:&lt;BR /&gt;
I agree that my previous formulation should have GE or GT instead of LE or LT.&lt;BR /&gt;
&lt;BR /&gt;
min{ sum_{i} x[i,k], for all k} GT 0.5 max { sum_{i} x[i,k], for all k}  &lt;BR /&gt;
&lt;BR /&gt;
The only difference between your formulation and mine is I am adjusting the workload for person and not taking into account the slots (j variable).&lt;BR /&gt;
&lt;BR /&gt;
Once again I greatly appreciate your help and support.&lt;BR /&gt;
Thanks</description>
      <pubDate>Sun, 15 Jul 2007 14:45:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3844#M48</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-15T14:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3845#M49</link>
      <description>Ok, I can probably help. &lt;BR /&gt;
&lt;BR /&gt;
Given I do not have your model, I will try to explain in the context of the original example. Therefore, your constraint would look like:&lt;BR /&gt;
      min{ sum_{i,j} x[i,j,k], for all k} &amp;gt;= 0.5 max { sum_{i,j} x[i,j,k], for all k} &lt;BR /&gt;
    &lt;BR /&gt;
What version of SAS/OR are you using? If you have version SAS 9.1.3, Release 3.1, then you might want to switch to using the new modeling language OPTMODEL. It is much better than the old style for manipulating model formulations. And, the new solvers have better performance than the older ones.&lt;BR /&gt;
&lt;BR /&gt;
In fact, the scheduling example you mention has been converted to OPTMODEL here:&lt;BR /&gt;
  &lt;A href="http://support.sas.com/onlinedoc/913/docMainpage.jsp" target="_blank"&gt;http://support.sas.com/onlinedoc/913/docMainpage.jsp&lt;/A&gt;&lt;BR /&gt;
  &lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/ormpug.hlp/milpsolver_sect15.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/ormpug.hlp/milpsolver_sect15.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Have a look. Let me know if you want help using the old style (PROC LP) or the new style (OPTMODEL).&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Matt</description>
      <pubDate>Sun, 15 Jul 2007 15:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3845#M49</guid>
      <dc:creator>Matthew_Galati</dc:creator>
      <dc:date>2007-07-15T15:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3846#M50</link>
      <description>Matt,&lt;BR /&gt;
Thanks again for your response. I am currently using SAS V8 and I will greatly appreciate if you can help me in explaining the steps used in Proc LP.&lt;BR /&gt;
&lt;BR /&gt;
Once again thank you very much for your time and support.&lt;BR /&gt;
&lt;BR /&gt;
Ayush</description>
      <pubDate>Sun, 15 Jul 2007 15:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3846#M50</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-15T15:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3847#M51</link>
      <description>Matt,&lt;BR /&gt;
I am asking your help to build LP problem since I have spent a lot of time in developing and coding other constraints of my model and also I don't have Version 9.1.3 with me.&lt;BR /&gt;
&lt;BR /&gt;
But one thing I would like to mention about LP problem is, albeit the LP formulation is hard to code but it give a very good understanding of the problem and since Optmodel is higher version of LP model, it won't be hard for me to implement the same problem using Optmodel procedure.&lt;BR /&gt;
&lt;BR /&gt;
Also a quick question, when you mentioned in your earlier email that Optmodel has a good solver than LP procedure, do you mean that it is better in terms of accuracy,processing time etc ? Can you please mention pros and cons of using Optmodel vs. LP procedure?&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Sun, 15 Jul 2007 16:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3847#M51</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-15T16:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3848#M52</link>
      <description>Ok - I will work on both the PROC OPTMODEL and PROC LP versions when I have some free time tomorrow. Then you can see how each works.&lt;BR /&gt;
&lt;BR /&gt;
The new OPT* procedures in 9.1.3 have significant enhancements to the underlying algorithms. OPTMODEL has access to each of these solvers through the modeling language. So, if you run OPTMODEL, you are using the new solvers. In particular, PROC LP is being phased out by OPTLP (for linear programming) and OPTMILP (for linear integer programming). You should see a significant improvement in processing time for most LPs and MILPs. Also, we now provide a conversion program to go from the old PROC LP format directly to OPTLP and OPTMILP. This will ease the transition to the new solvers.&lt;BR /&gt;
    &lt;A href="http://support.sas.com/samples_app/01/sample01730_1_lp2mpsd.sas.txt" target="_blank"&gt;http://support.sas.com/samples_app/01/sample01730_1_lp2mpsd.sas.txt&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
And here is a little more info about OPTMODEL:&lt;BR /&gt;
   &lt;A href="http://support.sas.com/rnd/app/or/mp/MPToolsN.html#OPTMODEL" target="_blank"&gt;http://support.sas.com/rnd/app/or/mp/MPToolsN.html#OPTMODEL&lt;/A&gt;</description>
      <pubDate>Sun, 15 Jul 2007 17:14:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3848#M52</guid>
      <dc:creator>Matthew_Galati</dc:creator>
      <dc:date>2007-07-15T17:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3849#M53</link>
      <description>Matt,&lt;BR /&gt;
I greatly appreciate for your time and support and I look forward to hear from you soon.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Sun, 15 Jul 2007 18:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3849#M53</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-15T18:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3850#M54</link>
      <description>Hello Matt,&lt;BR /&gt;
I was wondering if you had a time to look at the problem mentioned in my earlier email.&lt;BR /&gt;
&lt;BR /&gt;
I greatly appreciate for all the help and support you have been providing me and look forward to hear from you soon.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Tue, 17 Jul 2007 23:24:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3850#M54</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-17T23:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3851#M55</link>
      <description>Sorry - I've been very busy. I will post something tomorrow.</description>
      <pubDate>Wed, 18 Jul 2007 00:33:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3851#M55</guid>
      <dc:creator>Matthew_Galati</dc:creator>
      <dc:date>2007-07-18T00:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3852#M56</link>
      <description>I've attached the adjusted documentation example code.&lt;BR /&gt;
&lt;BR /&gt;
Since I am unable to post formatted SAS code to this message box, please refer to the attachment.&lt;BR /&gt;
&lt;BR /&gt;
To enforce a constraint like this, min{ sum_{i,j} x[i,j,k], for all k} &amp;gt;= 0.5 max { sum_{i,j} x[i,j,k], for all k}, using a linear programming formulation, you will need to add 2 new variables to the problem which will define the min (MinSlots) and max (MaxSlots) number of slots assigned.&lt;BR /&gt;
&lt;BR /&gt;
Then, you will need constraints to enforce this relationship. For the min, just make sure the sum across assignments is always greater than MinSlots (con MinSlotDef). For the max, the sum should always be less than MaxSlots (con MaxSlotDef).&lt;BR /&gt;
&lt;BR /&gt;
After this, enforcing your new constraint is easy. Just make MinSlots &amp;gt;= 0.5 * MaxSlots (con MinMaxDiffLimit).&lt;BR /&gt;
&lt;BR /&gt;
So, for doing this in PROC LP, you need to simply introduce 2 new variables and 3 new constraints using the sparse data format. This can be done in the normal manner.</description>
      <pubDate>Wed, 18 Jul 2007 16:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3852#M56</guid>
      <dc:creator>Matthew_Galati</dc:creator>
      <dc:date>2007-07-18T16:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3853#M57</link>
      <description>Matt,&lt;BR /&gt;
I greatly appreciate for your help and interest. Since the code is written for Optmodel procedure so it will take me a while to implement it in Proc LP.&lt;BR /&gt;
&lt;BR /&gt;
I will keep you posted about how it works in LP proc.&lt;BR /&gt;
&lt;BR /&gt;
Once again thank you so much for your help and support.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 18 Jul 2007 23:35:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3853#M57</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-18T23:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3854#M58</link>
      <description>Matt,&lt;BR /&gt;
Just one more question:&lt;BR /&gt;
Following is my presentation of data after applying my constraint (not the constraint which you have suggested, as I am still unsuccessful in applying that one).&lt;BR /&gt;
&lt;BR /&gt;
My Constraint: Person can only work in one of the five weekdays ( for ex :X denotes the assignment from LP problem )&lt;BR /&gt;
Name Mon Tue Wed Thu Fri&lt;BR /&gt;
N1       X&lt;BR /&gt;
N2                     x&lt;BR /&gt;
N3       X&lt;BR /&gt;
N4                            X&lt;BR /&gt;
N5                                   X&lt;BR /&gt;
N6      X&lt;BR /&gt;
N7      X&lt;BR /&gt;
N8                                  X&lt;BR /&gt;
&lt;BR /&gt;
and so on.. I would like to balance the allocation between days (Min and Max) to be within some percentage.&lt;BR /&gt;
&lt;BR /&gt;
Now as per your suggestion , I have to create Maxslots and Minslots variable and use those variables into three constraints mentioned in your message.&lt;BR /&gt;
I am stuck at this step as how to define my MAXSLOTS and MINSLOTS variable and how to code them in sparse data format.&lt;BR /&gt;
&lt;BR /&gt;
 /* max number of slots */&lt;BR /&gt;
	 var MaxSlots &amp;gt;= 0 &amp;lt;= NSlots;&lt;BR /&gt;
/* min number of slots */&lt;BR /&gt;
	 var MinSlots &amp;gt;= 0 &amp;lt;= NSlots;&lt;BR /&gt;
&lt;BR /&gt;
What would be NSLOTS in my problem above?&lt;BR /&gt;
&lt;BR /&gt;
I will greatly appreciate if you can help me in explaining the LP sparse data format to my problem above.&lt;BR /&gt;
&lt;BR /&gt;
Once again thank you very much for your time and interest.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Thu, 19 Jul 2007 02:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3854#M58</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-19T02:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3855#M59</link>
      <description>Previous assignment was not aligned properly:&lt;BR /&gt;
&lt;BR /&gt;
Name Mon Tue Wed Thu Fri&lt;BR /&gt;
N1 ......X&lt;BR /&gt;
N2 ..............X&lt;BR /&gt;
N3 ......X&lt;BR /&gt;
N4 .................................X&lt;BR /&gt;
N5 ......X&lt;BR /&gt;
N6 ......X&lt;BR /&gt;
N7 ..................................X&lt;BR /&gt;
N8 ......X</description>
      <pubDate>Thu, 19 Jul 2007 02:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3855#M59</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-19T02:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3856#M60</link>
      <description>Matt,&lt;BR /&gt;
for some reasons this forum doesn't allow me to type certain characters so I am sending you my question again.&lt;BR /&gt;
How do I identify Nslots in my problem? for ex if there are N person and d days then whether Nslots will be N or a permutation and combination of N AN D?&lt;BR /&gt;
2) Let say I assume Nslots to be a constant for all the weekdays, so how can I write the following equation in sparse format( I got an error while running LP proc)&lt;BR /&gt;
Var MAXslots &amp;gt;=0 &amp;lt;= Nslots&lt;BR /&gt;
Var MinSlots &amp;gt;= 0 &amp;lt;= Nslots&lt;BR /&gt;
3) Also when writing the constraint , is Minslots same for all days or is it different for each day Ex:When you wrote condition Sum(Person Slot) for all weekdays  &amp;gt;= Minslots, whether this condition should be for Minslots(D) (weekdays ) ? Can you also explain me how to implement this in sparse format?</description>
      <pubDate>Thu, 19 Jul 2007 17:00:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3856#M60</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-19T17:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3857#M61</link>
      <description>if you want to type the less-than character, type &amp;amp;-lt-; -- that's ampersand-LT-semi-colon -- but type without the dashes:&lt;BR /&gt;
[pre]&lt;BR /&gt;
&amp;lt;&lt;BR /&gt;
&amp;amp;-lt-; produced the above less than sign (without the dashes in the string)&lt;BR /&gt;
   &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;amp;-gt-; produced the greater than sign (without the dashes in the string)&lt;BR /&gt;
[/pre]&lt;BR /&gt;
    &lt;BR /&gt;
In order to have your program code line up correctly, type&lt;BR /&gt;
[pre]&lt;BR /&gt;
[-pre-]  (no dashes in the string)&lt;BR /&gt;
square bracket pre square bracket at the beginning of code and&lt;BR /&gt;
   &lt;BR /&gt;
square bracket /pre square bracket at the end of the code&lt;BR /&gt;
[-/pre-] (no dashes in the string)&lt;BR /&gt;
     &lt;BR /&gt;
** Notice how this code is in a "preformatted" font;&lt;BR /&gt;
proc whatever data=mydata;&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
[/pre]&lt;BR /&gt;
by square bracket, I mean the [ character at the beginning of pre and the ] as the square bracket after the pre.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 19 Jul 2007 22:03:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3857#M61</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-07-19T22:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3858#M62</link>
      <description>Cynthia, &lt;BR /&gt;
Thanks for your message !! It really helped me a lot ..&lt;BR /&gt;
&lt;BR /&gt;
Is there any way to upload my data to this forum so that Matt and other people can easily understand my probem.&lt;BR /&gt;
&lt;BR /&gt;
For All : I am really sorry for my previous messages which might have created confusion because of lot of typos in it.&lt;BR /&gt;
&lt;BR /&gt;
Matt: Below is the code which I am writing in the data model step,please help me in resolving this problem in Lp procedure&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
  &lt;BR /&gt;
 DATA Model;&lt;BR /&gt;
  set raw end=eof; /* My Raw data is slightly in different format */&lt;BR /&gt;
      length _row_ $ 20 _col_ $ 16 _type_ $ 8; &lt;BR /&gt;
      keep _type_ _col_ _row_ _coef_;&lt;BR /&gt;
/*objective function and other constraints are not written here */&lt;BR /&gt;
&lt;BR /&gt;
/* Below is the code which I am trying to incorporate in my model data */&lt;BR /&gt;
 if eof then do;&lt;BR /&gt;
         _row_='Maxslots';&lt;BR /&gt;
         _type_='ge';&lt;BR /&gt;
         _col_='_RHS_';&lt;BR /&gt;
         _coef_=0;&lt;BR /&gt;
         output;&lt;BR /&gt;
          _row_='Maxslots';&lt;BR /&gt;
         _type_='Le';&lt;BR /&gt;
         _col_='_RHS_';&lt;BR /&gt;
         _coef_=1965; /* Nslots = 1965  I have assumed this to be equal to number of person (N)*/&lt;BR /&gt;
         output;&lt;BR /&gt;
     _row_='MINslots';&lt;BR /&gt;
         _type_='ge';&lt;BR /&gt;
         _col_='_RHS_';&lt;BR /&gt;
         _coef_=0;&lt;BR /&gt;
         output;&lt;BR /&gt;
          _row_='MINslots';&lt;BR /&gt;
         _type_='Le';&lt;BR /&gt;
         _col_='_RHS_';&lt;BR /&gt;
         _coef_=1965; /*NSlots = 1965*/&lt;BR /&gt;
         output;&lt;BR /&gt;
end;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 19 Jul 2007 23:45:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3858#M62</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-19T23:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Proc LP Scheduling Problem</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3859#M63</link>
      <description>Matt,&lt;BR /&gt;
Finally, I was able to write code and run proc LP optimization problem. Thanks for all your help.&lt;BR /&gt;
&lt;BR /&gt;
Even though the optimization ran smoothly I have encountered some of the issues while running it and I was not sure if those issues were caused due to LP proc or because of my constraints formulation , So I thought I will post my issues on this forum to get some feedback from all of the group.&lt;BR /&gt;
&lt;BR /&gt;
1) One of my constraints checks condition where X GE O.5 Y and though the optimization problem gave me expected result but I think it took lot of iterations to converge. My hypothesis is that it might be caused because of numerical precision as 0.49999999999999999999999 and 0.5 are different when SAS is making arithmetic calculations. Do you think the same way?&lt;BR /&gt;
&lt;BR /&gt;
2) I started with 1989 unique observations and end up with 1994 unique observations. Is this happening because of rounding error?&lt;BR /&gt;
Please advice.</description>
      <pubDate>Mon, 23 Jul 2007 01:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Proc-LP-Scheduling-Problem/m-p/3859#M63</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-23T01:28:08Z</dc:date>
    </item>
  </channel>
</rss>

