mmf.max.npv: Return Max NPV

View source: R/mmf.max.npv.R

mmf.max.npvR Documentation

Return Max NPV

Description

this function identifies the sequence of activities and respectivies schedules where with the optimized NPV

Usage

mmf.max.npv(mmf.npv, mmf.seq = list(), mmf.schedules = list())

Arguments

mmf.npv

Vector of Net Present Value

mmf.seq

Vector with the sequence of activities

mmf.schedules

Vector with the collection of possible schedules

Value

list with NPV, sequence and scheduleof the sequence with the maximum NPV

Examples


data("ex.sheet.data")
ex.sheet.data.interest.rate <- ex.sheet.data[[1]]
ex.sheet.data.activities <- ex.sheet.data[[2]]
ex.sheet.data.durations <- ex.sheet.data[[3]]
ex.sheet.data.predecessors <- ex.sheet.data[[4]]
ex.sheet.data.cfs <- ex.sheet.data[[5]]

ex.mmf.seq <- mmf.all.sequences(ex.sheet.data.predecessors)

ex.mmf <- mmf.npv(ex.sheet.data.cfs,
                  ex.sheet.data.durations,
                  ex.mmf.seq,
                  ex.sheet.data.interest.rate)

ex.mmf.shedules <- ex.mmf[['shedules']]
ex.mmf.cfs.nominal <- ex.mmf[['cfs.nominal']]
ex.mmf.cfs.discounted <- ex.mmf[['cfs.discounted']]
ex.mmf.npv <- ex.mmf[['npv']]


antoanne/ifmFramework documentation built on Aug. 5, 2023, 6:03 p.m.