|
QDpy
|
Find a minimum-edit map with a connected open component and obstacle limits. More...
Public Member Functions | |
| feasible (self, layout) | |
| Check the complete domain constraints on a binary layout. | |
| __call__ (self, layout) | |
Find a minimum-edit map with a connected open component and obstacle limits.
Repair a binary map with a rooted single-commodity flow MILP. The root is always open. Every other open cell consumes one unit of flow, and outgoing arcs have zero capacity on closed cells. Feasible input maps bypass the solver. If the solver cannot certify a minimum-edit repair within the supplied limits, return None. :param shape: Pair of positive map dimensions. :param obstacle_range: Inclusive pair of obstacle-count bounds. :param root: Fixed open cell, given as row and column. :param node_limit: Optional positive number of MILP search nodes.
Definition at line 78 of file qd_mapper.py.
| qdpy.algorithms.qd_mapper.ConnectedMapRepair.__call__ | ( | self, | |
| layout ) |
Return a minimum-edit feasible layout, or None on a solver limit.
Definition at line 141 of file qd_mapper.py.
| qdpy.algorithms.qd_mapper.ConnectedMapRepair.feasible | ( | self, | |
| layout ) |
Check the complete domain constraints on a binary layout.
Return whether the root, obstacle count, and connectivity are valid.
Definition at line 135 of file qd_mapper.py.