dwave.preprocessing.presolve.pypresolve.Presolver.apply#

Presolver.apply()[source]#

Normalize and presolve the held constraint quadratic model.

Returns:

A boolean indicating whether the model was modified by presolve.

Raises:

InvalidModelError – If the model is ill-constructed or otherwise not valid. This is disctinct from infeasibility.