Initializing help system before first use

set_resource_attributes

Purpose
Sets some attributes for a resource.
A resource can be of two different types:
  • Disjunctive when the resource can be used only by one task at a time.
  • Cumulative when the resource can be used by several tasks at the same time.
Note that a disjunctive resource is semantically equivalent to a cumulative resource with maximal capacity one and unit resource usage for each task using this resource but this equivalence does not hold in terms of constraint propagation. The parameter 'type' allows the user to choose between a disjunctive resource (KALIS_UNARY_RESOURCE) and a cumulative resource (KALIS_DISCRETE_RESOURCE). The argument 'capacity' indicates the structural maximal capacity of the resource. When the resource is disjunctive this parameter must be equal to one. The structural capacity does not vary over time but a maximal temporal capacity can be imposed at any time point with the setcapacity function. The following graphic shows an example with three tasks A, B and C processed on a disjunctive resource and on a cumulative resource with resource usage 3 for task A, 1 for task B and 1 for task C.
Scheduling/resources.png
Synopsis
procedure set_resource_attributes(resource:cpresource, type:integer)
procedure set_resource_attributes(resource:cpresource, type:integer, capacity:integer)
procedure set_resource_attributes(resource:cpresource, type:integer, capacity:integer, alg:integer)
Arguments
resource 
the resource
type 
capacity 
maximal capacity of a discrete resource
alg 
Related topics

© 2001-2025 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.