Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class IloOplCPSolution

IloOplCPSolution

Description:
See the class IloCP in the C++ Reference Manual:
IDE and OPL > OPL Interfaces > C++ interface reference manual > optim.cpoptimizer > Classes
Available for:
flow control

Constructor Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
flow control
setAbsent(interval)
Sets the absence status of interval variable interval to be true in the invoking solution.
flow control
setEnd(intervalVarMap, intervalVarMap2)
Sets the end value of each interval variable of map intervalVarMap in the invoking solution to the corresponding value specified in map intervalVarMap2.
flow control
setEndMax(intervalVarMap, intervalVarMap2)
Sets the maximal end value of each interval variable of map intervalVarMap in the invoking solution to the corresponding maximal value specified in map intervalVarMap2.
flow control
setEndMin(intervalVarMap, intervalVarMap2)
Sets the minimal value of each variable of map intervalVarMap in the invoking solution to the corresponding minimal value specified in map intervalVarMap2.
flow control
setMax(intVarMap, intMap)
Sets the maximal value of each variable of map intVarMap in the invoking solution to the corresponding maximal value specified in map intMap.
flow control
setMin(intVarMap, intMap)
Sets the minimal value of each variable of map intVarMap in the invoking solution to the corresponding minimal value specified in map intMap.
flow control
setOptional(interval)
Specifies that interval variable interval is optional in the invoking solution, that is, its presence/absence status is unbound.
 
setOptionality(dvars, values)
Sets the presence status of each interval variable of map dvars in the invoking solution to the value specified in map values.
flow control
setPresence(intervalVarMap, intervalVarMap2)
Sets the presence status of each interval variable of map intervalVarMap in the invoking solution to the corresponding value specified in map intervalVarMap2.
flow control
setPresent(interval)
Sets the presence status of interval variable interval to be true in the invoking solution.
flow control
setStart(intervalVarMap, intervalVarMap2)
Sets the start value of each interval variable of map intervalVarMap in the invoking solution to the corresponding value specified in map intervalVarMap2.
flow control
setStartMax(intervalVarMap, intervalVarMap2)
Sets the maximal start value of each interval variable of map intervalVarMap in the invoking solution to the corresponding maximal value specified in map intervalVarMap2.
flow control
setStartMin(intervalVarMap, intervalVarMap2)
Sets the minimal start value of each interval variable of map intervalVarMap in the invoking solution to the corresponding minimal value specified in map intervalVarMap2.
flow control
setValue(intervalVarMap, intervalVarMap2)
Sets the value of each variable of map intervalVarMap in the invoking solution to the corresponding value specified in map intervalVarMap2.
Constructor Detail
IloOplCPSolution
IloOplCPSolution()
Method Detail
setAbsent
setAbsent(interval)
Sets the absence status of interval variable interval to be true in the invoking solution. If the invoking solution does not contain the interval variable, this function will automatically add it.
Parameters:
interval - An interval variable
Available for:
flow control

setEnd
setEnd(intervalVarMap, intervalVarMap2)
Sets the end value of each interval variable of map intervalVarMap in the invoking solution to the corresponding value specified in map intervalVarMap2. The two maps intervalVarMap and intervalVarMap2 must be indexed in the same way.
Parameters:
{intVar|intVarMap|intervalVar|intervalVarMap} intervalVarMap
{int|intMap|intervalVar|intervalVarMap} intervalVarMap2
Available for:
flow control

setEndMax
setEndMax(intervalVarMap, intervalVarMap2)
Sets the maximal end value of each interval variable of map intervalVarMap in the invoking solution to the corresponding maximal value specified in map intervalVarMap2. The two maps intervalVarMap and intervalVarMap2 must be indexed in the same way.
Parameters:
{intVar|intVarMap|intervalVar|intervalVarMap} intervalVarMap
{int|intMap|intervalVar|intervalVarMap} intervalVarMap2
Available for:
flow control

setEndMin
setEndMin(intervalVarMap, intervalVarMap2)
Sets the minimal value of each variable of map intervalVarMap in the invoking solution to the corresponding minimal value specified in map intervalVarMap2. The two maps intervalVarMap and intervalVarMap2 must be indexed in the same way.
Parameters:
{intVar|intVarMap|intervalVar|intervalVarMap} intervalVarMap
{int|intMap|intervalVar|intervalVarMap} intervalVarMap2
Available for:
flow control

