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.

and CPXfputs. Callable Library Routines for Message Channels on page 151 discussesmost of those routines.String FunctionsSeveral routines in the <strong>ILOG</strong> <strong>CPLEX</strong> Callable Library make it easier to work with strings.These functions are helpful when you are writing applications in a language, such as VisualBasic, that does not allow you to dereference a pointer. The string routines in the<strong>ILOG</strong> <strong>CPLEX</strong> Callable Library are CPXmemcpy, CPXstrlen, CPXstrcpy, andCPXmsgstr.FORTRAN InterfaceThe Callable Library can be interfaced with FORTRAN applications. Although they are nolonger distributed with the product, you can download examples of a FORTRAN applicationfrom the <strong>ILOG</strong> web site. Direct your browser to this FTP site:ftp://ftp.cplex.com/pub/examplesThose examples were compiled with <strong>CPLEX</strong> versions 7.0 and earlier on a particularplatform. Since C-to-FORTRAN interfaces vary across platforms (operating system,hardware, compilers, etc.), you may need to modify the examples for your own system.Whether you need intermediate routines for the interface depends on your operating system.As a first step in building such an interface, it is a good idea to study your systemdocumentation about C-to-FORTRAN interfaces. In that context, this section lists a fewconsiderations particular to <strong>ILOG</strong> <strong>CPLEX</strong> in building a FORTRAN interface.Case-SensitivityAs you know, FORTRAN is a case-insensitive language, whereas routines in the<strong>ILOG</strong> <strong>CPLEX</strong> Callable Library have names with mixed case. Most FORTRAN compilershave an option, such as the option -U on UNIX systems, that treats symbols in acase-sensitive way. It is a good idea to use this option in any file that calls <strong>ILOG</strong> <strong>CPLEX</strong>Callable Library routines.On some operating systems, certain intrinsic FORTRAN functions must be in all upper case(that is, capital letters) for the compiler to accept those functions.UnderscoreOn some systems, all FORTRAN external symbols are created with an underscore character(that is, _) added to the end of the symbol name. Some systems have an option to turn offthis feature. If you are able to turn off those postpended underscores, you may not need other“glue” routines.Six-Character IdentifiersFORTRAN 77 allows identifiers that are unique only up to six characters. However, inpractice, most FORTRAN compilers allow you to exceed this limit. Since routines in the122 <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!