QDpy
Loading...
Searching...
No Matches
diversitree.py File Reference

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.

Detailed Description

Diversity-guided branching over binary projections of mixed-integer programs.

See also
https://doi.org/10.1287/ijoc.2022.0164

Definition in file diversitree.py.

Function Documentation

◆ solve_diversitree()

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.

Parameters
objectiveFinite linear objective coefficients.
boundsFinite scipy.optimize.Bounds for all coordinates.
sizeMaximum number of distinct projections to collect.
budgetTotal MILP calls, including the reference solve.
integralityZero/one mask for continuous/integer coordinates, default all integer.
constraintsOne LinearConstraint or a sequence of them.
binary_indicesOptional free binary coordinates to diversify, default all free binary coordinates.
quality_lossMaximum additive objective deterioration from the certified reference.
maximizeWhether larger raw objective values are better.
alphaWeight on partial binary agreement with the collected set.
betaWeight on the depth of the partial assignment.
seed_solutionsNumber of solutions before activating the diversity and depth weights.
time_limitOptional positive time limit per MILP call.
Returns
Verified solutions and explicit solver termination status.
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.