QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.cpsat_archive.CPSATArchiveSearch Class Reference

Add one optimal or verified feasible assignment per grid niche. More...

Public Member Functions

 run (self, cells=None)
 Solve all grid cells or an explicit subset in order.

Detailed Description

Add one optimal or verified feasible assignment per grid niche.

Solve independent grid cells using an existing integer CP-SAT model.

:param archive: Empty best-only rectangular Grid with one configured
    objective and room for every cell. Use finite objective and
    descriptor bounds within the float64 exact-integer range.
:param model: OR-Tools CpModel containing the design constraints.
:param objective: Integral linear expression over that model's variables.
    The grid's fitness direction governs the solve.
:param descriptors: Integral linear expressions over the model variables
    in grid axis order, including constant integer expressions if desired.
:param time_limit: Optional positive seconds per solve.
:param deterministic_time_limit: Optional positive CP-SAT work limit per cell.
:param seed: Nonnegative 32-bit CP-SAT seed. Each cell uses one worker.

Definition at line 41 of file cpsat_archive.py.

Member Function Documentation

◆ run()

qdpy.algorithms.cpsat_archive.CPSATArchiveSearch.run ( self,
cells = None )

Solve all grid cells or an explicit subset in order.

Return one CP-SAT report per selected cell. Call again to retry cells.

Definition at line 156 of file cpsat_archive.py.


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