truncpdm: Function to drop excluded tasks.

View source: R/truncpdm.R View source: R/mfpp.R

truncpdmR Documentation

Function to drop excluded tasks.

Description

Drop excluded tasks, where the diagonal value is 0.

Usage

truncpdm(x)

Arguments

x

N by M PDM matrix or a PDM list.

Value

PDM

N by M PDM matrix or a PDM list

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

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.
PDM<-generatepdm(N,ff,cf,mTD,mCD,mRD,w,nR,nW,scale=1.4)

# Drop excluded tasks.

PDM<-truncpdm(PDM)

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

# Drop excluded tasks.

PDM<-truncpdm(PDM)


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