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.

Parameter RoutinesYou can set many parameters in the <strong>ILOG</strong> <strong>CPLEX</strong> environment to control its operation. Thevalues of these parameters may be integer, double, or character strings, so there are sets ofroutines for accessing and setting them. Table 4.2 shows you the names and purpose of theseTable 4.2 Callable Library Routines for Parameters in the <strong>ILOG</strong> <strong>CPLEX</strong> EnvironmentType Change value Access current value Access default, max, mininteger CPXsetintparam CPXgetintparam CPXinfointparamdouble CPXsetdblparam CPXgetdblparam CPXinfodblparamstring CPXsetstrparam CPXgetstrparam CPXinfostrparamroutines. Each of these routines accepts the same first argument: a pointer to the<strong>ILOG</strong> <strong>CPLEX</strong> environment (that is, the pointer returned by CPXopen<strong>CPLEX</strong>). The secondargument of each of those parameter routines is the parameter number, a symbolic constantdefined in the header file, cplex.h. Managing Parameters from the Callable Library onpage 123 offers more details about parameter settings.Null ArgumentsCertain <strong>ILOG</strong> <strong>CPLEX</strong> routines that accept optional arguments allow you to pass a NULLpointer in place of the optional argument. The documentation of those routines in the<strong>ILOG</strong> <strong>CPLEX</strong> Reference <strong>Manual</strong> indicates explicitly whether NULL pointer arguments areacceptable. (Passing NULL arguments is an effective way to avoid allocating unnecessaryarrays.)Row and Column ReferencesConsistent with standard C programming practices, in <strong>ILOG</strong> <strong>CPLEX</strong> an array containing kitems will contain these items in locations 0 (zero) through k-1. Thus a linear program withm rows and n columns will have its rows indexed from 0 to m-1, and its columns from 0to n-1.Within the linear programming data structure, the rows and columns that representconstraints and variables are referenced by an index number. Each row and column mayoptionally have an associated name. If you add or delete rows, the index numbers usuallychange:◆◆for deletions, <strong>ILOG</strong> <strong>CPLEX</strong> decrements each reference index above the deletion point;andfor additions, <strong>ILOG</strong> <strong>CPLEX</strong> makes all additions at the end of the existing range.118 <strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL

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

Saved successfully!

Ooh no, something went wrong!