IloObject | +--IloCP
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
IloCP()
|
| Field Attributes | Field Name and Description |
|---|---|
| pre processing, flow control |
Accesses the CP search modifier factory.
|
| all |
Accesses CP information.
|
| all |
Accesses CP parameters.
|
| flow control |
Status of the last method invoked on this object.
|
| Method Attributes | Method Name and Description |
|---|---|
| flow control |
addKPI(expr, name)
Adds a KPI to the IloCP.
|
| flow control |
Resets CP Optimizer to accept another CP model.
|
| flow control |
Removes any starting point.
|
| flow control |
dumpModel(path)
Dumps the CP model to a file.
|
| flow control |
Ends the current search and deletes the internal objects created by CP Optimizer to carry out the search.
|
| flow control |
exportModel(path)
Exports the CP model to a file.
|
| flow control |
Removes all KPI to the IloCP.
|
| flow control |
Returns the incumbent value.
|
| flow control |
Returns the incumbent value.
|
| flow control |
getKPIValue(The)
Return the CP KPI.
|
| postprocessing flow control |
Returns the number of objective criteria in the invoking instance of
IloCP. |
| postprocessing flow control |
getObjBound(i)
Accesses the value of the lower bound, or values of a multi-criteria lower bound, of the current solution.
|
| postprocessing flow control |
getObjGap(i)
Accesses the value of the gap, or values of a multi-criteria gap, of the current solution.
|
| postprocessing flow control |
getObjValue(i)
Accesses the value of the objective, or values of a multi-criteria objective, of the current solution.
|
| postprocessing flow control |
This method returns
true if the invoking algorithm
has an objective and false otherwise. |
| flow control |
importModel(path)
Imports the IloCP model from a file.
|
| flow control |
next()
This method searches for a new (or first) solution to the model.
|
| flow control |
Removes all KPI to the IloCP.
|
| flow control |
removeKPI(name)
Removes a KPI to the IloCP.
|
| flow control |
setSearchPhases(phase, phaseN)
Modifies the search strategy.
|
| flow control |
setStartingPoint(startingPoint)
Sets starting point for subsequent searches.
|
| flow control |
solve()
Solves a problem.
|
| flow control |
Starts a new search.
|
| end |
IloCP.
Search modifiers are created by method calls.
cp.factory.selectLargest() cp.factory.domainSize()
var phase;
var phase2;
with ( cp.factory ) {
phase = searchPhase( selectLargest(domainSize()), selectSmallest(value()) );
phase2 = searchPhase( x, selectLargest(domainSize()), selectSmallest(value()) );
}x is an array of decision variables defined in the OPL model.IloCP.
Information elements are available by their names.
cp.info.TotalTime
IloCP.
Parameters are available by their names.
cp.param.TimeLimit = 13;
cp.param.LogVerbosity = "Quiet";
IloCP.
IloCP.
IloCP.
IloCP.
IloCP.
true if the invoking algorithm
has an objective and false otherwise.
See the C++ reference manual for IloCP.
true if it has an objective.IloCP in the CPLEX C++ Reference Manual.
next method finds a solution strictly better than the previous solution found.
In the case of a satisfaction problem (no objective in the model), next returns a
solution that is usually different from those previously found. However, it may occasionally
find a solution that had been found already. If you repeat calls to the next function,
until it returns false, the solve is guaranteed to terminate and you will not miss
any solutions of the model being solved.
See the C++ reference manual for IloCP.
true if a next solution is available.IloCP.
If called with no arguments, the search is reset to the default search.
IloCP.
IloCP.
true if the solve has been successful.IloCP.