Learn R Programming

mfpp (version 0.0.8)

summary.mfpp: Print PDM constraints, matrices, lists, sets, collections.

Description

Print PDM constraints, matrices, lists, sets, collections.

Usage

# S3 method for PDM_const
summary(object, digits =  getOption("digits"), ...)
# S3 method for PDM_matrix
summary(object, digits =  getOption("digits"),w=getOption("w"),Rs=getOption("Rs"), ...)
# S3 method for PDM_list
summary(object, digits =  getOption("digits"), ...)
# S3 method for Set_PDM_matrix
summary(object, digits =  getOption("digits"),w=getOption("w"),Rs=getOption("Rs"), ...)
# S3 method for Set_PDM_list
summary(object, digits =  getOption("digits"), ...)
# S3 method for Collection_PDM
summary(object, digits =  getOption("digits"), ...)
# S3 method for TPT
summary(object, digits =  getOption("digits"), ...)

Value

No return value, called for side effects

Arguments

object

an object of class 'PDM_const', 'PDM_matrix', 'PDM_list', 'Set_PDM_matrix', or 'Set_PDM_list'.

digits

the number of significant digits to use when add.stats = TRUE.

w

number of completion modes (positive integer)

Rs

number of resources (positive integer)

...

additional arguments affecting the print produced.

Author

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,get.structures, percent,plot.

Examples

Run this code

# Print PDM constriants, matrices, lists, and sets.

# 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 list for TCTP a project scenario using MFPP package.

PDM<-generatepdm(N,ff,cf,mTD,mCD,mRD,w,nR,nW,scale=1.4,lst=TRUE)

# Generate PDM maximal constraints (ratio=1.0)

CONST<-percent(PDM)

# Calculate main structures

PDMs<-get.structures(PDM)

# print of PDM constraint

summary(CONST)

# print of PDM list

summary(PDM)

# print of main structures of PDM matrices

summary(PDMs)

# print of PDM collection
data(Boctor)
collection<-Boctor
summary(collection)

# schedule table of the first completion mode of the first project structure

# get the first project structure

PDM<-collection[[1]]$PDM_list$PDM

# get the logic domain

LD<-PDM[1:nrow(PDM),1:nrow(PDM)]

# get the time demands of the first completion mode

TD<-PDM[1:nrow(PDM),nrow(PDM)+1]

# calculate TPT

TPT<-tpt(LD,TD)

# print schedule table

summary(TPT)

Run the code above in your browser using DataLab