ILOG CPLEX 11.0 Getting Started > Tutorials > Callable Library Tutorial > How ILOG CPLEX Works > Instantiating the Problem Object

A problem object is instantiated (created and initialized) by ILOG CPLEX when you call the routine CPXcreateprob. It is destroyed when you call CPXfreeprob. ILOG CPLEX allows you to create more than one problem object, although typical applications will use only one. Each problem object is referenced by a pointer returned by CPXcreateprob and represents one specific problem instance. Most Callable Library functions (except parameter setting functions and message handling functions) require a pointer to a problem object.

Note
An attempt to use a problem object in any environment other than the environment (or a child of that environment) where the problem object was created will raise an error.