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.

●●●In the C++ API, use the method IloCplex::addRangeFilter to add the rangefilter to the invoking instance of IloCplex.In the Java API, use the method IloCplex.addRangeFilter to add the range filterto the invoking instance of IloCplex.In the .NET API, use the method Cplex.AddRangeFilter to add the range filter tothe invoking instance of Cplex.◆◆In the Callable Library (C API), use the routine CPXaddsolnpoolrngfilter, passinga linear constraint and range as arguments; or, use your favorite text editor to create a fileformatted according to the specifications in FLT File Format: Filter Files for the SolutionPool on page 39, and then install the contents of that file with the routineCPXreadcopysolnpoolfilters.In the Interactive Optimizer, use your favorite text editor to create a file formattedaccording to the specifications in FLT File Format: Filter Files for the Solution Pool onpage 39; then install the contents of that formatted file with the command: readfilename.fltFilter FilesYou can store filters in a file, known as a filter file, distinguished by the file extension .flt.The same filter file can contain several filters, including both diversity filters and rangefilters. For documentation of the format of a filter file, see FLT File Format: Filter Files forthe Solution Pool on page 39 in the <strong>ILOG</strong> <strong>CPLEX</strong> File Format Reference <strong>Manual</strong>.To create filters, use your favorite text editor to create a file formatted according to thespecifications in FLT File Format: Filter Files for the Solution Pool on page 39.To install filters declared in a filter file, use one of these methods, routines, or commands:◆◆In Concert Technology, use the methods:●●●IloCplex::readFiltersIloCplex.readFiltersCplex.ReadFiltersIn the Callable Library (C API), use the routine CPXreadcopysolnpoolfilters toadd diversity or range filters.◆ In the Interactive Optimizer, use the read command to import a filter file.To write existing filters to a formatted file (for example, for re-use later), use these methods,routines, or commands:◆In Concert Technology, use the methods:●IloCplex::writeFilters in the C++ API;326 <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!