limits

limits
Description

Specifies limits on the usage of a resource in general, or of the allocation of a resource to a task. This property replaces the less flexible properties maxeffort and load.

When applied to an allocation this limits the use of all alternative resources or group members as a whole. There has been a bug in version 2.0.x that resulted in faulty limit computation. This has been fixed with version 2.1.

Optional Attributesdailymax, weeklymax, monthlymax, yearlymax, projectmax
ContextThe TJP File, allocate, resource,
InheritableYesScenario Spec.No

project limits "Limits" "1.0" 2004-03-01 - 2004-05-01

# Default limit that affects all subsequently defined resources
limits {
  weeklymax 4d
}

resource r1 "R1" { 
  # Limit the usage of this resource to a maximum of 2 hours per day,
  # 6 hours per week and 2.5 days per month.
  limits { dailymax 2h weeklymax 6h monthlymax 2.5d yearlymax 217d }
}

resource r2 "R2"

task t1 "Task 1" {
  start 2004-03-01
  duration 60d
  # allocation is subject to resource limits
  allocate r1
}

task t2 "Task 2" {
  start 2004-03-01
  duration 60d
  # limits can also be specified per allocation
  allocate r2 {
    limits { dailymax 4h weeklymax 3d monthlymax 2w projectmax 20d }
  }
}