tpc {mfpp} | R Documentation |
Function of Cost demands of a project.
Description
Calculate cost demands of a project structure.
Usage
tpc(DSM,CD)
Arguments
DSM |
N by N Upper triangular binary matrix of logic domain (a numeric matrix). |
CD |
N by 1 vector of cost demands (a numeric vector). |
Value
TPC |
Total Project Cost (a scalar). |
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
, tpt
, tpq
, tpr
, maxscore_PEM
.
Examples
# Calculation of TPC for a generated project scenario.
# using MFPP package.
# Generation of 10 by 10 Upper triangular binary matrix (DSM) of logic domain.
library(Matrix)
library(pracma)
DSM<-triu(round(rand(10)*.5+.5)) # Generate DSM
# Generation of 10 by 1 cost vector (cost demands 30)
C<-rand(10,1)*30 # Generate C vector (cost demands)
# Calculation of total project cost using MFPP package.
TPC<-tpc(DSM,C) # Calculate TPC
[Package mfpp version 0.0.7 Index]