<?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: algorithme to create planning with rules in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/753133#M237333</link>
    <description>&lt;P&gt;In my eyes it looks like a randomisation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type1/week AND one type2/week AND one type3/&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;week.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;But only one type(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) per date (and per person)&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;A)Can you have a type3 today and a type1 tomorrow?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) for each day, and each type (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;), it should have at leat&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;persons&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;B)Are you trying to get the maximum or the minimum possible occupation of persons per day and week?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type4 per&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;month.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;it should be on saturday&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;C)with 14 subjects and 4 weeks a month you would get an occupation of up to 4 persons a saturday, if I balance the groups, is that what you intend to do?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type5 in the week when he has a type4&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;D)Otherwise no day off!? how many type5 per month?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;E)And what are the rules for type0?&amp;nbsp;what does type0 mean?&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG style="font-family: 'Courier New'; font-size: medium;"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;How many per week/month?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;F)what's the difference between Type0 and Type5?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;G)Is there the intention to maximize or minimize some Types per week? get the less or the maximum occupation?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 13:05:39 GMT</pubDate>
    <dc:creator>Oligolas</dc:creator>
    <dc:date>2021-07-09T13:05:39Z</dc:date>
    <item>
      <title>algorithme to create planning with rules</title>
      <link>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/752535#M237073</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;what I would like to obtain is to fill the column daytype_code in this "HAVE" table by respecting 4 &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;rules.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type1/week AND one type2/week AND one type3/&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;week.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; But only one type(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; or &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; or &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) per date (and per person)&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) for each day, and each type (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;), it should have at leat &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; persons &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type4 per &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;month.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; it should be on saturday&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type5 in the week when he has a type4&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;important : I Don't ask you to develop the solution but just giving me please some advice on the logic, on the procedure, methode&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;thanks a lot in advance&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;regards&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Nass&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Data t_calendar ;
input day : DDMMYY10. ;
format day DDMMYY10. ;
datalines ;
01/07/2021
02/07/2021
03/07/2021
04/07/2021
05/07/2021
06/07/2021
07/07/2021
08/07/2021
09/07/2021
10/07/2021
11/07/2021
12/07/2021
13/07/2021
14/07/2021
15/07/2021
16/07/2021
17/07/2021
18/07/2021
19/07/2021
20/07/2021
21/07/2021
22/07/2021
23/07/2021
24/07/2021
25/07/2021
26/07/2021
27/07/2021
28/07/2021
29/07/2021
30/07/2021
31/07/2021
;
run ;


data t_team ;
input person $ ;
datalines ;
Benjamin
David
Elise
Emma
Jean
Marie
Nadia
Patrick
Paul
Peter
Robert
Simon
Vadim
Martin
run ;

data t_daytype ;
length daytype_code $ 5 daytype_description $ 20;
input daytype_code $ daytype_description $ ;
datalines ;
type0 permanence_no
type1 permanence_8h
type2 permanence_18h
type3 permanence_19h30
type4 permanence_saturday
type5 day_off
run ;


proc sql ;
create table have as
select person , day , "type0" as daytype_code
from t_team , t_calendar 
order by 1 , 2 ;
quit ;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jul 2021 12:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/752535#M237073</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2021-07-07T12:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: algorithme to create planning with rules</title>
      <link>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/752553#M237082</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this should help you for a start:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL ;
   CREATE TABLE have AS
      SELECT month(day) as month, week(day, 'w') as week, day , put(weekday(day),dowName.) as weekday, person , daytype_code, daytype_description
      FROM t_team , t_calendar, t_daytype 
      ORDER BY month, week, day, person , daytype_code
   ;
