<?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: Please help a newbie with PROC OPTMODEL! in Mathematical Optimization, Discrete-Event Simulation, and OR</title>
    <link>https://communities.sas.com/t5/Mathematical-Optimization/Please-help-a-newbie-with-PROC-OPTMODEL/m-p/968490#M4328</link>
    <description>&lt;P&gt;The simplest way to get your code working is to make the following changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Change the declaration of two sets:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    set &amp;lt;str&amp;gt; GUARDS;
    set &amp;lt;str&amp;gt; SHIFTS;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2. Replace the READ DATA statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    read data guard_availability into GUARDS=[Guard];
    read data guard_availability into SHIFTS=[Shift];
    read data guard_availability into DATES=[Date];
    read data guard_availability into [Guard Shift Date]
        Available Hours;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;3. Change the CREATE DATA statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    create data schedule from [Guard Shift Date] Assigned=x;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might find this book of examples useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_063/ormpex/titlepage.htm" target="_blank"&gt;SAS Help Center: SAS/OR® User's Guide: Mathematical Programming Examples&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jun 2025 21:51:07 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2025-06-09T21:51:07Z</dc:date>
    <item>
      <title>Please help a newbie with PROC OPTMODEL!</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Please-help-a-newbie-with-PROC-OPTMODEL/m-p/968384#M4327</link>
      <description>Hi, I am still fairly new to SAS and can do most of your basic tests and codes. I am an intern at a company and am working on a school project that involves the company, and am having trouble with PROC OPTMODEL. Thought I could teach myself, but it’s a bit harder than I realized. I am attaching a very short modified dataset as an example of what I am trying to do with a larger dataset. I’d like to start small, and learn how to add more constraints to my larger model myself. But I can’t even get a basic code to run. I’m trying to optimize a schedule for efficiency. (Later, I’d use cost, etc). I have three people in the data set that need to work 3 days, 8 hour shifts, when available (1). I am attaching what I have so far. Any help or sample code so I could get a base start would be very much appreciated! Thank you!</description>
      <pubDate>Sat, 07 Jun 2025 22:50:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Please-help-a-newbie-with-PROC-OPTMODEL/m-p/968384#M4327</guid>
      <dc:creator>cr4</dc:creator>
      <dc:date>2025-06-07T22:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Please help a newbie with PROC OPTMODEL!</title>
      <link>https://communities.sas.com/t5/Mathematical-Optimization/Please-help-a-newbie-with-PROC-OPTMODEL/m-p/968490#M4328</link>
      <description>&lt;P&gt;The simplest way to get your code working is to make the following changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Change the declaration of two sets:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    set &amp;lt;str&amp;gt; GUARDS;
    set &amp;lt;str&amp;gt; SHIFTS;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2. Replace the READ DATA statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    read data guard_availability into GUARDS=[Guard];
    read data guard_availability into SHIFTS=[Shift];
    read data guard_availability into DATES=[Date];
    read data guard_availability into [Guard Shift Date]
        Available Hours;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;3. Change the CREATE DATA statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    create data schedule from [Guard Shift Date] Assigned=x;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might find this book of examples useful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_063/ormpex/titlepage.htm" target="_blank"&gt;SAS Help Center: SAS/OR® User's Guide: Mathematical Programming Examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jun 2025 21:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Mathematical-Optimization/Please-help-a-newbie-with-PROC-OPTMODEL/m-p/968490#M4328</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2025-06-09T21:51:07Z</dc:date>
    </item>
  </channel>
</rss>

