|
QDpy
|
Diversity-guided branching over binary projections of mixed-integer programs. More...
Go to the source code of this file.
Classes | |
| class | qdpy.algorithms.diversitree.DiversiTreeResult |
| Measured representatives, solver termination, and the certified quality reference. More... | |
| class | qdpy.algorithms.diversitree._Node |
Namespaces | |
| namespace | qdpy |
Functions | |
| qdpy.algorithms.diversitree.solve_diversitree (objective, bounds, size, *, budget, integrality=None, constraints=(), binary_indices=None, quality_loss=0., maximize=True, alpha=.7, beta=.1, seed_solutions=2, time_limit=None) | |
| Search the binary projection tree of a bounded mixed-integer problem. | |
Diversity-guided branching over binary projections of mixed-integer programs.
Definition in file diversitree.py.
| qdpy.algorithms.diversitree.solve_diversitree | ( | objective, | |
| bounds, | |||
| size, | |||
| * | , | ||
| budget, | |||
| integrality = None, | |||
| constraints = (), | |||
| binary_indices = None, | |||
| quality_loss = 0., | |||
| maximize = True, | |||
| alpha = .7, | |||
| beta = .1, | |||
| seed_solutions = 2, | |||
| time_limit = None ) |
Search the binary projection tree of a bounded mixed-integer problem.
| objective | Finite linear objective coefficients. |
| bounds | Finite scipy.optimize.Bounds for all coordinates. |
| size | Maximum number of distinct projections to collect. |
| budget | Total MILP calls, including the reference solve. |
| integrality | Zero/one mask for continuous/integer coordinates, default all integer. |
| constraints | One LinearConstraint or a sequence of them. |
| binary_indices | Optional free binary coordinates to diversify, default all free binary coordinates. |
| quality_loss | Maximum additive objective deterioration from the certified reference. |
| maximize | Whether larger raw objective values are better. |
| alpha | Weight on partial binary agreement with the collected set. |
| beta | Weight on the depth of the partial assignment. |
| seed_solutions | Number of solutions before activating the diversity and depth weights. |
| time_limit | Optional positive time limit per MILP call. |
Use DiversiTree's bound, partial diversity, and depth priorities. The outer tree branches over binary projections. Each node uses SciPy MILP as an exact subproblem oracle. A verified node optimum contributes one representative. Partition the remaining node by the first bit where its projection differs from that representative. Open nodes inherit their parent's valid objective bound. The method returns a bounded collection, with a certificate for the reference fitness.
Definition at line 102 of file diversitree.py.