Tasks
A cptask is represented by three decision variables of type cpvar:
- start representing the starting time of the task
- end representing the ending time of the task
- duration representing the duration of the task
These three structural variables are linked by Xpress Kalis with the following constraint: start + duration = end.
- The starting time variable represents two specific parameters of the task:
- The end variable represents two specific parameters of the task:
- The duration variable represents two specific parameters of the task:
- the minimum task duration (Dmin, represented by the lower bound of the 'duration' variable) and the maximum task duration (Dmax, represented by the upper bound of the 'duration' variable).
The picture below illustrates this:

Task attributes can be assigned or retrieved with the following methods:
© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.