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.

existing partial solution. Several diversity filters can be used simultaneously, for example, togenerate solutions that share the characteristics of several different solutions.To create a diversity filter, use one of these methods, routines, or commands.◆ In Concert Technology● In the C++ API, use the method IloCplex::addDiversityFilter to add adiversity filter to the invoking IloCplex object.●●In the Java API, use the method IloCplex.addDiversityFilter to add adiversity filter to the invoking IloCplex object.In the .NET API, use the method Cplex.AddDiversityFilter to add a diversityfilter to the invoking Cplex object.◆ In the Callable Library (C API), use the routine CPXaddsolnpooldivfilter, passingthe reference values, variables of interest, and weights as arguments; or, use your favoritetext editor to create a file formatted according to the specifications in FLT File Format:Filter Files for the Solution Pool on page 39, and then install the contents of that file withthe routine CPXreadcopysolnpoolfilters.◆ 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 fltFor greater detail about the characteristics of diversity filters and reference sets, see thedocumentation of those methods and routine in the Reference <strong>Manual</strong>s of the APIs.Range FiltersA range filter allows you to generate solutions that obey a new constraint, specified as alinear expression within a range.The difference between adding a range filter and adding a linear constraint directly to themodel is that you can add range filters without losing information computed in previousinvocations of MIP optimization or populate and stored in the search space. In contrast, ifyou change the model directly by adding constraints, the next call of optimize or populatewill discard previous information and restart from scratch on the changed model.Range filters can be used to express diversity constraints that are more complex than thestandard form implemented by diversity filters. In particular, range filters also apply togeneral integer variables, semi-integer variables, continuous variables, and semi-continuousvariables, not just to binary variables.To create a range filter, use one of the following methods, routines, or commands.◆ In Concert Technology<strong>ILOG</strong> <strong>CPLEX</strong> <strong>11.0</strong> — USER’ S MANUAL 325

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!