NO FRAMES

Class IloInverse

Definition file: ilconcert/ilomodel.h

An instance of IloInverse represents an inverse constraint. Informally, we say that an inverse constraint works on two arrays, say, f and invf, so that an element of f composed with the corresponding element of invf produces the index of that element.

In formal terms, if the length of the array f is n, and the length of the array invf is m, then the inverse constraint insures that:

In order for a constraint to take effect, you must add it to a model with the template IloAdd or the member function IloModel::add and extract the model for an algorithm with the member function IloAlgorithm::extract.

Most member functions in this class contain assert statements. For an explanation of the macro NDEBUG (a way to turn on or turn off these assert statements), see the concept Assert and NDEBUG.

See Also:

Constructor Summary
public IloInverse()
public IloInverse(IloInverse::ImplClass *)
public IloInverse(const IloEnv, const IloIntVarArray, const IloIntVarArray, const char *)
Method Summary
public IloInverse::ImplClass *getImpl()
Inherited Methods from IloConstraint
getImpl
Inherited Methods from IloIntExprArg
getImpl
Inherited Methods from IloNumExprArg
getImpl
Inherited Methods from IloExtractable
end, getEnv, getId, getImpl, getName, getObject, setName, setObject
Constructor Detail

IloInverse

public IloInverse()
This constructor creates an empty handle. You must initialize it before you use it.

IloInverse

public IloInverse(IloInverse::ImplClass * impl)
This constructor creates a handle object from a pointer to an implementation object.

IloInverse

public IloInverse(const IloEnv env, const IloIntVarArray f, const IloIntVarArray invf, const char * name)

This constructor creates an inverse constraint that if the length of the array f is n, and the length of the array invf is m, then this function returns a constraint that insures that:


Method Detail

getImpl

public IloInverse::ImplClass * getImpl()
This member function returns a pointer to the implementation object of the invoking handle.