setMax
setMax(intVarMap, intMap)
Sets the maximal value of each variable of map intVarMap in the invoking solution to the corresponding maximal value specified in map intMap. The two maps intVarMap and intMap must be indexed in the same way.
Parameters:
{intVar|intVarMap} intVarMap
{int|intMap} intMap
Available for:
flow control

setMin
setMin(intVarMap, intMap)
Sets the minimal value of each variable of map intVarMap in the invoking solution to the corresponding minimal value specified in map intMap. The two maps intVarMap and intMap must be indexed in the same way.
Parameters:
{intVar|intVarMap} intVarMap
{int|intMap} intMap
Available for:
flow control

setOptional
setOptional(interval)
Specifies that interval variable interval is optional in the invoking solution, that is, its presence/absence status is unbound. If the invoking solution does not contain the interval variable, this function will automatically add it.
Parameters:
interval - An interval variable
Available for:
flow control

setOptionality
setOptionality(dvars, values)
Sets the presence status of each interval variable of map dvars in the invoking solution to the value specified in map values. If the value is -1, the presence status of the interval variable is set to false. If the value is +1, the presence status of the interval variable is set to true. If the value is 0, the presence/absence status of the interval variable is unbound. The two maps dvars and values must be indexed in the same way.
Parameters:
{intervalVarMap} dvars
{intMap} values

setPresence
setPresence(intervalVarMap, intervalVarMap2)
Sets the presence status of each interval variable of map intervalVarMap in the invoking solution to the corresponding value specified in map intervalVarMap2. The two maps intervalVarMap and intervalVarMap2 must be indexed in the same way.
Parameters:
{intervalVar|intervalVarMap} intervalVarMap
{intervalVar|intervalVarMap} intervalVarMap2
Available for:
flow control

setPresent
setPresent(interval)
Sets the presence status of interval variable interval to be true in the invoking solution. If the invoking solution does not contain the interval variable, this function will automatically add it.
Parameters:
interval - An interval variable
Available for:
flow control

setStart
setStart(intervalVarMap, intervalVarMap2)
Sets the start value of each interval variable of map intervalVarMap in the invoking solution to the corresponding value specified in map intervalVarMap2. The two maps intervalVarMap and intervalVarMap2 must be indexed in the same way.
Parameters:
{intVar|intVarMap|intervalVar|intervalVarMap} intervalVarMap
{int|intMap|intervalVar|intervalVarMap} intervalVarMap2
Available for:
flow control

setStartMax
setStartMax(intervalVarMap, intervalVarMap2)
Sets the maximal start value of each interval variable of map intervalVarMap in the invoking solution to the corresponding maximal value specified in map intervalVarMap2. The two maps intervalVarMap and intervalVarMap2 must be indexed in the same way.
Parameters:
{intVar|intVarMap|intervalVar|intervalVarMap} intervalVarMap
{int|intMap|intervalVar|intervalVarMap} intervalVarMap2
Available for:
flow control

setStartMin
setStartMin(intervalVarMap, intervalVarMap2)
Sets the minimal start value of each interval variable of map intervalVarMap in the invoking solution to the corresponding minimal value specified in map intervalVarMap2. The two maps intervalVarMap and intervalVarMap2 must be indexed in the same way.
Parameters:
{intVar|intVarMap|intervalVar|intervalVarMap} intervalVarMap
{int|intMap|intervalVar|intervalVarMap} intervalVarMap2
Available for:
flow control

setValue
setValue(intervalVarMap, intervalVarMap2)
Sets the value of each variable of map intervalVarMap in the invoking solution to the corresponding value specified in map intervalVarMap2. The two maps intervalVarMap and intervalVarMap2 must be indexed in the same way.
Parameters:
{intVar|intVarMap|intervalVar|intervalVarMap} intervalVarMap
{int|intMap|intervalVar|intervalVarMap} intervalVarMap2
Available for:
flow control

©Copyright IBM Corp. 1987-2011.