NO FRAMES

Class IloAlgorithm::Exception

Definition file: ilconcert/iloalg.h
The base class of exceptions thrown by classes derived from IloAlgorithm.

IloAlgorithm is the base class of algorithms in Concert Technology.

The class IloAlgorithm::Exception, derived from the class IloException, is the base class of exceptions thrown by classes derived from IloAlgorithm.

On platforms that support C++ exceptions, when exceptions are enabled, the member function IloAlgorithm::extract will throw an exception if you attempt to extract an unsuitable object from your model for an algorithm. An extractable object is unsuitable for an algorithm if there is no member function to extract the object from your model to that algorithm.

For example, an attempt to extract more than one objective into an algorithm that accepts only one objective will throw an exception.

Similarly, the member function IloAlgorithm::getValue will throw an exception if you attempt to access the value of a variable that has not yet been bound to a value.

See Also:

Constructor Summary
public Exception(const char * str)
Inherited Methods from IloException
end, getMessage
Constructor Detail

Exception

public Exception(const char * str)

This constructor creates an exception thrown from a member of IloAlgorithm. The exception contains the message string str, which can be queried with the member function IloException::getMessage.