tpr: Function to calculate maximum resource demands of a project.

View source: R/mfpp.R View source: R/tpr.r

tprR Documentation

Function to calculate maximum resource demands of a project.

Description

Calculate maximum resource demands of a project scenario.

Usage

tpr (SST,DSM,TD, RD,res.graph=FALSE)

Arguments

SST

N by 1 vector of Scheduled Start Time (a numeric vector).

DSM

N by N binary upper triangular matrix of the logic domain (a numeric matrix).

TD

N by 1 vector of task durations (a numeric vector).

RD

N by nR matrix of resource demands (a numeric matrix).

res.graph

Logic value of whether plot or not the resource graph

Value

rMAX

an nR by 1 vector of maximum resource demands (a scalar vector).

Author(s)

Zsolt T. Kosztyan*, Aamir Saghir

e-mail: kzst@gtk.uni-pannon.hu

References

KosztyƔn, Z. T. (2022). MFPP: Matrix-based flexible project planning. SoftwareX, 17, 100973.

See Also

tpc, tpq, tpt, maxscore_PEM.

Examples


# Calculatation of maximum resource demands of a project scenario using MFPP package.

library(pracma)

# Generate a 10 by 10 upper triangular binary matrix (DSM) of logic domain of a project.

DSM <- triu(round(rand(10)))

# Generate a 10 by 1 vector of task durations of a project.
TD <- rand(10,1)*20

# Define a 10 by 1 vector of Scheduled Start Time using tpt function.
SST <- tpt(DSM,TD)[["EST"]]

# Generate a 10 by 3 matrix of resource demands of a project.
RD <- rand(10,3)*5

# Calculation of maximum resource demands of a project using MFPP package.
 tpr(SST,DSM,TD, RD)

## Plot resources for SST
tpr(SST,DSM,TD,RD,res.graph = TRUE)

mfpp documentation built on June 22, 2024, 9:35 a.m.

Related to tpr in mfpp...