dwave.preprocessing.presolve.pypresolve.Presolver.presolve

Presolver.presolve(time_limit_s=inf)[source]

Apply any loaded presolve techniques to the held constrained quadratic model.

Must be called after normalize().

Parameters

time_limit_s – A time limit in seconds. The presolve rounds will terminate after the time limit is exceeded. Defaults to float("inf").

Returns

A boolean indicating whether the model was modified by presolve.

Raises

TypeError – If called before normalize().