ILOG CPLEX 11.0 User's Manual > Discrete Optimization > Solution Pool: Generating and Keeping Multiple Solutions > Filtering the Solution Pool > Filter Files |
Filter Files |
INDEX PREVIOUS NEXT |
You 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 range filters. For documentation of the format of a filter file, see FLT File Format: Filter Files for the Solution Pool in the ILOG CPLEX File Format Reference Manual.
To create filters, use your favorite text editor to create a file formatted according to the specifications in FLT File Format: Filter Files for the Solution Pool.
To install filters declared in a filter file, use one of these methods, routines, or commands:
CPXreadcopysolnpoolfilters
to add diversity or range filters.
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:
IloCplex::writeFilters
in the C++ API;
IloCplex.writeFilters
in the Java API;
Cplex.WriteFilters
in the .NET API.
CPXfltwrite.
write
command with the file type option flt
to create a filter file of the filters currently associated with the solution pool. For example, the following command creates a file named filename.flt
containing the filters associated with the solution pool: write filename flt
Copyright © 1987-2007 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |