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:

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 filename flt command of the Interactive Optimizer, where filename is the name of a file that the user supplies, and flt specifies the format of the file.