Schedule Data Set |
In order to solve a scheduling type CSP, you need to specify one or more schedule-related output data sets by using one or more of the SCHEDULE=, SCHEDTIME=, or SCHEDRES= options in the PROC CLP statement.
The Schedule data set is specified with the SCHEDULE= option in the PROC CLP statement and is the only data set that contains both time and resource assignment information for each activity.
The SCHEDULE= data set always contains the following five variables: SOLUTION, ACTIVITY, DURATION, START, and FINISH. The SOLUTION variable gives the solution number to which each observation corresponds. The ACTIVITY variable identifies each activity. The DURATION variable gives the duration of the activity. The START and FINISH variables give the scheduled start and finish times for the activity. There is one observation that contains the time assignment information for each activity that corresponds to these variables.
If any resources have been specified, the data set contains three more variables: OBSTYPE, RESOURCE, and QTY. The value of the OBSTYPE variable indicates whether an observation represents time assignment information or resource assignment information. Observations that correspond to OBSTYPE="TIME" provide time assignment information, and observations that correspond to OBSTYPE="RESOURCE" provide resource assignment information. The RESOURCE variable and the QTY variable constitute the resource assignment information and identify the resource and quantity, respectively, of the resource that is assigned to each activity.
The values of RESOURCE and QTY are missing for time assignment observations, and the values of DURATION, START, and FINISH are missing for resource assignment observations.
If an Activity data set has been specified, the formats and labels for the _ACTIVITY_ and _DURATION_ variables carry over to the ACTIVITY and DURATION variables, respectively, in the Schedule data set.
In addition to or in lieu of the SCHEDULE= data set, there are two other schedule-related data sets that together represent a logical partitioning of the Schedule data set with no loss of data. The SCHEDTIME= data set contains the time assignment information, and the SCHEDRES= data set contains the resource assignment information.
Table 3.7 lists all the variables that are associated with the SCHEDULE= data set and their interpretations by the CLP procedure. For each variable, the table also lists its type (C for character, N for numeric), and its possible values.
Name |
Type |
Description |
Values |
---|---|---|---|
SOLUTION |
N |
Solution number |
Positive integers |
OBSTYPE |
C |
Observation type |
TIME, RESOURCE |
ACTIVITY |
C |
Activity name |
|
DURATION |
N |
Duration |
Nonnegative integers, missing when OBSTYPE="RESOURCE" |
START |
N |
Start time |
Missing when OBSTYPE="RESOURCE" |
FINISH |
N |
Finish time |
Missing when OBSTYPE="RESOURCE" |
RESOURCE |
C |
Resource name |
Missing when OBSTYPE="TIME" |
QTY |
N |
Resource quantity |
Nonnegative integers, missing when OBSTYPE="TIME" |