hopsy.Problem#
- class hopsy.Problem#
Attributes
ALeft-hand side operator \(A\) of the polytope-defining inequality \(Ax \leq b\).
bRight-hand side of the polytope-defining inequality \(Ax \leq b\).
modelThe
modelobject defines the target distribution inside the polytope via itslog_density().original_AIf the Problem has been transformed, e.g., rounded, then sometimes one wants to reconstruct the original problem.
original_bWhen the Problem has been transformed, e.g., rounded, then sometimes one wants to reconstruct the original problem.
shiftFor preconditioning (e.g. polytope rounding) one may wish to transform the polytope defined by \(Ax \leq b\) as \(ATy \leq b - As\) where x = Ty + s.
starting_pointA single starting point as part of the problem.
transformationFor preconditioning (e.g. polytope rounding) one may wish to transform the polytope defined by \(Ax \leq b\) as \(ATy \leq b - As\) where x = Ty + s.
Methods
slacks(point)Given a point` computes polytope slacks, i.e., b - A * x.