Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class IloIntervalVar

IloIntervalVar
Example:
dvar interval x in 2..20 size 10;

subject to {
  executed( x ) == 1;
}

execute {
  writeln(x);
  writeln(x.start," ",x.end);
}
After execution|the Scripting log shows:
<1 2 12 10 10>
2 12
Iterating properties:
Default behavior.
OPL type:
dvar interval

Property Summary
Field Attributes Field Name and Description
postprocessing (read only)
Access to the absence property of the interval variable.
post processing (read only)
end
Provides access to the end time property of the interval variable.
all (read only)
Access to the declared maximum for end time property of the interval variable, using 'in' keyword.
all (read only)
Access to the declared minimum for start time property of the interval variable, using 'in' keyword.
all (read only)
Provides access to the length property of the interval variable.
 
The name of the interval variable.
post processing (read only)
Provides access to the present property of the interval variable.
post processing (read only)
Provides access to the size property of the interval variable.
all (read only)
Access to the declared maximum for size property of the interval variable
all (read only)
Access to the declared minimum for size property of the interval variable
post processing (read only)
Provides access to the start time property of the interval variable.
Property Detail
absent
{int} absent
Access to the absence property of the interval variable.
Available for:
postprocessing (read only)

end
{int} end
Provides access to the end time property of the interval variable.
Available for:
post processing (read only)

inMax
{int} inMax
Access to the declared maximum for end time property of the interval variable, using 'in' keyword.
Available for:
all (read only)

inMin
{int} inMin
Access to the declared minimum for start time property of the interval variable, using 'in' keyword.
Available for:
all (read only)

length
{int} length
Provides access to the length property of the interval variable.
Available for:
all (read only)

name
{string} name
The name of the interval variable.

present
{int} present
Provides access to the present property of the interval variable. 1 if the interval is present and 0 otherwise.
Available for:
post processing (read only)

size
{int} size
Provides access to the size property of the interval variable.
Available for:
post processing (read only)

sizeMax
{int} sizeMax
Access to the declared maximum for size property of the interval variable
Available for:
all (read only)

sizeMin
{int} sizeMin
Access to the declared minimum for size property of the interval variable
Available for:
all (read only)

start
{int} start
Provides access to the start time property of the interval variable.
Available for:
post processing (read only)

©Copyright IBM Corp. 1987-2011.