ILOG CPLEX 11.0 User's Manual > Discrete Optimization > Solution Pool: Generating and Keeping Multiple Solutions > Filtering the Solution Pool > Diversity Filters |
Diversity Filters |
INDEX PREVIOUS NEXT |
A diversity filter allows you generate solutions that are similar to (or different from) a set of reference values that you specify for a set of binary variables. In particular, you can use a diversity filter to generate more solutions that are similar to an existing solution or to an existing partial solution. Several diversity filters can be used simultaneously, for example, to generate solutions that share the characteristics of several different solutions.
To create a diversity filter, use one of these methods, routines, or commands.
IloCplex::addDiversityFilter
to add a diversity filter to the invoking IloCplex
object.
IloCplex.addDiversityFilter
to add a diversity filter to the invoking IloCplex
object.
Cplex.AddDiversityFilter
to add a diversity filter to the invoking Cplex
object.
CPXaddsolnpooldivfilter
, passing the reference values, variables of interest, and weights as arguments; or, use your favorite text editor to create a file formatted according to the specifications in FLT File Format: Filter Files for the Solution Pool, and then install the contents of that file with the routine CPXreadcopysolnpoolfilters
.
read filename flt
For greater detail about the characteristics of diversity filters and reference sets, see the documentation of those methods and routine in the Reference Manuals of the APIs.
Copyright © 1987-2007 ILOG S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |