setname
setname |
Purpose
Sets the name of a variable / task / resource passed in argument, the name of the variable / task / resource is used by problem and variable printing routines
Synopsis
procedure setname(var:cpvar,name:string)
procedure setname(fvar:cpfloatvar,name:string)
procedure setname(task:cptask,name:string)
procedure setname(resource:cpresource,name:string)
Arguments
var
|
a finite domain
|
fvar
|
a continuous variable
|
task
|
a task
|
resource
|
a resource
|
name
|
the name to set
|
Example
The following example shows how to set the name of a cpvar x to 'AMOUNT'
setname(x,"AMOUNT")
Related topics