resource.allocation: Project resource allocation

View source: R/function_resource_allocation.R

resource.allocationR Documentation

Project resource allocation

Description

This function calculates the project schedule so that resource consumption does not exceed the maximum available per time period..

Usage

resource.allocation(
  duration,
  prec1and2,
  prec3and4 = matrix(0),
  resources,
  max.resources,
  int = 1
)

Arguments

duration

Vector with the duration for each activity.

prec1and2

A matrix indicating the order of precedence type 1 and 2 between the activities (Default=matrix(0)). If value (i,j)=1 then activity i precedes type 1 to j, and if (i,j)=2 then activity i precedes type 2 to j. Cycles cannot exist in a project, i.e. if an activity i precedes j then j cannot precede i.

prec3and4

A matrix indicating the order of precedence type 3 and 4 between the activities (Default=matrix(0)). If value (i,j)=3 then activity i precedes type 3 to j, and if (i,j)=4 then activity i precedes type 4 to j. Cycles cannot exist in a project, i.e. if an activity i precedes j then j cannot precede i.

resources

Vector indicating the necessary resources for each activity per period of time.

max.resources

Numerical value indicating the maximum number of resources that can be used in each period.

int

Numerical value indicating the duration of each period of time (Default=1).

Details

The problem of resource allocation takes into account that in order for activities to be carried out in the estimated time, a certain level of resources must be used. The problem is that the level of resources available in each period is limited. The aim is to obtain the minimum time and a schedule for the execution of the project taking into account this new restriction.

Value

A solution matrices.

References

hega

Hegazy, T. (1999). Optimization of resource allocation and leveling using genetic algorithms. Journal of construction engineering and management, 125(3), 167-175.

Examples


duration<-c(3,4,2,1)
prec1and2<-matrix(c(0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0),nrow=4,ncol=4,byrow=TRUE)
resources<-c(4,1,3,3)
max.resources<-4

resource.allocation(duration,prec1and2,prec3and4=matrix(0),resources,max.resources,int=1)

ProjectManagement documentation built on Sept. 14, 2023, 5:09 p.m.