hopsy.round#
- class hopsy.round(problem: Problem, simplify=True)#
Rounds the polytope defined by the inequality
using PolyRound. This function also strips redundant constraints. The unrounding transformation and shift will be stored inhopsy.UniformProblem.transformation
andhopsy.UniformProblem.shift
of the returned problem. Its left-hand side operatorhopsy.UniformProblem.A
and the right-hand sidehopsy.UniformProblem.b
of the polytope will be transformed as :math:`` inequality- Parameters:
problem (hopsy.Problem) – Problem that should be rounded and which contains the matrix
and vector in .- Returns:
The rounded problem.
- Return type: