12.07.2015 Views

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

ILOG CPLEX 11.0 User's Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

◆ Make Local Variables Temporarily Global on page 142◆ Solve the Problem You Intended on page 142◆ Special Considerations for Fortran on page 142◆ Tell Us on page 142Check Your Include FilesMake sure that the header file ilocplex.h (Concert Technology) or cplex.h (CallableLibrary) is included at the top of your application source file. If that file is not included, thencompile-time, linking, or runtime errors may occur.Clean House and Try AgainRemove all object files, recompile, and relink your application.Read Your Messages<strong>ILOG</strong> <strong>CPLEX</strong> detects many different kinds of errors and generates exception, warnings, orerror messages about them.To query exceptions in Concert Technology, use the methods:IloInt IloCplex::Exception::getStatus() const;const char* IloException::getMessage() const;To view warnings and error messages in the Callable Library, you must direct them either toyour screen or to a log file.◆◆To direct all messages to your screen, use the routine CPXsetintparam to set theparameter CPX_PARAM_SCRIND.To direct all messages to a log file, use the routine CPXsetlogfile.Check Return ValuesMost methods and routines of the Component Libraries return a value that indicates whetherthe routine failed, where it failed, and why it failed. This return value can help you isolatethe point in your application where an error occurs.If a return value indicates failure, always check whether sufficient memory is available.Beware of Numbering ConventionsIf you delete a portion of a problem, <strong>ILOG</strong> <strong>CPLEX</strong> changes not only the dimensions but alsothe indices of the problem. If your application continues to use the former dimensions and<strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL 141

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!