summary.mfpp | R Documentation |
Print PDM constraints, matrices, lists, sets, collections.
## S3 method for class 'PDM_const'
summary(object, digits = getOption("digits"), ...)
## S3 method for class 'PDM_matrix'
summary(object, digits = getOption("digits"),w=getOption("w"),Rs=getOption("Rs"), ...)
## S3 method for class 'PDM_list'
summary(object, digits = getOption("digits"), ...)
## S3 method for class 'Set_PDM_matrix'
summary(object, digits = getOption("digits"),w=getOption("w"),Rs=getOption("Rs"), ...)
## S3 method for class 'Set_PDM_list'
summary(object, digits = getOption("digits"), ...)
## S3 method for class 'Collection_PDM'
summary(object, digits = getOption("digits"), ...)
## S3 method for class 'TPT'
summary(object, digits = getOption("digits"), ...)
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 |
w |
number of completion modes (positive integer) |
Rs |
number of resources (positive integer) |
... |
additional arguments affecting the print produced. |
No return value, called for side effects
Zsolt T. Kosztyan*, Aamir Saghir
e-mail: kzst@gtk.uni-pannon.hu
KosztyƔn, Z. T. (2022). MFPP: Matrix-based flexible project planning. SoftwareX, 17, 100973.
generatepdm
,get.structures
, percent
,plot
.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.