rebuild {ProjectManagement} | R Documentation |
Build a precedence matrix
Description
This function builds a unique type 1 precedence matrix given any kind of precedence.
Usage
rebuild(prec1and2 = matrix(0), prec3and4 = matrix(0))
Arguments
prec1and2 |
A matrix indicating the order of precedence type 1 and 2 between the activities (Default=matrix(0)). If value |
prec3and4 |
A matrix indicating the order of precedence type 3 and 4 between the activities (Default=matrix(0)). If value |
Details
There are four types of precedence between two activities i,j
:
Type 1: the activity j
cannot start until activity i
has finished.
Type 2: the activity j
cannot start until activity i
has started.
Type 3: the activity j
cannot end until activity i
has ended.
Type 4: the activity j
cannot end until activity i
has started.
All these precedences can be written only as type 1. It should be noted that precedence type 1 implies type 2, and type 2 implies type 4. On the other hand, precedence type 1 implies type 3, and type 3 implies type 4.
Value
A list containing:
Precedence: precedence matrix.
Type 2: activities related to type 2 precedence.
Type 3: activities related to type 3 precedence.
Type 4: activities related to type 4 precedence.
Examples
prec1and2<-matrix(c(0,1,0,2,0,0,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0),nrow=5,ncol=5,byrow=TRUE)
prec3and4<-matrix(0,nrow=5,ncol=5)
prec3and4[3,1]<-3
rebuild(prec1and2,prec3and4)