wmpy.optimization.cvxpyoptimizer.CvxpyOptimizer

class CvxpyOptimizer(epsilon=0.01)[source]

Bases: object

Default constructor.

Parameters:

epsilon (float) – small float constant used to enforce strict inequality constraints

Methods

compute_inner_box

Returns the largest axis-aligned hyperrectangle fully enclosed in the polytope by solving the convex optimization problem on 2N variables described here:

Attributes

DEF_SOLVER

compute_inner_box(polytope)[source]

Returns the largest axis-aligned hyperrectangle fully enclosed in the polytope by solving the convex optimization problem on 2N variables described here:

The result is stored for future uses.

Parameters:

polytope (Polytope) – the Polytope instance

Return type:

tuple[ndarray, ndarray]

Returns:

Two numpy arrays corresponding to the extremes of the box.