generatepdm: Function to generate a PDM matrix for flexible project...

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

generatepdmR Documentation

Function to generate a PDM matrix for flexible project planning problems.

Description

Function to generate a PDM matrix for flexible project planning problems.

Usage

generatepdm(N,ff,cf,mTD,mCD,mRD,w,nR,nW,scale=1.4,QD=FALSE,lst=FALSE)

Arguments

N

Number of tasks (a numeric value)

ff

flexibility factor between [0,1] (a numeric value).

cf

connectivity factor (a numeric integer).

mTD

max value of TD (a numeric positive integer).

mCD

max value of CD (a numeric positive integer).

mRD

max value of RD (a numeric positive integer).

w

number of modes (a numeric integer).

nR

number of resources (a numeric integer).

nW

number of possible extra tasks (a positive numeric integer).

scale

scale parameter, the default value is 1.4 (a numeric value).

QD

logic parameter, the default value is FALSE, which means, the quality domain is neglected.

lst

(logic parameter, the default value is FALSE, which means, the output is a PDM matrix, while TRUE means the output is a PDM list including number of modes (w) and the number of resources (Rs).

Value

PDM

[PEM,TD, CD, <QD,RD>] is a Project Domain Matrix (a numeric matrix), where;

PEM

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

TD

N by w matrix of task durations (a numeric matrix).

CD

N by w matrix of cost demands (a numeric matrix).

QD

N by w matrix of quality parameters (a numeric matrix, optional).

RD

N by w*nR matrix of resource demands (a numeric matrix, optional).

w

Number of completion modes (scalar, if the output is PDM list (lst=TRUE)).

Rs

Number of resources (scalar, if the output is PDM list (lst=TRUE)).

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, tpr,maxscore_PEM, generatepdm.

Examples


# Generation of PDM matrix for flexible project planning MFPP package.

# Define number of modes, flexibility factor and connectivity factor of a project scenerio.
N=4;ff=0.05;cf=0

# Define maximum value of time domain, Cost domain and Resourcces domain of a project scenerio.
mTD=3;mCD=4;mRD=3

# Define number of modes, number of resources,
# number of possible extra tasks, scale and quality domain of a project scenerio.

w=2;nR=2;nW=2
scale=1.4  #(default value)

# Generation of PDM matrix for TCTP a project scenario using MFPP package.
generatepdm(N,ff,cf,mTD,mCD,mRD,w,nR,nW,scale=1.4)

# Generation of PDM list for TCTP a project scenario using MFPP package.
generatepdm(N,ff,cf,mTD,mCD,mRD,w,nR,nW,scale=1.4,QD=FALSE,lst=TRUE)


# Generation of PDM matrix for TQCTP a project scenario using MFPP package.
generatepdm(N,ff,cf,mTD,mCD,mRD,w,nR,nW,scale=1.4,QD=TRUE)

 # Generation of PDM list for TQCTP a project scenario using MFPP package.
generatepdm(N,ff,cf,mTD,mCD,mRD,w,nR,nW,scale=1.4,QD=TRUE,lst=TRUE)


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