tpc: Function of Cost demands of a project.

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

tpcR 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


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

Related to tpc in mfpp...