public class IloCPEngine
extends java.lang.Object
An instance of this class represents a backtracking search engine for CP Optimizer.
You never need to create an instance of this class. The master
IloCP object will create instances of this class which
you can then use in your own CP Optimizer extensions code in Java
if you need to define subclasses of one of IloCustomXXX classes.
| Modifier and Type | Class and Description |
|---|---|
static class |
IloCPEngine.IntInfo
Symbolc names for integer information of
IloCPEngine. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDomainSize(IloNumVar var)
This member function returns the size of the domain of variable
var as maintained in the invoking
instance of . |
ilog.cp.cppimpl.IloCPEngine |
getImpl() |
int |
getInfo(IloCPEngine.IntInfo which)
This method returns the value of the integer information
which in
the invoked IloCPEngine instance. |
IloCP |
getMasterCP()
This method returns the master
IloCP class which created
the invoking IloCPEngine object. |
double |
getMax(IloNumVar var)
This member function returns the maximum value of the variable
var in the invoking instance
of . |
double |
getMin(IloNumVar var)
This member function returns the minimum value of the variable
var in the invoking instance
of . |
boolean |
isFixed(IloNumVar var)
This member function indicates if the domain of
var takes on a particular value as maintained by the
invoking instance. |
boolean |
isInDomain(IloNumVar var,
int value)
This member function indicates whether
value is contained in the current domain of
var as maintained by the invoking instance. |
java.util.Iterator |
iterator(IloIntVar var)
This member function returns an iterator to iterate over the domain of
var, as maintained by the
invoking IloCPEngine. |
public ilog.cp.cppimpl.IloCPEngine getImpl()
public IloCP getMasterCP()
This method returns the master IloCP class which created
the invoking IloCPEngine object.
public double getMin(IloNumVar var)
var in the invoking instance
of IloCPEngine.public double getMax(IloNumVar var)
var in the invoking instance
of IloCPEngine.public boolean isInDomain(IloNumVar var, int value)
value is contained in the current domain of
var as maintained by the invoking IloCPEngine instance. An assertion is violated if
var is not of integral type.public int getDomainSize(IloNumVar var)
var as maintained in the invoking
instance of IloCPEngine. An assertion is violated if var is not of integral type.public boolean isFixed(IloNumVar var)
var takes on a particular value as maintained by the
invoking IloCPEngine instance.public java.util.Iterator iterator(IloIntVar var)
var, as maintained by the
invoking IloCPEngine.public int getInfo(IloCPEngine.IntInfo which) throws IloException
This method returns the value of the integer information which in
the invoked IloCPEngine instance. The information is with respect to this
local worker, and not globally over the whole search process.
IloException