Initializing help system before first use

setduration

setduration


Purpose
A cptask is represented by three cpvar:
  • 'start' representing the start time of the task
  • 'end' representing the completion time of the task
  • 'duration' representing the duration of the task.
These three structural variables are linked with the following constraint: task + duration ≤ end. The duration variable represents two specific parameters of the task: The minimum task duration (Dmin, represented by its lower bound) and the maximum task duration (Dmax, represented by its upper bound). The graphic below illustrates these properties:
Scheduling/task.png
Synopsis
procedure setduration(task:cptask, duration:integer)
procedure setduration(task:cptask, durationMin:integer, durationMax:integer)
Arguments
task 
a task
duration 
fixed duration of the task
durationMin 
minimum duration for the task
durationMax 
maximum duration for the task
Related topics