QUIT ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Jul 2021 13:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/752553#M237082</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2021-07-07T13:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: algorithme to create planning with rules</title>
      <link>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/752847#M237179</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/147725"&gt;@Nasser_DRMCP&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, basically there is a matrix whose rows correspond to calendar days and whose columns correspond to persons and you want to populate this matrix with "day type" codes. Your rules define a relatively small subset of the huge set of possible matrices. Therefore, I think your best bet will be to use methods available in &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_intro_sect020.htm&amp;amp;docsetVersion=15.2&amp;amp;locale=en" target="_blank" rel="noopener nofollow noreferrer"&gt;SAS/OR&lt;/A&gt; if you (unlike me) have this module licensed. For example, the &lt;A href="https://documentation.sas.com/doc/en/ormpug/15.2/ormpug_clpsolver_overview.htm" target="_blank" rel="noopener"&gt;constraint programming&lt;/A&gt; capabilities of &lt;A href="https://documentation.sas.com/doc/en/ormpug/15.2/ormpug_optmodel_overview.htm" target="_blank" rel="noopener"&gt;PROC OPTMODEL&lt;/A&gt; sound like being useful for your task. You will likely get more specific advice by posting your problem&amp;nbsp;&lt;SPAN&gt;in the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/Mathematical-Optimization/bd-p/operations_research" target="_blank" rel="noopener"&gt;Mathematical Optimization, Discrete-Event Simulation, and OR&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;subforum (after a search in the existing posts there). Good luck!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 11:53:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/752847#M237179</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-07-08T11:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: algorithme to create planning with rules</title>
      <link>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/752892#M237196</link>
      <description>hello&lt;BR /&gt;thanks for your respons . this module seams interesting but unfortunately we do not have the licence.&lt;BR /&gt;&lt;BR /&gt;N</description>
      <pubDate>Thu, 08 Jul 2021 15:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/752892#M237196</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2021-07-08T15:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: algorithme to create planning with rules</title>
      <link>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/753133#M237333</link>
      <description>&lt;P&gt;In my eyes it looks like a randomisation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type1/week AND one type2/week AND one type3/&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;week.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;But only one type(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) per date (and per person)&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;A)Can you have a type3 today and a type1 tomorrow?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) for each day, and each type (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;), it should have at leat&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;persons&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;B)Are you trying to get the maximum or the minimum possible occupation of persons per day and week?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type4 per&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;month.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;it should be on saturday&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;C)with 14 subjects and 4 weeks a month you would get an occupation of up to 4 persons a saturday, if I balance the groups, is that what you intend to do?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type5 in the week when he has a type4&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;D)Otherwise no day off!? how many type5 per month?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;E)And what are the rules for type0?&amp;nbsp;what does type0 mean?&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG style="font-family: 'Courier New'; font-size: medium;"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;How many per week/month?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;F)what's the difference between Type0 and Type5?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;G)Is there the intention to maximize or minimize some Types per week? get the less or the maximum occupation?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 13:05:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/753133#M237333</guid>
      <dc:creator>Oligolas</dc:creator>
      <dc:date>2021-07-09T13:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: algorithme to create planning with rules</title>
      <link>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/753177#M237352</link>
      <description>&lt;P&gt;&lt;EM&gt;Thanks for your help Oligolas. my respons below&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type1/week AND one type2/week AND one type3/&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;week.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;But only one type(&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;) per date (and per person)&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;A)Can you have a type3 today and a type1 tomorrow? &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT color="#000000"&gt;yes.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) for each day, and each type (&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;), it should have at leat&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;2&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;persons&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;B)Are you trying to get the maximum or the minimum possible occupation of persons per day and week? &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT color="#000000"&gt;I&amp;nbsp;try&amp;nbsp;to get the minimum wich is 4&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type4 per&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;month.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;it should be on saturday&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;C)with 14 subjects and 4 weeks a month you would get an occupation of up to 4 persons a saturday, if I balance the groups, is that what you intend to do? &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT color="#000000"&gt;no matter the number of subject on saturday. I just want that each person work at least one saturday per month&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rule&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;4&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;°) each person should have one type5 in the week when he has a type4&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;D)Otherwise no day off!? how many type5 per month? &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT color="#000000"&gt;firstly&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;, &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT color="#000000"&gt;we Don't want to deal with the holidays (except the day off when you work on saturday)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;E)And what are the rules for type0?&amp;nbsp;what does type0 mean?&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG style="font-family: 'Courier New'; font-size: medium;"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;How many per week/month? &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT color="#000000"&gt;type0 (default value) means no constraint, ordinary day. for exmple, monday=type / tuesday=type2 / wednesday=type3, then Thursday and friday are type0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;F)what's the difference between Type0 and Type5? &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT color="#000000"&gt;type5 is a day off (your are at home) but type0 you work without constraint. type0 = you start/finish as&amp;nbsp;standard (from 9AM to 5PM).&amp;nbsp;type1 = you start at 8:00 AM / type2 = you finish at 6:00 PM / type3 = you finish at 7:30 PM&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;G)Is there the intention to maximize or minimize some Types per week? get the less or the maximum occupation?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT color="#000000"&gt; if it is possible, the intention is to minimize type per Week. get the less occupation. but respect the minimun of&amp;nbsp;2 persons&amp;nbsp;for each &amp;nbsp;type&amp;nbsp;and&amp;nbsp;each&amp;nbsp;day&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;&lt;FONT color="#000000"&gt;many Thanks&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 14:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/algorithme-to-create-planning-with-rules/m-p/753177#M237352</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2021-07-09T14:50:42Z</dc:date>
    </item>
  </channel>
</rss>

