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

tpc | R Documentation |

Calculate cost demands of a project structure.

```
tpc(DSM,CD)
```

`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). |

`TPC` |
Total Project Cost (a scalar). |

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.

`tpc`

, `tpt`

, `tpq`

, `tpr`

, `maxscore_PEM`

.

```
# 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
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.