Generating and keeping a pool of solutions
These methods and routines manage the solution pool, which stores multiple solutions to a mixed integer programming (MIP) model.
The solution pool stores multiple solutions to a mixed integer programming (MIP) model. With this feature, you can direct the algorithm to generate multiple solutions in addition to the optimal solution.
Names of classes, methods, and symbolic constants in the C#.NET API correspond very closely to those in the Java API with these systematic exceptions:
-
In the Java API, the names of classes begin with the prefix Ilo, whereas in C#.NET they do not.
-
In the Java API, the names of methods conventionally begin with a lowercase letter, for example,
addCols, whereas in the C#.NET API, the names of methods conventionally begin with an uppercase (that is, capital) letter, for example,AddColsaccording to Microsoft practice.
| Purpose | Java API | C++ API | C API |
|---|---|---|---|
| Populates the solution pool with multiple solutions | IloCplex. populate | IloCplex:: populate |
CPXXpopulate and CPXpopulate
|
| Writes a solution from the solution pool to a file formatted in XML | IloCplex. writeSolution | IloCplex:: writeSolution |
CPXXsolwritesolnpool and CPXsolwritesolnpool
|
| Writes all solutions from the solution pool to a file formatted in XML | IloCplex. writeSolutions | IloCplex:: writeSolutions |
CPXXsolwritesolnpoolall and CPXsolwritesolnpoolall
|
| Reads and copies an FLT formatted file of filters for the solution pool | IloCplex. readFilters | IloCplex:: readFilters |
CPXXreadcopysolnpoolfilters and CPXreadcopysolnpoolfilters
|
| Writes an FLT formatted file of filters for the solution pool | IloCplex. writeFilters | IloCplex:: writeFilters |
CPXXfltwrite and CPXfltwrite
|
| Adds a diversity filter to the solution pool | IloCplex.addDiversityFilter(double, double, ilog.concert.IloNumVar[], double[], double[]) | IloCplex:: addDiversityFilter |
CPXXaddsolnpooldivfilter and CPXaddsolnpooldivfilter
|
| Adds a range filter to the solution pool | IloCplex.addRangeFilter(double, double, ilog.concert.IloNumVar[], double[]) | IloCplex:: addRangeFilter |
CPXXaddsolnpoolrngfilter and CPXaddsolnpoolrngfilter
|
| Accesses the solution values for a range of variables in a member of the solution pool | IloCplex.getValues(ilog.concert.IloLPMatrix, int, int, int) | IloCplex:: getValues |
CPXXgetsolnpoolx and CPXgetsolnpoolx
|
| Accesses the name of a solution | IloAddable. getName | IloSolution:: getName |
CPXXgetsolnpoolsolnname and CPXgetsolnpoolsolnname
|
| Deletes solution(s) from the solution pool | IloCplex.delSolnPoolSolns(int, int) | IloCplex:: delSolnPoolSolns |
CPXXdelsolnpoolsolns and CPXdelsolnpoolsolns
|