Reading and writing filter files
Methods and routines for reading and writing filter files are available.
An existing filter file (such as one you create in your favorite text editor, or one you have saved from a previous session) can be added to your application and associated with the solution pool by one of these means:
-
Concert Technology
-
readFilters in the C++ API
-
readFilters in the Java API
-
Cplex.ReadFilters
in the .NET API
-
-
CPXreadcopysolnpoolfilters
routine of the Callable Library; -
read
filenameflt
command of the Interactive Optimizer.
The diversity and range filters already associated with a solution pool can be saved in a formatted file, as explained in Filter files in the CPLEX User’s Manual.
-
In Concert Technology,
-
in the C++ API, use the method writeFilters.
-
in the Java API, use the method writeFilters.
-
in the .NET API, use the method
CPLEX.WriteFilters
.
-
-
In the Callable Library, use the routine
CPXfltwrite
. -
write
filenameflt
command of the Interactive Optimizer, where filename is the name of a file that the user supplies, andflt
specifies the format of the file.