QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.milp_archive.MILPArchiveSearch Class Reference

Obtain a solver-backed reference archive for a bounded linear problem. More...

Public Member Functions

 run (self, cells=None)
 Solve all cells or a requested subset in order.

Detailed Description

Obtain a solver-backed reference archive for a bounded linear problem.

Build one MILP per requested cell and verify its incumbent before admission.

Decision coordinates can be continuous or integer. Each descriptor is
an integer affine function of integer decision coordinates. Cell
constraints use the exact integer endpoints implied by Grid.index_grid.
The supplied grid's objective direction and objective bounds govern
optimization. An "optimal" result means HiGHS reported optimality with
zero requested relative gap and QDpy verified the incumbent.

:param archive: Empty parentless rectangular one-elite Grid with room for every cell.
:param objective: One finite linear objective coefficient per coordinate.
:param bounds: Finite lower and upper scipy.optimize.Bounds for the decision vector.
:param descriptor_matrix: One integer coefficient row per descriptor.
:param descriptor_offset: Optional integer constant per descriptor (default zero).
:param integrality: Boolean mask with 1 for integer and 0 for continuous coordinates.
    Defaults to integer on every axis.
:param constraints: A LinearConstraint or sequence of shared constraints.
:param time_limit: Optional positive time limit in seconds per cell.
:param node_limit: Optional positive node limit per cell.

Definition at line 68 of file milp_archive.py.

Member Function Documentation

◆ run()

qdpy.algorithms.milp_archive.MILPArchiveSearch.run ( self,
cells = None )

Solve all cells or a requested subset in order.

Return a MILPCellResult for each requested cell, including empty ones.

Call again with a subset to retry unresolved cells. Verified incumbents
can enter the grid even when the solve reaches its time or node limit.

Definition at line 209 of file milp_archive.py.


The documentation for this class was generated from the following file: