IloMap
int a[i in 1..5]=i;
dvar int x[2..6];
subject to
{
forall(i in 2..6) ct:x[i]==a[i-1];
}
execute {
writeln(a);
a[2]=10;
writeln(a);
for(var i in a) write(i);
writeln();
writeln("constraint");
for(i in ct) write(i);
writeln();
}[1 2 3 4 5] [1 10 3 4 5] 12345 constraint 23456
| Field Attributes | Field Name and Description |
|---|---|
| all |
Gets the indexer collection of the array.
|
| all |
Gets the size of the array, which is the size of its indexer collection.
|
| postprocessing |
For an array of decision variables, returns the array of values in the current solution.
|
| Method Attributes | Method Name and Description |
|---|---|
| all |
end()
Releases the memory used by this object.
|
indexer
returns only the first dimension part.
size
returns only the first dimension part.