minslackrate <rate>

minslackrate <rate>
Description

Specifies the minimum percentage of slack a task path must have before it is marked as critical. A path is any list of explicitely or implicitely connected tasks measured from first task to last task. The slack is the time between start of the first task and end of the last task that is not covered by any task of the path. The default value is 5%.

Larger values in combination with a project that uses lots of inherited dependencies and long dependency pathes can result in very long scheduling times. The more slack you require, the more pathes have to be searched till the end. For larger projects an increase of 5% can turn a 10 second scheduling run into a 1 hour or more scheduling run. If you need larger slack rate values, avoid the use of inherited dependencies.

A value of 0 turns off the critical path detector.

AttributesNameTypeDescription
rateREAL 
Contextscenario,
InheritableYesScenario Spec.Yes
See alsomaxpaths

project prj "Critical Path Example" "1.0" 2006-08-22 +1m {
  scenario plan "Planned Scenario" {
    # All pathes with less than 15% slack should be marked as
    # critical.
    minslackrate 15.0
  }
}

task t1 "Task 1" {
  start 2006-08-22
  duration 2d
}

task t2 "Task 2" {
  depends t1 { gaplength 2d }
  duration 3d
}

task t3 "Task 3" {
  depends t1 { gaplength 1d }
  duration 4d
}

taskreport "Tasks" {
  columns no, name, chart
}

htmltaskreport "CriticalTasks.html" {
  # Generate a list of all tasks that are on a critical path.
  hidetask ~isOnCriticalPath(plan)
}